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
Returns the front point of the triangle.
private Point findFront(Point[] points) { // Loop through the passed points. double[] dists = new double[3]; for (int i = 0; i < 3; i++) { // Get outer-loop point. Point a = points[i]; // Loop through rest of points. for (int k = 0; k < 3; k++) { // Continue if current outer. if (i == k) continue; // Get inner-loop point. Point b = points[k]; // Add distance between out and inner. dists[i] += Math.sqrt( Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2) ); } } // Prepare index and largest holder. int index = 0; double largest = 0; // Loop through the found distances. for (int i = 0; i < 3; i++) { // Skip if dist is lower than largest. if (dists[i] < largest) continue; // Save the index and largest value. index = i; largest = dists[i]; } // Return the largest point index. return points[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}", "public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }", "public int Front() {\n if (count == 0) {\n return -1;\n }\n return array[head];\n }", "public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return nums[head];\n }", "public int Front() {\n if (isEmpty())\n return -1;\n return buf[b];\n }", "public int Front() {\n if(isEmpty()) return -1;\n return l.get(head);\n }", "public int Front() {\n if (this.count == 0)\n return -1;\n return this.queue[this.headIndex];\n }", "public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return queue[head];\n }", "public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }", "public int Front() {\n if(queue[head] == null){\n return -1;\n }else{\n return queue[head];\n }\n }", "public int front() {\n return data[first];\n }", "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "public int getFront() {\n if (cnt == 0)\n return -1;\n return head.val;\n }", "int front()\n {\n if (isEmpty())\n return Integer.MIN_VALUE;\n return this.array[this.front];\n }", "public int getFront() {\n if (head == tail && size == 0)\n return -1;\n else {\n int head_num = elementData[head];//索引当前头指针的指向的位置\n return head_num;\n }\n // return true;\n }", "public Object getFront() throws Exception {\n\t\tif(data[front]!=null)\n\t\t\n\t\t return data[front];\n\t\treturn null;\n\t}", "public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}", "int getFront()\n {\n // check whether Deque is empty or not \n if (isEmpty())\n {\n return -1 ;\n }\n return arr[front];\n }", "public E getFront() {\n return head.nextNode.data;\n }", "public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public IClause front() {\n if (back==front)\n throw new BufferUnderflowException();\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "@Override\n\tpublic E getFront() {\n\t\treturn data[front];\n\t}", "public T getFront();", "public int peekFront() {\n int x = 0;\n if(head == null) {\n return Integer.MIN_VALUE;\n }\n\n return head.val;\n }", "Point3D getLeftUpperBackCorner();", "public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}", "public Node getFront(){\n return this.front;\n }", "public AnyType getFront() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn header.next.data;\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}", "public float getTetherStartX () { return Tether.getStartX(); }", "@Override\r\n\tpublic VertexInterface<T> getPredecessor() {\n\t\treturn null;\r\n\t}", "public GPoint getFirstPoint() {\n return(point1);\n }", "public Vector3f getLookAtPoint() {\n\t\treturn mLookAtPoint;\n\t}", "public static VertexBuffer createTopTriangle() {\n return new VertexBuffer(\"a_Pos\", new VerticesData(BufferTestUtil.createTriangleData(0.5f, 0.5f, 0, 0.5f)), BufferUsage.STATIC);\n }", "public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }", "public Point getLowerPoint() {\n return lower;\n }", "public Card front()\n {\n if (firstLink == null)\n return null;\n\n return firstLink.getCard();\n }", "public T front();", "public Front() {\n\t\twheels.getrWheel().getBoundingSphereTree().getBoundingSphere().translateCenter(0.8 * Specification.TIRE_RADIUS, 0.5 * Specification.TIRE_RADIUS, 0.5 * Specification.B_DEPTH - 1.1 * Specification.TIRE_DEPTH);\n\t\twheels.getlWheel().getBoundingSphereTree().getBoundingSphere().translateCenter(0.8 * Specification.TIRE_RADIUS, 0.5 * Specification.TIRE_RADIUS, -0.5 * Specification.B_DEPTH + 1.1 * Specification.TIRE_DEPTH);\n\t}", "public E front();", "public int getArrowLocation() {\n if (arrowhead != null) {\n return arrowhead.getLocation();\n }\n return 0;\n }", "public int getFront() {\n if(size == 0) return -1;\n \n return head.next.val;\n \n}", "public int peekFront();", "public IClause uncheckedFront() {\n assert back!=front : \"Deque is empty\";\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public Alloc getPredecessor() {\n return variant == null ? null : variant.getPredecessor(this);\n }", "public float getFrontFacingRotation() {\n return frontFacingRotation;\n }", "private Point findBack(Point[] points) {\n\t\t// Find the first point.\n\t\tPoint a = this.points[0];\n\t\tif (a == this.front) {\n\t\t\ta = this.points[1];\n\t\t}\n\t\t\n\t\t// Find the second point.\n\t\tPoint b = this.points[1];\n\t\tif (b == this.front || b == a) {\n\t\t\tb = this.points[2];\n\t\t}\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = (a.x + b.x) / 2;\n\t\tcenter.y = (a.y + b.y) / 2;\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}", "public T first() {\n \t\n \tT firstData = (T) this.front.data;\n \t\n \treturn firstData;\n \t\n }", "public E peekFront() {\r\n if (front == rear) {\r\n throw new NoSuchElementException();\r\n } else {\r\n return elem[front];\r\n }\r\n }", "public float getMinX(){\n return points.get(0).getX();\n }", "public static VertexBuffer createLeftTriangle() {\n return new VertexBuffer(\"a_Pos\", new VerticesData(BufferTestUtil.createTriangleData(0.5f, 0.5f, -0.5f, 0)), BufferUsage.STATIC);\n }", "public Vertex getPrev() {\n return prev;\n }", "T front() throws RuntimeException;", "public Polygon getTriangle() {\n\n Matrix4 normalProjection = new Matrix4().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\n spriteDebugger.setProjectionMatrix(normalProjection);\n spriteDebugger.begin(ShapeRenderer.ShapeType.Line);\n spriteDebugger.polygon(getLine().getVertices());\n spriteDebugger.setColor(Color.PURPLE);\n spriteDebugger.end();\n\n spriteDebugger.end();\n return getLine();\n }", "public IPoint getThirdPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint thirdPoint = (IPoint)verticesArray[2];\n\n return thirdPoint;\n }", "public boolean getFront()\n {\n return m_bFrontLock;\n }", "public String getFrontName() {\n return frontName;\n }", "public String front()\n {\n\treturn head.value;\n }", "@Override\n public T peekFront() {\n if (isEmpty()) {\n return null;\n }\n return head.peekFront();\n }", "public void setFront(int x) {\r\n front = x;\r\n }", "public Color getFrontFlankingGapColor() {\n\t\treturn frontgap ? Color.red : Color.lightGray;\n\t}", "public void rotateToFront() {\n SXRTransform transform = mSceneRootObject.getTransform();\n transform.setRotation(1, 0, 0, 0);\n transform.rotateByAxisWithPivot(-frontFacingRotation + 180, 0, 1, 0, 0, 0, 0);\n }", "public Vector begin()\n\t{\n\t\treturn ray.origin;\n\t}", "public E3DVector3F getVertexPosA(){\r\n return vertices[0].getVertexPos();\r\n }", "public static ITriangle getTriangle() {\n return corners;\n }", "public String frontBack(String str) {\n if (str.length() <= 1) return str;\n \n String middle = str.substring(1, str.length()-1);\n \n return (str.charAt(str.length()-1) + middle + str.charAt(0));\n}", "private Point findCenter(MatOfPoint2f triangle) {\n\t\t// Find moments for the triangle.\n\t\tMoments moments = Imgproc.moments(triangle);\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = moments.get_m10() / moments.get_m00();\n\t\tcenter.y = moments.get_m01() / moments.get_m00();\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}", "private Point findCenter(MatOfPoint2f triangle) {\n\t\t// Find moments for the triangle.\n\t\tMoments moments = Imgproc.moments(triangle);\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = moments.get_m10() / moments.get_m00();\n\t\tcenter.y = moments.get_m01() / moments.get_m00();\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }", "public java.lang.Integer getFurthestPoint() {\n return furthest_point;\n }", "public int getStartVertex() {\n\t\treturn startVertex;\n\t}", "public Point getHeadLocation ()\r\n {\r\n if (headLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return headLocation;\r\n }", "public double getX() {\n\t\treturn point[0];\n\t}", "private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}", "private Point getHeadLocation (Note note)\r\n {\r\n return new Point(tailLocation.x, note.getReferencePoint().y);\r\n }", "Object front()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call front() on empty List\");\n\t\t}\n\t\treturn front.data;\n\t}", "public static String frontBack(String str) {\n\t\t if (str.length() <= 1) { // ortada karakter yoksa kendine donsun demek\n\t\t return str;\n\t\t }\n\t\t String mid = str.substring(1, str.length()-1);\n\t\t \n\t\t return str.charAt(str.length()-1) + mid + str.charAt(0);\n\t\t}", "public float getFurthestPoint() {\r\n\t\treturn furthestPoint;\r\n\t}", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "T getFront() throws EmptyQueueException;", "public java.lang.Integer getFurthestPoint() {\n return furthest_point;\n }", "public Vertex getStart()\n\t{\n\t\treturn start.copy();\n\t}", "private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }", "public double getFLAngle(){\r\n \treturn frontLeftPot.get() - FLOFFSET;\r\n }", "public E peekFront();", "public T front() throws EmptyQueueException;", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "@JSProperty(\"front\")\n @Nullable\n Chart3dFrameFrontOptions getFront();", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "public Triangle getTrigauche() {\r\n return trigauche;\r\n }", "public void rotateToFront(final SXRTransform transform) {\n transform.rotateByAxisWithPivot(-frontFacingRotation + 180, 0, 1, 0, 0, 0, 0);\n }", "public Triangle getTriangle(int n) {\n\treturn triangles.get(n); \n }", "public Location3D getLowLoc() {\n\t\treturn lowPoint;\n\t}", "public final Rule getPredecessor() {\n //ELM: in again\n//\t\treturn null; // TODO by m.zopf: because of performance reasons return here just null\n return m_pred;\n }", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "Point3D getRightLowerFrontCorner();", "public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public float getX()\n {\n return fx;\n }", "private E3DTexturedVertex getVertexA(){\r\n\t\treturn vertices[0];\r\n\t}" ]
[ "0.7333403", "0.6718087", "0.66220313", "0.65986127", "0.6585518", "0.64021987", "0.63822544", "0.6379839", "0.6274662", "0.6258532", "0.6221176", "0.61959386", "0.61843014", "0.61428684", "0.61415327", "0.6084594", "0.6059596", "0.6037804", "0.6009928", "0.59990746", "0.5997941", "0.59897345", "0.597922", "0.5949358", "0.5921874", "0.5914841", "0.5855147", "0.58489347", "0.5801599", "0.58013994", "0.5752214", "0.57457066", "0.57439", "0.57348526", "0.5732777", "0.5730464", "0.5694014", "0.56843585", "0.5674847", "0.5663595", "0.5662524", "0.5637744", "0.56329685", "0.56323415", "0.5623506", "0.5617857", "0.55936956", "0.5589518", "0.5580776", "0.5563551", "0.55553764", "0.554334", "0.5536134", "0.5534885", "0.55341667", "0.55268466", "0.55248505", "0.5501499", "0.54904175", "0.5468401", "0.5466499", "0.54229295", "0.53910184", "0.5369212", "0.53659606", "0.53605443", "0.534441", "0.534441", "0.53381234", "0.5331349", "0.53272253", "0.530816", "0.5303263", "0.5300004", "0.52976245", "0.5293253", "0.5292118", "0.5283421", "0.5274163", "0.5270859", "0.5269724", "0.5268483", "0.5266055", "0.5252861", "0.52492094", "0.524536", "0.523866", "0.5237828", "0.523093", "0.52261204", "0.52207804", "0.5208617", "0.52066725", "0.5199205", "0.51903653", "0.51900524", "0.5176932", "0.51661605", "0.5152132", "0.51480395" ]
0.5784831
30
Find the largest triangle on the passed frame.
private MatOfPoint2f findTriangle(Frame frame) { // Get all contours from frame. List<MatOfPoint> contours = frame.sortedContours(); // Prepare vehicle and approx holder variable. MatOfPoint2f approx, vehicle = null; // Loop through all the found contours. for (MatOfPoint contour: contours) { // Approximate the contour poly. approx = frame.approximate(contour); // Check if approximate found and has 3 points. if (approx != null && approx.total() == 3) { // Save approximate and break out. vehicle = approx; break; } } // Return the found vehicle. return vehicle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double max(Triangle figure) {\n double[] sides = {\n figure.getA().distanceTo(figure.getB()),\n figure.getA().distanceTo(figure.getC()),\n figure.getC().distanceTo(figure.getB()),\n };\n double maxSide = 0;\n for (double i : sides) {\n if (maxSide < i) {\n maxSide = i;\n }\n }\n return maxSide;\n }", "static long largestRectangle(int[] h) {\n\n int max = -1;\n\n for(int i = 0; i < h.length; i++){\n int height = h[i];\n int currentW = 1;\n int pointer = i-1;\n while(pointer >= 0 && h[pointer] >= height){\n currentW++;\n pointer--;\n }\n pointer = i+1;\n while(pointer < h.length && h[pointer] >= height){\n currentW++;\n pointer++;\n }\n\n max = Math.max(max, height*currentW);\n }\n\n return max;\n\n }", "public double largestTriangleArea(int[][] points) {\n int N = points.length;\n double area = 0f;\n for (int i = 0; i < N; i++) {\n for (int j = i + 1; j < N; j++) {\n for (int k = j + 1; k < N; k++) {\n area = Math.max(area, shoelaceFormula(points[i], points[j], points[k]));\n }\n }\n }\n return area;\n }", "static long largestRectangle(int[] h) {\n Stack<Integer> heightStack = new Stack<Integer>();\n Stack<Integer> posStack = new Stack<Integer>();\n\n int max = 0;\n\n for(int i = 0; i < h.length; i++) {\n if(heightStack.isEmpty() || h[i] > heightStack.peek()) {\n heightStack.push(h[i]);\n posStack.push(i);\n } else if(h[i] < heightStack.peek()) {\n int tempPos = -1;\n while(!heightStack.isEmpty() && h[i] < heightStack.peek())\n { \n tempPos = posStack.pop();\n max = Math.max(heightStack.pop() * (i - tempPos), max);\n }\n\n heightStack.push(h[i]);\n posStack.push(tempPos);\n }\n }\n\n while (!heightStack.isEmpty()) {\n max = Math.max(heightStack.pop() * (h.length - posStack.pop()), max);\n }\n\n return max;\n }", "public PolytopeTriangle findClosest(){\n\t\t//OPTIMIZATION MOVE THIS TO THE ADD FUNCTION AND HAVE IT BE THE RETURN VALUE\n\t\tfloat maxDist = faces.get(0).getDistance();\n\t\tint index = 0;\n\t\tfor(int curIndex = 1; curIndex < faces.size(); curIndex++){\n\t\t\tfloat distance = faces.get(curIndex).getDistance();\n\t\t\tif(distance < maxDist){\n\t\t\t\tindex = curIndex;\n\t\t\t\tmaxDist = distance;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn faces.get(index);\n\t}", "public int largest(int[][] matrix) {\n // Write your solution here\n if (matrix.length == 0 || matrix[0].length == 0) {\n return 0;\n }\n int[][] M1 = new int[matrix.length][matrix[0].length];\n leftToRight(matrix, M1);\n int[][] M2 = new int[matrix.length][matrix[0].length];\n rightToLeft(matrix, M2);\n int[][] M3 = new int[matrix.length][matrix[0].length];\n bottomToUp(matrix, M3);\n int[][] M4 = new int[matrix.length][matrix[0].length];\n upToBottom(matrix, M4);\n int global_max = 0;\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[0].length; j++) {\n int arm = 0;\n int left = M1[i][j];\n int right = M2[i][j];\n arm = Math.min(left, right);\n int bottom = M3[i][j];\n arm = Math.min(arm, bottom);\n int up = M4[i][j];\n arm = Math.min(arm, up);\n if (arm > global_max) {\n global_max = arm;\n }\n }\n }\n return global_max;\n }", "public double[] getMax(){\n double[] max = new double[3];\n for (Triangle i : triangles) {\n double[] tempmax = i.maxCor();\n max[0] = Math.max( max[0], tempmax[0]);\n max[1] = Math.max( max[1], tempmax[1]);\n max[2] = Math.max( max[2], tempmax[2]);\n }\n return max;\n }", "private static int findTriangleNumber(int numOfFactors) {\n // value for whether the triangle number is found\n boolean found = false;\n // index used to calculate triangle number\n int index = 1;\n // triangle number\n int triangle_number = 0;\n\n // find triangle number\n while (found == false) {\n triangle_number = index * (index + 1) / HALF;\n if (countFactors(triangle_number) >= numOfFactors) {\n found = true;\n }\n index++;\n }\n\n return triangle_number;\n }", "public int getTriangleCount();", "public float getMaxCY3();", "public int extractMaximum() {\n \n int max = maximum();\n\n if (max == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(max);\n \n return max;\n }", "private static int findBiggestArea(File inputFile) {\n\t\tchar[][] rowsArray = convertFileIntoArray(inputFile);\n\t int maxArea = getLargestBoundedArea(rowsArray);\n\t\treturn maxArea;\n\t}", "public int largestRectangleArea(int[] height) {\n if(height.length==0) return 0; \n int i=0; \n int max=0; \n Stack<Integer> stack=new Stack<Integer>();\n stack.push(0);\n while(i<height.length || !stack.isEmpty())\n {\n if(i<height.length &&( stack.isEmpty() || height[i]>=height[stack.peek()]))\n {\n stack.push(i); i++;\n }else\n {\n int top=stack.pop();\n max=Math.max(max, height[top]*(stack.isEmpty()? i: i-stack.peek()-1));\n }\n }\n return max; \n }", "public int longestZigZag(TreeNode root) {\n // left -> 0, right -> 1\n dfs(root, 0, 0);\n dfs(root, 1, 0);\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}", "public int maxArea(int[] height);", "public int getMaxFrameNumber() {\r\n return rotationFrames.size() - 1;\r\n }", "public int getSizeOfLargestSquare()\n {\n int i = GRID_SIZE;\n while(getNumSquares(i) == 0) i--;\n return i;\n }", "private float getMaxX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float maxX = Float.NEGATIVE_INFINITY;\n for (float [] point : points) {\n maxX = Math.max(maxX, point [0]);\n } \n return maxX;\n }", "private static int maxXIndex(int y, int lo, int hi, int[][] nums) {\n int maxIndex = -1;\n for (int x = lo; x < hi; x++) {\n if (maxIndex == -1 || nums[y][x] > nums[y][maxIndex])\n maxIndex = x;\n }\n return maxIndex;\n }", "public int findMaxDegree() {\n\t\tint gradoMax = 0;\n\t\t\n\t\tfor(String s : grafo.vertexSet()) {\n\t\t\tint grado = grafo.degreeOf(s);\n\t\t\t\n\t\t\tif(grado > gradoMax) {\n\t\t\t\tgradoMax = grado;\n\t\t\t\tverticeGradoMax = s;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn gradoMax;\n\t}", "public int largestRectangleArea3(int[] heights) {\r\n\t\tStack<Integer> stack = new Stack<Integer>();\t\t\t\t\t\t\t\t\t//cur index\r\n\t\t\r\n\t\tint maxArea = 0;\r\n\t\tint current = 0;\r\n\r\n\t\twhile(current < heights.length) {\r\n\t\t\twhile(!stack.isEmpty() && heights[current] <= heights[stack.peek()]) {\t\t//F: diff than 42\r\n\t\t\t\tint h = heights[stack.pop()];\r\n\r\n\t\t\t\tint distance = 0;\r\n\t\t\t\tif(stack.isEmpty()) {\t\t\t//must check! same\r\n\t\t\t\t\tdistance = current;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdistance = current - stack.peek() - 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmaxArea = Math.max(maxArea, distance * h);\r\n\t\t\t}\r\n\r\n\t\t\tstack.push(current);\r\n\t\t\tcurrent++;\r\n\t\t}\r\n\t\t\r\n\t\t//reach the end of the array, we pop all the elements of the stack e.g. handle index 1,4,5 \r\n\t\twhile(!stack.isEmpty()) {\t\t\t\r\n\t\t\tint h = heights[stack.pop()];\r\n\r\n\t\t\tint distance = 0;\r\n\t\t\tif(stack.isEmpty()) {\t\t\t\t//must check! same\r\n\t\t\t\tdistance = current;\r\n\t\t\t} else {\r\n\t\t\t\tdistance = current - stack.peek() - 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmaxArea = Math.max(maxArea, distance * h);\r\n\t\t}\r\n\r\n\t\treturn maxArea;\r\n\t}", "public int getMaximumPoints();", "public static int triangleNumber_bf(int[] nums) {\n if (nums == null || nums.length <= 2) {\n return 0;\n }\n\n int ans = 0;\n int len = nums.length;\n for (int i = 0; i < len - 2; i++) {\n if (nums[i] <= 0) {\n continue;\n }\n\n for (int j = i + 1; j < len - 1; j++) {\n if (nums[j] <= 0) {\n continue;\n }\n\n for (int k = j + 1; k < len; k++) {\n if (nums[k] <= 0) {\n continue;\n }\n\n if (nums[i] + nums[j] > nums[k] && nums[i] + nums[k] > nums[j] && nums[j] + nums[k] > nums[i]) {\n ans++;\n }\n }\n }\n }\n\n return ans;\n }", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\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 }", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "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 int getLargestRoundNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT MAX(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next())\n\t\t\t\tresult = this.rs.getInt(1);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public int maximum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer maxRepr = xft.maximum();\n \n assert(maxRepr != null);\n \n int index = maxRepr.intValue()/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Entry<Integer, Integer> lastItem = map.lastEntry();\n \n assert(lastItem != null);\n \n return lastItem.getKey();\n }", "@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }", "private int rightmostDip() {\n for (int i = n - 2; i >= 0; i--) {\n if (index[i] < index[i + 1]) {\n return i;\n }\n }\n return -1;\n }", "private int largestCard(Card[] cards) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < cards.length; i++)\n if (cards[i].getDenomination() > cards[max].getDenomination())\n max = i;\n\n return max;\n }", "public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }", "public int triangleNumber(int[] nums) {\n Arrays.sort(nums);\n int count = 0;\n for (int i = 0; i < nums.length - 2; i++) {\n for (int j = i + 1; j < nums.length - 1; j++) {\n int k = j + 1;\n while (k < nums.length && nums[i] + nums[j] > nums[k]) {\n k++;\n }\n count += k - j - 1;\n }\n\n }\n return count;\n }", "public double max (double firstside, double secondside, double thirdside){\n \n \n\t \n if(firstside > secondside && firstside > thirdside)\n maxlenght = firstside;\n\t \n if (secondside >firstside && secondside >thirdside)\n maxlenght = secondside;\n\t\telse\n maxlenght = thirdside;\n return maxlenght; \n }", "public static int getMaxFramesPerSquare() {\n int max = 0;\n for (int b = 0; b < ColorFrames.BOARD_PLACES; ++b) {\n int frames = 0;\n for (int f = 0; f < ColorFrames.FRAMES_DIM; ++f) {\n if (pieces[b][f] == ColorFrames.NO_FRAME)\n ++frames;\n }\n\n if (frames > max)\n max = frames;\n }\n\n return max;\n }", "int getMax_depth();", "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}", "private String findMax(int[][] grid) {\n int max = 0, rx = 0, ry = 0, size = 0;\n for (int y = 1; y <= 300; y++) {\n for (int x = 1; x <= 300; x++) {\n // iterate over diameter, keep results in order to reuse them\n Map<Integer, Integer> squares = new HashMap<>(300);\n for (int d = 0; d <= 300 - Math.max(x, y); d++) {\n int current = 0;\n\n if (d == 0) {\n current += grid[y][x];\n } else {\n for (int offset = 0; offset < d; offset++) {\n current += grid[y + offset][x + d]; // skip inner square, get last column\n current += grid[y + d][x + offset]; // skip inner square, get last row\n }\n current += squares.get(d - 1); // add inner square of size (d-1)\n current += grid[y + d][x + d]; // add bottom-right corner cell\n }\n\n squares.put(d, current);\n\n if (current > max) {\n max = current;\n rx = x; ry = y;\n size = d;\n }\n }\n }\n }\n\n return rx + \",\" + ry + \",\" + (size + 1);\n }", "private String getCountryWithMostNumberOfBordersShared(HashSet<String> countriesConquered) {\r\n\t\tString weakestCountry = \"\";\r\n\t\tInteger maxNeighbours = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tfor(String country : countriesConquered) {\r\n\t\t\tInteger enemyNeighbours = 0;\r\n\t\t\tfor(String adjacentCountry : this.gameData.gameMap.getAdjacentCountries(country)) {\r\n\t\t\t\tif(this.gameData.gameMap.getCountry(adjacentCountry).getCountryConquerorID() != this.playerID) {\r\n\t\t\t\t\tenemyNeighbours++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(enemyNeighbours > maxNeighbours) {\r\n\t\t\t\tmaxNeighbours = enemyNeighbours;\r\n\t\t\t\tweakestCountry = country;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn weakestCountry;\r\n\t\t\r\n\t}", "public int getMaxRow();", "private int indiceColMax(String tabla[][]){\n int indice=1;\n float aux=Float.parseFloat(tabla[0][1]);\n for (int j = 1; j <= nVariables; j++) {\n if(Float.parseFloat(tabla[0][j])<0 && Float.parseFloat(tabla[0][j])<aux){\n aux=Float.parseFloat(tabla[0][j]);\n indice=j;\n }\n }\n return indice;\n }", "public abstract int maxIndex();", "public int getMaxFloor();", "private int getMax(int[][] dp, int row, int col) {\r\n \tint height = 0;\r\n \tint minWidth = dp[row][col]; // the number of consecutive 1s\r\n \t// go up which means row number decreases\r\n \tfor (int i = row - 1; i >= 0; i--) {\r\n\t\t\t// should not 0, should break\r\n\t\t\tif (dp[i][col] >= minWidth) {\r\n\t\t\t\theight += 1;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n \t}\r\n \t// go down which means row number increases\r\n \tfor (int i = row; i < dp.length; i++) {\r\n \t // should not 0, should break\r\n \t\tif (dp[i][col] >= minWidth) {\r\n height += 1;\r\n } else {\r\n break;\r\n }\r\n \t}\r\n\r\n \treturn minWidth * height;\r\n }", "private float getMaxHeight(TECarpentersBlock TE)\n \t{\n \t\tfloat maxHeight = 1.0F / 16.0F;\n \t\t\n \t\tfor (int quadrant = 0; quadrant < 4; ++quadrant) {\n \t\t\tfloat quadHeight = Collapsible.getQuadHeight(TE, quadrant) / 16.0F;\n \t\t\tif (quadHeight > maxHeight)\n \t\t\t\tmaxHeight = quadHeight;\n \t\t}\t\t\n \n \t\treturn maxHeight;\n \t}", "private Floor getHighestDirBut(LiftButton[][] dbp) {\r\n\t\tint x = numberOfFloors-1;\r\n\t\twhile(x>=0){\r\n\t\t\tif(dbp[x][0]==LiftButton.ACTIVE || dbp[x][1]==LiftButton.ACTIVE) return new Floor(x);\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn new Floor(0);\r\n\t}", "int largestRectangleArea(int[] height) {\r\n\t\tif (height.length == 0)\r\n\t\t\treturn 0;\r\n\t\tStack<Node> s = new Stack<Node>();\r\n\t\ts.push(new Node(0, height[0]));\r\n\t\tint maxArea = 0;\r\n\t\tfor (int i = 1; i < height.length; i++) {\r\n\t\t\tif (height[i] > s.peek().height) {\r\n\t\t\t\ts.push(new Node(i, height[i]));\r\n\t\t\t} else if (height[i] < s.peek().height) {\r\n\t\t\t\tint rightBound = i - 1;\r\n\t\t\t\tNode pre = null;\r\n\t\t\t\twhile (!s.isEmpty() && s.peek().height > height[i]) {\r\n\t\t\t\t\tpre = s.pop();\r\n\t\t\t\t\tint newArea = (rightBound - pre.index + 1) * pre.height;\r\n\t\t\t\t\tif (newArea > maxArea)\r\n\t\t\t\t\t\tmaxArea = newArea;\r\n\t\t\t\t}\r\n\t\t\t\t// if previous node's height equals to current height, don't do\r\n\t\t\t\t// anything\r\n\t\t\t\tif (s.isEmpty() || s.peek().height < height[i]) {\r\n\t\t\t\t\t// pre is non-null\r\n\t\t\t\t\ts.push(new Node(pre.index, height[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint rightBound = height.length - 1;\r\n\t\twhile (!s.isEmpty()) {\r\n\t\t\tNode pre = s.pop();\r\n\t\t\tint newArea = (rightBound - pre.index + 1) * pre.height;\r\n\t\t\tif (newArea > maxArea) {\r\n\t\t\t\tmaxArea = newArea;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn maxArea;\r\n\t}", "public static int triangleNumber_tp(int[] nums) {\n if (nums == null || nums.length <= 2) {\n return 0;\n }\n\n Arrays.sort(nums);\n int ans = 0;\n int len = nums.length;\n for (int i = len - 1; i >= 2; i--) {\n int left = 0;\n int right = i - 1;\n while (left < right) {\n if (nums[left] + nums[right] > nums[i]) {\n ans += right - left;\n right--;\n } else {\n left++;\n }\n }\n }\n\n return ans;\n }", "int largestRectangleAreaNaive(int[] height) {\r\n\t\tint maxArea = 0;\r\n\t\tfor (int i = 0; i < height.length; i++) {\r\n\t\t\tint minHeight = height[i];\r\n\t\t\tfor (int j = i; j >= 0; j--) {\r\n\t\t\t\tminHeight = minHeight < height[j] ? minHeight : height[j];\r\n\t\t\t\tint area = minHeight * (i - j + 1);\r\n\t\t\t\tif (area > maxArea)\r\n\t\t\t\t\tmaxArea = area;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn maxArea;\r\n\t}", "private Floor getHighestButPan(LiftButton[] bP){\r\n\t\t\r\n\t\tint x=numberOfFloors-1;\r\n\t\twhile(x>=0){\r\n\t\t\tif (bP[x]==LiftButton.ACTIVE) return new Floor(x);\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn new Floor(0);\r\n\t}", "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 }", "public int largestRectangleArea2(int[] heights) {\r\n\t\tStack<Integer> stack = new Stack<Integer>();\t\t\t//cur index\r\n\r\n\t\tint maxArea = 0;\r\n\t\tint current = 0;\r\n\r\n\t\twhile(current < heights.length) {\r\n\t\t\t//why not using isEmpty to check, cuz '-1' is always in stack (mark the end)\r\n\t\t\twhile(!stack.isEmpty() && heights[current] <= heights[stack.peek()]) {\t\t//F: diff than 42\r\n\t\t\t\tint h = heights[stack.pop()];\r\n\r\n\t\t\t\tint distance = 0;\r\n\t\t\t\tif(stack.isEmpty()) {\t\t\t//must check! \r\n\t\t\t\t\tdistance = current;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdistance = current - stack.peek() - 1;\r\n\t\t\t\t}\r\n\t\t\t\tmaxArea = Math.max(maxArea, distance * h);\r\n\t\t\t}\r\n\r\n\t\t\tstack.push(current);\r\n\t\t\tcurrent++;\r\n\t\t}\r\n\t\t//reach the end of the array, we pop all the elements of the stack e.g. handle index 1,4,5 \r\n\t\twhile(!stack.isEmpty()) {\t\t\t\r\n\t\t\tint h = heights[stack.pop()];\t\t\t\t\t//inside heights[] \r\n\r\n\t\t\tint distance = 0;\r\n\t\t\tif(stack.isEmpty()) {\r\n\t\t\t\tdistance = current;//; heights.length - (-1) - 1;\t\t\t\t\t//careful to deal with length - (-1) - 1, not just -1 \t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tdistance = current - stack.peek() - 1; //heights.length - stack.peek() - 1;\r\n\t\t\t}\r\n\t\t\t//int distance = heights.length - (stack.isEmpty() ? 0 : stack.peek()) - 1;\t\t//easy to deal with -1\r\n\r\n\t\t\tmaxArea = Math.max(maxArea, distance * h);\r\n\t\t}\r\n\r\n\t\treturn maxArea;\r\n\t}", "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 int getMax(){\n return tab[rangMax()];\n }", "private int findUpperBound(int[] nums, int target) {\n int left = 0, right = nums.length;\n while (left < right) {\n int mid = (right - left) / 2 + left;\n if (nums[mid] > target) right = mid;\n else left = mid + 1;\n }\n return (left > 0 && nums[left - 1] == target) ? left - 1 : -1;\n }", "public int findMax(){\n return nilaiMaks(this.root);\n }", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "public int largestSquare(int[][] matrix) {\n if (matrix == null || matrix.length == 0) return 0;\n\n int row = matrix.length;\n int col = matrix[0].length;\n int[][] M = new int[row][col];\n int globalMax = 0;\n\n //base case\n for (int index = 0; index < row; index++) {\n M[index][0] = matrix[index][0]; // M[i][0] = i\n }\n for (int index = 0; index < col; index++) {\n M[0][index] = matrix[0][index];\n }\n\n //induction rule\n for (int i = 1; i < row; i++) {\n for (int j = 1; j < col; j++) {\n M[i][j] = Math.min(M[i-1][j-1], Math.min(M[i-1][j], M[i][j-1])) + 1;\n globalMax = Math.max(globalMax, M[i][j]);\n }\n }\n return globalMax;\n }", "public int maxStack();", "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 findMaxLength(int[] nums) {\n int[] arr = new int[2*nums.length+1];\n Arrays.fill(arr, -2);\n arr[nums.length] = -1;\n int max = 0;\n int count=0;\n for(int i=0;i<nums.length;i++){\n count += (nums[i]==0?-1:1);\n if(arr[count+nums.length]>=-1){\n max = Math.max(max,i-arr[count+nums.length]);\n }else{\n arr[count+nums.length]= i;\n }\n }\n return max;\n }", "public float getMaxCY5();", "private int backtrack(Deplacement depl, Couleur couleurJoueur) {\n\t\tint maxBack = depl.size();\n\t\tfor(int i = 0; i < Constantes.N; i++) {\n\t\t\tfor(int j = 0; j < Constantes.N; j++) {\n\t\t\t\tdepl.add(new Position(i,j));\n\t\t\t\tif(estValide(depl, couleurJoueur)) {\n\t\t\t\t\tint val = backtrack(depl, couleurJoueur);\n\t\t\t\t\tif(val > maxBack) {\n\t\t\t\t\t\tmaxBack = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdepl.remove(depl.size() - 1);\n\t\t\t}\n\t\t}\n\t\treturn maxBack;\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 }", "public int maxArea(int[] height) {\n int ans = -1;\n for (int lt = 0, rt = height.length - 1; lt < rt; ) {\n ans = Math.max(ans, (rt - lt) * Math.min(height[lt], height[rt]));\n if (height[lt] < height[rt]) {\n lt++;\n } else if (height[lt] > height[rt]) {\n rt--;\n } else {\n if (height[lt + 1] < height[rt - 1]) {\n rt--;\n } else {\n lt++;\n }\n }\n }\n return ans;\n }", "public static void main(String[] args) {\n\t\tchar[][] matrix = { { '1', '1', '1', '0' }, { '1', '0', '0', '1' },\n\t\t\t\t{ '1', '0', '0', '0' }, { '1', '0', '0', '0' } };\n\t\tint result = maximalRectangle(matrix);\n\t\tSystem.out.println(result);\n\n\t}", "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 Point getMaxPoint() {\r\n int maximumX = children.get(0).getShapeEndingPoint().getX();\r\n int maximumY = children.get(0).getShapeEndingPoint().getY();\r\n for(IShape shape: children) {\r\n if(shape.getShapeEndingPoint().getX() > maximumX) {\r\n maximumX = shape.getShapeEndingPoint().getX();\r\n }\r\n if(shape.getShapeEndingPoint().getY() > maximumY) {\r\n maximumY = shape.getShapeEndingPoint().getY();\r\n }\r\n }\r\n maxPoint = new Point(maximumX,maximumY);\r\n return maxPoint;\r\n }", "public static int largestMultipleOfXLeqY(int x, int y) {\n\treturn (y / x) * x;\n }", "static int surfaceArea(int[][] A) {\n int rowLength = A.length;\n int colLength = A[0].length;\n int left = 0;\n int right = 0;\n int front = 0;\n int back = 0;\n int up = colLength * rowLength;\n int down = colLength * rowLength;\n int result = 0;\n\n for(int i = 0; i < rowLength; i++) {\n for(int j = 0; j < colLength; j ++) {\n if(j == 0){\n left += A[i][j];\n }\n else {\n if(A[i][j] > A[i][j - 1]) left += A[i][j] - A[i][j - 1];\n }\n }\n }\n\n for(int i = 0; i < colLength; i++) {\n for(int j = 0; j < rowLength; j ++) {\n if(j == 0){\n back += A[j][i];\n }\n else {\n if(A[j][i] > A[j - 1][i]) back += A[j][i] - A[j - 1][i];\n }\n }\n }\n\n for(int i = rowLength - 1; i >= 0; i--) {\n for(int j = colLength - 1; j >= 0; j--) {\n if(j == colLength - 1) {\n right += A[i][j];\n }\n else {\n if(A[i][j] > A[i][j + 1]) left += A[i][j] - A[i][j + 1];\n }\n\n }\n }\n\n for(int i = colLength - 1; i >= 0; i--) {\n for(int j = rowLength - 1; j >= 0; j--) {\n if(j == rowLength - 1) {\n up += A[j][i];\n }\n else {\n if(A[j][i] > A[j + 1][i]) up += A[j][i] - A[j + 1][i];\n }\n\n }\n }\n\n result = right + left + up + down + front + back;\n\n return result;\n\n }", "double getRight(double max);", "int getMax();", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "public int largestRectangleArea(int[] heights) {\r\n int maxArea = 0;\r\n \r\n // store the index\r\n // increasing Stack\r\n Stack<Integer> stack = new Stack<>();\r\n int n = heights.length;\r\n\r\n for (int i = 0; i <= n; i++) {\r\n int currVal = i == n ? 0 : heights[i];\r\n \r\n int right = i - 1;\r\n\r\n while (!stack.isEmpty() && currVal <= heights[stack.peek()]) {\r\n int h = heights[stack.pop()];\r\n // 就是当前位置\r\n int left = stack.isEmpty() ? 0 : stack.peek() + 1;\r\n \r\n int area = h * (right - left + 1);\r\n \r\n maxArea = Math.max(maxArea, area);\r\n }\r\n \r\n stack.push(i);\r\n }\r\n \r\n return maxArea;\r\n }", "public static int maxAreaBruteForce(int[] height) {\n int maxArea = Integer.MIN_VALUE;\n\n for (int i = 0; i < height.length; i++) {\n for (int j = i + 1; j < height.length; j++) {\n int temp = (j - i) * (height[i] < height[j] ? height[i] : height[j]);\n if (temp > maxArea)\n maxArea = temp;\n }\n }\n\n return maxArea;\n }", "private Point findFront(Point[] points) {\n\t\t// Loop through the passed points.\n\t\tdouble[] dists = new double[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Get outer-loop point.\n\t\t\tPoint a = points[i];\n\t\t\t\n\t\t\t// Loop through rest of points.\n\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t// Continue if current outer.\n\t\t\t\tif (i == k) continue;\n\t\t\t\t\n\t\t\t\t// Get inner-loop point.\n\t\t\t\tPoint b = points[k];\n\t\t\t\t\n\t\t\t\t// Add distance between out and inner.\n\t\t\t\tdists[i] += Math.sqrt(\n\t\t\t\t\tMath.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Prepare index and largest holder.\n\t\tint index = 0;\n\t\tdouble largest = 0;\n\t\t\n\t\t// Loop through the found distances.\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Skip if dist is lower than largest.\n\t\t\tif (dists[i] < largest) continue;\n\t\t\t\n\t\t\t// Save the index and largest value.\n\t\t\tindex = i;\n\t\t\tlargest = dists[i];\n\t\t}\n\t\t\n\t\t// Return the largest point index.\n\t\treturn points[index];\n\t}", "int getMaxLevel();", "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 mostNumOfCards(WarPlayer[] players) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < players.length; i++)\n if (players[i].getPoints() > players[max].getPoints())\n max = i;\n\n return max;\n }", "public int maximalRectangle(char[][] matrix) {\n if (null == matrix || matrix.length == 0 || matrix[0].length == 0) {\n return 0;\n }\n int[] height = new int[matrix[0].length];\n for (int i = 0; i < matrix[0].length; i++) {\n if (matrix[0][i] == '1') {\n height[i] = 1;\n }\n }\n int result = largestInLine(height);\n for (int i = 1; i < matrix.length; i++) {\n resetHeight(matrix, height, i);\n result = Math.max(result, largestInLine(height));\n }\n return result;\n }", "public int maxArea_wrong(int[] height) {\r\n\r\n if (height.length < 2) {\r\n return 0;\r\n }\r\n\r\n // This is actually not correct thought\r\n // need some smart to work this out!\r\n int len = height.length;\r\n int leftH = height[0];\r\n int leftHIdx = 0;\r\n int rightH = height[len - 1];\r\n int rightHIdx = len - 1;\r\n int max = Math.min(leftH, rightH) * (len - 1);\r\n\r\n int i = 1, j = len - 2;\r\n while (i < j) {\r\n while (i < j && height[i] <= leftH) {\r\n i++;\r\n }\r\n if (i < j) {\r\n leftH = height[i];\r\n leftHIdx = i;\r\n }\r\n while (i < j && height[j] <= rightH) {\r\n j--;\r\n }\r\n if (i < j) {\r\n rightH = height[j];\r\n rightHIdx = j;\r\n }\r\n int temp = Math.min(leftH, rightH) * (rightHIdx - leftHIdx);\r\n if (temp > max) {\r\n max = temp;\r\n }\r\n }\r\n\r\n return max;\r\n }", "int getMaximum();", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "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}", "static int findGreatestValue(int x, int y) {\r\n\t\t\r\n\t\tif(x>y)\r\n\t\t\treturn x;\r\n\t\telse\r\n\t\t return y;\r\n\t}", "public Coords getJumpPathHighestPoint() {\n Coords highestCoords = null;\n int highestElevation = 0;\n for (MoveStep step : steps) {\n if (getGame().getBoard().getHex(step.getPosition()).getLevel() > highestElevation) {\n highestElevation = step.getElevation();\n highestCoords = step.getPosition();\n }\n }\n return highestCoords;\n }", "GamePiece furthestPiece(GamePiece from, ArrayList<GamePiece> connect) {\n HashMap<GamePiece, Integer> dists = this.distanceMap(from);\n GamePiece currMax = from;\n int max = 0;\n for (GamePiece p : connect) {\n if (p.connectedToPower(from)) {\n if (dists.get(p) > max) {\n max = dists.get(p);\n currMax = p;\n }\n }\n }\n return currMax;\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "public double getMaxT() {\n return v[points_per_segment - 1];\n }", "public int indexOfLargest( ArrayList<QuakeEntry> quakeData ) {\n\t\tint maxIndex = -1;\n\t\tdouble maxMag = 0.0;\n\t\tfor( int i = 0; i < quakeData.size(); ++i ) {\n\t\t\tdouble mag = quakeData.get( i ).getMagnitude();\n\t\t\tif( mag > maxMag ) {\n\t\t\t\tmaxMag = mag;\n\t\t\t\tmaxIndex = i;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn maxIndex;\n\t}", "public int getMaxTileX() {\n return convertXToTileX(getMaxX() - 1);\n }", "int maxDepth();", "public int maxArea(int[] height) {\n int i = 0, j = height.length - 1;\n int max = 0;\n while (j > i) {\n int l = j - i;\n int w = Math.min(height[i], height[j]);\n if (l * w > max) {\n max = l * w;\n }\n if (w == height[i]) {\n i++;\n } else if (w == height[j]) {\n j--;\n }\n }\n return max;\n }", "public static int largestArea(ImmutableList<Coordinate> coordinates) {\r\n char[][] grid = fillGrid(coordinates);\r\n\r\n // Count the size of each coordinate's area. Coordinates touching the side of the grid are infinite (-1 canary).\r\n ImmutableMap<Character, Integer> areas = coordinateAreas(grid);\r\n\r\n // Return the biggest non-infinite area.\r\n return areas.values().stream()\r\n .mapToInt(value -> value)\r\n .max()\r\n .orElseThrow(() -> new IllegalStateException(\"No areas\"));\r\n }", "private int max(int i, int j)\r\n {\r\n if(i > j) return i;\r\n else return j;\r\n }", "private static int numberOfRightTriangle(int[] x, int[] y) {\n int count = 0;\n for (int i = 0; i < x.length - 2; i++) {\n for (int j = i + 1; j < x.length - 1; j++) {\n long lenOne = lenSquare(x[i], y[i], x[j], y[j]);\n for (int k = j + 1; k < x.length; k++) {\n long lenTwo = lenSquare(x[i], y[i], x[k], y[k]);\n long lenThre = lenSquare(x[j], y[j], x[k], y[k]);\n long max = Math.max(lenThre, lenTwo);\n max = Math.max(max, lenOne);\n max = max << 1;\n if (max == lenOne + lenTwo + lenThre) {\n max = max >>> 2;\n if (lenThre == max || lenTwo == max)\n count++;\n }\n // if (lenOne == lenTwo + lenThre ||\n // lenOne == Math.abs(lenTwo - lenThre)) {\n // count++;\n // }\n }\n }\n }\n return count;\n }", "public static int largestRectangleArea(int[] heights) {\n Stack<Integer> stk = new Stack<>();\n stk.push(-1);\n int[] lefts = new int[heights.length];\n int[] rights = new int[heights.length];\n for (int i = 0; i < heights.length; i++) {\n while (stk.peek() != -1 && heights[stk.peek()] >= heights[i])\n stk.pop();\n lefts[i] = stk.peek();\n stk.push(i);\n }\n stk.clear();\n stk.push(heights.length);\n for (int j = heights.length-1; j >= 0; j--) {\n while (stk.peek() != heights.length && heights[stk.peek()] >= heights[j])\n stk.pop();\n rights[j] = stk.peek();\n stk.push(j);\n }\n\n int maxnum = 0;\n for (int i = 0; i < heights.length; i++) {\n int area = heights[i] * (rights[i]-lefts[i]-1);\n if (area > maxnum)\n maxnum = area;\n }\n return maxnum;\n }", "public abstract Vector4fc max(IVector4f v);" ]
[ "0.66518533", "0.6106061", "0.6027276", "0.6027007", "0.5855545", "0.55761725", "0.5551585", "0.5523015", "0.54682577", "0.5400019", "0.5397409", "0.5383975", "0.5372159", "0.5352694", "0.53354573", "0.53342295", "0.5330234", "0.53277004", "0.53239226", "0.5318433", "0.5301057", "0.52944183", "0.5277804", "0.5275787", "0.5258062", "0.52534246", "0.5250103", "0.5247934", "0.5231243", "0.522481", "0.52204716", "0.52133036", "0.5208532", "0.5205279", "0.51962733", "0.5183844", "0.51787084", "0.5175553", "0.51679", "0.5162105", "0.5159167", "0.51454306", "0.5144274", "0.5136317", "0.51280993", "0.5119254", "0.51155895", "0.5112079", "0.51080567", "0.5103382", "0.50917584", "0.5088466", "0.50877416", "0.50819427", "0.507525", "0.50629234", "0.5060301", "0.50560457", "0.504272", "0.5018511", "0.5015439", "0.50089264", "0.50021625", "0.50011027", "0.49968567", "0.49966797", "0.49958605", "0.49923807", "0.49910766", "0.4980653", "0.49800277", "0.49767345", "0.49750358", "0.49742505", "0.49632794", "0.49608344", "0.49563256", "0.49479955", "0.49453387", "0.4943116", "0.4941852", "0.49412", "0.49374866", "0.49316952", "0.4931171", "0.49291965", "0.4924702", "0.49184817", "0.49159893", "0.4913873", "0.49133444", "0.49128506", "0.49089885", "0.49087125", "0.49079204", "0.48825148", "0.48811138", "0.4878647", "0.48740005", "0.48711613" ]
0.5456877
9
Find the center point of the triangle contour.
private Point findCenter(MatOfPoint2f triangle) { // Find moments for the triangle. Moments moments = Imgproc.moments(triangle); // Create point and set x, and y positions. Point center = new Point(); center.x = moments.get_m10() / moments.get_m00(); center.y = moments.get_m01() / moments.get_m00(); // Return the found center point. return center; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(points[0], points[i+1], points[i+2]);\n Vec2 triangleMidpoint = t.getCenter();\n float triangleArea = t.getArea();\n\n averageMidpoint.addX(triangleMidpoint.getX() * triangleArea);\n averageMidpoint.addY(triangleMidpoint.getY() * triangleArea);\n\n area += triangleArea;\n\n// Color color;\n// if (i==0) color = Color.GREEN;\n// else color = Color.ORANGE;\n// SumoGame.ADD_DEBUG_DOT(points[0].getX(), points[0].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+1].getX(), points[i+1].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+2].getX(), points[i+2].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(triangleMidpoint.getX(), triangleMidpoint.getY(), triangleArea/2000, color);\n }\n\n averageMidpoint.div(area);\n\n// SumoGame.ADD_DEBUG_DOT(averageMidpoint.getX(), averageMidpoint.getY(), 20, Color.RED);\n\n return averageMidpoint;\n }", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "Point getCenter();", "Point getCenter();", "public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calculate(fptCenter);\n \n rotateRadian = 0.0f;\n \n return fptCenter;\n }", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "public Point getCentrePoint()\n\t\t{\n\t\t\tif(shape.equals(\"circle\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn new Point((int)((Ellipse2D)obj).getCenterX(),(int)((Ellipse2D)obj).getCenterY());\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tint xtot = 0;\n\t\t\t\tint ytot = 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\txtot += coords[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tytot += coords[i];\n\t\t\t\t}\n\t\t\t\treturn new Point((xtot*2)/coords.length,(ytot*2)/coords.length);\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn new Point((int)((Rectangle)obj).getCenterX(),(int)((Rectangle)obj).getCenterY());\n\t\t\t}\n\t\t}", "public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }", "public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }", "PVector _getCenter() {\n PVector cen = new PVector(_hitboxCenter.x, _hitboxCenter.y);\n cen.rotate(_rotVector.heading() - _front);\n cen.x += _x;\n cen.y += _y;\n return cen;\n }", "public Point2D.Double GetCentrePoint() {\n \t\treturn new Point2D.Double(centrePoint.getX(), centrePoint.getY());\n \t}", "public PointF getCenter() {\n return center;\n }", "public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}", "public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}", "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "public final int centerX() {\n return (left + right) >> 1;\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "public static double getCenter(int index) {\n\t\tif (index==0) return -1.0;\n\t\telse return DEFAULT_CENTERS[index-1];\n\t}", "public GJPoint2D center();", "public Vector3D getCenter() {\n return center;\n }", "public Point getCenter() {\n return center;\n }", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public Vector3f getCenter() {\r\n return center;\r\n }", "public Point getCenter() {\r\n return this.center;\r\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}", "public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }", "public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public double getCenterX() { return centerX.get(); \t}", "private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }", "public abstract Vector computeCenter();", "public Point2D centerOfMass() \n {\n double cx = 0, cy = 0;\n double area = areaUnsigned();\n double factor = 0;\n for (Line2D line : lines) \n {\n factor = line.getP1().getX() * line.getP2().getY() - line.getP2().getX() * line.getP1().getY();\n cx += (line.getP1().getX() + line.getP2().getX()) * factor;\n cy += (line.getP1().getY() + line.getP2().getY()) * factor;\n }\n area *= 6.0d;\n factor = 1 / area;\n cx *= factor;\n cy *= factor;\n return new Point2D.Double(cx, cy);\n }", "public Line2D.Double\ncenterAtMidPt()\n{\n\tPoint2D midPt = this.getMidPt();\n\treturn new Line2D.Double(\n\t\tgetX1() - midPt.getX(),\n\t\tgetY1() - midPt.getY(),\n\t\tgetX2() - midPt.getX(),\n\t\tgetY2() - midPt.getY());\n}", "public Point getCenter() {\n return location.center();\n }", "public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}", "public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }", "public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }", "public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }", "public Coordinate getCenter() {\n return center;\n }", "public Point getCenterPx(){\n\t\tint centerX = images[0].getWidth()/2;\n\t\tint centerY = images[0].getHeight()/2;\n\t\tPoint centerPx = new Point(centerX,centerY);\n\t\treturn centerPx;\n\t}", "public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }", "public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }", "public double getCenterX() {\n\t\treturn centerX;\n\t}", "public final float exactCenterX() {\n return (left + right) * 0.5f;\n }", "private static Point areaCentre() {\r\n\t\tvar centreLon = (lonLB + lonUB)/2;\r\n\t\tvar centreLat = (latLB + latUB)/2;\r\n\t\treturn Point.fromLngLat(centreLon, centreLat);\r\n\t}", "static PointDouble incircleCenter(PointDouble p1, PointDouble p2, PointDouble p3) {\n // if points are collinear, triangle is degenerate => no incircle center\n if (collinear(p1, p2, p3)) return null;\n\n // Compute the angle bisectors in l1, l2\n double ratio = dist(p1, p2) / dist(p1, p3);\n PointDouble p = translate(p2, scale(vector(p2, p3), ratio / (1 + ratio)));\n Line l1 = pointsToLine(p1, p);\n\n ratio = dist(p2, p1) / dist(p2, p3);\n p = translate(p1, scale(vector(p1, p3), ratio / (1 + ratio)));\n Line l2 = pointsToLine(p2, p);\n\n // Return the intersection of the bisectors\n return intersection(l1, l2);\n }", "public float getCentreX() {\n return centreX;\n }", "public Vector3D getCentrePosition()\n\t{\n\t\treturn centrePosition;\n\t}", "public ImageWorkSpacePt findCurrentCenterPoint() {\n WebPlot plot= getPrimaryPlot();\n\n\n int screenW= plot.getScreenWidth();\n int screenH= plot.getScreenHeight();\n int sw= getScrollWidth();\n int sh= getScrollHeight();\n int cX;\n int cY;\n if (screenW<sw) {\n cX= screenW/2;\n }\n else {\n int scrollX = getScrollX();\n cX= scrollX+sw/2- wcsMarginX;\n }\n\n if (screenH<sh) {\n cY= screenH/2;\n }\n else {\n int scrollY = getScrollY();\n cY= scrollY+sh/2- wcsMarginY;\n }\n\n ScreenPt pt= new ScreenPt(cX,cY);\n\n return plot.getImageWorkSpaceCoords(pt);\n }", "public Point getPointMiddle()\n {\n Point temp = new Point();\n temp.x = Math.round((float)(rettangoloX + larghezza/2));\n temp.y = Math.round((float)(rettangoloY + altezza/2)); \n return temp;\n }", "public double getBorderCenterX()\n {\n return borderCenterX;\n }", "public int centerX() {\n return mRect.centerX();\n }", "public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}", "public int getCenter() {\n\t\t\treturn center;\n\t\t}", "public PointF centroid()\n {\n if (cachedCentroid == null)\n {\n PointF centroid = new PointF();\n\n for (int i = 0; i < size(); i++)\n {\n PointF curr = get(i);\n PointF next = get(i + 1);\n\n float mult = curr.x * next.y - next.x * curr.y;\n centroid.x += (curr.x + next.x) * mult;\n centroid.y += (curr.y + next.y) * mult;\n }\n\n centroid.x /= 6 * signedArea();\n centroid.y /= 6 * signedArea();\n\n cachedCentroid = centroid;\n }\n\n return Geometry.clone(cachedCentroid);\n }", "public double[] getCenter() {\n return this.center;\n }", "public Point centroid() {\n\t\t\tdouble xSum = 0.0;\n\t\t\tdouble ySum = 0.0;\n\t\t\tfor(Point point : clusterPointsList){\n\t\t\t\txSum += point.x;\n\t\t\t\tySum += point.y;\n\t\t\t}\n\t\t\tPoint centroid = new Point();\n\t\t\tcentroid.x = xSum / size();\n\t\t\tcentroid.y = ySum / size();\n\t\t\t\n\t\t\treturn centroid;\n\t\t}", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "protected Point getCenter(ArrayList<Unit> units) {\n\t\tint x = 0, y = 0;\n\t\t\n\t\tif(units.size() >= 1) {\n\t\t\tfor(Unit unit: units) {\n\t\t\t\tx += unit.getX();\n\t\t\t\ty += unit.getY();\n\t\t\t}\n\t\t\tx = x / units.size();\n\t\t\ty = y / units.size();\n\t\t}\n\t\treturn new Point(x,y);\n\t}", "public Vector2 getCenter() {\n return center;\n }", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "public Vector2f getCenter(Transform t) {\n\t\treturn new Vector2f(center.x * t.scale.x, center.y * t.scale.y).add(t.position);\n\t}", "public static int getCenter() {\n\t\treturn Center;\n\t}", "public Point middle() {\r\n Point middlePoint = new Point(((this.end.getX() + this.start.getX()) / 2),\r\n ((this.end.getY() + this.start.getY()) / 2));\r\n return middlePoint;\r\n }", "final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}", "double[] circleCentre()\n\t{\n\t\tdouble toOriginLength = Math.sqrt(originX*originX + originY*originY);\n\t\tdouble toCentreLength = toOriginLength + radius;\n\t\t\n\t\tdouble[] centrePoint = new double[2];\n\t\t\n\t\tcentrePoint[0] = (toCentreLength * originX)/toOriginLength;\n\t\tcentrePoint[1] = (toCentreLength * originY)/toOriginLength;\n\t\t\n\t\treturn centrePoint;\n\t}", "public Vec3d getCenter() {\n\t\treturn set;\n\t}", "public Vector2 getCenter() {\n return new Vector2(rectangle.centerX(), rectangle.centerY());\n }", "public float[] getCenterCo(float x, float y)\n\t{\n\t\tfloat[] co = new float[2];\n\t\tint xco = getXVal(x);\n\t\tco[0] = (xco*PIXEL_WIDTH) - (PIXEL_WIDTH/2);\n\t\t\n\t\tint yco = getYVal(y);\n\t\tco[1] = (yco*PIXEL_HEIGHT) - (PIXEL_HEIGHT/2);\n\t\t\n\t\treturn co;\n\t}", "public Vector3f getCenterOfProjection() {\n\t\treturn mCenterOfProjection;\n\t}", "public Vector getCentroid() {\n return centroid;\n }", "private PointF getCenterOfCropRect() {\n return new PointF(\n cropRect.centerX(),\n cropRect.centerY());\n }", "private void calculateCentre() {\n \t\t// The size of the centre is presently one 5th of the maze size\n \t\tcentreSize = size / 5;\n \t\t// System.out.println(\"centreSize is: \" + centreSize);\n \n \t\t// Min and max are the start points of the centre\n \t\tint min = (int) Math.ceil((centreSize * 2.0));\n \t\tint max = min + centreSize;\n \t\tmin++; // this adjusts for the border\n \t\tmax++;\n \t\t// System.out.println(\"min is: \" + min);\n \t\t// System.out.println(\"max is: \" + max);\n \n \t\t// centre is the centre point of the maze\n \t\tdouble centre = (centreSize / 2.0) + min;\n \t\t// System.out.println(\"centre is: \" + centre);\n \t\tcentrePoint = new Point2D.Double(centre, centre);\n \t\t\n \t\t//set the min and max points for the centre\n \t\tcentreMin = min;\n \t\tcentreMax = max;\n \t}", "public Ndimensional getStartPoint();", "public Point2D getTopCenterPoint()\n {\n double x = mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n double y = mainVBox.getTranslateY();\n return new Point2D(x, y);\n }", "public static VertexBuffer createCenteredTriangle() {\n return new VertexBuffer(\"a_Pos\", new VerticesData(BufferTestUtil.createTriangleData(0.5f, 0.5f, 0, 0)), BufferUsage.STATIC);\n }", "private float[] getCentroid (float[][] inArray) {\n\n\t\tfloat ones = inArray.length;\n\t\tfloat xSum = 0;\n\t\tfloat ySum = 0;\n\n\t\tfor (int i = 0; i < inArray.length; i++) {\n\t\t\txSum += inArray[i][0];\n\t\t\tySum += inArray[i][1];\n\t\t}\n\n\t\t// Compute x and y coordinates of centroid\n\n\t\tfloat xCen = (1/ones)*(xSum);\n\t\tfloat yCen = (1/ones)*(ySum);\n\n\t\tfloat[] tempArr = new float[2];\n\t\ttempArr[0] = xCen;\n\t\ttempArr[1] = yCen;\n\n\t\treturn tempArr;\n\t}", "public native vector kbAreaGetCenter(int areaID);", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public LatLng getCenter() {\n return center;\n }", "public int getCenterX(){\r\n return centerX;\r\n }", "private static PointF touchCenter(MotionEvent event) {\n return new PointF((event.getX(0) + event.getX(1)) / 2.0f,\n (event.getY(0) + event.getY(1)) / 2.0f);\n }", "private static Coordinates getCountryCenter(String country) {\n\t\n\t\tCoordinates countryCenter = null;\n\t\tMap<String, Coordinates> countries = CountryUtil.getInstance().getCountries();\n\t\tcountryCenter = countries.get(country);\n\t\treturn countryCenter;\n\t}", "public Vector3d getCurrentCollisionCenter() {\r\n return new Vector3d(collisionCenter.x + currentPosition.x, collisionCenter.y + currentPosition.y, collisionCenter.z + currentPosition.z);\r\n }", "private int get_x() {\n return center_x;\n }", "protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}", "private Vector3D convexCellBarycenter(final Vertex start) {\n\n int n = 0;\n Vector3D sumB = Vector3D.ZERO;\n\n // loop around the cell\n for (Edge e = start.getOutgoing(); n == 0 || e.getStart() != start; e = e.getEnd().getOutgoing()) {\n sumB = new Vector3D(1, sumB, e.getLength(), e.getCircle().getPole());\n n++;\n }\n\n return sumB.normalize();\n\n }", "public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }", "public Coordinate getCenteredCoordinate() {\n return coordinate.add(getHalfSize());\n }", "public Point3d get3DCenter() {\n double xOfCenter = 0;\n double yOfCenter = 0;\n double zOfCenter = 0;\n for (IAtom atom : atoms) {\n xOfCenter += atom.getPoint3d().x;\n yOfCenter += atom.getPoint3d().y;\n zOfCenter += atom.getPoint3d().z;\n }\n\n return new Point3d(xOfCenter / getAtomCount(),\n yOfCenter / getAtomCount(),\n zOfCenter / getAtomCount());\n }", "public static Point2D polyCentroid(Point2D[] vertices) {\r\n Point2D centroid = new Point2D(0, 0);\r\n double signedArea = 0.0;\r\n double x0; // Current vertex X\r\n double y0; // Current vertex Y\r\n double x1; // Next vertex X\r\n double y1; // Next vertex Y\r\n double a; // Partial signed area\r\n int vertexCount = vertices.length;\r\n // For all vertices except last\r\n int i = 0;\r\n for (i = 0; i < vertexCount - 1; ++i) {\r\n x0 = vertices[i].x;\r\n y0 = vertices[i].y;\r\n x1 = vertices[i + 1].x;\r\n y1 = vertices[i + 1].y;\r\n a = x0 * y1 - x1 * y0;\r\n signedArea += a;\r\n centroid.x += (x0 + x1) * a;\r\n centroid.y += (y0 + y1) * a;\r\n }\r\n\r\n // Do last vertex separately to avoid performing an expensive\r\n // modulus operation in each iteration.\r\n x0 = vertices[i].x;\r\n y0 = vertices[i].y;\r\n x1 = vertices[0].x;\r\n y1 = vertices[0].y;\r\n a = x0 * y1 - x1 * y0;\r\n signedArea += a;\r\n centroid.x += (x0 + x1) * a;\r\n centroid.y += (y0 + y1) * a;\r\n\r\n signedArea *= 0.5;\r\n centroid.x /= (6.0 * signedArea);\r\n centroid.y /= (6.0 * signedArea);\r\n\r\n return centroid;\r\n }", "public Coordinates getCentroid() {\r\n return centroid;\r\n }", "public Point2D.Double getImageCenter();", "public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }" ]
[ "0.76129603", "0.68422604", "0.66630304", "0.66276693", "0.65892553", "0.65312505", "0.65312505", "0.64875233", "0.64512396", "0.6441096", "0.64307654", "0.63938624", "0.639218", "0.63891935", "0.6366062", "0.6351849", "0.6341072", "0.6279272", "0.6244281", "0.6209012", "0.61863965", "0.6182558", "0.6174437", "0.6164099", "0.6159691", "0.61595845", "0.6157854", "0.61574465", "0.61428636", "0.6129353", "0.612622", "0.6109372", "0.6099259", "0.6090171", "0.6083864", "0.60834205", "0.6076235", "0.60588944", "0.60511196", "0.60484326", "0.6046157", "0.6043672", "0.60338444", "0.6029794", "0.60283595", "0.6023501", "0.6022834", "0.6013927", "0.60083556", "0.5981941", "0.5970961", "0.5941218", "0.5927392", "0.59174436", "0.58905077", "0.58833355", "0.58801067", "0.5860798", "0.5860592", "0.5844443", "0.584429", "0.58234423", "0.5822196", "0.58102816", "0.58085304", "0.58069855", "0.5792024", "0.5790714", "0.5781815", "0.5778842", "0.57609403", "0.5751786", "0.57352155", "0.56876206", "0.5669996", "0.5652634", "0.56508255", "0.56364757", "0.563102", "0.56301534", "0.562655", "0.56252", "0.5621909", "0.5613316", "0.55840236", "0.55777204", "0.5576765", "0.5566782", "0.556453", "0.5549704", "0.5549069", "0.55466413", "0.5543376", "0.5540888", "0.5540837", "0.55308485", "0.55190104", "0.55093026", "0.54896456" ]
0.80571526
1
Find the center point between the back triangle points.
private Point findBack(Point[] points) { // Find the first point. Point a = this.points[0]; if (a == this.front) { a = this.points[1]; } // Find the second point. Point b = this.points[1]; if (b == this.front || b == a) { b = this.points[2]; } // Create point and set x, and y positions. Point center = new Point(); center.x = (a.x + b.x) / 2; center.y = (a.y + b.y) / 2; // Return the found center point. return center; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(points[0], points[i+1], points[i+2]);\n Vec2 triangleMidpoint = t.getCenter();\n float triangleArea = t.getArea();\n\n averageMidpoint.addX(triangleMidpoint.getX() * triangleArea);\n averageMidpoint.addY(triangleMidpoint.getY() * triangleArea);\n\n area += triangleArea;\n\n// Color color;\n// if (i==0) color = Color.GREEN;\n// else color = Color.ORANGE;\n// SumoGame.ADD_DEBUG_DOT(points[0].getX(), points[0].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+1].getX(), points[i+1].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+2].getX(), points[i+2].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(triangleMidpoint.getX(), triangleMidpoint.getY(), triangleArea/2000, color);\n }\n\n averageMidpoint.div(area);\n\n// SumoGame.ADD_DEBUG_DOT(averageMidpoint.getX(), averageMidpoint.getY(), 20, Color.RED);\n\n return averageMidpoint;\n }", "private Point findCenter(MatOfPoint2f triangle) {\n\t\t// Find moments for the triangle.\n\t\tMoments moments = Imgproc.moments(triangle);\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = moments.get_m10() / moments.get_m00();\n\t\tcenter.y = moments.get_m01() / moments.get_m00();\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}", "private Point findCenter(MatOfPoint2f triangle) {\n\t\t// Find moments for the triangle.\n\t\tMoments moments = Imgproc.moments(triangle);\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = moments.get_m10() / moments.get_m00();\n\t\tcenter.y = moments.get_m01() / moments.get_m00();\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}", "Point3D getLeftUpperBackCorner();", "public Point getPointMiddle()\n {\n Point temp = new Point();\n temp.x = Math.round((float)(rettangoloX + larghezza/2));\n temp.y = Math.round((float)(rettangoloY + altezza/2)); \n return temp;\n }", "private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }", "public final int centerX() {\n return (left + right) >> 1;\n }", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }", "public Point topMiddle() {\n return this.topLeft.add(new Vector2D(getWidth() / 2, 0)).asPoint();\n }", "public Line2D.Double\ncenterAtMidPt()\n{\n\tPoint2D midPt = this.getMidPt();\n\treturn new Line2D.Double(\n\t\tgetX1() - midPt.getX(),\n\t\tgetY1() - midPt.getY(),\n\t\tgetX2() - midPt.getX(),\n\t\tgetY2() - midPt.getY());\n}", "Point getCenter();", "Point getCenter();", "PVector _getCenter() {\n PVector cen = new PVector(_hitboxCenter.x, _hitboxCenter.y);\n cen.rotate(_rotVector.heading() - _front);\n cen.x += _x;\n cen.y += _y;\n return cen;\n }", "public Point middle() {\r\n Point middlePoint = new Point(((this.end.getX() + this.start.getX()) / 2),\r\n ((this.end.getY() + this.start.getY()) / 2));\r\n return middlePoint;\r\n }", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calculate(fptCenter);\n \n rotateRadian = 0.0f;\n \n return fptCenter;\n }", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "private float computeCenter_old() {\n\t\tVector3f PA = A.subtract(P);\n\t\tVector3f PB = B.subtract(P);\n\t\tN = PA.cross(PB);\n\t\tif (N.lengthSquared() <= EPSILON*EPSILON) {\n//\t\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> it is a line\");\n\t\t\treturn 0; //Degenerated to a line\n\t\t}\n\t\t\n\t\t//define orthonormal basis I,J,K\n\t\tN.normalizeLocal();\n\t\tVector3f I = PA.normalize();\n\t\tVector3f J = N.cross(I);\n\t\tVector3f K = N;\n\t\tVector3f IxK = I.cross(K);\n\t\tVector3f JxK = J.cross(K);\n\t\t//project points in the plane PAB\n\t\tVector3f PAxN = PA.cross(N);\n\t\tVector3f PBxN = PB.cross(N);\n\t\tVector2f P2 = new Vector2f(0, 0);\n\t\tVector2f A2 = new Vector2f(PA.dot(JxK)/I.dot(JxK), PA.dot(IxK)/J.dot(IxK));\n\t\tVector2f B2 = new Vector2f(PB.dot(JxK)/I.dot(JxK), PB.dot(IxK)/J.dot(IxK));\n\t\t\n\t\t//compute time t of C=P+tPA°\n\t\tfloat t;\n\t\tif (B2.x == A2.x) {\n\t\t\tt = (B2.y - A2.y) / (A2.x - B2.x);\n\t\t} else {\n\t\t\tt = (B2.x - A2.x) / (A2.y - B2.y);\n\t\t}\n\t\t//compute C\n\t\tVector2f PArot = new Vector2f(A.y-P.y, P.x-A.x);\n\t\tVector2f C2 = P2.addLocal(PArot.multLocal(t));\n\t\t//project back\n\t\tC = new Vector3f(P);\n\t\tC.addScaledLocal(C2.x, I);\n\t\tC.addScaledLocal(C2.y, J);\n\t\t//Debug\n//\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> I=\"+I+\", J=\"+J+\", K=\"+K+\", P'=\"+P2+\", A'=\"+A2+\", B'=\"+B2+\", t=\"+t+\", C'=\"+C2+\", C=\"+C);\n\t\t//set radius\n\t\treturn C.distance(A);\n\t}", "public abstract Vector computeCenter();", "public GPoint midpoint() {\n return(new GPoint((point1.getFirst()+point2.getFirst())/2.0,\n (point1.getSecond()+point2.getSecond())/2.0));\n }", "public PointF getCenter() {\n return center;\n }", "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }", "public final float exactCenterX() {\n return (left + right) * 0.5f;\n }", "public Point2D getTopCenterPoint()\n {\n double x = mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n double y = mainVBox.getTranslateY();\n return new Point2D(x, y);\n }", "public Point2D.Double GetCentrePoint() {\n \t\treturn new Point2D.Double(centrePoint.getX(), centrePoint.getY());\n \t}", "public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }", "private static Point areaCentre() {\r\n\t\tvar centreLon = (lonLB + lonUB)/2;\r\n\t\tvar centreLat = (latLB + latUB)/2;\r\n\t\treturn Point.fromLngLat(centreLon, centreLat);\r\n\t}", "public static double getCenter(int index) {\n\t\tif (index==0) return -1.0;\n\t\telse return DEFAULT_CENTERS[index-1];\n\t}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "public Point getCenter() {\n return center;\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "public GJPoint2D center();", "public double getBorderCenterX()\n {\n return borderCenterX;\n }", "public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}", "public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public Point getCenter() {\r\n return this.center;\r\n }", "private Point findFront(Point[] points) {\n\t\t// Loop through the passed points.\n\t\tdouble[] dists = new double[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Get outer-loop point.\n\t\t\tPoint a = points[i];\n\t\t\t\n\t\t\t// Loop through rest of points.\n\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t// Continue if current outer.\n\t\t\t\tif (i == k) continue;\n\t\t\t\t\n\t\t\t\t// Get inner-loop point.\n\t\t\t\tPoint b = points[k];\n\t\t\t\t\n\t\t\t\t// Add distance between out and inner.\n\t\t\t\tdists[i] += Math.sqrt(\n\t\t\t\t\tMath.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Prepare index and largest holder.\n\t\tint index = 0;\n\t\tdouble largest = 0;\n\t\t\n\t\t// Loop through the found distances.\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Skip if dist is lower than largest.\n\t\t\tif (dists[i] < largest) continue;\n\t\t\t\n\t\t\t// Save the index and largest value.\n\t\t\tindex = i;\n\t\t\tlargest = dists[i];\n\t\t}\n\t\t\n\t\t// Return the largest point index.\n\t\treturn points[index];\n\t}", "public int getMidPos ()\r\n {\r\n if (getLine()\r\n .isVertical()) {\r\n // Fall back value\r\n return (int) Math.rint((getFirstPos() + getLastPos()) / 2.0);\r\n } else {\r\n return (int) Math.rint(\r\n getLine().yAt((getStart() + getStop()) / 2.0));\r\n }\r\n }", "public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}", "public Coordinates midPoint(Coordinates a, Coordinates b);", "public Vertex2d centre_point(Vertex2d a, Vertex2d b){\n\t\tfloat mid_x = Math.min(a.x, b.x) - Math.max(a.x, a.x);\r\n\t\tfloat mid_y = Math.min(a.y, b.y) - Math.max(b.y, b.y);\r\n\t\treturn new Vertex2d(a.x + (mid_x/2),a.y + (mid_y/1));\r\n\t}", "public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }", "public Point getMidPoint(Point first, Point second){\r\n return new Point((first.getFirst() + second.getFirst()) / 2, \r\n (first.getSecond() + second.getSecond()) / 2); \r\n }", "public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}", "public ImageWorkSpacePt findCurrentCenterPoint() {\n WebPlot plot= getPrimaryPlot();\n\n\n int screenW= plot.getScreenWidth();\n int screenH= plot.getScreenHeight();\n int sw= getScrollWidth();\n int sh= getScrollHeight();\n int cX;\n int cY;\n if (screenW<sw) {\n cX= screenW/2;\n }\n else {\n int scrollX = getScrollX();\n cX= scrollX+sw/2- wcsMarginX;\n }\n\n if (screenH<sh) {\n cY= screenH/2;\n }\n else {\n int scrollY = getScrollY();\n cY= scrollY+sh/2- wcsMarginY;\n }\n\n ScreenPt pt= new ScreenPt(cX,cY);\n\n return plot.getImageWorkSpaceCoords(pt);\n }", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "public double getCenterX() { return centerX.get(); \t}", "public Coordinate getCenter() {\n return center;\n }", "public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}", "public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}", "@Override\n protected Double[] getCorners(){\n return new Double[]{\n //leftmost point\n getXPos(), getYPos(),\n //rightmost point\n getXPos() + getWidth(), getYPos(),\n //middle point\n getXPos() + getWidth() / 2, getYPos() + getHeight() * getThirdTriangleYPoint(pointUp)\n };\n }", "public Vector3D getCenter() {\n return center;\n }", "public Vector3f getCenter() {\r\n return center;\r\n }", "protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}", "public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }", "private void calculateCentre() {\n \t\t// The size of the centre is presently one 5th of the maze size\n \t\tcentreSize = size / 5;\n \t\t// System.out.println(\"centreSize is: \" + centreSize);\n \n \t\t// Min and max are the start points of the centre\n \t\tint min = (int) Math.ceil((centreSize * 2.0));\n \t\tint max = min + centreSize;\n \t\tmin++; // this adjusts for the border\n \t\tmax++;\n \t\t// System.out.println(\"min is: \" + min);\n \t\t// System.out.println(\"max is: \" + max);\n \n \t\t// centre is the centre point of the maze\n \t\tdouble centre = (centreSize / 2.0) + min;\n \t\t// System.out.println(\"centre is: \" + centre);\n \t\tcentrePoint = new Point2D.Double(centre, centre);\n \t\t\n \t\t//set the min and max points for the centre\n \t\tcentreMin = min;\n \t\tcentreMax = max;\n \t}", "public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "public final int centerY() {\n return (top + bottom) >> 1;\n }", "final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}", "public Point getCentrePoint()\n\t\t{\n\t\t\tif(shape.equals(\"circle\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn new Point((int)((Ellipse2D)obj).getCenterX(),(int)((Ellipse2D)obj).getCenterY());\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tint xtot = 0;\n\t\t\t\tint ytot = 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\txtot += coords[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tytot += coords[i];\n\t\t\t\t}\n\t\t\t\treturn new Point((xtot*2)/coords.length,(ytot*2)/coords.length);\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn new Point((int)((Rectangle)obj).getCenterX(),(int)((Rectangle)obj).getCenterY());\n\t\t\t}\n\t\t}", "public Vector3D getCentrePosition()\n\t{\n\t\treturn centrePosition;\n\t}", "public Point getCenter() {\n return location.center();\n }", "public Vector2 getCenter() {\n return new Vector2(rectangle.centerX(), rectangle.centerY());\n }", "public Vector2 getCenter() {\n return center;\n }", "public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }", "public static int getCenter() {\n\t\treturn Center;\n\t}", "public float getCentreX() {\n return centreX;\n }", "public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }", "static PointDouble incircleCenter(PointDouble p1, PointDouble p2, PointDouble p3) {\n // if points are collinear, triangle is degenerate => no incircle center\n if (collinear(p1, p2, p3)) return null;\n\n // Compute the angle bisectors in l1, l2\n double ratio = dist(p1, p2) / dist(p1, p3);\n PointDouble p = translate(p2, scale(vector(p2, p3), ratio / (1 + ratio)));\n Line l1 = pointsToLine(p1, p);\n\n ratio = dist(p2, p1) / dist(p2, p3);\n p = translate(p1, scale(vector(p1, p3), ratio / (1 + ratio)));\n Line l2 = pointsToLine(p2, p);\n\n // Return the intersection of the bisectors\n return intersection(l1, l2);\n }", "public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }", "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 }", "public Position getMidPoint() {\n return midPoint;\n }", "public int getCenter() {\n\t\t\treturn center;\n\t\t}", "public Vector2D getArithmeticCenter()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tVector2D center = Vector2D.ZERO;\n\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tcenter = center.add(Vector2DMath.toVector(unit.getPosition()));\n\t\t}\n\t\tcenter = center.scale(1.0f / size());\n\n\t\treturn center;\n\t}", "public Point middle(Point p) {\n\t\treturn new Point(this.getX() - ((this.getX() - p.getX()) / 2), this.getY() - ((this.getY() - p.getY()) / 2));\n\t}", "private int get_x() {\n return center_x;\n }", "protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}", "public Vector2f getCenter(Transform t) {\n\t\treturn new Vector2f(center.x * t.scale.x, center.y * t.scale.y).add(t.position);\n\t}", "protected Point getCenter(ArrayList<Unit> units) {\n\t\tint x = 0, y = 0;\n\t\t\n\t\tif(units.size() >= 1) {\n\t\t\tfor(Unit unit: units) {\n\t\t\t\tx += unit.getX();\n\t\t\t\ty += unit.getY();\n\t\t\t}\n\t\t\tx = x / units.size();\n\t\t\ty = y / units.size();\n\t\t}\n\t\treturn new Point(x,y);\n\t}", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public PointF centroid()\n {\n if (cachedCentroid == null)\n {\n PointF centroid = new PointF();\n\n for (int i = 0; i < size(); i++)\n {\n PointF curr = get(i);\n PointF next = get(i + 1);\n\n float mult = curr.x * next.y - next.x * curr.y;\n centroid.x += (curr.x + next.x) * mult;\n centroid.y += (curr.y + next.y) * mult;\n }\n\n centroid.x /= 6 * signedArea();\n centroid.y /= 6 * signedArea();\n\n cachedCentroid = centroid;\n }\n\n return Geometry.clone(cachedCentroid);\n }", "public double[] getCenter() {\n return this.center;\n }", "private GPoint findCenterCorner(double r, double x, double y) {\n\t\tdouble cornerX = (lastClick.getX() + x)/2.0 - r;\n\t\tdouble cornerY = lastClick.getY() - r;\n\t\tGPoint point = new GPoint(cornerX,cornerY);\n\t\treturn point;\n\t}", "private Point middleRight() {\n return this.topLeft.add(this.width, this.height / 2).asPoint();\n }", "public Point getCenterOfRotation() {\r\n\t\treturn centerOfRotation;\r\n\t}", "public double getCenterX() {\n\t\treturn centerX;\n\t}", "public int returnGraphRoot() {\n\t\tfor(int i = 0; i < sc.getInitPos().size(); i++) {\r\n\t\t\tfor(int j = 0; j < sc.getInitPos().size(); j++) {\r\n\t\t\t\tif(graph[i][j]) {\r\n\t\t\t\t\t//means i -> j\r\n\t\t\t\t\t// therefore we need to see if i has a parent\r\n\t\t\t\t\tboolean hasPred = true;\r\n\t\t\t\t\tint pred = -1;\r\n\t\t\t\t\twhile(hasPred) {\r\n\t\t\t\t\t\tfor(int k = 0; k < sc.getInitPos().size(); k++) {\r\n\t\t\t\t\t\t\tif(graph[k][i]) {\r\n\t\t\t\t\t\t\t\t//k is a parent of i\r\n\t\t\t\t\t\t\t\tpred = k;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(pred == -1) {\r\n\t\t\t\t\t\t\t//i has no predecessor\r\n\t\t\t\t\t\t\thasPred = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\ti = pred;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TODO: remove i from graph\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public double getBorderCenterZ()\n {\n return borderCenterZ;\n }", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public Point2D centerOfMass() \n {\n double cx = 0, cy = 0;\n double area = areaUnsigned();\n double factor = 0;\n for (Line2D line : lines) \n {\n factor = line.getP1().getX() * line.getP2().getY() - line.getP2().getX() * line.getP1().getY();\n cx += (line.getP1().getX() + line.getP2().getX()) * factor;\n cy += (line.getP1().getY() + line.getP2().getY()) * factor;\n }\n area *= 6.0d;\n factor = 1 / area;\n cx *= factor;\n cy *= factor;\n return new Point2D.Double(cx, cy);\n }", "private static Coordinates getCountryCenter(String country) {\n\t\n\t\tCoordinates countryCenter = null;\n\t\tMap<String, Coordinates> countries = CountryUtil.getInstance().getCountries();\n\t\tcountryCenter = countries.get(country);\n\t\treturn countryCenter;\n\t}", "public int centerX() {\n return mRect.centerX();\n }" ]
[ "0.7242904", "0.7173985", "0.7173985", "0.6385168", "0.62672114", "0.62671185", "0.6233953", "0.6168779", "0.61381394", "0.60535455", "0.60467124", "0.60337913", "0.60337913", "0.6028852", "0.60010046", "0.5973043", "0.5948497", "0.5936341", "0.5911986", "0.5900016", "0.5843094", "0.5824413", "0.5812782", "0.5787463", "0.5774149", "0.5772425", "0.5743466", "0.5738631", "0.57289433", "0.57171625", "0.5708167", "0.57056147", "0.569909", "0.5693611", "0.56871176", "0.567273", "0.5672302", "0.5671582", "0.5665212", "0.5647758", "0.56431806", "0.5636043", "0.56314194", "0.562001", "0.5616492", "0.5597702", "0.55739415", "0.55720747", "0.5565388", "0.55483496", "0.55380404", "0.5534907", "0.5534491", "0.5528728", "0.5508604", "0.5504455", "0.5502153", "0.5495861", "0.5485502", "0.5480998", "0.54795444", "0.5467167", "0.5462707", "0.54511046", "0.54465944", "0.5436475", "0.5412578", "0.5401442", "0.53970265", "0.5384395", "0.5380012", "0.53793883", "0.53673816", "0.53599167", "0.5359701", "0.5343679", "0.53362244", "0.53338706", "0.53338134", "0.5332977", "0.5308389", "0.529125", "0.5291135", "0.5286265", "0.5283272", "0.5282068", "0.52807355", "0.5272374", "0.52657837", "0.52463883", "0.5242969", "0.52405864", "0.52370435", "0.52273583", "0.5227063", "0.5220518", "0.5219392", "0.521874", "0.52092993", "0.5208046" ]
0.6975525
3
Find the rotation between the two points.
public double findRotation(Point a, Point b) { // Find rotation in radians using acttan2. double rad = Math.atan2(a.y - b.y, a.x - b.x); // Remove negative rotation. if (rad < 0) { rad += 2 * Math.PI; } // Convert the rotation to degrees. return rad * (180 / Math.PI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point rotate (double angle);", "Point rotate (double angle, Point result);", "public double getRotation();", "public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);", "double getRotation(Point2D target, boolean pursuit);", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "private static double getRotation(Position previous, Position current, Position next) {\n \t\tboolean prevAbove = false;\n \t\tboolean prevUnder = false;\n \t\tboolean prevLeft = false;\n \t\tboolean prevRight = false;\n \t\t\n \t\tboolean nextRight = false;\n \t\tboolean nextUnder = false;\n \t\tboolean nextLeft = false;\n \t\tboolean nextAbove = false;\n \t\t\n \t\t/*\n \t\t * Only calculate values if there is a previous\n \t\t * respective next position in.\n \t\t */\n \t\tif (previous != null) {\n \t\t\tprevAbove = previous.getRow() < current.getRow();\n \t\t\tprevUnder = previous.getRow() > current.getRow();\n \t\t\tprevLeft = previous.getCol() < current.getCol();\n \t\t\tprevRight = previous.getCol() > current.getCol();\n \t\t}\n \t\tif (next != null) {\n \t\t\tnextRight = next.getCol() > current.getCol();\n \t\t\tnextUnder = next.getRow() > current.getRow();\n \t\t\tnextLeft = next.getCol() < current.getCol();\n \t\t\tnextAbove = next.getRow() < current.getRow();\n \t\t}\n \t\t/*\n \t\t * If previous is null then only determine rotation based on \n \t\t * next position.\n \t\t * >> Path is always of length 2 at least, therefore no point can\n \t\t * have neither previous or next location.\n \t\t */\n \t\tif (previous == null) {\n \t\t\tif (nextAbove) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t} else if (nextUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn Math.PI;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * If next is null then only determine rotation based on \n \t\t * previous position.\n \t\t */\n \t\tif (next == null) {\n \t\t\tif (prevAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevUnder) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * Return rotation based on where the previous and next locations are.\n \t\t */\n \t\tif (prevAbove) {\n \t\t\tif (nextUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t} else if (nextAbove) {\n \t\t\tif (prevUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t} else if (prevUnder) {\n \t\t\tif (nextAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t}\n \t\t} else if (nextUnder) {\n \t\t\tif (prevAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * Return 0 to make the compiler happy, will never run\n \t\t * unless previous == current || current == next which\n \t\t * is wrong usage.\n \t\t */\n \t\treturn 0;\n \t}", "public void rotate(Point P, int rotation) {\n\n\n }", "DMatrix3C getRotation();", "public double betweenAngle(Coordinates vectorA, Coordinates vectorB);", "int getStartRotationDegree();", "public double getRotation2() {\n return rotation2;\n }", "private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 - Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 + Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 90 - Math.abs(rotation);\r\n\t\t\trotation = 270 + rotation;\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY == 0)\r\n\t\t\trotation = 0;\r\n\t\telse if(tarX == 0 && tarY > 0)\r\n\t\t\trotation = 90;\r\n\t\telse if(tarX < 0 && tarY == 0)\r\n\t\t\trotation = 180;\r\n\t\telse if(tarX == 0 && tarY < 0)\r\n\t\t\trotation = 270;\r\n\t\t\r\n\t\treturn (rotation - 90);\r\n\t}", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public static double getOrient(Position p1, Position p2){\n\t\tdouble lat1 = p1.getLat();\n\t\tdouble lon1 = p1.getLon();\n\t\tdouble lat2 = p2.getLat();\n\t\tdouble lon2 = p2.getLon();\n\t\t\n\t\tdouble dLat = Math.toRadians(lat2-lat1);\n\t\tdouble dLon = Math.toRadians(lon2-lon1);\n\t\tlat1 = Math.toRadians(lat1);\n\t\tlat2 = Math.toRadians(lat2);\n\n\t\t// following code is from http://www.movable-type.co.uk/scripts/latlong.html\n\t\tdouble y = Math.sin(dLon) * Math.cos(lat2);\n\t\tdouble x = Math.cos(lat1)*Math.sin(lat2) - Math.sin(lat1)*Math.cos(lat2)*Math.cos(dLon);\n\t\tdouble orient = Math.toDegrees(Math.atan2(y, x));\n\t\t//converting orient from a scale of -180 .. + 180 to 0-359 degrees\n\t\tdouble orient360 = (orient + 360) % 360;\n\t\treturn orient360;\n\t}", "public double theta() { return Math.atan2(y, x); }", "int getMinRotation();", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "public static double getAngle( GameObject one, GameObject two )\n {\n return Math.atan2( getDeltaY( one, two ), +getDeltaX( one, two ) );\n }", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "public double getAngle(float x1, float y1, float x2, float y2) {\n\n double rad = Math.atan2(y1-y2,x2-x1) + Math.PI;\n return (rad*180/Math.PI + 180)%360;\n }", "public double getFirstAngle(){\r\n\t\treturn Math.atan( \r\n\t\t\t\t(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t)\r\n\t\t\t\t/ (\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "public static native long GetRotation(long lpjFbxDualQuaternion);", "public final Shape getRotated(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().rotate(fromPoint, toPoint, anchorPoint);\n\t}", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "public double Angle2D(double x1, double y1, double x2, double y2)\n {\n double dtheta,theta1,theta2;\n\n theta1 = Math.atan2(y1,x1);\n theta2 = Math.atan2(y2,x2);\n dtheta = theta2 - theta1;\n while (dtheta > Math.PI)\n dtheta -= 2*Math.PI;\n while (dtheta < -Math.PI)\n dtheta += 2*Math.PI;\n\n return(dtheta);\n}", "private Vector3f rotate2(float angle, float t, Vector3f X, boolean lerpZ) {\n\t\tVector3f W = project(X, N);\n\t\tVector3f U = X.subtract(W);\n\t\tVector3f result = lerp(W, W.negate(), lerpZ ? t : 0);\n\t\tresult.addScaleLocal(U, (float) Math.cos(angle*t));\n\t\tresult.addScaleLocal(N.cross(U), -(float) Math.sin(angle*t));\n\t\treturn result;\n\t}", "public double getRotation1() {\n return rotation1;\n }", "public static float getAngleBetween(PVector p1, PVector p2) {\n // float angle = (float) Math.atan2(p2.y - p1.y, p2.x - p1.x);\n\n // Note: Raw values between point 1 and point 2 not valid, as they are are origin-based.\n PVector sub = PVector.sub(p2, p1);\n PVector xaxis = new PVector(1, 0);\n float angle = PVector.angleBetween(xaxis, sub);\n\n if (p2.y < p1.y) {\n angle = PApplet.TWO_PI - angle;\n }\n return angle;\n }", "public double calculateHeadingRadians(){\r\n if(coordinateHistory.size() > 2){\r\n GPSCoordinate firstPoint = coordinateHistory.get(coordinateHistory.size() - 2);\r\n GPSCoordinate secondPoint = coordinateHistory.get(coordinateHistory.size() - 1);\r\n \r\n if(!firstPoint.compareTo(secondPoint)){\r\n double latA = firstPoint.getLatitude();\r\n double longA = firstPoint.getLongitude();\r\n double latB = secondPoint.getLatitude();\r\n double longB = secondPoint.getLongitude();\r\n\r\n double X = Math.cos(latB) * Math.sin(longB - longA);\r\n double Y = (Math.cos(latA) * Math.sin(latB)) - (Math.sin(latA) * Math.cos(latB) * Math.cos(longB - longA));\r\n\r\n headingRadians = - Math.atan2(X, Y);\r\n return headingRadians;\r\n }else{\r\n return headingRadians;\r\n }\r\n }else{\r\n return headingRadians;\r\n }\r\n }", "@Override\r\n\tpublic void rotateAboutAxis(final double angle, final WB_Point3d p1,\r\n\t\t\tfinal WB_Point3d p2) {\r\n\r\n\t\tfinal WB_Transform raa = new WB_Transform();\r\n\t\traa.addRotateAboutAxis(angle, p1, p2.subToVector(p1));\r\n\r\n\t\traa.applySelf(this);\r\n\r\n\t}", "double getAngle();", "double getAngle();", "public double getStartAngle();", "public int getRotationIndex() {\n int start = 0;\n int end = this.words.length - 1;\n\n // 2 or less items in this array\n if (words.length == 0) { return -1; }\n else if (words.length == 1) { return 0; }\n else if (words.length == 2) { return pick2(); }\n\n // Left side\n while(start <= end) {\n int mid = (start + end) / 2;\n\n // Get the word to the left\n String left;\n if (mid - 1 >= 0) {\n left = this.words[mid - 1];\n } else {\n // Not on this side\n break;\n }\n\n // If the word to the left is alphabetically later, this is the rotation point\n if (left.compareTo(this.words[mid]) > 0) {\n return mid;\n }\n\n // Go left\n end = mid - 1;\n }\n\n // Right side\n start = 0;\n end = this.words.length - 1;\n\n while(start <= end) {\n int mid = (start + end) / 2;\n\n // Get the word to the right\n String right;\n if (mid - 1 >= 0) {\n right = this.words[mid - 1];\n } else {\n return -1;\n }\n\n // If the word to the left is alphabetically later, this is the rotation point\n if (right.compareTo(this.words[mid]) > 0) {\n return mid;\n }\n\n // Go right\n start = mid + 1;\n }\n\n return -1;\n }", "public static Double azimuth(Geometry pointA, Geometry pointB) {\n if (pointA == null || pointB == null) {\n return null;\n }\n if ((pointA instanceof Point) && (pointB instanceof Point)) {\n Double angle;\n double x0 = ((Point) pointA).getX();\n double y0 = ((Point) pointA).getY();\n double x1 = ((Point) pointB).getX();\n double y1 = ((Point) pointB).getY();\n\n if (x0 == x1) {\n if (y0 < y1) {\n angle = 0.0;\n } else if (y0 > y1) {\n angle = Math.PI;\n } else {\n angle = null;\n }\n } else if (y0 == y1) {\n if (x0 < x1) {\n angle = Math.PI / 2;\n } else if (x0 > x1) {\n angle = Math.PI + (Math.PI / 2);\n } else {\n angle = null;\n }\n } else if (x0 < x1) {\n if (y0 < y1) {\n angle = Math.atan(Math.abs(x0 - x1) / Math.abs(y0 - y1));\n } else { /* ( y0 > y1 ) - equality case handled above */\n angle = Math.atan(Math.abs(y0 - y1) / Math.abs(x0 - x1)) + (Math.PI / 2);\n }\n } else { /* ( x0 > x1 ) - equality case handled above */\n if (y0 > y1) {\n angle = Math.atan(Math.abs(x0 - x1) / Math.abs(y0 - y1)) + Math.PI;\n } else { /* ( y0 < y1 ) - equality case handled above */\n angle = Math.atan(Math.abs(y0 - y1) / Math.abs(x0 - x1)) + (Math.PI + (Math.PI / 2));\n }\n }\n return angle;\n }\n return null;\n }", "@Override\r\n public double getRotation(double x, double y) {\n if (alignment == Alignment.horizontal || alignment == Alignment.vertical) {\r\n return 0;\r\n }\r\n\r\n // Map to circular alignment\r\n else {\r\n // Bottom line segment\r\n if (x < spaceLength) {\r\n return 0;\r\n }\r\n\r\n // Right half circle\r\n else if (x < spaceLength + spaceCircumference) {\r\n // Length of the arc (from the beginning of the half circle too x)\r\n double arcLength = x - spaceLength;\r\n\r\n // Ratio of the arc length compared to the circumference\r\n double ratio = arcLength / spaceCircumference;\r\n\r\n // Length of the arc in world coordinates\r\n double arcWorldLength = ratio * worldCircumference;\r\n\r\n // Angle of the arc in degrees\r\n return (arcWorldLength * 360) / (2 * Math.PI * radius);\r\n }\r\n\r\n // Top line segment\r\n else if (x < 2 * spaceLength + spaceCircumference) {\r\n return 180;\r\n }\r\n\r\n // Left half circle\r\n else {\r\n // Length of the arc (from the beginning of the half circle too x)\r\n double arcLength = x - (2 * spaceLength - spaceCircumference);\r\n\r\n // Ratio of the arc length compared to the circumference\r\n double ratio = arcLength / spaceCircumference;\r\n\r\n // Length of the arc in world coordinates\r\n double arcWorldLength = ratio * worldCircumference;\r\n\r\n // Angle of the arc in degrees\r\n return (arcWorldLength * 360) / (2 * Math.PI * radius) + 180;\r\n }\r\n }\r\n }", "private float interpolateRotation(float par1, float par2, float par3)\n {\n float f3;\n\n for (f3 = par2 - par1; f3 < -180.0F; f3 += 360.0F)\n {\n ;\n }\n\n while (f3 >= 180.0F)\n {\n f3 -= 360.0F;\n }\n\n return par1 + par3 * f3;\n }", "public void rotate(float angle);", "int getSensorRotationDegrees();", "public double getAngle();", "public double getSecondAngle(){\r\n\t\treturn Math.atan( \r\n\t\t\t\t(\r\n\t\t\t\t\t\tthis.getSecondObject().getCenterY()\r\n\t\t\t\t\t\t- this.getFirstObject().getCenterY()\r\n\t\t\t\t)\r\n\t\t\t\t/ (\r\n\t\t\t\t\t\tthis.getSecondObject().getCenterX()\r\n\t\t\t\t\t\t- this.getFirstObject().getCenterX()\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "public int getDeviceRotation();", "public Point rotate(Point origin,double angle) {\n\t\t\n\t\t// Optimisations\n\t\tif (origin==null) return(this);\t\t// origin not set so don't rotate\n\t\t\n\t\tif (angle==0) return(this);\t\t\t// don't bother to rotate if angle = 0\n\t\t\n\t\t// else, get the new point after rotation using rotation matrix\n\t\tfloat newX = (float) (origin.getX() + (this.x-origin.getX())*Math.cos(angle) - (this.y-origin.getY())*Math.sin(angle));\n\t\tfloat newY = (float) (origin.getY() + (this.x-origin.getX())*Math.sin(angle) + (this.y-origin.getY())*Math.cos(angle));\n\t\t\n\t\t// return the new point after rotation\n\t\treturn new Point(newX,newY);\n\t}", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "DMatrix3C getOffsetRotation();", "void rotate();", "public int getCameraSensorRotation();", "public double getRotation() {\n return getDouble(\"ts\");\n }", "public double getRelativeRotation(Vector2 referenceVector) {\n return Degrees.normalize(getRotation() - referenceVector.getRotation());\n }", "private static double orientation(Point2d p, Point2d q, Point2d r) {\n return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);\n }", "public int getRotations();", "public static double getAngle(float x1, float y1, float x2, float y2) {\n\n double rad = Math.atan2(y1 - y2, x2 - x1) + Math.PI;\n return (rad * 180 / Math.PI + 180) % 360;\n }", "public String cartesianRotation(double x, double y, double angle)\n {\n angle = Math.toRadians(angle);\n \n double newX = (x*Math.cos(angle)) - (y*Math.sin(angle));\n y = (x*Math.sin(angle)) + (y*Math.cos(angle));\n \n String str = \"Rotated cartesian point:\" + newX + \",\" + y;\n return str;\n\n }", "public float getRotation()\n {\n return rotation;\n }", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "public float calculateAngle(float x1, float y1, float x2, float y2) {\n float difX = x1 - x2;\n float difY = y1 - y2;\n float angle = (float)(180.0 / Math.PI * Math.atan2(difY, difX));\n if(angle < 0) {\n return 360 + angle;\n }\n return angle;\n }", "public static double orientation(Line2D line,Point2D point) {\n return AlgoPoint2D.cross((AlgoPoint2D.subtract(point,line.getP1())),\r\n AlgoPoint2D.subtract((line.getP2()),line.getP1()));\r\n \r\n }", "private static double angulo(Point2D.Double p2,Point2D.Double p1){\n \t\n return Math.atan2(p2.x - p1.x, p2.y - p1.y);\n }", "public void rotateStep(GearedObject other){}", "private double angleTo(Point2D that) {\r\n double dx = that.x - this.x;\r\n double dy = that.y - this.y;\r\n return Math.atan2(dy, dx);\r\n }", "public void testXAxisRotation() {\n u = 1;\n theta = pi;\n double[] point = new double[] {1, 1, 0};\n RotationMatrix rM = new RotationMatrix(a, b, c, u, v, w, theta);\n double[] result = rM.timesXYZ(point);\n double[] expect = new double[] {1, -1, 0, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(expect[i], result[i], TOLERANCE);\n }\n\n theta = -pi;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, -1, 0, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n\n theta = pi/2;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, 0, 1, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n\n theta = -pi/2;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, 0, -1, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n\n theta = pi/4;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, Math.sqrt(2)/2, Math.sqrt(2)/2, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n\n theta = -3*pi/4;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, -Math.sqrt(2)/2, -Math.sqrt(2)/2, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n\n u = -1;\n theta = 3*pi/4;\n rM = new RotationMatrix(a, b, c, u, v, w, theta);\n result = rM.timesXYZ(point);\n expect = new double[] {1, -Math.sqrt(2)/2, -Math.sqrt(2)/2, 1};\n for(int i=0; i<result.length; i++) {\n assertEquals(\"coord: \"+i, expect[i], result[i], TOLERANCE);\n }\n }", "protected static double[] rotateVector(double x, double y, double angle) {\r\n\t\tdouble cosA = Math.cos(angle * (3.14159 / 180.0));\r\n\t\tdouble sinA = Math.sin(angle * (3.14159 / 180.0));\r\n\t\tdouble[] out = new double[2];\r\n\t\tout[0] = x * cosA - y * sinA;\r\n\t\tout[1] = x * sinA + y * cosA;\r\n\t\treturn out;\r\n\t}", "public String polarRotation(double angle, double newAngle)\n {\n angle = angle + newAngle;\n \n String str = \"Rotated polar point:\" + angle;\n return str;\n }", "public final Shape rotate(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Rotation(fromPoint, toPoint, anchorPoint));\n\t}", "public void rotate(int xp, int yp) {\r\n double angle = Math.toRadians(-90);\r\n\r\n this.x = (int) (this.x + (xp-this.x)*Math.cos(angle) - (yp-this.y)*Math.sin(angle));\r\n this.y = (int) (this.y + (xp-this.x)*Math.sin(angle) + (yp-this.y)*Math.cos(angle));\r\n }", "public Quaternion getCurrentRotation() {\n long currentTimeMillis = System.currentTimeMillis();\n\n if (currentTimeMillis > finishTimeMillis) {\n return finishRotation;\n } else {\n float percent = ((float)(currentTimeMillis-startTimeMillis)) / ((float)(finishTimeMillis-startTimeMillis));\n Quaternion interpolatedRotation = new Quaternion();\n \n // Not sure if slerp is right, but you never know !\n interpolatedRotation.slerp(startRotation, finishRotation, percent);\n return interpolatedRotation;\n }\n }", "public static double getDiffAngle(double angle1, double angle2) {\r\n\t\t//acos(cos(a1-a2))=acos(cos(a1)*cos(a2)+sin(a1)*sin(a2))--trig identity\r\n\t\treturn Math.abs(Math.acos(Math.cos(angle1) * Math.cos(angle2) + Math.sin(angle1) * Math.sin(angle2)));\r\n\t}", "public Quaternion orientationAlongSegment(Point beg, Point end) {\n\n // Use Apache vectors and matrices to do the math.\n\n Vector3D b = new Vector3D(beg.getX(), beg.getY(), beg.getZ());\n Vector3D e = new Vector3D(end.getX(), end.getY(), end.getZ());\n\n Vector3D vfwd = e.subtract(b);\n\n double len = vfwd.getNorm();\n if (len > 0)\n vfwd = vfwd.normalize();\n else\n vfwd = new Vector3D(1.0, 0.0, 0.0);\n\n Vector3D vdown = new Vector3D(0.0, 0.0, 1.0);\n Vector3D vright = new Vector3D(0.0, 1.0, 0.0);\n\n // Check that the direction of motion is not along the Z axis. In this\n // case the approach of taking the cross product with the world Z will\n // fail and we need to choose a different axis.\n double epsilon = 1.0e-3;\n if (Math.abs(vdown.dotProduct(vfwd)) < 1.0 - epsilon) {\n vright = vdown.crossProduct(vfwd);\n vdown = vfwd.crossProduct(vright);\n if (vdown.getZ() < 0) {\n vright = vright.negate();\n vdown = vfwd.crossProduct(vright);\n }\n }\n else {\n vdown = vfwd.crossProduct(vright);\n vright = vdown.crossProduct(vfwd);\n if (vright.getY() < 0) {\n vdown = vdown.negate();\n vright = vdown.crossProduct(vfwd);\n }\n }\n\n // Make sure all vectors are normalized\n vfwd = vfwd.normalize();\n vright = vright.normalize();\n vdown = vdown.normalize();\n\n // Construct a rotation matrix\n double dcm[][] = new double[3][3];\n dcm[0][0] = vfwd.getX(); dcm[0][1] = vright.getX(); dcm[0][2] = vdown.getX();\n dcm[1][0] = vfwd.getY(); dcm[1][1] = vright.getY(); dcm[1][2] = vdown.getY();\n dcm[2][0] = vfwd.getZ(); dcm[2][1] = vright.getZ(); dcm[2][2] = vdown.getZ();\n Rotation R = new Rotation(dcm, 1e-8);\n\n //Print the rotation matrix\n //double d[][] = R.getMatrix();\n //for (int row = 0; row < 3; row++) {\n // logger.info(\"\\nMatrix is \" +\n //\t\tFloat.toString((float)d[row][0]) + \" \" +\n //\t\tFloat.toString((float)d[row][1]) + \" \" +\n //\t\tFloat.toString((float)d[row][2]));\n //}\n\n return new Quaternion(-(float)R.getQ1(), -(float)R.getQ2(),\n -(float)R.getQ3(), (float)R.getQ0());\n }", "void calculateRotationMatrix() {\n R[0][0] = (float) (Math.cos(angle[0]) * Math.cos(angle[1]));\n R[1][0] = (float) (Math.sin(angle[0]) * Math.cos(angle[1]));\n R[0][1] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) - Math.sin(angle[0]) * Math.cos(angle[2]));\n R[1][1] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.sin(angle[2]) + Math.cos(angle[0]) * Math.cos(angle[2]));\n R[0][2] = (float) (Math.cos(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) + Math.sin(angle[0]) * Math.sin(angle[2]));\n R[1][2] = (float) (Math.sin(angle[0]) * Math.sin(angle[1]) * Math.cos(angle[2]) - Math.cos(angle[0]) * Math.sin(angle[2]));\n R[2][0] = (float) - Math.sin(angle[1]);\n R[2][1] = (float) (Math.cos(angle[1]) * Math.sin(angle[2]));\n R[2][2] = (float) (Math.cos(angle[1]) * Math.cos(angle[2]));\n }", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public Point rotationPoint(double x, double y, double theta){\n double thetaRad = theta * Math.PI/180;\n double rx = x*Math.cos(thetaRad) - y * Math.sin(thetaRad);\n double ry = x * Math.sin(thetaRad) + y * Math.cos(thetaRad);\n return new Point(rx, ry);\n }", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "private static int orientation(Coord p, Coord r, Coord q) \n { \n // See https://www.geeksforgeeks.org/orientation-3-ordered-points/ \n // for details of below formula. \n int val = (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); \n \n if (val == 0) return 0; // colinear \n \n return (val > 0)? 1: 2; // clock or counterclock wise \n }", "public static Point PointRotate3D(final Point origin, final Point toRotate, final Vector rotationAxis, final float angle) { \n Vector axis = (rotationAxis.magnitude() == 1) ? rotationAxis : rotationAxis.normal();\n float dist = sqrt(sq(axis.y) + sq(axis.z)); \n Matrix T = new Matrix(new double[][]{\n new double[] {1, 0, 0, -origin.x},\n new double[] {0, 1, 0, -origin.y},\n new double[] {0, 0, 1, -origin.z},\n new double[] {0, 0, 0, 1},\n });\n Matrix TInv = T.inverse();\n\n float aZ = (axis.z == 0 && dist == 0) ? 0 : (axis.z / dist);\n float aY = (axis.y == 0 && dist == 0) ? 0 : (axis.y / dist);\n Matrix Rx = new Matrix(new double[][]{\n new double[] {1, 0, 0, 0},\n new double[] {0, aZ, -aY, 0},\n new double[] {0, aY, aZ, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix RxInv = new Matrix(new double[][]{\n new double[] {1, 0, 0, 0},\n new double[] {0, aZ, aY, 0},\n new double[] {0, -aY, aZ, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix Ry = new Matrix(new double[][]{\n new double[] {dist, 0, -axis.x, 0},\n new double[] {0, 1, 0, 0},\n new double[] {axis.x, 0, dist, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix RyInv = Ry.inverse();\n\n Matrix Rz = new Matrix(new double[][]{\n new double[] {cos(angle), -sin(angle), 0, 0},\n new double[] {sin(angle), cos(angle), 0, 0},\n new double[] {0, 0, 1, 0},\n new double[] {0, 0, 0, 1},\n });\n\n Matrix origSpace = new Matrix(new double[][] {\n new double[]{toRotate.x},\n new double[]{toRotate.y},\n new double[]{toRotate.z},\n new double[]{1}\n });\n Matrix rotated = TInv.times(RxInv).times(RyInv).times(Rz).times(Ry).times(Rx).times(T).times(origSpace);\n\n return new Point((float) rotated.get(0, 0), (float) rotated.get(1, 0), (float) rotated.get(2, 0));\n }", "private Node rotateright(Node y) {\n Node x = y.left;\n Node z = x.right;\n\n // Perform rotation\n x.right = y;\n y.left = z;\n\n // updating the heights for y and x\n y.height = max(height(y.left), height(y.right)) + 1;\n x.height = max(height(x.left), height(x.right)) + 1;\n\n return x;\n }", "int getRotationDegrees() {\n return rotationDegrees;\n }", "public double getRot() {\n return this.rot;\n }", "static int orientation(Point p, Point q, Point r)\n {\n int val = (q.getY() - p.getY()) * (r.getX() - q.getX())\n - (q.getX() - p.getX()) * (r.getY() - q.getY());\n\n if (val == 0)\n {\n return 0; // colinear\n }\n return (val > 0) ? 1 : 2; // clock or counterclock wise\n }", "int getEndRotationDegree();", "public float getAngleForPoint(float x, float y) {\n /* 262 */\n MPPointF c = getCenterOffsets();\n /* */\n /* 264 */\n double tx = (x - c.x), ty = (y - c.y);\n /* 265 */\n double length = Math.sqrt(tx * tx + ty * ty);\n /* 266 */\n double r = Math.acos(ty / length);\n /* */\n /* 268 */\n float angle = (float) Math.toDegrees(r);\n /* */\n /* 270 */\n if (x > c.x) {\n /* 271 */\n angle = 360.0F - angle;\n /* */\n }\n /* */\n /* 274 */\n angle += 90.0F;\n /* */\n /* */\n /* 277 */\n if (angle > 360.0F) {\n /* 278 */\n angle -= 360.0F;\n /* */\n }\n /* 280 */\n MPPointF.recycleInstance(c);\n /* */\n /* 282 */\n return angle;\n /* */\n }", "private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }", "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "public static int getRotationsCount(int d1, int d2) {\n return Math.min(Math.abs(d1 - d2), 2);\n }", "public Vec2double rotate(Vec2double point, double angle) {\n\t\tdouble xx = ((x - point.x) * Math.cos(angle)) - ((point.y - y) * Math.sin(angle));\n\t\tdouble yy = ((point.y - y) * Math.cos(angle)) - ((x - point.x) * Math.sin(angle));\n\t\tVec2double v = new Vec2double(xx, yy);\n\t\treturn v;\n\t}", "public static Point getnewRotatedPoint(Point point, Point center, float rotation)\n\t{\n double rot = Math.toRadians(rotation);\n \n double newX = center.x + (point.x-center.x)*Math.cos(rot) - (point.y-center.y)*Math.sin(rot);\n\n double newY = center.y + (point.x-center.x)*Math.sin(rot) + (point.y-center.y)*Math.cos(rot);\n\n return new Point((int)newX,(int) newY);\n\t}", "void copyRotation(DMatrix3 R);", "public static int findAngle(float x0, float y0, float x1, float y1){\n\t\t\n\t\treturn (int)(Math.atan2(-(x1 - x0), -(y1 - y0))/Math.PI * 180) + 180;\n\t}", "public PointF getRotationPivot()\n {\n return rotationPivot;\n }", "public double getAcuteAngle( final LineXY line ) {\n\t\t// get the intersection point\n\t\tfinal PointXY p1 = PointXY.getIntersectionPoint( this, line );\n\t\tif( p1 == null ) {\n\t\t\tthrow new IllegalArgumentException( format( \"No intersection found\" ) );\n\t\t}\n\t\t\n\t\t// get the points of both lines\n\t\tfinal PointXY pa1 = this.getBeginPoint();\n\t\tfinal PointXY pa2 = this.getEndPoint();\n\t\tfinal PointXY pb1 = line.getBeginPoint();\n\t\tfinal PointXY pb2 = line.getEndPoint();\n\t\t\n\t\tfinal PointXY p2 = PointXY.getFarthestPoint( p1, pa1, pa2 );\n\t\tfinal PointXY p3 = PointXY.getFarthestPoint( p1, pb1, pb2 );\n\t\t\n\t\t// are both lines orthogonal?\n\t\tif( this.isOrthogonal() && line.isOrthogonal() ) {\n\t\t\treturn this.isParallelTo( line ) ? 0 : Math.PI;\n\t\t}\n\t\t\n\t\t// is the either line orthogonal?\n\t\telse if( this.isOrthogonal() || line.isOrthogonal() ) {\n\t\t\t// cos t = ( -a^2 + b^2 - c^2 ) / 2cb \n\t\t\tfinal double a = getDistance( p1, p2 );\n\t\t\tfinal double b = getDistance( p1, p3 );\n\t\t\tfinal double c = getDistance( p2, p3 );;\n\t\t\treturn acos( ( -pow(a, 2d) + pow(b, 2d) - pow(c, 2d) ) / ( 2d * c * b ) );\n\t\t}\n\t\t\n\t\t// both must be angular\n\t\telse {\n\t\t\t// tan t = ( m1 - m2 ) / ( 1 + m1 * m2 ); where m2 > m1\n\t\t\tdouble m1 = this.getSlope();\n\t\t\tdouble m2 = line.getSlope();\n\t\t\tif( m1 > m2 ) {\n\t\t\t\tfinal double mt = m1;\n\t\t\t\tm1 = m2;\n\t\t\t\tm2 = mt;\n\t\t\t}\n\t\t\t\n\t\t\t// compute the angle\n\t\t\treturn atan( ( m1 - m2 ) / ( 1 + m1 * m2 ) );\n\t\t}\n\t}", "public int angleOX() {\n if (B.getY() == A.getY()) {\r\n return 0;\r\n } else if (A.getX() == B.getX()) {\r\n return 90;\r\n }\r\n else {\r\n float fi = ((float) (B.getY() - A.getY()) / (B.getX() - A.getX()));\r\n if (fi<0){\r\n return (int)(fi*(-1));\r\n }\r\n else return (int)(fi);\r\n }\r\n }", "void copyOffsetRotation (DMatrix3 R);", "static PointDouble rotate(PointDouble p, double theta) {\n double rad = DEG_to_RAD(theta); // get angle in radians\n return new PointDouble(\n p.x * Math.cos(rad) - p.y * Math.sin(rad),\n p.x * Math.sin(rad) + p.y * Math.cos(rad)\n );\n }", "Angle createAngle();", "@Override\n public double getPitch()\n {\n Vector3d modelIntersect = getModelIntersection();\n if (modelIntersect == null)\n {\n return 0;\n }\n modelIntersect = modelIntersect.getNormalized();\n Vector3d projectedIntersect = Plane.unitProjection(myPosition.getDir().multiply(-1), modelIntersect).getNormalized();\n // Now calculate angle between vectors (and keep sign)\n Vector3d orthogonal = myPosition.getRight().multiply(-1);\n Vector3d cross = modelIntersect.cross(projectedIntersect);\n double dot = modelIntersect.dot(projectedIntersect);\n double resultAngle = Math.atan2(orthogonal.dot(cross), dot);\n double ninetyDegrees = Math.toRadians(90);\n return Math.signum(resultAngle) < 0 ? -1 * (ninetyDegrees - Math.abs(resultAngle)) : ninetyDegrees - resultAngle;\n }", "public float getTargetRotation ()\n {\n return _targetRotation;\n }", "double getAngle(int id);", "double direction (IPoint other);" ]
[ "0.68636817", "0.67683756", "0.66596025", "0.64424986", "0.63720775", "0.6370476", "0.633764", "0.62592846", "0.624399", "0.61446744", "0.61326396", "0.5980201", "0.595834", "0.5946436", "0.5924462", "0.5897249", "0.5875412", "0.586542", "0.5840867", "0.58191425", "0.5813889", "0.5799826", "0.5751092", "0.57198125", "0.571188", "0.571151", "0.5685473", "0.5667196", "0.5654509", "0.5643197", "0.5628478", "0.5620713", "0.56137115", "0.5602471", "0.5602471", "0.55965143", "0.559", "0.5584294", "0.55521595", "0.5533452", "0.5530141", "0.552219", "0.5501877", "0.54968816", "0.5496436", "0.5493924", "0.54927963", "0.5488726", "0.54851454", "0.54640734", "0.5455853", "0.5450568", "0.5447971", "0.5445484", "0.5436146", "0.54347026", "0.5413177", "0.5412578", "0.5376161", "0.5335251", "0.53324854", "0.5329202", "0.53284043", "0.5326314", "0.5323182", "0.5320633", "0.5315562", "0.53029996", "0.5300583", "0.52990186", "0.5297572", "0.529705", "0.5295557", "0.5293598", "0.5287024", "0.52862114", "0.527643", "0.5265897", "0.52552295", "0.5230336", "0.52277404", "0.5217291", "0.5206457", "0.5205693", "0.51940715", "0.51929325", "0.51893014", "0.51840514", "0.5176013", "0.5166208", "0.5164491", "0.5153832", "0.515382", "0.51510096", "0.514698", "0.5139509", "0.5134195", "0.51314807", "0.5125808", "0.51222706" ]
0.7466077
0
Test that consistency checker should be disabled in some scenarios.
@Test public void consistencyCheckerDisabledTest() throws Exception { // 1. only one participant, consistency checker should be disabled AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertNull("The mismatch metric should not be created", server.getServerMetrics().stoppedReplicasMismatchCount); server.shutdown(); // 2. there are two participants but period of checker is zero, consistency checker should be disabled. props.setProperty("server.participants.consistency.checker.period.sec", Long.toString(0L)); List<ClusterParticipant> participants = new ArrayList<>(); for (int i = 0; i < 2; ++i) { participants.add( new MockClusterParticipant(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), null, null, null)); } clusterAgentsFactory.setClusterParticipants(participants); server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertNull("The mismatch metric should not be created", server.getServerMetrics().stoppedReplicasMismatchCount); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "@Disabled\n @Test\n void processDepositValidatorPubkeysDoesNotContainPubkeyAndMinEmptyValidatorIndexIsNegative() {\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.checkReadOnly(\"derby.version.beta\", true);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // Tried to mutate a database with read-only settings: derby.version.beta\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public void testSoThatTestsDoNotFail() {\n\n }", "public AlwaysFailsCheck() {\n this(\"Compulsory integrity failure\");\n }", "@Test(expected = TimeoutException.class)\n public void testConsistencyTimeOut() throws Exception {\n service.setCallsToConsistency(10);\n backoff.setMaxTries(8);\n tableAdminClient.waitForReplication(TABLE_NAME, backoff);\n }", "ConsistencyLevel consistency();", "@Test\n public void testWriteConsistencyLevel() {\n int levelsChecked = 0;\n // Test whether CassandraTransaction honors the write consistency level option\n for (CLevel writeLevel : CLevel.values()) {\n StandardBaseTransactionConfig.Builder b = new StandardBaseTransactionConfig.Builder();\n ModifiableConfiguration mc = GraphDatabaseConfiguration.buildGraphConfiguration();\n mc.set(AbstractCassandraStoreManager.CASSANDRA_WRITE_CONSISTENCY, writeLevel.name());\n b.customOptions(mc);\n b.timestampProvider(MICRO);\n CassandraTransaction ct = new CassandraTransaction(b.build());\n Assert.assertEquals(writeLevel, ct.getWriteConsistencyLevel());\n levelsChecked++;\n }\n // Sanity check: if CLevel.values was empty, something is wrong with the test\n Preconditions.checkState((0 < levelsChecked));\n }", "void unsetComplianceCheckResult();", "public void checkConsistency(List inconsistencies);", "@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }", "@Test (timeout=180000)\n public void testFixAssignmentsAndNoHdfsChecking() throws Exception {\n TableName table =\n TableName.valueOf(\"testFixAssignmentsAndNoHdfsChecking\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by closing a region\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"A\"),\n Bytes.toBytes(\"B\"), true, false, false, false, HRegionInfo.DEFAULT_REPLICA_ID);\n\n // verify there is no other errors\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.NOT_DEPLOYED, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // verify that noHdfsChecking report the same errors\n HBaseFsck fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setCheckHdfs(false);\n fsck.onlineHbck();\n assertErrors(fsck, new ERROR_CODE[] {\n ERROR_CODE.NOT_DEPLOYED, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n fsck.close();\n\n // verify that fixAssignments works fine with noHdfsChecking\n fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setCheckHdfs(false);\n fsck.setFixAssignments(true);\n fsck.onlineHbck();\n assertTrue(fsck.shouldRerun());\n fsck.onlineHbck();\n assertNoErrors(fsck);\n\n assertEquals(ROWKEYS.length, countRows());\n\n fsck.close();\n } finally {\n cleanupTable(table);\n }\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n boolean boolean0 = DBUtil.available(\"Y'\", \"org.databene.commons.condition.CompositeCondition\", \"relative\", \" connection(s)\");\n assertFalse(boolean0);\n }", "@Test\n public void noFrozenBalance() {\n UnfreezeBalanceActuator actuator = new UnfreezeBalanceActuator(getContractForBandwidth(UnfreezeBalanceActuatorTest.OWNER_ADDRESS), UnfreezeBalanceActuatorTest.dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n try {\n actuator.validate();\n actuator.execute(ret);\n TestCase.fail(\"cannot run here.\");\n } catch (ContractValidateException e) {\n Assert.assertTrue((e instanceof ContractValidateException));\n Assert.assertEquals(\"no frozenBalance(BANDWIDTH)\", e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse((e instanceof ContractExeException));\n }\n }", "@Test\n public void testConsistencySlow() throws Exception {\n service.setCallsToConsistency(10);\n backoff.setMaxTries(9);\n tableAdminClient.waitForReplication(TABLE_NAME, backoff);\n Assert.assertEquals(9, backoff.getNumberOfTries());\n }", "@Disabled\n @Test\n void processDepositValidatorPubkeysDoesNotContainPubkey() {\n }", "@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void enableDisable() {\n\t\ttry {\n\t\t\t// mac.AcceptedBanknoteStorage.disable();\n\t\t\t// mac.AcceptedBanknoteStorage.enable();\n\t\t\tmac.checkoutStation.banknoteStorage.enable();\n\t\t\tmac.checkoutStation.banknoteStorage.disable();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tfail(\"disabling and enabling throws an error\");\n\t\t}\n\t}", "public IllegalConnectionCheck() {\n listener = new LinkedHashSet<CheckListener>();\n active = true;\n }", "public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }", "@Test\n public void testSetUpdateState_ChangeFromDoNotSubscribe() {\n indexDefinition.setUpdateState(IndexUpdateState.DO_NOT_SUBSCRIBE);\n\n // Sanity check\n assertEquals(0, indexDefinition.getSubscriptionTimestamp());\n\n long now = System.currentTimeMillis();\n indexDefinition.setUpdateState(IndexUpdateState.SUBSCRIBE_AND_LISTEN);\n\n assertTrue(Math.abs(indexDefinition.getSubscriptionTimestamp() - now) < 10);\n }", "@Test\n public void testHealthy() {\n checker.checkHealth();\n\n assertThat(checker.isHealthy(), is(true));\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void check() throws Exception {\n\t}", "@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }", "@Override\n public TransactionIncompatibilityChecker incompatibilityChecker() {\n return null;\n }", "@Test\n public void testHardClustersWithOverlappingPartitions()\n {\n check(hardClustersWithOverlappingPartitions(), 0.0, 1.0);\n }", "@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }", "@Test\n public void readOnlyUnrepairedTest() throws Throwable\n {\n createTable(\"create table %s (id int, id2 int, t text, t2 text, primary key (id, id2)) with gc_grace_seconds=0 and compaction = {'class':'SizeTieredCompactionStrategy', 'only_purge_repaired_tombstones':true}\");\n for (int i = 10; i < 20; i++)\n {\n execute(\"update %s set t2=null where id=? and id2=?\", 123, i);\n }\n flush();\n\n // allow gcgrace to properly expire:\n Thread.sleep(1000);\n verifyIncludingPurgeable();\n verify2IncludingPurgeable(123);\n }", "private void doQuarantineTest(TableName table, HBaseFsck hbck, int check,\n int corrupt, int fail, int quar, int missing) throws Exception {\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n admin.flush(table); // flush is async.\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n\n String[] args = {\"-sidelineCorruptHFiles\", \"-repairHoles\", \"-ignorePreCheckPermission\",\n table.getNameAsString()};\n HBaseFsck res = hbck.exec(hbfsckExecutorService, args);\n\n HFileCorruptionChecker hfcc = res.getHFilecorruptionChecker();\n assertEquals(hfcc.getHFilesChecked(), check);\n assertEquals(hfcc.getCorrupted().size(), corrupt);\n assertEquals(hfcc.getFailures().size(), fail);\n assertEquals(hfcc.getQuarantined().size(), quar);\n assertEquals(hfcc.getMissing().size(), missing);\n\n // its been fixed, verify that we can enable\n admin.enableTableAsync(table);\n while (!admin.isTableEnabled(table)) {\n try {\n Thread.sleep(250);\n } catch (InterruptedException e) {\n e.printStackTrace();\n fail(\"Interrupted when trying to enable table \" + table);\n }\n }\n } finally {\n cleanupTable(table);\n }\n }", "private void ensureChangesAllowed() {\n if (lifecycle.started() == false) {\n throw new IllegalStateException(\"Can't make changes to indices service, node is closed\");\n }\n }", "@Disabled(\"Disabled test\")\n @Test\n void testDisable() {\n assertEquals(testing1, testing2);\n }", "@Test(groups = \"testAuth\", dependsOnGroups = \"authEnable\", priority = 1)\n public void testKVWithoutAuth() throws InterruptedException {\n assertThatThrownBy(() -> this.authDisabledKVClient.put(rootRoleKey, rootRoleValue).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.put(userRoleKey, rootRoleValue).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.get(rootRoleKey).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n assertThatThrownBy(() -> this.authDisabledKVClient.get(userRoleKey).get())\n .hasMessageContaining(\"etcdserver: user name is empty\");\n }", "@Test\n\t@Disabled\n\tpublic void test() {\n\t}", "@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }", "@Test\n void checkCannotForceWithForcedCellOccupied() {\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(1, 0)));\n }", "@Test(expected=IllegalStateException.class)\n public void ongoingConfiguration_withRequestsRecordingDisabled() {\n initJadler().withRequestsRecordingDisabled();\n \n try {\n verifyThatRequest();\n fail(\"request recording disabled, verification must fail\");\n }\n finally {\n closeJadler();\n }\n }", "@Ignore\n public void testDisapproveReason() throws Exception {\n\n }", "@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public void testNoGuaranteeModeDisregardsMaxUncommittedOffsets() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.NO_GUARANTEE)\n .build();\n doTestModeDisregardsMaxUncommittedOffsets(spoutConfig);\n }", "@Test(groups = \"stress\", timeOut = 15*60*1000)\n public void testNonTransactionalStress() throws Throwable {\n TestResourceTracker.testThreadStarted(this.getTestName());\n stressTest(false);\n }", "@Test\n public void testFailLock() {\n if (getConnection().isNis()) {\n // TODO Workaround on Solaris NIS: there doesn't seem to be a way\n // how to handle user locks on NIS.\n log.info(\"skipping test 'testLock', as LOCK attribute is not supported by the connector on NIS.\");\n return;\n }\n try {\n getFacade().update(ObjectClass.ACCOUNT, new Uid(getUsername()),\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.LOCK.getName())),\n null);\n AssertJUnit\n .fail(\"passing null option to Lock should cause failure. It must have a boolean value.\");\n } catch (Exception ex) {\n // OK\n }\n try {\n getFacade().create(\n ObjectClass.ACCOUNT,\n CollectionUtil.newSet(AttributeBuilder.build(Name.NAME, \"fooconn\"),\n AttributeBuilder.buildPassword(\"foo134\".toCharArray()),\n AttributeBuilder.build(AccountAttribute.LOCK.getName())), null);\n AssertJUnit\n .fail(\"passing null option to Lock should cause failure. It must have a boolean value.\");\n } catch (Exception ex) {\n // OK\n } finally {\n try {\n getFacade().delete(ObjectClass.ACCOUNT, new Uid(\"foo134\"), null);\n } catch (Exception ex) {\n // OK\n }\n }\n }", "@Test @SpecAssertion(id = \"432-A2\", section=\"4.3.2\")\n public void testConversionComparedWithRate(){\n Assert.fail();\n }", "@Test\n public void fsckMetricsMissingForward() throws Exception {\n // currently a warning, not an error\n storage.flushColumn(\"bar\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "@Test\n public void collectionTaskInTheWorkScopeOfCommittedWPDisabled() throws Exception {\n\n // Given a work package with Collection Required boolean set to TRUE\n final TaskKey lWorkPackage = createWorkPackage();\n\n schedule( lWorkPackage, false );\n\n SchedStaskTable lStaskTable = InjectorContainer.get().getInstance( SchedStaskDao.class )\n .findByPrimaryKey( lWorkPackage );\n\n // Then Collection Required param of work package set to FALSE\n assertFalse( lStaskTable.isCollectionRequiredBool() );\n }", "@Test\n public void fsckMetricsInconsistentForward() throws Exception {\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "private void checkStatus() {\n if (switchOff) {\n String msg = \"Locker is switched off - no data source accessible.\";\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n }", "@Test\n public void lowHealthWarningTest() {\n }", "@Test\n\tpublic void testGetDriverExcludeAllocations(){ \n\t\tassertNotNull(driverService.getDriverExcludeAllocations(239537L)); \n\t}", "@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }", "protected void skipTestIfScopesNotSupported() {\n\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test\n public void testNoGuaranteeModeCannotReplayTuples() {\n KafkaSpoutConfig<String, String> spoutConfig = createKafkaSpoutConfigBuilder(mock(TopicFilter.class), mock(ManualPartitioner.class), -1)\n .setProcessingGuarantee(KafkaSpoutConfig.ProcessingGuarantee.NO_GUARANTEE)\n .setTupleTrackingEnforced(true)\n .build();\n doTestModeCannotReplayTuples(spoutConfig);\n }", "@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public void fsckNoData() throws Exception {\n storage.flushStorage();\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "public static void ensure() {\n }", "@Test\n public void timeCollectionDisabled() {\n mDeviceState.setCharging(true);\n runScenario();\n }", "@Test\n public void testEnableAndDisableTableReplication() throws Exception {\n createTableWithDefaultConf(tableName);\n admin.enableTableReplication(tableName).join();\n TableDescriptor tableDesc = admin.getDescriptor(tableName).get();\n for (ColumnFamilyDescriptor fam : tableDesc.getColumnFamilies()) {\n Assert.assertEquals(REPLICATION_SCOPE_GLOBAL, fam.getScope());\n }\n admin.disableTableReplication(tableName).join();\n tableDesc = admin.getDescriptor(tableName).get();\n for (ColumnFamilyDescriptor fam : tableDesc.getColumnFamilies()) {\n Assert.assertEquals(REPLICATION_SCOPE_LOCAL, fam.getScope());\n }\n }", "@Test\n void shouldNotSeeNonExistingNode() throws Exception\n {\n try ( KernelTransaction tx = beginTransaction() )\n {\n assertFalse( tx.dataRead().nodeExists( 1337L ) );\n }\n }", "@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }", "@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }", "@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }", "@Disabled\n @Test\n void processDepositValidatorPubkeysContainsPubkey() {\n }", "@Test\r\n\tpublic final void testUnsetLock() {\r\n\t\tlistener.unsetLock();\r\n\t\tassertTrue(\"Listener should not be locked\",listener.isLocked());\r\n\t}", "@Test\n\t public void contextLoads() throws Exception {\n\t \tassertThat(false).isFalse();\n\t }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"\");\n assertFalse(boolean0);\n }", "public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "@Test(enabled = false, retryAnalyzer = Retry.class, testName = \"Sanity Tests\", description = \"Settings: Backup Enable/disable without upload in the background\",\n\t\t\tgroups = { \"Regression Droid\" })\n\tpublic void settingsBackupEnableDisable() throws Exception, Throwable {\n\t\t\n\n\t}", "@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the client\n\t}", "public void testCanRecoverFromStoreWithoutPeerRecoveryRetentionLease() throws Exception {\n\n internalCluster().startMasterOnlyNode();\n final String dataNode = internalCluster().startDataOnlyNode();\n\n assertAcked(\n prepareCreate(INDEX_NAME).setSettings(\n Settings.builder()\n .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0)\n .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true)\n .put(\n IndexMetadata.SETTING_VERSION_CREATED,\n VersionUtils.randomVersionBetween(random(), Version.CURRENT.minimumIndexCompatibilityVersion(), Version.CURRENT)\n )\n )\n );\n ensureGreen(INDEX_NAME);\n\n IndicesService service = internalCluster().getInstance(IndicesService.class, dataNode);\n String uuid = client().admin()\n .indices()\n .getIndex(new GetIndexRequest().indices(INDEX_NAME))\n .actionGet()\n .getSetting(INDEX_NAME, IndexMetadata.SETTING_INDEX_UUID);\n Path path = service.indexService(new Index(INDEX_NAME, uuid)).getShard(0).shardPath().getShardStatePath();\n\n long version = between(1, 1000);\n internalCluster().restartNode(dataNode, new InternalTestCluster.RestartCallback() {\n @Override\n public Settings onNodeStopped(String nodeName) throws Exception {\n RetentionLeases.FORMAT.writeAndCleanup(new RetentionLeases(1, version, List.of()), path);\n return super.onNodeStopped(nodeName);\n }\n });\n\n ensureGreen(INDEX_NAME);\n final RetentionLeases retentionLeases = getRetentionLeases();\n final String nodeId = client().admin().cluster().prepareNodesInfo(dataNode).clear().get().getNodes().get(0).getNode().getId();\n assertTrue(\n \"expected lease for [\" + nodeId + \"] in \" + retentionLeases,\n retentionLeases.contains(ReplicationTracker.getPeerRecoveryRetentionLeaseId(nodeId))\n );\n // verify that we touched the right file.\n assertThat(retentionLeases.version(), equalTo(version + 1));\n }", "@Test\n\tpublic void testBooleanFalse() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query04.rq\", \"/tests/basic/query04.srx\", false);\n\t}", "void ensure();", "@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }", "public boolean isConsistent() throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\t}", "@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}", "@Override\r\n\tpublic void testValidParentWithNoEntries() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testValidParentWithNoEntries();\r\n\t\t}\r\n\t}", "@Ignore\n @Test\n @Override\n public void testBoolean(TestContext ctx) {\n super.testBoolean(ctx);\n }", "@Test\n public void invalidTableEgress() throws InterruptedException {\n for (int i = 100; i < 110; ++i) {\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(100, i));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n }\n }", "@Test\n public void testPermitUpgradeUberNew() {\n assertFalse(underTest.permitCmAndStackUpgrade(\"2.2.0\", \"3.2.0\"));\n\n assertFalse(underTest.permitExtensionUpgrade(\"2.2.0\", \"3.2.0\"));\n }", "@Test\n public void testEnableReplicationWhenSlaveClusterDoesntHaveTable() throws Exception {\n createTableWithDefaultConf(tableName);\n Assert.assertFalse(TestAsyncReplicationAdminApiWithClusters.admin2.tableExists(tableName).get());\n admin.enableTableReplication(tableName).join();\n Assert.assertTrue(TestAsyncReplicationAdminApiWithClusters.admin2.tableExists(tableName).get());\n }", "protected void assertNoTESpec() {\n\t\tassertFalse(\"A TE spec was generated, but it shouldn't\", \n\t\t\trecorder.recorded(EC.TLC_TE_SPEC_GENERATION_COMPLETE));\n\t}", "@Test\n public void trackingDisabled_unsolicitedResultsIgnored_withToken() {\n configureTrackingDisabled();\n\n // Set the storage into an arbitrary state so we can detect a reset.\n mPackageStatusStorage.generateCheckToken(INITIAL_APP_PACKAGE_VERSIONS);\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Receiving a check result when tracking is disabled should cause the storage to be reset.\n mPackageTracker.recordCheckResult(createArbitraryCheckToken(), true /* success */);\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Assert the storage was reset.\n checkPackageStorageStatusIsInitialOrReset();\n }", "@Test\n public void noneCompatibility() {\n Schema s1 = ProtobufData.get().getSchema(Message.ProtoMsgV1.class);\n Schema s2 = ProtobufData.get().getSchema(Message.ProtoMsgV2.class);\n\n //always true\n assertTrue(AvroSchemaCompatibility.NONE_VALIDATOR.isCompatible(s2, s1));\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkNetword() {\n\t\tboolean flag = oTest.checkNetword();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "public void testThatTransportClientWithOnlyTruststoreCannotConnectToDefaultProfile() throws Exception {\n Settings settings = Settings.builder()\n .put(SecurityField.USER_SETTING.getKey(), TEST_USER_NAME + \":\" + TEST_PASSWORD)\n .put(\"cluster.name\", internalCluster().getClusterName())\n .put(\"xpack.security.transport.ssl.enabled\", true)\n .put(\"xpack.security.transport.ssl.client_authentication\", SSLClientAuth.REQUIRED)\n .put(\"xpack.security.transport.ssl.certificate_authorities\",\n getDataPath(\"/org/elasticsearch/xpack/security/transport/ssl/certs/simple/testnode.crt\"))\n .build();\n try (TransportClient transportClient = new TestXPackTransportClient(settings,\n Collections.singletonList(LocalStateSecurity.class))) {\n transportClient.addTransportAddress(randomFrom(internalCluster().getInstance(Transport.class).boundAddress().boundAddresses()));\n assertGreenClusterState(transportClient);\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }", "@Override\n public void checkConfiguration() {\n }", "public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }", "private void checkEnabled() {\n }", "@Test public void testAssertionsEnabled() {\n assertThrows(AssertionError.class, () -> {\n assert false;\n }, \"make sure assertions are enabled with VM argument '-ea'\");\n }", "protected boolean check(CrawlDatum datum) {\n if (datum.getStatus() != expectedDbStatus)\n return false;\n return true;\n }", "@Test\n public void fsckMetricsInconsistentFwdAndInconsistentRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(6, errors);\n }", "@Test\n public void updateDecline() throws Exception {\n }", "@Test\n public void testCancel() throws Exception {\n\n try {\n client.makeBooking(\"Paul\", new Date(System.currentTimeMillis()), true);\n Assert.fail(\"Should have thrown a TransactionCompensatedException\");\n } catch (TransactionCompensatedException e) {\n //expected\n }\n\n Assert.assertTrue(\"Expected booking to be cancelled, but it wasn't\", client.getLastBookingStatus().equals(BookingStatus.CANCELLED));\n\n }", "void validateReadQuorum(ConsistencyLevel consistencyLevel, ResourceType childResourceType, boolean isBoundedStaleness) {\n }", "@Test\n public void canUseSpecialPowerFalseNoMove() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}" ]
[ "0.6986895", "0.60333997", "0.6022138", "0.5971799", "0.58847743", "0.5877484", "0.58600354", "0.5823357", "0.5813808", "0.5804981", "0.57781994", "0.5747515", "0.57410717", "0.5736763", "0.572201", "0.57019275", "0.56682676", "0.5665351", "0.56522596", "0.55793566", "0.55750644", "0.5569205", "0.5557546", "0.55571765", "0.5553205", "0.5548785", "0.5540061", "0.55350566", "0.5514175", "0.55069286", "0.5504941", "0.5500745", "0.5496385", "0.549468", "0.5489258", "0.5486469", "0.5483382", "0.54630476", "0.5453667", "0.544828", "0.5446957", "0.54427505", "0.5439622", "0.54366374", "0.54078925", "0.54044366", "0.5401218", "0.5391113", "0.53909475", "0.53883326", "0.5383941", "0.53838396", "0.53831255", "0.53797567", "0.53778136", "0.5368166", "0.53677005", "0.53677005", "0.5367263", "0.5355879", "0.53520423", "0.5345188", "0.5340834", "0.5340834", "0.5340834", "0.53395176", "0.5336114", "0.5334169", "0.533359", "0.53317225", "0.533068", "0.5330285", "0.53243846", "0.53135794", "0.5312619", "0.5312585", "0.5312456", "0.530971", "0.5307795", "0.5305573", "0.5304682", "0.53035694", "0.5297543", "0.5294957", "0.52887976", "0.5285537", "0.5284677", "0.5282982", "0.52775186", "0.5276726", "0.5273308", "0.5268459", "0.526158", "0.526003", "0.52519906", "0.5251102", "0.52508706", "0.52502507", "0.5244257", "0.5242465" ]
0.7574142
0
Test that two participants are consistent in terms of sealed/stopped replicas.
@Test public void participantsWithNoMismatchTest() throws Exception { List<String> sealedReplicas = new ArrayList<>(Arrays.asList("10", "1", "4")); List<String> stoppedReplicas = new ArrayList<>(); List<String> partiallySealedReplicas = new ArrayList<>(); List<ClusterParticipant> participants = new ArrayList<>(); // create a latch with init value = 2 to ensure both getSealedReplicas and getStoppedReplicas get called at least once CountDownLatch invocationLatch = new CountDownLatch(2); MockClusterParticipant participant1 = new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, invocationLatch, null, null); MockClusterParticipant participant2 = new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, null, null, null); participants.add(participant1); participants.add(participant2); clusterAgentsFactory.setClusterParticipants(participants); AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); assertTrue("The latch didn't count to zero within 5 secs", invocationLatch.await(5, TimeUnit.SECONDS)); // verify that: 1. checker is instantiated 2.no mismatch event is emitted. assertNotNull("The mismatch metric should be created", server.getServerMetrics().sealedReplicasMismatchCount); assertNotNull("The partial seal mismatch metric should be created", server.getServerMetrics().partiallySealedReplicasMismatchCount); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().sealedReplicasMismatchCount.getCount()); assertEquals("Partially sealed replicas mismatch count should be 0", 0, server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount()); assertEquals("Stopped replicas mismatch count should be 0", 0, server.getServerMetrics().stoppedReplicasMismatchCount.getCount()); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void participantsWithMismatchTest() throws Exception {\n List<ClusterParticipant> participants = new ArrayList<>();\n // create a latch with init value = 2 and add it to second participant. This latch will count down under certain condition\n CountDownLatch invocationLatch = new CountDownLatch(3);\n MockClusterParticipant participant1 =\n new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, null);\n MockClusterParticipant participant2 =\n new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null,\n invocationLatch);\n participants.add(participant1);\n participants.add(participant2);\n clusterAgentsFactory.setClusterParticipants(participants);\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n // initially, two participants have consistent sealed/stopped replicas. Verify that:\n // 1. checker is instantiated 2. no mismatch event is emitted.\n assertNotNull(\"The mismatch metric should be created\",\n server.getServerMetrics().sealedReplicasMismatchCount);\n assertNotNull(\"The mismatch metric should be created\",\n server.getServerMetrics().partiallySealedReplicasMismatchCount);\n assertEquals(\"Sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().sealedReplicasMismatchCount.getCount());\n assertEquals(\"Sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount());\n assertEquals(\"Stopped replicas mismatch count should be 0\", 0,\n server.getServerMetrics().stoppedReplicasMismatchCount.getCount());\n // induce mismatch for sealed and stopped replica list\n // add 1 sealed replica to participant1\n ReplicaId mockReplica1 = Mockito.mock(ReplicaId.class);\n when(mockReplica1.getReplicaPath()).thenReturn(\"12\");\n participant1.setReplicaSealedState(mockReplica1, ReplicaSealStatus.SEALED);\n // add 1 stopped replica to participant2\n ReplicaId mockReplica2 = Mockito.mock(ReplicaId.class);\n when(mockReplica2.getReplicaPath()).thenReturn(\"4\");\n participant2.setReplicaStoppedState(Collections.singletonList(mockReplica2), true);\n // add 1 partially sealed replica to participant2\n ReplicaId mockReplica3 = Mockito.mock(ReplicaId.class);\n when(mockReplica2.getReplicaPath()).thenReturn(\"5\");\n participant2.setReplicaSealedState(mockReplica3, ReplicaSealStatus.PARTIALLY_SEALED);\n assertTrue(\"The latch didn't count to zero within 5 secs\", invocationLatch.await(5, TimeUnit.SECONDS));\n assertTrue(\"Sealed replicas mismatch count should be non-zero\",\n server.getServerMetrics().sealedReplicasMismatchCount.getCount() > 0);\n assertTrue(\"Partially sealed replicas mismatch count should be non-zero\",\n server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount() > 0);\n assertTrue(\"Stopped replicas mismatch count should be non-zero\",\n server.getServerMetrics().stoppedReplicasMismatchCount.getCount() > 0);\n server.shutdown();\n }", "@Test\n public void consistencyCheckerDisabledTest() throws Exception {\n // 1. only one participant, consistency checker should be disabled\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n // 2. there are two participants but period of checker is zero, consistency checker should be disabled.\n props.setProperty(\"server.participants.consistency.checker.period.sec\", Long.toString(0L));\n List<ClusterParticipant> participants = new ArrayList<>();\n for (int i = 0; i < 2; ++i) {\n participants.add(\n new MockClusterParticipant(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), null,\n null, null));\n }\n clusterAgentsFactory.setClusterParticipants(participants);\n server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n }", "@Test\n\tpublic void testCheckConflictOverlappingTimes() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC226\", \"Discrete Math\", \"001\", 3, \"sesmith5\", 12, \"MW\", 1445, 1545);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"MW 2:45PM-3:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "@Test\r\n\tpublic void testDetermineMatchWinner2() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\n public void testOverlappingPartitionsOverlappingClusters()\n {\n check(overlappingClustersWithOverlappingPartitions(), 0.75, 1.0);\n }", "@Test\r\n\tpublic void testDetermineMatchWinner1() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }", "@Test\n public void testReplicatedBoth()\n {\n generateEvents(\"repl-both-test\");\n checkEvents(true, true);\n BackingMapListener.INSTANCE.assertContext();\n }", "@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "public void test1_CheckUniqueParticipant() {\n if (!ParticipantController.checkUniqueParticipant(\"ControllerTest\")) {\n assertTrue(true);\n } else {\n assertTrue(\"Fail\", false);\n }\n\n // should not find participant else fail\n if (ParticipantController.checkUniqueParticipant(\"ControllerTestDummy\")) {\n assertTrue(true);\n } else {\n assertTrue(\"Fail\", false);\n }\n }", "@Test\n public void repairSingleTableRepairedInSubRanges()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2), true);\n createTable(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }", "@Test\n\tvoid testTwoPlayers() {\n\t\tGameLogic gameLogic = configureGetMarriedStateTestGameLogic();\n\t\t\n\t\tPlayer currentPlayerUnderTest = gameLogic.getCurrentPlayer();\n\t\tassertEquals(MaritalStatus.Single, currentPlayerUnderTest.getMaritalStatus());\t\t\n\t\t\n\t\tcurrentPlayerUnderTest.setCurrentLocation(new BoardLocation(PRIOR_TILE_LOCATION));\n\t\t\n\t\tint playerUnderTestInitialBalance = currentPlayerUnderTest.getCurrentMoney();\n\t\tint marriageGuestInitialBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney();\n\t\t\n\t\t// Mock messages to logic, performing pathChoiceState functionality\n LifeGameMessage messageToLogic = new LifeGameMessage(LifeGameMessageTypes.SpinResponse);\n LifeGameMessage messageFromLogic = gameLogic.handleInput(messageToLogic);\n\n\t\tassertEquals(LifeGameMessageTypes.SpinResult, messageFromLogic.getLifeGameMessageType(),\"Expected message not received\");\n\t\tLifeGameMessage spinMessage = new LifeGameMessage(LifeGameMessageTypes.AckResponse);\n\t\tmessageFromLogic = gameLogic.handleInput(spinMessage);\n\n // Now the current player is on the GetMarriedTile - other players have to be queried to spin\n assertEquals(LifeGameMessageTypes.SpinRequest, messageFromLogic.getLifeGameMessageType());\n \n // Provide mock UI response\n messageToLogic = new LifeGameMessage(LifeGameMessageTypes.SpinResponse);\n messageFromLogic = gameLogic.handleInput(messageToLogic);\n\n assertEquals(LifeGameMessageTypes.SpinResult, messageFromLogic.getLifeGameMessageType(),\"Expected message not received\");\n spinMessage = new LifeGameMessage(LifeGameMessageTypes.AckResponse);\n messageFromLogic = gameLogic.handleInput(spinMessage);\n \n // Assert the current player is still the same, and they are being asked to spin again\n assertEquals(LifeGameMessageTypes.SpinRequest, messageFromLogic.getLifeGameMessageType());\n assertEquals(gameLogic.getCurrentPlayer().getPlayerNumber(), currentPlayerUnderTest.getPlayerNumber());\n \n // Assert the player's marital status has been correctly updated\n assertEquals(MaritalStatus.Married, currentPlayerUnderTest.getMaritalStatus());\n \n /* Assert that the current player's money has increased by either the odd amount or even amount, \n * and that the other player(s) were deducted the same amount\n */\n int currentBalance = gameLogic.getCurrentPlayer().getCurrentMoney();\n \n if(currentBalance == playerUnderTestInitialBalance + GameConfig.get_married_even_payment) {\n \t// Ensure the other player's balance was decremented by the same amount\n \tint marriageGuestCurrentBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney(); \t\n \tint marriageGuestBalanceDelta = marriageGuestInitialBalance - marriageGuestCurrentBalance;\n \tassertEquals(GameConfig.get_married_even_payment, marriageGuestBalanceDelta);\n }\n else if(currentBalance == playerUnderTestInitialBalance + GameConfig.get_married_odd_payment) {\n \t// Ensure the other player's balance was decremented by the same amount\n \tint marriageGuestCurrentBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney(); \t\n \tint marriageGuestBalanceDelta = marriageGuestInitialBalance - marriageGuestCurrentBalance;\n \tassertEquals(GameConfig.get_married_odd_payment, marriageGuestBalanceDelta);\n }\n else {\n \tint invalidBalanceDelta = currentBalance - playerUnderTestInitialBalance; \t\n \tfail(\"Player's balance was changed by an invalid amount (\" + invalidBalanceDelta + \") when they got married.\");\n }\n\n\t}", "@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }", "@Test\n public void testSecondaryFailureInUNRegisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n registerK1AndK2();\n VM stoppedBackup = stopSecondaryAndUNregisterK1();\n verifyDeadAndLiveServers(1, 2);\n // still primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM(stoppedBackup).invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "@Test\n public void testInterestRecoveryFailure() throws Exception {\n addIgnoredException(\"Server unreachable\");\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCache);\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n PORT2 = server2.invoke(HAInterestTestCase::createServerCache);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n createClientPoolCacheWithSmallRetryInterval(getName(),\n getServerHostName(server1.getHost()));\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n VM backup = getBackupVM();\n VM primary = getPrimaryVM();\n\n backup.invoke(HAInterestTestCase::stopServer);\n primary.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(2, 0);\n\n primary.invoke(HAInterestTestCase::putK1andK2);\n setClientServerObserverForBeforeInterestRecoveryFailure();\n primary.invoke(HAInterestTestCase::startServer);\n waitForBeforeInterestRecoveryCallBack();\n if (exceptionOccurred) {\n fail(\"The DSM could not ensure that server 1 is started & serevr 2 is stopped\");\n }\n final Region r1 = cache.getRegion(SEPARATOR + REGION_NAME);\n assertNotNull(r1);\n\n WaitCriterion wc = new WaitCriterion() {\n private String excuse;\n\n @Override\n public boolean done() {\n Entry e1 = r1.getEntry(k1);\n Entry e2 = r1.getEntry(k2);\n if (e1 == null) {\n excuse = \"Entry for k1 still null\";\n return false;\n }\n if (e2 == null) {\n excuse = \"Entry for k2 still null\";\n return false;\n }\n if (!(server_k1.equals(e1.getValue()))) {\n excuse = \"Value for k1 wrong\";\n return false;\n }\n if (!(server_k2.equals(e2.getValue()))) {\n excuse = \"Value for k2 wrong\";\n return false;\n }\n return true;\n }\n\n @Override\n public String description() {\n return excuse;\n }\n };\n GeodeAwaitility.await().untilAsserted(wc);\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch2() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "@Test\n\tpublic void testCheckCoflictOneDay() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MWF\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TWH\", 1330, 1445);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MWF 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"TWH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "@Test\n public void testPrimaryFailureInUNregisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n\n registerK1AndK2();\n\n VM oldPrimary = getPrimaryVM();\n stopPrimaryAndUnregisterRegisterK1();\n\n verifyDeadAndLiveServers(1, 2);\n\n VM newPrimary = getPrimaryVM(oldPrimary);\n newPrimary.invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n newPrimary.invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "@Test\n public void testHardClustersWithOverlappingPartitions()\n {\n check(hardClustersWithOverlappingPartitions(), 0.0, 1.0);\n }", "@Test\n public void be_playing_when_2_players_join() {\n\n Game game = new Game(new Deck());\n\n game.join(\"john\");\n game.join(\"mary\");\n\n assertThat(game.getState(), is(Game.State.PLAYING));\n\n }", "@Test\n public void testAcceptTether() throws IOException, InterruptedException {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n // Duplicate tether initiation should be ignored\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.PENDING);\n // Tethering status on server side should be PENDING.\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // User accepts tethering on the server\n acceptTethering();\n // Tethering status should become ACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.ACTIVE);\n\n // Duplicate accept tethering should fail\n TetheringActionRequest request = new TetheringActionRequest(\"accept\");\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/connections/xyz\"))\n .withBody(GSON.toJson(request));\n HttpResponse response = HttpRequests.execute(builder.build());\n Assert.assertEquals(HttpResponseStatus.BAD_REQUEST.code(), response.getResponseCode());\n\n // Wait until we don't receive any control messages from the peer for upto the timeout interval.\n Thread.sleep(cConf.getInt(Constants.Tethering.CONNECTION_TIMEOUT_SECONDS) * 1000);\n // Tethering connection status should become INACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n }", "@Test\n public void idempotentcyTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n final String paymentId = paymentDto.getId();\n\n\n //we mistakenly try to confirm unauthorized payment (even twice) - that is OK, payment should stay in INITIAL\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n\n //eventually we authorize payment\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //and confirm\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n }", "@Test\n public void repairSingleTableRepairedInSubRanges()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2), true);\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "@Test\n public void testReportForDutyWithMasterChange() throws Exception {\n // Start a master and wait for it to become the active/primary master.\n // Use a random unique port\n cluster.getConfiguration().setInt(MASTER_PORT, HBaseTestingUtility.randomFreePort());\n // master has a rs. defaultMinToStart = 2\n boolean tablesOnMaster = LoadBalancer.isTablesOnMaster(testUtil.getConfiguration());\n cluster.getConfiguration().setInt(WAIT_ON_REGIONSERVERS_MINTOSTART, (tablesOnMaster ? 2 : 1));\n cluster.getConfiguration().setInt(WAIT_ON_REGIONSERVERS_MAXTOSTART, (tablesOnMaster ? 2 : 1));\n master = cluster.addMaster();\n rs = cluster.addRegionServer();\n TestRegionServerReportForDuty.LOG.debug((\"Starting master: \" + (master.getMaster().getServerName())));\n master.start();\n rs.start();\n waitForClusterOnline(master);\n // Add a 2nd region server\n cluster.getConfiguration().set(REGION_SERVER_IMPL, TestRegionServerReportForDuty.MyRegionServer.class.getName());\n rs2 = cluster.addRegionServer();\n // Start the region server. This region server will refresh RPC connection\n // from the current active master to the next active master before completing\n // reportForDuty\n TestRegionServerReportForDuty.LOG.debug((\"Starting 2nd region server: \" + (rs2.getRegionServer().getServerName())));\n rs2.start();\n waitForSecondRsStarted();\n // Stop the current master.\n master.getMaster().stop(\"Stopping master\");\n // Start a new master and use another random unique port\n // Also let it wait for exactly 2 region severs to report in.\n cluster.getConfiguration().setInt(MASTER_PORT, HBaseTestingUtility.randomFreePort());\n cluster.getConfiguration().setInt(WAIT_ON_REGIONSERVERS_MINTOSTART, (tablesOnMaster ? 3 : 2));\n cluster.getConfiguration().setInt(WAIT_ON_REGIONSERVERS_MAXTOSTART, (tablesOnMaster ? 3 : 2));\n backupMaster = cluster.addMaster();\n TestRegionServerReportForDuty.LOG.debug((\"Starting new master: \" + (backupMaster.getMaster().getServerName())));\n backupMaster.start();\n waitForClusterOnline(backupMaster);\n // Do some checking/asserts here.\n Assert.assertTrue(backupMaster.getMaster().isActiveMaster());\n Assert.assertTrue(backupMaster.getMaster().isInitialized());\n Assert.assertEquals(backupMaster.getMaster().getServerManager().getOnlineServersList().size(), (tablesOnMaster ? 3 : 2));\n }", "@Test\n void joinQuiz() throws Exception {\n int oldCount = quizService.findById(1L).getParticipants().size();\n quizService.JoinQuiz(\"mahnaemehjeff\", \"S3NDB0BSANDV4G3N3\");\n int newCount = quizService.findById(1L).getParticipants().size();\n\n assertNotEquals(oldCount, newCount);\n }", "@Test(description = \"Verify node's update reject request with the same responsible for different matching \"\n + \"node_type+External ID (Negative)\", groups = \"smoke\")\n public void updateRegisteredNodeWithSameResponsibleForDifferentMatchingTest() {\n AccountEntity cameraResponsible = new AccountEntityManager().createAccountEntity();\n Response cameraResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(cameraResponsible);\n Integer cameraResponsibleId = getAccountId(cameraResponsibleResponse);\n\n //Create responsible for airsensor\n AccountEntity airsensorResponsible = new AccountEntityManager().createAccountEntity();\n Response airsensorResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(airsensorResponsible);\n Integer airsensorResponsibleId = getAccountId(airsensorResponsibleResponse);\n\n //LWA Camera registration\n LightWeightAccount.Node node = createDefaultNode();\n\n LightWeightAccount lwa = createDefaultLightWeightAccount(node)\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa).then().statusCode(200);\n\n //LWA Airsensor registration\n LightWeightAccount.Node node2 = createDefaultNode()\n .setNodeType(\"AIRSENSOR\")\n .setAttributes(new HashMap<String, Object>() {{\n put(\"msisdn\", \"value1\");\n put(\"oem\", \"11\");\n put(\"location\", \"12356\");\n put(\"model\", \"1234\");\n }});\n\n LightWeightAccount lwa2 = createDefaultLightWeightAccount(node2)\n .setResponsibleId(airsensorResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa2).then().statusCode(200);\n\n //Update camera with same responsible\n LightWeightAccount lwaCameraUpdated = new LightWeightAccount()\n .setExternalId(lwa.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(node.getNodeType()));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaCameraUpdated).then().statusCode(428);\n\n //Update airsensor with new responsible\n LightWeightAccount lwaAirsensorUpdated = new LightWeightAccount()\n .setExternalId(lwa2.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(\"AIRSENSOR\"));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaAirsensorUpdated).then().statusCode(200);\n }", "@Test\n public void testColocatedPRRedundancyRecovery() throws Throwable {\n createCacheInAllVms();\n redundancy = 1;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n // Create Customer PartitionedRegion in Data store 1\n regionName = CustomerPartitionedRegionName;\n colocatedWith = null;\n isPartitionResolver = Boolean.FALSE;\n Object[] attributeObjects1 = new Object[] {regionName, redundancy, localMaxmemory,\n totalNumBuckets, colocatedWith, isPartitionResolver};\n dataStore1.invoke(PRColocationDUnitTest.class, \"createPR\", attributeObjects1);\n\n // Create Order PartitionedRegion in Data store 1\n regionName = OrderPartitionedRegionName;\n colocatedWith = CustomerPartitionedRegionName;\n isPartitionResolver = Boolean.FALSE;\n Object[] attributeObjects2 = new Object[] {regionName, redundancy, localMaxmemory,\n totalNumBuckets, colocatedWith, isPartitionResolver};\n dataStore1.invoke(PRColocationDUnitTest.class, \"createPR\", attributeObjects2);\n\n // create a few buckets in dataStore1\n dataStore1.invoke(new SerializableRunnable(\"put data in region\") {\n @Override\n public void run() {\n Region region1 = basicGetCache().getRegion(CustomerPartitionedRegionName);\n Region region2 = basicGetCache().getRegion(OrderPartitionedRegionName);\n region1.put(1, \"A\");\n region1.put(2, \"A\");\n region2.put(1, \"A\");\n region2.put(2, \"A\");\n }\n });\n\n // add a listener for region recovery\n dataStore2.invoke(new SerializableRunnable(\"Add recovery listener\") {\n @Override\n public void run() {\n InternalResourceManager.setResourceObserver(new MyResourceObserver());\n }\n });\n\n dataStore2.invoke(PRColocationDUnitTest.class, \"createPR\", attributeObjects1);\n\n // Make sure no redundant copies of buckets get created for the first PR in datastore2 because\n // the second PR has not yet been created.\n SerializableRunnable checkForBuckets = new SerializableRunnable(\"check for buckets\") {\n @Override\n public void run() {\n PartitionedRegion region1 =\n (PartitionedRegion) basicGetCache().getRegion(CustomerPartitionedRegionName);\n MyResourceObserver observer =\n (MyResourceObserver) InternalResourceManager.getResourceObserver();\n try {\n observer.waitForRegion(region1, 60 * 1000);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n // there should be no buckets on this node, because we don't\n // have all of the colocated regions\n assertEquals(Collections.emptyList(), region1.getLocalBucketsListTestOnly());\n assertEquals(0, region1.getRegionAdvisor().getBucketRedundancy(1));\n }\n };\n\n dataStore2.invoke(checkForBuckets);\n\n // create another bucket in dataStore1\n dataStore1.invoke(new SerializableRunnable(\"put data in region\") {\n @Override\n public void run() {\n Region region1 = basicGetCache().getRegion(CustomerPartitionedRegionName);\n Region region2 = basicGetCache().getRegion(OrderPartitionedRegionName);\n region1.put(3, \"A\");\n region2.put(3, \"A\");\n }\n });\n\n\n // Make sure that no copies of buckets are created for the first PR in datastore2\n dataStore2.invoke(checkForBuckets);\n\n dataStore2.invoke(PRColocationDUnitTest.class, \"createPR\", attributeObjects2);\n\n // Now we should get redundant copies of buckets for both PRs\n dataStore2.invoke(new SerializableRunnable(\"check for bucket creation\") {\n @Override\n public void run() {\n PartitionedRegion region1 =\n (PartitionedRegion) basicGetCache().getRegion(CustomerPartitionedRegionName);\n PartitionedRegion region2 =\n (PartitionedRegion) basicGetCache().getRegion(OrderPartitionedRegionName);\n MyResourceObserver observer =\n (MyResourceObserver) InternalResourceManager.getResourceObserver();\n try {\n observer.waitForRegion(region2, 60 * 1000);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n // we should now have copies all of the buckets\n assertEquals(3, region1.getLocalBucketsListTestOnly().size());\n assertEquals(3, region2.getLocalBucketsListTestOnly().size());\n }\n });\n }", "private void assertRunningState() {\n Misc.checkArgument(this.state == State.STARTED || this.state == State.STOPPING,\n \"Replicate state must be STARTED or STOPPING.\");\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch1() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "@Test\n public void testLockBatchParticipantsUpdate() throws Exception {\n final String rgnName = getUniqueName();\n Region rgn = getCache().createRegion(rgnName, getRegionAttributes());\n rgn.create(\"key\", null);\n\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(0);\n VM vm1 = host.getVM(1);\n VM vm2 = host.getVM(2);\n SerializableRunnable initRegions =\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: initial configuration\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes());\n rgn1.create(\"key\", null);\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n };\n vm0.invoke(initRegions);\n vm1.invoke(initRegions);\n rgn.put(\"key\", \"val1\");\n\n // Connect vm2 also since it may have been shutdown when logPerTest\n // is turned on\n vm2.invoke(new SerializableRunnable(\"connect vm2 if not connected\") {\n @Override\n public void run() {\n getCache();\n }\n });\n\n // Make VM0 the Grantor\n vm0.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: remote grantor init\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().getRegion(rgnName);\n final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager();\n assertEquals(\"val1\", rgn1.getEntry(\"key\").getValue());\n txMgr2.begin();\n rgn1.put(\"key\", \"val2\");\n txMgr2.commit();\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n } catch (CacheException e) {\n fail(\"While performing first transaction\");\n }\n }\n });\n\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val2\", rgn.getEntry(\"key\").getValue());\n\n // Build sets of System Ids and set them up on VM0 for future batch member checks\n HashSet txMembers = new HashSet(4);\n txMembers.add(getSystemId());\n txMembers.add(vm0.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPreTXSystemIds(txMembers));\n txMembers.add(vm2.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPostTXSystemIds(txMembers));\n\n // Don't include the tx host in the batch member set(s)\n Serializable vm1HostId = vm1.invoke(TXDistributedDUnitTest::getSystemId);\n vm0.invoke(() -> TXDistributedDUnitTest.setTXHostSystemId(vm1HostId));\n\n // Create a TX on VM1 (such that it will ask for locks on VM0) that uses the callbacks\n // to pause and give us time to start a GII process on another VM\n vm1.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: slow tx (one that detects new member)\") {\n @Override\n public void run() {\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n\n PausibleTX pauseTXRunnable = new PausibleTX();\n pauseTXRunnable.rgnName = rgnName;\n pauseTXRunnable.myCache = getCache();\n pauseTXRunnable.key = \"key\";\n pauseTXRunnable.value = \"val3\";\n new Thread(pauseTXRunnable, \"PausibleTX Thread\").start();\n synchronized (PausibleTX.class) {\n while (!pauseTXRunnable.getIsRunning()) {\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n }\n });\n\n // Verify that the lock batch exists VM0 and has the size we expect\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch exists on VM0 with expected size\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.preTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.preTXSystemIds));\n }\n });\n\n // Start a GII process on VM2\n vm2.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: start GII\") {\n @Override\n public void run() {\n try {\n AttributesFactory factory = new AttributesFactory();\n factory.setScope(Scope.DISTRIBUTED_ACK);\n factory.setEarlyAck(false);\n factory.setDataPolicy(DataPolicy.REPLICATE);\n getCache().createRegion(rgnName, factory.create());\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n });\n\n // Notify TX on VM1 so that it can continue\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to continue\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should proceed to the TX send\n PausibleTX.class.notifyAll();\n // Wait until VM1 has sent the TX\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n });\n\n // Verify that the batch on VM0 has added VM2 into the set\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch contains VM2\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.postTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.postTXSystemIds));\n }\n });\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val3\", rgn.getEntry(\"key\").getValue());\n\n\n // Notify TX on VM1 that it can go ahead and complete the TX\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to finish\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should finish the TX\n PausibleTX.class.notifyAll();\n }\n }\n });\n\n\n rgn.destroyRegion();\n }", "@Test\n public void multipleReceiversSamePartition() throws InterruptedException {\n // Arrange\n final EventHubConsumerAsyncClient consumer = toClose(builder.prefetchCount(1).buildAsyncConsumerClient());\n final EventHubConsumerAsyncClient consumer2 = toClose(builder.buildAsyncConsumerClient());\n final String partitionId = \"1\";\n final PartitionProperties properties = consumer.getPartitionProperties(partitionId).block(TIMEOUT);\n Assertions.assertNotNull(properties, \"Should have been able to get partition properties.\");\n\n final int numberToTake = 10;\n final CountDownLatch countdown1 = new CountDownLatch(numberToTake);\n final CountDownLatch countdown2 = new CountDownLatch(numberToTake);\n final EventPosition position = EventPosition.fromSequenceNumber(properties.getLastEnqueuedSequenceNumber());\n\n final AtomicBoolean isActive = new AtomicBoolean(true);\n final EventHubProducerAsyncClient producer = builder.buildAsyncProducerClient();\n final Disposable producerEvents = toClose(getEvents(isActive).flatMap(event -> {\n event.getProperties().put(PARTITION_ID_HEADER, partitionId);\n return producer.send(event, new SendOptions().setPartitionId(partitionId));\n }).subscribe(\n sent -> logger.info(\"Event sent.\"),\n error -> logger.error(\"Error sending event. Exception:\" + error, error),\n () -> logger.info(\"Completed\")));\n\n toClose(consumer.receiveFromPartition(partitionId, position)\n .filter(x -> TestUtils.isMatchingEvent(x.getData(), MESSAGE_TRACKING_ID))\n .take(numberToTake)\n .subscribe(event -> {\n logger.info(\"Consumer1: Event received\");\n countdown1.countDown();\n }));\n\n toClose(consumer2.receiveFromPartition(partitionId, position)\n .filter(x -> TestUtils.isMatchingEvent(x.getData(), MESSAGE_TRACKING_ID))\n .take(numberToTake)\n .subscribe(event -> {\n logger.info(\"Consumer2: Event received\");\n countdown2.countDown();\n }));\n\n // Assert\n try {\n boolean successful = countdown1.await(TIMEOUT.getSeconds(), TimeUnit.SECONDS);\n boolean successful2 = countdown2.await(TIMEOUT.getSeconds(), TimeUnit.SECONDS);\n\n Assertions.assertTrue(successful,\n String.format(\"Expected to get %s events. Got: %s\", numberToTake, countdown1.getCount()));\n Assertions.assertTrue(successful2,\n String.format(\"Expected to get %s events. Got: %s\", numberToTake, countdown2.getCount()));\n } finally {\n isActive.set(false);\n }\n }", "@Test\n\tpublic void testBidirectionalCommunicationWithResponses() {\n\n\t\t// due to TIME_WAIT after closing a connection we cannot reuse a fixed\n\t\t// port since this would cause multiple test runs in a row to fail.\n\t\t// therefore, get two free ports we can use.\n\t\tint port0, port1;\n\t\ttry {\n\t\t\tport0 = PortFinder.findOpen();\n\t\t\tport1 = PortFinder.findOpen();\n\t\t} catch (IOException e2) {\n\t\t\tfail(\"could not allocate local ports\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Socket sock1 = new Socket();\n\n\t\tThread adminThread = null;\n\n\t\t// sock0 is \"server\", waiting for sock1 to connect\n\t\ttry {\n\t\t\tfinal ServerSocket tempServer = new ServerSocket();\n\t\t\ttempServer.bind(new InetSocketAddress(\"localhost\", port0));\n\n\t\t\tadminThread = new Thread(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tSocket sock0 = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsock0 = tempServer.accept();\n\t\t\t\t\t\ttempServer.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tfail(\"connection failed (3)\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ttempServer.close();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// ignore\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tFullDuplexMPI party0 = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparty0 = new FullDuplexMPI(sock0, System.out, true) {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic IMessage processIncomingMessage(IMessage message) {\n\t\t\t\t\t\t\t\tassertTrue(message instanceof ConfirmationMessage);\n\t\t\t\t\t\t\t\tassertTrue(((ConfirmationMessage) message).STATUS_CODE == party1Counter);\n\t\t\t\t\t\t\t\treturn new ConfirmationMessage(--party1Counter, null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\tsendRecursiveAsyncMessages(party0, true);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tfail(\"connection failed (0)\");\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// moderate timeout to make sure we eventually get a\n\t\t\t\t\t\t// failure\n\t\t\t\t\t\tlatch.await(20, TimeUnit.SECONDS);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tfail(\"unexpected interruption\");\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (party0 != null) {\n\t\t\t\t\t\t\tparty0.close();\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} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tfail(\"connection failed (2)\");\n\t\t}\n\n\t\tadminThread.start();\n\n\t\tFullDuplexMPI party1 = null;\n\n\t\t// sock1 is \"client\"\n\t\ttry {\n\t\t\tsock1.bind(new InetSocketAddress(\"localhost\", port1));\n\t\t\tsock1.connect(new InetSocketAddress(\"localhost\", port0));\n\t\t\tparty1 = new FullDuplexMPI(sock1, System.out, true) {\n\n\t\t\t\t@Override\n\t\t\t\tpublic IMessage processIncomingMessage(IMessage message) {\n\t\t\t\t\tassertTrue(message instanceof ConfirmationMessage);\n\t\t\t\t\tassertTrue(((ConfirmationMessage) message).STATUS_CODE == party0Counter);\n\t\t\t\t\treturn new ConfirmationMessage(++party0Counter, null);\n\t\t\t\t}\n\t\t\t};\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"connection failed (1)\");\n\t\t}\n\n\t\tassert party1 != null;\n\t\tsendRecursiveAsyncMessages(party1, false);\n\n\t\ttry {\n\t\t\t// moderate timeout to make sure we eventually get a failure\n\t\t\tlatch.await(20, TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"unexpected interruption (1)\");\n\t\t}\n\n\t\t// check if all messages were acknowledged\n\t\tassertEquals(99, party0Counter);\n\t\tassertEquals(1, party1Counter);\n\n\t\ttry {\n\t\t\tsock1.close();\n\t\t} catch (IOException e) {\n\t\t\t// ignore\n\t\t}\n\t\ttry {\n\t\t\tadminThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"unexpected interruption (2)\");\n\t\t}\n\t}", "public void checkConsistency(List inconsistencies);", "@Test\n public void unstartedSenderShouldNotAddReceivedEventsIntoTmpDropped() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n // create receiver on site-ln and site-ny\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n // create senders on site-ny, Note: sender-id is its destination, i.e. ny\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n // create senders on site-ln, Note: sender-id is its destination, i.e. ln\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n // create PR on site-ny\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n // create PR on site-ln\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n // start sender on site-ny\n startSenderInVMs(\"ny\", vm2, vm4);\n\n // do 100 puts on site-ln\n vm3.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 0, 100));\n\n // verify site-ny have 100 entries\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify tmpDroppedEvents should be 100 at site-ln, because the sender is not started yet\n vm3.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 100));\n\n // verify site-ln has not received the events from site-ny yet\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n\n // start sender on site-ln\n startSenderInVMsAsync(\"ln\", vm3, vm5);\n\n // verify tmpDroppedEvents should be 0 now at site-ny\n vm3.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 0));\n vm5.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 0));\n\n vm3.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ln\"));\n vm5.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ln\"));\n }", "@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 }", "@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 }", "@Test\r\n\tpublic void testB() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = new RunProtocol(h, IHandshake.PARTNER_A, 100, 200, false, true);\r\n\t\t\r\n\t\tassertTrue(run.beginA());\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\tassertTrue(run.beginB());\r\n\t\tassertTrue(run.commitB());\r\n\t}", "@Test\n public void stoppedPrimarySenderShouldNotAddEventsToTmpDroppedEventsButStillDrainQueuesWhenStarted() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n stopSenderInVMsAsync(\"ny\", vm2);\n\n vm2.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 0, 100));\n\n // verify tmpDroppedEvents is 0 at site-ny\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 50));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 50));\n\n startSenderInVMsAsync(\"ny\", vm2);\n\n vm2.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 1000));\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 1000));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 1000));\n\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 950));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 950));\n\n // verify the secondary's queues are drained at site-ny\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "@Test\n public void consistencyTest() {\n Boolean isConsistent = instrSetup(new Callable<Boolean>() {\n\n /**\n * A {@link Callable} worker that generates accesses to an object\n * regularly fetching its id to check if it changes.\n *\n * @author Nikolay Pulev <[email protected]>\n */\n class ObjectAccessGenerator implements Callable<Long> {\n\n private Object ref;\n\n public ObjectAccessGenerator(Object ref) {\n this.ref = ref;\n }\n\n /**\n * Generates accesses to passed reference. Obtains id value,\n * checks it for consistency, and returns it as a result.\n *\n * @throws Exception\n */\n @Override\n public Long call() {\n long id0 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.hashCode();\n long id1 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.toString();\n long id2 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.equals(ref);\n long id3 = InstanceIdentifier.INSTANCE.getId(ref);\n if (!(id0 == id1 && id1 == id2 && id2 == id3)) {\n\n return (long) -1;\n }\n\n return Long.valueOf(id0);\n }\n }\n\n @Override\n public Boolean call() throws Exception {\n Object ref = new MickeyMaus(5); /* Create object. */\n long initialId = InstanceIdentifier.INSTANCE.getId(ref);\n ExecutorService pool = Executors.newFixedThreadPool(100);\n ArrayList<Future<Long>> futures = new ArrayList<Future<Long>>();\n\n /* Create several access generators to query the object's id. */\n for (int i = 1; i < 1000; i++) {\n futures.add(pool.submit(new ObjectAccessGenerator(ref)));\n }\n\n /* Check results. */\n for (Future<Long> future : futures) {\n if (initialId != future.get().longValue()) {\n\n return Boolean.valueOf(false); /* Return false if inconsistency found. */\n }\n }\n\n return Boolean.valueOf(true);\n }\n });\n Assert.assertEquals(\"InstanceIdentifier.getId() provides consistent ids for references: \",\n true , isConsistent.booleanValue());\n }", "@Test\n public void testSynchronizeNotPaired() throws AuthException, IOException {\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n }", "@Test\n public void testRelinquishRole()\n throws IOException, InterruptedException, CloneNotSupportedException {\n LightWeightNameNode hdfs1 =\n new LightWeightNameNode(new HdfsLeDescriptorFactory(),\n DFS_LEADER_CHECK_INTERVAL_IN_MS, DFS_LEADER_MISSED_HB_THRESHOLD,\n TIME_PERIOD_INCREMENT, HTTP_ADDRESS, RPC_ADDRESS);\n nnList.add(hdfs1);\n LightWeightNameNode hdfs2 =\n new LightWeightNameNode(new HdfsLeDescriptorFactory(),\n DFS_LEADER_CHECK_INTERVAL_IN_MS, DFS_LEADER_MISSED_HB_THRESHOLD,\n TIME_PERIOD_INCREMENT, HTTP_ADDRESS, RPC_ADDRESS);\n nnList.add(hdfs2);\n\n hdfs1.getLeaderElectionInstance().waitActive();\n hdfs2.getLeaderElectionInstance().waitActive();\n long hdfs1Id = hdfs1.getLeCurrentId();\n long hdfs2Id = hdfs2.getLeCurrentId();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == true);\n assertTrue(\"Leader Check Failed \", hdfs2.isLeader() == false);\n\n\n // relinquish role\n hdfs1.getLeaderElectionInstance().relinquishCurrentIdInNextRound();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == false);\n Thread.sleep(\n DFS_LEADER_CHECK_INTERVAL_IN_MS * (DFS_LEADER_MISSED_HB_THRESHOLD + 1));\n long hdfs1IdNew = hdfs1.getLeCurrentId();\n long hdfs2IdNew = hdfs2.getLeCurrentId();\n assertTrue(\"Leader Check Failed \", hdfs1.isLeader() == false);\n assertTrue(\"Leader Check Failed \", hdfs2.isLeader() == true);\n\n assertTrue(\"ID Check Failed \", hdfs1Id != hdfs1IdNew);\n assertTrue(\"ID Check Failed \", hdfs2Id == hdfs2IdNew);\n\n\n }", "@Test\n public void shouldIncrementAndThenReleaseScorePlayerTwo() {\n int expected = 0 ;\n scoreService.incrementScorePlayerTwo() ;\n scoreService.incrementScorePlayerTwo() ;\n scoreService.releaseScores() ;\n int scorePlayerTwo = scoreService.getScorePlayerTwo() ;\n assertThat(scorePlayerTwo, is(expected)) ;\n }", "@Test\n public void repairMultipleTables()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n TableReference tableReference2 = myTableReferenceFactory.forTable(\"test\", \"table2\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n injectRepairHistory(tableReference2, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(4));\n\n schedule(tableReference);\n schedule(tableReference2);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference2, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verifyTableRepairedSince(tableReference2, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "@Test\n public final void testPlayer2Win() {\n checkPlayerWin(player2);\n }", "private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n public void testRoundRobinMasters()\n throws Exception {\n\n RepEnvInfo[] repEnvInfo = null;\n Logger logger = LoggerUtils.getLoggerFixedPrefix(getClass(), \"Test\");\n\n try {\n /* Create a replicator for each environment directory. */\n EnvironmentConfig envConfig =\n RepTestUtils.createEnvConfig\n (new Durability(Durability.SyncPolicy.WRITE_NO_SYNC,\n Durability.SyncPolicy.WRITE_NO_SYNC,\n Durability.ReplicaAckPolicy.SIMPLE_MAJORITY));\n envConfig.setConfigParam\n (EnvironmentConfig.LOG_FILE_MAX,\n EnvironmentParams.LOG_FILE_MAX.getDefault());\n\n // TODO: Is this needed now that hard recovery works?\n LocalCBVLSNUpdater.setSuppressGroupDBUpdates(true);\n envConfig.setConfigParam(\"je.env.runCleaner\", \"false\");\n\n repEnvInfo =\n RepTestUtils.setupEnvInfos(envRoot, nNodes, envConfig);\n\n /* Increase the ack timeout, to deal with slow test machines. */\n RepTestUtils.setConfigParam(RepParams.REPLICA_ACK_TIMEOUT, \"30 s\",\n repEnvInfo);\n\n /* Start all members of the group. */\n ReplicatedEnvironment master = RepTestUtils.joinGroup(repEnvInfo);\n assert(master != null);\n\n /* Do work */\n int startVal = 1;\n doWork(master, startVal);\n\n VLSN commitVLSN =\n RepTestUtils.syncGroupToLastCommit(repEnvInfo,\n repEnvInfo.length);\n RepTestUtils.checkNodeEquality(commitVLSN, verbose , repEnvInfo);\n\n logger.fine(\"--> All nodes in sync\");\n\n /*\n * Round robin through the group, letting each one have a turn\n * as the master.\n */\n for (int i = 0; i < nNodes; i++) {\n /*\n * Shut just under a quorum of the nodes. Let the remaining\n * nodes vote, and then do some work. Then bring\n * the rest of the group back in a staggered fashion. Check for\n * consistency among the entire group.\n */\n logger.fine(\"--> Shutting down, oldMaster=\" +\n master.getNodeName());\n int activeNodes =\n shutdownAllButQuorum(logger,\n repEnvInfo,\n RepInternal.getNodeId(master));\n\n master = RepTestUtils.openRepEnvsJoin(repEnvInfo);\n\n assertNotNull(master);\n logger.fine(\"--> New master = \" + master.getNodeName());\n\n startVal += 5;\n\n /*\n * This test is very timing dependent, so\n * InsufficientReplicasException is allowed.\n */\n int retries = 5;\n for (int retry = 0;; retry++) {\n try{\n doWork(master, startVal);\n break;\n } catch (InsufficientReplicasException e) {\n if (retry >= retries) {\n throw e;\n }\n }\n }\n\n /* Re-open the closed nodes and have them re-join the group. */\n logger.fine(\"--> Before closed nodes rejoin\");\n ReplicatedEnvironment newMaster =\n RepTestUtils.joinGroup(repEnvInfo);\n\n assertEquals(\"Round \" + i +\n \" expected master to stay unchanged. \",\n master.getNodeName(),\n newMaster.getNodeName());\n VLSN vlsn =\n RepTestUtils.syncGroupToLastCommit(repEnvInfo,\n activeNodes);\n RepTestUtils.checkNodeEquality(vlsn, verbose, repEnvInfo);\n }\n } catch (Throwable e) {\n e.printStackTrace();\n throw e;\n } finally {\n RepTestUtils.shutdownRepEnvs(repEnvInfo);\n }\n }", "@Test\n public void repairMultipleTables()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n TableReference tableReference2 = new TableReference(\"ks\", \"tb2\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n injectRepairHistory(tableReference2, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(4));\n createTable(tableReference);\n createTable(tableReference2);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime));\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference2, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verifyTableRepairedSince(tableReference2, startTime);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }", "@Test\n public void testStartInactive() throws Exception {\n // make an inactive manager by deserializing it\n RealManager mgr2 = Serializer.roundTrip(new RealManager(services, params, REQ_ID, workMem));\n mgr = mgr2;\n\n // cannot re-start\n assertThatCode(() -> mgr.start()).isInstanceOf(IllegalStateException.class)\n .hasMessage(\"manager is no longer active\");\n }", "@Test\n public void testReplicatedClient()\n {\n generateEvents(\"repl-client-test\");\n checkEvents(true, false);\n }", "private void testPrimaryChange(ExceptionRunnable topologyChange) throws Exception {\n MagicKey backupKey = new MagicKey(cache(0), cache(1));\n MagicKey nonOwnerKey = new MagicKey(cache(0), cache(2));\n\n // node0 is the primary owner\n assertPrimaryOwner(backupKey, 0);\n tm(0).begin();\n cache(0).put(backupKey, \"value-0\");\n Transaction tx0 = tm(0).suspend();\n\n tm(0).begin();\n advancedCache(0).lock(nonOwnerKey);\n Transaction tx1 = tm(0).suspend();\n\n // expect keys to be locked on primary owner\n assertLocked(0, backupKey);\n assertLocked(0, nonOwnerKey);\n\n // switch primary owner: node1\n factory.setOwnerIndexes(new int[][]{{1, 0}, {1, 0}});\n\n topologyChange.run();\n\n assertPrimaryOwner(backupKey, 1);\n assertPrimaryOwner(nonOwnerKey, 1);\n\n AdvancedCache<Object, Object> zeroTimeoutCache1 = advancedCache(1).withFlags(Flag.ZERO_LOCK_ACQUISITION_TIMEOUT);\n assertPutTimeout(backupKey, zeroTimeoutCache1);\n assertLockTimeout(backupKey, zeroTimeoutCache1);\n assertPutTimeout(nonOwnerKey, zeroTimeoutCache1);\n assertLockTimeout(nonOwnerKey, zeroTimeoutCache1);\n\n tm(0).resume(tx0);\n tm(0).commit();\n\n tm(0).resume(tx1);\n tm(0).commit();\n\n assertEquals(\"value-0\", cache(0).get(backupKey));\n assertEquals(\"value-0\", cache(1).get(backupKey));\n assertNull(cache(0).get(nonOwnerKey));\n assertNull(cache(1).get(nonOwnerKey));\n }", "@Test\n\tpublic void TEAM3_CONTROLLER_UT04() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new HashSet<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tException exceptionThrown = null;\n\t\tboolean schedulesConflict = false;\n\t\ttry {\n\t\t\tschedulesConflict = smc.conflict(twoSchedules);\n\t\t} catch (ClassCastException cce) {\n\t\t\texceptionThrown = cce;\n\t\t}\n\t\t\n\t\tassertNull(exceptionThrown);\n\t\tassertFalse(schedulesConflict);\n\t}", "@Test\n public void testEqual () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(6, 01, 00);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertFalse(s1.equals(s2));\n assertTrue(s1.equals(s4));\n assertFalse(CountDownTimer.equals(s1,s3));\n assertTrue(CountDownTimer.equals(s2, s3));\n }", "public void testDetermineLeagueWinner() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Override\r\n\tpublic void testPrivateBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateBelongsToOtherUser();\r\n\t\t}\r\n\t}", "@Test\n public void testSyncWhenNeedToSyncMacsWithStatefulSnapshotAndRelocate() {\n\n String currentMac1 = \"1\";\n String currentMac2 = \"3\";\n String snapshottedMac1 = \"1\";\n String snapshottedMac2 = \"2\";\n\n String reallocatingMac = \"4\";\n\n VmNic currentNic1 = createNic(currentMac1);\n VmNic currentNic2 = createNic(currentMac2);\n VmNic snapshottedNic1 = createNic(snapshottedMac1);\n VmNic snapshottedNic2 = createNic(snapshottedMac2);\n\n List<String> macsToBeAdded = Collections.singletonList(snapshottedMac2);\n when(macPool.addMacs(macsToBeAdded)).thenReturn(macsToBeAdded);\n when(macPool.allocateNewMac()).thenReturn(reallocatingMac);\n\n createSyncMacsOfDbNicsWithSnapshot(false)\n .sync(Arrays.asList(currentNic1, currentNic2), Arrays.asList(snapshottedNic1, snapshottedNic2));\n\n verify(snapshottedNic2).setMacAddress(reallocatingMac);\n\n verifyMethodCallOn(VmNic::getMacAddress, 1, currentNic1, currentNic2);\n\n //because in reallocation all(in this case) snapshotted nics will be queried again.\n verifyMethodCallOn(VmNic::getMacAddress, 2, snapshottedNic1, snapshottedNic2);\n verify(macPool).allocateNewMac();\n\n verify(macPool).freeMacs(Collections.singletonList(currentMac2));\n\n verify(macPool).addMacs(macsToBeAdded);\n verifyNoMoreInteractionsOn(snapshottedNic1, snapshottedNic2, currentNic1, currentNic2);\n }", "@Test\n public void partialTableRepair()\n {\n long startTime = System.currentTimeMillis();\n long expectedRepairedInterval = startTime - TimeUnit.HOURS.toMillis(1);\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n Set<TokenRange> expectedRepairedBefore = halfOfTokenRanges(tableReference);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(30), expectedRepairedBefore);\n\n Set<TokenRange> allTokenRanges = myMetadata.getTokenRanges(tableReference.getKeyspace(), myLocalHost);\n Set<LongTokenRange> expectedRepairedRanges = Sets.difference(convertTokenRanges(allTokenRanges), convertTokenRanges(expectedRepairedBefore));\n\n createTable(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime, expectedRepairedRanges));\n\n verifyTableRepairedSince(tableReference, expectedRepairedInterval, expectedRepairedRanges);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }", "@Test\n public void testRentApartmentToTenantWhenApartmentAlreadyRented() {\n Mockito.when(iRentalAgreementService.isRentalAgreementInForce(Mockito.any())).thenReturn(Boolean.TRUE);\n\n // Simulate an apartment that is already rented.\n Apartment apartment = Apartment.builder()\n .apartmentNumber(\"2E\")\n .isRented(true)\n .floor(new Floor())\n .build();\n\n RentalTransaction rentalTransaction = propertyRentalService.rentApartmentToTenant(new RentalAgreement(), new UserRecord(), apartment);\n Assert.assertFalse(rentalTransaction.isTransactionSuccessful());\n }", "@Test\r\n\tpublic void testL1IsSubSeqOfL2WithSeveralOccurenceOfOneInL2() {\r\n\t\tl1 = Arrays.asList(2, 4, 5,5,5,5);\r\n\t\tl2 = Arrays.asList(2, 3, 1, 5, 1, 3);\r\n\t\tassertFalse(\"The list L1 is a subseq of L2\", sequencer.subSeq(l1, l2));\r\n\t}", "@Test\n public void partialTableRepair()\n {\n long startTime = System.currentTimeMillis();\n long expectedRepairedInterval = startTime - TimeUnit.HOURS.toMillis(1);\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n Set<TokenRange> expectedRepairedBefore = halfOfTokenRanges(tableReference);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(30),\n expectedRepairedBefore);\n\n Set<TokenRange> allTokenRanges = myMetadata.getTokenRanges(tableReference.getKeyspace(), myLocalHost);\n Set<LongTokenRange> expectedRepairedRanges = Sets.difference(convertTokenRanges(allTokenRanges),\n convertTokenRanges(expectedRepairedBefore));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime, expectedRepairedRanges));\n\n verifyTableRepairedSince(tableReference, expectedRepairedInterval, expectedRepairedRanges);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "boolean checkStability() {\n\r\n for (int roommateIndex = 0; roommateIndex < preferenceA.length - 1; roommateIndex++) {//Iterates through all roommates to check their pair is stable\r\n\r\n int roommate = roommateIndex + 1; //Sets roommate equal to the roommateIndex + 1\r\n int roommatePair = getPairedRoommate(roommate);//roommatePair is set equal to the roommate's pair\r\n\r\n for (int roommatePrefIndex = 0; roommatePrefIndex < preferenceA[roommateIndex].length; roommatePrefIndex++) {//Iterates through roommate's preferences until the loop is broken\r\n\r\n int roommatePref = preferenceA[roommateIndex][roommatePrefIndex];//Sets the roommatePref equal to the roommate's current preference in the preference array\r\n if (roommatePref == roommatePair) //If the roommate's preference is equal to it's pair before it is equal to a roommate that prefers them, then the current roommate is stable\r\n break;\r\n\r\n int roommatePrefPair = getPairedRoommate(roommatePref);//sets roommatePrefPair to the roommate's current preference's paired roommate\r\n for (int roommatePrefPrefIndex = 0; roommatePrefPrefIndex < preferenceA[roommateIndex].length; roommatePrefPrefIndex++) {//Iterates through roommate's current preference's preferences until the loop is broken\r\n\r\n int roommatePrefPref = preferenceA[roommatePref - 1][roommatePrefPrefIndex];//sets roommatePrefPref equal to the roommate's current preference's current preference\r\n if (roommatePrefPref == roommatePrefPair) // if roommatePrefPref is equal to roommatePrefPair then the roommate's current preference does not want to pair with roommate\r\n break;\r\n if (roommatePrefPref == roommate) //if the roommatePrefPref is equal to roommate then the roommate's current preference wants to pair with the roommate, which means the system is unstable\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Test\n public void repairSingleTableInSubRanges()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n when(myTableStorageStates.getDataSize(eq(tableReference))).thenReturn(UnitConverter.toBytes(\"10g\"));\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n createTable(tableReference);\n\n BigInteger numberOfRanges = BigInteger.valueOf(UnitConverter.toBytes(\"10g\")).divide(BigInteger.valueOf(UnitConverter.toBytes(\"100m\"))); // 102\n\n Set<LongTokenRange> expectedRanges = splitTokenRanges(tableReference, numberOfRanges);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime, expectedRanges));\n\n verifyTableRepairedSinceWithSubRangeRepair(tableReference, startTime, expectedRanges);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }", "private void checkForJudgeAndTeam(IInternalContest contest) {\n Account account = contest.getAccounts(ClientType.Type.TEAM).firstElement();\n assertFalse(\"Team account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n \n account = contest.getAccounts(ClientType.Type.JUDGE).firstElement();\n assertFalse(\"Judge account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n Range range0 = Range.ofLength(212L);\n range0.getEnd();\n Range range1 = Range.ofLength(126L);\n Range range2 = range0.intersection(range1);\n assertFalse(range2.isEmpty());\n \n Object object0 = new Object();\n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n long long0 = range0.getEnd();\n assertEquals(211L, long0);\n assertFalse(range0.equals((Object)range2));\n \n long long1 = range1.getBegin();\n assertSame(range1, range2);\n assertEquals(0L, long1);\n }", "@Test\n public void testValiderLaCouvertureDuSoin() {\n \n assertTrue(soin1.validerLaCouvertureDuSoin());\n soin3.setPourcentage(2.0);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n soin3.setPourcentage(-1.1);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n assertTrue(soin2.validerLaCouvertureDuSoin());\n }", "@Test\n\tpublic void acceptingAnOfferRejectsOffersOnSameCar() {\n\t}", "@Test\n void leaveQuiz() throws Exception {\n quizService.JoinQuiz( \"mahnaemehjeff\", \"S3NDB0BSANDV4G3N3\");\n int oldCount = quizService.findById(1L).getParticipants().size();\n\n quizService.LeaveQuiz(\"S3NDB0BSANDV4G3N3\", \"mahnaemehjeff\");\n int newCount = quizService.findById(1L).getParticipants().size();\n\n assertNotEquals(oldCount, newCount);\n }", "@Test\n public void testRwbmInternalBoth()\n {\n generateEvents(\"dist-rwbm-internal-both\");\n checkEvents(true, true);\n }", "@Test\n @SuppressWarnings(\"unchecked\")\n void activation_convergence_considers_actual_version_returned_from_node() {\n var f = StateActivationFixture.withTwoPhaseEnabled();\n var cf = f.cf;\n\n f.ackStateBundleFromBothDistributors();\n\n final var d0ActivateWaiter = ArgumentCaptor.forClass(Communicator.Waiter.class);\n final var d1ActivateWaiter = ArgumentCaptor.forClass(Communicator.Waiter.class);\n\n clusterNodeInfos(cf.cluster(), Node.ofDistributor(0), Node.ofDistributor(1)).forEach(nodeInfo -> {\n verify(f.mockCommunicator).activateClusterStateVersion(eq(123), eq(nodeInfo),\n (nodeInfo.getNodeIndex() == 0 ? d0ActivateWaiter : d1ActivateWaiter).capture());\n });\n\n respondToActivateClusterStateVersion(cf.cluster.getNodeInfo(Node.ofDistributor(0)),\n f.stateBundle, d0ActivateWaiter.getValue());\n // Distributor 1 reports higher actual version, should not cause this version to be\n // considered converged since it's not an exact version match.\n respondToActivateClusterStateVersion(cf.cluster.getNodeInfo(Node.ofDistributor(1)),\n f.stateBundle, 124, d1ActivateWaiter.getValue());\n f.simulateBroadcastTick(cf, 123);\n\n assertNull(f.broadcaster.getLastClusterStateBundleConverged());\n }", "@Test\n public void testRejectTether() throws IOException, InterruptedException {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, null);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n null,\n TetheringConnectionStatus.INACTIVE);\n\n // User rejects tethering\n rejectTethering();\n // Tethering should be deleted\n expectTetheringDeleted(\"xyz\");\n }", "public void testTwoTraversers() {\n List<Schedule> schedules = getSchedules(MockInstantiator.TRAVERSER_NAME1);\n schedules.addAll(getSchedules(MockInstantiator.TRAVERSER_NAME2));\n runWithSchedules(schedules, createMockInstantiator());\n }", "boolean testCounter2(Tester t) {\n\t\treturn t.checkExpect(c1.get(), 0) // Test 1\r\n\t\t\t\t&& t.checkExpect(c2.get(), 2) // Test 2\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 3\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 4\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 5\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 6\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), false); // Test 7\r\n\t}", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "@Test\n public void updateStatusShouldTransitionCancellingReservationToCancelledWhenUpdatedToSucceeded() {\n Reservation reservation = new ReservationFactory().setStatus(ReservationStatus.CANCELLING).create();\n when(reservationRepoMock.getByReservationIdWithPessimisticWriteLock(reservation.getReservationId())).thenReturn(reservation);\n\n subject.updateStatus(reservation.getReservationId(), UpdatedReservationStatus.forNewStatus(ReservationStatus.SUCCEEDED));\n\n assertThat(reservation.getStatus(), is(ReservationStatus.CANCELLED));\n }", "@Test\n\tpublic void testDuringAddConsistency() throws InterruptedException {\n\n\t\tfinal AtomicInteger finishedCount = new AtomicInteger(0);\n\n\t\tcontroller.addNewNodes(1);\n\t\tfinal SignalNode first = controller.getNodesToTest().getFirst();\n\t\tfinal Signal sig = src.next();\n\n\t\tcontroller.addSignalsToNode(first, 1000);\n\n\t\tCountDownLatch newNodeAwaitLatch = new CountDownLatch(1);\n\n\t\tcontroller.getListener().setNewNodeLatch(newNodeAwaitLatch);\n\n\t\tfinal AtomicBoolean mustQuit = new AtomicBoolean(false);\n\n\t\tThread t = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult last = null;\n\t\t\t\twhile (!mustQuit.get()) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResult newResult = first.findSimilarTo(sig);\n\t\t\t\t\t\tif (last != null && !mustQuit.get()) {\n\t\t\t\t\t\t\tAssert.assertEquals(last, newResult);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlast = newResult;\n\n\t\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfinishedCount.incrementAndGet();\n\t\t\t}\n\t\t});\n\n\t\tt.start();\n\n\t\tSignalNode node = controller.getNewSignalNode();\n\t\tfinal SignalNode lastNode = node;\n\t\ttry {\n\t\t\tnode.join(controller.getChannelName());\n\t\t\tcontroller.getNodesToTest().add(node);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tThread t2 = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult last = null;\n\t\t\t\twhile (!mustQuit.get()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResult newResult = lastNode.findSimilarTo(sig);\n\t\t\t\t\t\tif (last != null && !mustQuit.get()) {\n\t\t\t\t\t\t\tAssert.assertEquals(last, newResult);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlast = newResult;\n\n\t\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfinishedCount.incrementAndGet();\n\t\t\t}\n\t\t});\n\n\t\tt2.start();\n\n\t\ttry {\n\t\t\tif (!newNodeAwaitLatch.await(120, TimeUnit.SECONDS)) {\n\t\t\t\tthrow new InterruptedException();\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new RuntimeException(\"Something didn't sync right\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tThread.sleep(5 * 1000);\n\t\t\t\tcontroller.addNewNodes(1);\n\t\t\t\tThread.sleep(5 * 1000);\n\t\t\t\tcontroller.addNewNodes(1);\n\t\t\t\tThread.sleep(5 * 1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"DONE!!! Interrumpting threads! Might show exceptions\");\n\t\t\t\tmustQuit.set(true);\n\t\t\t\tt.interrupt();\n\t\t\t\tt2.interrupt();\n\t\t\t}\n\t\t}\n\n\t\tt.join();\n\t\tt2.join();\n\t\tAssert.assertEquals(2, finishedCount.get());\n\t}", "public boolean doWeHaveSameStops(String corridorA, String corridorB);", "private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n getFinalTasksWithoutParticipant(source,\n ((ChoreographyNodeAdaptor) target).getActiveParticipant());\n if (!nodesWithoutParticipation.isEmpty()) {\n validator.addMessage(\n \"initiatorOfChoreographyActivityNotParticipantInPriorActivity\",\n target, nodesWithoutParticipation);\n }\n }\n }", "@Test\n\tpublic void testPassengerDepartingTwice() throws TrainException\n\t{\n\t\tInteger grossWeight = 1;\n\t\tInteger numberOfSeats = 10;\n\t\tInteger newPassengers = 9;\n\t\tInteger departingPassengers_1 = 3;\n\t\tInteger departingPassengers_2 = 4;\n\t\t\n\t\tasgn2RollingStock.RollingStock passengerCarUnderTest = \n\t\t\tnew asgn2RollingStock.PassengerCar((Integer)grossWeight, (Integer)numberOfSeats);\n\t\t\n\t\t((asgn2RollingStock.PassengerCar)passengerCarUnderTest).board((Integer) newPassengers);\n\t\t\n\t\t((asgn2RollingStock.PassengerCar)passengerCarUnderTest).alight((Integer) departingPassengers_1 );\n\t\t((asgn2RollingStock.PassengerCar)passengerCarUnderTest).alight((Integer) departingPassengers_2 );\n\t\t\n\t\tInteger expectedPassengersOnBoard = newPassengers - departingPassengers_1 - departingPassengers_2;\n\t\t\n\t\tassertEquals(expectedPassengersOnBoard, ((asgn2RollingStock.PassengerCar)passengerCarUnderTest).numberOnBoard());\n\t}", "@Test\n public void repairSingleTableInSubRanges()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n when(mockTableStorageStates.getDataSize(eq(tableReference))).thenReturn(UnitConverter.toBytes(\"10g\"));\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n BigInteger numberOfRanges = BigInteger.valueOf(UnitConverter.toBytes(\"10g\"))\n .divide(BigInteger.valueOf(UnitConverter.toBytes(\"100m\"))); // 102\n\n Set<LongTokenRange> expectedRanges = splitTokenRanges(tableReference, numberOfRanges);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime, expectedRanges));\n\n verifyTableRepairedSinceWithSubRangeRepair(tableReference, startTime, expectedRanges);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "@Test\n public void whenSendOtherMessageThenOracleDontUnderstand() {\n this.testClient(\n Joiner.on(LN).join(\n \"Hello, dear friend, I'm a oracle.\",\n \"\",\n \"I don't understand you.\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n \"Hello oracle\",\n \"How're you?\",\n \"Exit\",\n \"\"\n )\n );\n }", "@Test\r\n\tpublic void testOutgoingFriendRequest() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tp1.nonDatabase = true;\r\n\t\tassertTrue(p1.newOutgoingFriendRequest(\"test\"));\r\n\t\tassertFalse(p1.newOutgoingFriendRequest(\"test\")); // Fail if duplicate\r\n\t}", "@Test\n public void equals_DifferentTimeRangeStart_Test() {\n Assert.assertFalse(bq1.equals(bq3));\n }", "@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }", "public void testClusterJoinDespiteOfPublishingIssues() throws Exception {\n String clusterManagerNode = internalCluster().startClusterManagerOnlyNode();\n String nonClusterManagerNode = internalCluster().startDataOnlyNode();\n\n DiscoveryNodes discoveryNodes = internalCluster().getInstance(ClusterService.class, nonClusterManagerNode).state().nodes();\n\n TransportService clusterManagerTranspotService = internalCluster().getInstance(\n TransportService.class,\n discoveryNodes.getClusterManagerNode().getName()\n );\n\n logger.info(\"blocking requests from non cluster-manager [{}] to cluster-manager [{}]\", nonClusterManagerNode, clusterManagerNode);\n MockTransportService nonClusterManagerTransportService = (MockTransportService) internalCluster().getInstance(\n TransportService.class,\n nonClusterManagerNode\n );\n nonClusterManagerTransportService.addFailToSendNoConnectRule(clusterManagerTranspotService);\n\n assertNoClusterManager(nonClusterManagerNode);\n\n logger.info(\n \"blocking cluster state publishing from cluster-manager [{}] to non cluster-manager [{}]\",\n clusterManagerNode,\n nonClusterManagerNode\n );\n MockTransportService clusterManagerTransportService = (MockTransportService) internalCluster().getInstance(\n TransportService.class,\n clusterManagerNode\n );\n TransportService localTransportService = internalCluster().getInstance(\n TransportService.class,\n discoveryNodes.getLocalNode().getName()\n );\n if (randomBoolean()) {\n clusterManagerTransportService.addFailToSendNoConnectRule(\n localTransportService,\n PublicationTransportHandler.PUBLISH_STATE_ACTION_NAME\n );\n } else {\n clusterManagerTransportService.addFailToSendNoConnectRule(\n localTransportService,\n PublicationTransportHandler.COMMIT_STATE_ACTION_NAME\n );\n }\n\n logger.info(\n \"allowing requests from non cluster-manager [{}] to cluster-manager [{}], waiting for two join request\",\n nonClusterManagerNode,\n clusterManagerNode\n );\n final CountDownLatch countDownLatch = new CountDownLatch(2);\n nonClusterManagerTransportService.addSendBehavior(\n clusterManagerTransportService,\n (connection, requestId, action, request, options) -> {\n if (action.equals(JoinHelper.JOIN_ACTION_NAME)) {\n countDownLatch.countDown();\n }\n connection.sendRequest(requestId, action, request, options);\n }\n );\n\n nonClusterManagerTransportService.addConnectBehavior(clusterManagerTransportService, Transport::openConnection);\n\n countDownLatch.await();\n\n logger.info(\"waiting for cluster to reform\");\n clusterManagerTransportService.clearOutboundRules(localTransportService);\n nonClusterManagerTransportService.clearOutboundRules(localTransportService);\n\n ensureStableCluster(2);\n\n // shutting down the nodes, to avoid the leakage check tripping\n // on the states associated with the commit requests we may have dropped\n internalCluster().stopRandomNonClusterManagerNode();\n }", "@Test\n public void shouldIncrementAndThenReleaseScorePlayerOne() {\n int expected = 0 ;\n scoreService.incrementScorePlayerOne() ;\n scoreService.incrementScorePlayerOne() ;\n scoreService.releaseScores() ;\n int scorePlayerOne = scoreService.getScorePlayerOne() ;\n assertThat(scorePlayerOne, is(expected)) ;\n }", "@Test\n public void stoppedSenderShouldNotAddEventsToTmpDroppedEventsButStillDrainQueuesWhenStarted() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n stopSenderInVMsAsync(\"ny\", vm2, vm4);\n\n vm2.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 0, 100));\n\n // verify tmpDroppedEvents is 0 at site-ny\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n\n\n startSenderInVMsAsync(\"ny\", vm2, vm4);\n\n vm2.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 1000));\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 1000));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 1000));\n\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 900));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 900));\n\n // verify the secondary's queues are drained at site-ny\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "@Test\n @DisplayName(\"Test wrong location proof response\")\n public void proofResponseBadLocation() {\n Record record = new Record(\"client2\", 0, 3, 3);\n InvalidRecordException e = Assertions.assertThrows(InvalidRecordException.class, () -> {\n user1.getListeningService().proveRecord(record);\n });\n Assertions.assertEquals(InvalidRecordException.INVALID_POSITION, e.getMessage());\n }", "@Test\n\tpublic void TEAM3_CONTROLLER_UT03() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2),\n\t\t\t\t\t\t c3 = new ClassDetailsStub(TEST_CONFIG.TueThu);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\ts1.add(c3);\n\t\t\n\t\tArrayList<ClassDetailsStub> s2 = new ArrayList<ClassDetailsStub>();\n\t\ts2.add(c2);\n\t\ts2.add(c3);\n\t\t\n\t\tScheduleMakerController smc = new ScheduleMakerController();\n\t\t\n\t\t// INPUT\n\t\tCollection<ArrayList<ClassDetailsStub>> twoSchedules = new ArrayList<ArrayList<ClassDetailsStub>>();\n\t\ttwoSchedules.add(s1);\n\t\ttwoSchedules.add(s2);\n\t\t\n\t\t// EXPECTED OUTPUT\n\t\tboolean schedulesConflict = smc.conflict(twoSchedules);\n\t\tassertTrue(schedulesConflict);\n\t}", "public static void ensureEquivalent(Message m1, JBossMessage m2) throws JMSException\n {\n assertTrue(m1 != m2);\n \n //Can't compare message id since not set until send\n \n assertEquals(m1.getJMSTimestamp(), m2.getJMSTimestamp());\n \n byte[] corrIDBytes = null;\n String corrIDString = null;\n \n try\n {\n corrIDBytes = m1.getJMSCorrelationIDAsBytes();\n }\n catch(JMSException e)\n {\n // correlation ID specified as String\n corrIDString = m1.getJMSCorrelationID();\n }\n \n if (corrIDBytes != null)\n {\n assertTrue(Arrays.equals(corrIDBytes, m2.getJMSCorrelationIDAsBytes()));\n }\n else if (corrIDString != null)\n {\n assertEquals(corrIDString, m2.getJMSCorrelationID());\n }\n else\n {\n // no correlation id\n \n try\n {\n byte[] corrID2 = m2.getJMSCorrelationIDAsBytes();\n assertNull(corrID2);\n }\n catch(JMSException e)\n {\n // correlatin ID specified as String\n String corrID2 = m2.getJMSCorrelationID();\n assertNull(corrID2);\n }\n }\n assertEquals(m1.getJMSReplyTo(), m2.getJMSReplyTo());\n assertEquals(m1.getJMSDestination(), m2.getJMSDestination());\n assertEquals(m1.getJMSDeliveryMode(), m2.getJMSDeliveryMode());\n //We don't check redelivered since this is always dealt with on the proxy\n assertEquals(m1.getJMSType(), m2.getJMSType());\n assertEquals(m1.getJMSExpiration(), m2.getJMSExpiration());\n assertEquals(m1.getJMSPriority(), m2.getJMSPriority());\n \n int m1PropertyCount = 0, m2PropertyCount = 0;\n for(Enumeration p = m1.getPropertyNames(); p.hasMoreElements(); m1PropertyCount++)\n {\n p.nextElement();\n }\n for(Enumeration p = m2.getPropertyNames(); p.hasMoreElements(); m2PropertyCount++)\n {\n p.nextElement();\n }\n \n assertEquals(m1PropertyCount, m2PropertyCount);\n \n for(Enumeration props = m1.getPropertyNames(); props.hasMoreElements(); )\n {\n boolean found = false;\n \n String name = (String)props.nextElement();\n \n boolean booleanProperty = false;\n try\n {\n booleanProperty = m1.getBooleanProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a boolean\n }\n \n if (found)\n {\n assertEquals(booleanProperty, m2.getBooleanProperty(name));\n continue;\n }\n \n byte byteProperty = 0;\n try\n {\n byteProperty = m1.getByteProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a byte\n }\n \n if (found)\n {\n assertEquals(byteProperty, m2.getByteProperty(name));\n continue;\n }\n \n short shortProperty = 0;\n try\n {\n shortProperty = m1.getShortProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a short\n }\n \n if (found)\n {\n assertEquals(shortProperty, m2.getShortProperty(name));\n continue;\n }\n \n \n int intProperty = 0;\n try\n {\n intProperty = m1.getIntProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a int\n }\n \n if (found)\n {\n assertEquals(intProperty, m2.getIntProperty(name));\n continue;\n }\n \n \n long longProperty = 0;\n try\n {\n longProperty = m1.getLongProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a long\n }\n \n if (found)\n {\n assertEquals(longProperty, m2.getLongProperty(name));\n continue;\n }\n \n \n float floatProperty = 0;\n try\n {\n floatProperty = m1.getFloatProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a float\n }\n \n if (found)\n {\n assertTrue(floatProperty == m2.getFloatProperty(name));\n continue;\n }\n \n double doubleProperty = 0;\n try\n {\n doubleProperty = m1.getDoubleProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a double\n }\n \n if (found)\n {\n assertTrue(doubleProperty == m2.getDoubleProperty(name));\n continue;\n }\n \n String stringProperty = null;\n try\n {\n stringProperty = m1.getStringProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a String\n }\n \n if (found)\n {\n assertEquals(stringProperty, m2.getStringProperty(name));\n continue;\n }\n \n \n fail(\"Cannot identify property \" + name);\n }\n }", "@Test\n public void sameOwnerLevelClosesFirstConsumer() throws InterruptedException {\n // Arrange\n final Semaphore semaphore = new Semaphore(1);\n\n final String lastPartition = \"2\";\n final EventPosition position = EventPosition.fromEnqueuedTime(Instant.now());\n final ReceiveOptions firstReceive = new ReceiveOptions().setOwnerLevel(1L);\n final ReceiveOptions secondReceive = new ReceiveOptions().setOwnerLevel(2L);\n final EventHubConsumerAsyncClient consumer = toClose(builder.prefetchCount(1).buildAsyncConsumerClient());\n\n final AtomicBoolean isActive = new AtomicBoolean(true);\n\n final EventHubProducerAsyncClient producer = toClose(builder.buildAsyncProducerClient());\n toClose(getEvents(isActive)\n .flatMap(event -> producer.send(event, new SendOptions().setPartitionId(lastPartition)))\n .subscribe(sent -> logger.info(\"Event sent.\"),\n error -> {\n logger.error(\"Error sending event\", error);\n Assertions.fail(\"Should not have failed to publish event.\");\n }));\n\n // Act\n logger.info(\"STARTED CONSUMING FROM PARTITION 1\");\n semaphore.acquire();\n\n toClose(consumer.receiveFromPartition(lastPartition, position, firstReceive)\n .filter(event -> TestUtils.isMatchingEvent(event, MESSAGE_TRACKING_ID))\n .subscribe(\n event -> logger.info(\"C1:\\tReceived event sequence: {}\", event.getData().getSequenceNumber()),\n ex -> {\n logger.error(\"C1:\\tERROR\", ex);\n semaphore.release();\n }, () -> {\n logger.info(\"C1:\\tCompleted.\");\n Assertions.fail(\"Should not be hitting this. An error should occur instead.\");\n }));\n\n Thread.sleep(2000);\n\n logger.info(\"STARTED CONSUMING FROM PARTITION 1 with C3\");\n final EventHubConsumerAsyncClient consumer2 = builder.buildAsyncConsumerClient();\n toClose(consumer2);\n toClose(consumer2.receiveFromPartition(lastPartition, position, secondReceive)\n .filter(event -> TestUtils.isMatchingEvent(event, MESSAGE_TRACKING_ID))\n .subscribe(\n event -> logger.info(\"C3:\\tReceived event sequence: {}\", event.getData().getSequenceNumber()),\n ex -> {\n logger.error(\"C3:\\tERROR\", ex);\n Assertions.fail(\"Should not error here\");\n },\n () -> logger.info(\"C3:\\tCompleted.\")));\n\n // Assert\n try {\n Assertions.assertTrue(semaphore.tryAcquire(15, TimeUnit.SECONDS),\n \"The EventHubConsumer was not closed after one with a higher epoch number started.\");\n } finally {\n isActive.set(false);\n }\n }", "@Test\n public void testColocationPartitionedRegionWithRedundancy() throws Throwable {\n\n // Create Cache in all VMs VM0,VM1,VM2,VM3\n createCacheInAllVms();\n\n redundancy = 1;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n // Create Customer PartitionedRegion in All VMs\n regionName = CustomerPartitionedRegionName;\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Customer PartitionedRegion in All VMs\n regionName = OrderPartitionedRegionName;\n colocatedWith = CustomerPartitionedRegionName;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Customer PartitionedRegion in All VMs\n regionName = ShipmentPartitionedRegionName;\n colocatedWith = OrderPartitionedRegionName;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Initial Validation for the number of data stores and number of profiles\n accessor.invoke(() -> PRColocationDUnitTest\n .validateBeforePutCustomerPartitionedRegion(CustomerPartitionedRegionName));\n\n // Put the customer 1-10 in CustomerPartitionedRegion\n accessor.invoke(\n () -> PRColocationDUnitTest.putCustomerPartitionedRegion(CustomerPartitionedRegionName));\n\n // Put the order 1-10 for each Customer in OrderPartitionedRegion\n accessor\n .invoke(() -> PRColocationDUnitTest.putOrderPartitionedRegion(OrderPartitionedRegionName));\n\n // Put the shipment 1-10 for each order in ShipmentPartitionedRegion\n accessor.invoke(\n () -> PRColocationDUnitTest.putShipmentPartitionedRegion(ShipmentPartitionedRegionName));\n\n // This is the importatnt check. Checks that the colocated Customer,Order\n // and Shipment are in the same VM\n accessor.invoke(() -> PRColocationDUnitTest.validateAfterPutPartitionedRegion(\n CustomerPartitionedRegionName, OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM0 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore1 = dataStore1\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM1 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore2 = dataStore2\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM3 Datastore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore3 = dataStore3\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n if (redundancy > 0) {\n // for VM0 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore1.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM1 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore2.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM3 Datastore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore3.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n }\n\n // Check the total number of buckets created in all three Vms are equalto 60\n totalNumBucketsInTest = totalBucketsInDataStore1\n + totalBucketsInDataStore2 + totalBucketsInDataStore3;\n assertEquals(totalNumBucketsInTest, 60);\n }", "@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }", "@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "public void testOverlap() {\n ZoneId tz = ZoneId.of(\"Europe/Rome\");\n long overlapMillis = TimeUnit.HOURS.toMillis(1);\n long firstMidnight = utcTime(\"1978-09-30T22:00:00\");\n long secondMidnight = utcTime(\"1978-09-30T23:00:00\");\n long overlapEnds = utcTime(\"1978-10-01T0:00:00\");\n LocalTimeOffset.Lookup lookup = LocalTimeOffset.lookup(tz, firstMidnight, overlapEnds);\n LocalTimeOffset secondMidnightOffset = lookup.lookup(secondMidnight);\n long localSecondMidnight = secondMidnightOffset.utcToLocalTime(secondMidnight);\n LocalTimeOffset firstMidnightOffset = lookup.lookup(firstMidnight);\n long localFirstMidnight = firstMidnightOffset.utcToLocalTime(firstMidnight);\n assertThat(localSecondMidnight - localFirstMidnight, equalTo(0L));\n assertThat(lookup.lookup(overlapEnds), sameInstance(secondMidnightOffset));\n long localOverlapEnds = secondMidnightOffset.utcToLocalTime(overlapEnds);\n assertThat(localOverlapEnds - localSecondMidnight, equalTo(overlapMillis));\n\n long localOverlappingTime = randomLongBetween(localFirstMidnight, localOverlapEnds);\n\n assertThat(firstMidnightOffset.localToUtcInThisOffset(localFirstMidnight - 1), equalTo(firstMidnight - 1));\n assertThat(secondMidnightOffset.localToUtcInThisOffset(localFirstMidnight - 1), equalTo(secondMidnight - 1));\n assertThat(firstMidnightOffset.localToUtcInThisOffset(localFirstMidnight), equalTo(firstMidnight));\n assertThat(secondMidnightOffset.localToUtcInThisOffset(localFirstMidnight), equalTo(secondMidnight));\n assertThat(secondMidnightOffset.localToUtcInThisOffset(localOverlapEnds), equalTo(overlapEnds));\n assertThat(\n secondMidnightOffset.localToUtcInThisOffset(localOverlappingTime),\n equalTo(firstMidnightOffset.localToUtcInThisOffset(localOverlappingTime) + overlapMillis)\n );\n\n long beforeOverlapValue = randomLong();\n assertThat(\n secondMidnightOffset.localToUtc(localFirstMidnight - 1, useValueForBeforeOverlap(beforeOverlapValue)),\n equalTo(beforeOverlapValue)\n );\n long overlapValue = randomLong();\n assertThat(secondMidnightOffset.localToUtc(localFirstMidnight, useValueForOverlap(overlapValue)), equalTo(overlapValue));\n assertThat(secondMidnightOffset.localToUtc(localOverlapEnds, unusedStrategy()), equalTo(overlapEnds));\n assertThat(secondMidnightOffset.localToUtc(localOverlappingTime, useValueForOverlap(overlapValue)), equalTo(overlapValue));\n }", "@Test\n public void verifyWithVirtualTime() {\n StepVerifier.withVirtualTime(() -> Flux.interval(Duration.ofSeconds(3))\n .take(2)\n .mergeOrderedWith(Flux.just(10L, 11L, 12L), Comparator.naturalOrder())\n );\n\n // FIXME: Using StepVerify fluent API verify elements being emmitted considering time\n // Note: You must first verify subscription.\n }", "@Test\n void checkTheManagerGetAlertAfterOwnerChangeTheBid() {\n String guest= tradingSystem.ConnectSystem().returnConnID();\n tradingSystem.Register(guest, \"Manager2\", \"123\");\n Response res= tradingSystem.Login(guest, \"Manager2\", \"123\");\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,res.returnUserID());\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,4,20,2);\n store.changeSubmissionBid(EuserId,NofetID,4,30,1);\n }", "public void test2_updateSingletonList() {\n ArrayList<Participant> dummyList = new ArrayList<>();\n Participant dummy1 = new Participant(\"UpdateDummy1\");\n Participant dummy2 = new Participant(\"UpdateDummy2\");\n Participant dummy3 = new Participant(\"UpdateDummy3\");\n Participant dummy4 = new Participant(\"UpdateDummy4\");\n\n dummyList.add(dummy1);\n dummyList.add(dummy2);\n dummyList.add(dummy3);\n dummyList.add(dummy4);\n\n // add test users into the server\n apt.execute(dummy1, dummy2, dummy3, dummy4);\n\n // attempt to obtain all of these participants within the singleton list\n ParticipantController.updateSingletonList();\n\n for (Participant found : dummyList) {\n if (instance.getParticipantList().contains(found)) {\n assertTrue(true);\n } else {\n assertTrue(\"Not all found\", false);\n }\n }\n\n\n }", "@Test\n public void pollFailures() {\n addServerRule(SERVERS.PORT_0, new TestRule().always().drop());\n addServerRule(SERVERS.PORT_1, new TestRule().always().drop());\n addServerRule(SERVERS.PORT_2, new TestRule().always().drop());\n\n Set<String> expectedResult = new HashSet<>();\n expectedResult.add(getEndpoint(SERVERS.PORT_0));\n expectedResult.add(getEndpoint(SERVERS.PORT_1));\n expectedResult.add(getEndpoint(SERVERS.PORT_2));\n\n assertThat(failureDetector.poll(layout, corfuRuntime).getChangedNodes())\n .isEqualTo(expectedResult);\n\n /*\n * Restarting the server SERVERS.PORT_0. Pings should work normally now.\n * This is also to demonstrate that we no longer receive the failed\n * nodes' status in the result map for SERVERS.PORT_0.\n */\n\n clearServerRules(SERVERS.PORT_0);\n // Has only SERVERS.PORT_1 & SERVERS.PORT_2\n expectedResult.remove(getEndpoint(SERVERS.PORT_0));\n\n assertThat(failureDetector.poll(layout, corfuRuntime).getChangedNodes())\n .isEqualTo(expectedResult);\n\n }", "@Test\n public void testIsEntityAllowedVlan() throws Exception {\n IAnswer<Boolean> isConsistentAnswer = new IsConsistentAnswer();\n IOFSwitch sw1 = createMock(IOFSwitch.class);\n IOFSwitch sw2 = createMock(IOFSwitch.class);\n ArrayList<ImmutablePort> sw1ports = new ArrayList<ImmutablePort>();\n ArrayList<ImmutablePort> sw2ports = new ArrayList<ImmutablePort>();\n for (int i = 1; i <= 2; i++) {\n ImmutablePort p = (new ImmutablePort.Builder())\n .setName(\"eth\" + i)\n .setPortNumber((short) i)\n .build();\n expect(sw1.getPort(p.getName())).andReturn(p).anyTimes();\n sw1ports.add(p);\n\n p = (new ImmutablePort.Builder())\n .setName(\"eth\" + i)\n .setPortNumber((short) i)\n .build();\n expect(sw2.getPort(p.getName())).andReturn(p).anyTimes();\n sw2ports.add(p);\n }\n // catch-all for ports we haven't specified\n expect(sw1.getPort(EasyMock.anyObject(String.class))).andStubReturn(null);\n expect(sw2.getPort(EasyMock.anyObject(String.class))).andStubReturn(null);\n expect(sw1.getEnabledPorts()).andReturn(sw1ports).anyTimes();\n expect(sw2.getEnabledPorts()).andReturn(sw2ports).anyTimes();\n expect(sw1.getId()).andReturn(1L).anyTimes();\n expect(sw2.getId()).andReturn(2L).anyTimes();\n ConcurrentHashMap<Long, IOFSwitch> switches =\n new ConcurrentHashMap<Long, IOFSwitch>();\n switches.put(1L, sw1);\n switches.put(2L, sw2);\n mockFloodlightProvider.setSwitches(switches);\n\n replay(sw1, sw2);\n\n Entity h1 = new Entity(1L, null, 1, 1L, 1, null);\n Entity h1vlan2 = new Entity(1L, (short) 2, 1, 1L, 1, null);\n Entity h1vlan2sw2 = new Entity(1L, (short) 2, 1, 2L, 1, null);\n Entity h2vlan2 = new Entity(2L, (short) 2, 1, 1L, 1, null);\n Entity[] entities =\n new Entity[] { h1, h1vlan2, h1vlan2sw2, h2vlan2 };\n\n // Test 0\n // no config. All should be allowed\n setupTopology(isConsistentAnswer, true);\n verifyEntityAllowed(new boolean[] { true, true, true, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { true, true, true, true },\n entities,\n \"default\");\n verify(topology);\n\n EnumSet<DeviceField> keyFields =\n EnumSet.of(IDeviceService.DeviceField.VLAN,\n IDeviceService.DeviceField.MAC);\n // Test 1\n // Lock MAC 1 to nonexisting switch/port in AS1 and default. VLAN\n // should be ignored in AS1\n HostSecurityAttachmentPointRow r1 =\n new HostSecurityAttachmentPointRow(\"AS1\",\n null,\n 1L,\n 0xffL,\n \"eth1\",\n keyFields);\n HostSecurityAttachmentPointRow r2 =\n new HostSecurityAttachmentPointRow(\"default\",\n null,\n 1L,\n 0xffL,\n \"eth1\",\n keyFields);\n r1.writeToStorage();\n r2.writeToStorage();\n setupTopology(isConsistentAnswer, true);\n verifyEntityAllowed(new boolean[] { false, false, false, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { false, true, true, true },\n entities,\n \"default\");\n verify(topology);\n\n // Test 2: now lock MAC 1 to sw1-port1\n HostSecurityAttachmentPointRow r3 =\n new HostSecurityAttachmentPointRow(\"AS1\",\n (short) 2,\n 1L,\n 0x1L,\n \"eth1\",\n keyFields);\n HostSecurityAttachmentPointRow r4 =\n new HostSecurityAttachmentPointRow(\"default\",\n (short) 2,\n 1L,\n 0x1L,\n \"eth1\",\n keyFields);\n r3.writeToStorage();\n r4.writeToStorage();\n setupTopology(isConsistentAnswer, true);\n verifyEntityAllowed(new boolean[] { false, false, false, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { false, true, false, true },\n entities,\n \"default\");\n verify(topology);\n\n // Clear storage\n r1.removeFromStorage();\n r2.removeFromStorage();\n r3.removeFromStorage();\n r4.removeFromStorage();\n\n String hostBaseUrl = REST_URL + \"/core/device\";\n\n // Test 3: Lock IP1 to MAC 2\n HostSecurityIpAddressRow ipRow1 =\n new HostSecurityIpAddressRow(\"AS1\", null, 2L, 1, keyFields);\n HostSecurityIpAddressRow ipRow2 =\n new HostSecurityIpAddressRow(\"default\",\n null,\n 2L,\n 1,\n keyFields);\n ipRow1.writeToStorage();\n ipRow2.writeToStorage();\n verifyEntityAllowed(new boolean[] { false, false, false, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { false, false, false, false },\n entities,\n \"default\");\n verify(topology);\n\n // Test 4: same as Test3 plus add: Lock IP1 to MAC 2, VLAN 2\n // Not setting for AS1 since using non-default AS + vlan is illegal\n HostSecurityIpAddressRow ipRow3 =\n new HostSecurityIpAddressRow(\"default\",\n (short) 2,\n 2L,\n 1,\n keyFields);\n ipRow3.writeToStorage();\n verifyEntityAllowed(new boolean[] { false, false, false, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { false, false, false, true },\n entities,\n \"default\");\n verify(topology);\n\n // Test 5: Same as Test 4: add: Lock IP1 to MAC 1\n HostSecurityIpAddressRow ipRow4 =\n new HostSecurityIpAddressRow(\"AS1\", null, 1L, 1, keyFields);\n HostSecurityIpAddressRow ipRow5 =\n new HostSecurityIpAddressRow(\"default\",\n null,\n 1L,\n 1,\n keyFields);\n ipRow4.writeToStorage();\n ipRow5.writeToStorage();\n verifyEntityAllowed(new boolean[] { true, true, true, true },\n entities,\n \"AS1\");\n verifyEntityAllowed(new boolean[] { true, false, false, true },\n entities,\n \"default\");\n verify(topology);\n\n verify(sw1, sw2);\n }", "public void testGetMultiplicity_1_accuracy() {\n instance.setMultiplicity(multiplicity);\n assertTrue(\"The multiplicity is not set properly.\", multiplicity == instance.getMultiplicity());\n }", "public void testAddReplicaWhileWritesBlocked() throws Exception {\n final String primaryNode = internalCluster().startNode();\n createIndex(INDEX_NAME);\n ensureYellowAndNoInitializingShards(INDEX_NAME);\n final String replicaNode = internalCluster().startNode();\n ensureGreen(INDEX_NAME);\n\n final IndexShard primaryShard = getIndexShard(primaryNode, INDEX_NAME);\n final List<String> replicaNodes = new ArrayList<>();\n replicaNodes.add(replicaNode);\n assertEqualSegmentInfosVersion(replicaNodes, primaryShard);\n\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicInteger totalDocs = new AtomicInteger(0);\n try (final Releasable ignored = blockReplication(replicaNodes, latch)) {\n Thread indexingThread = new Thread(() -> { totalDocs.getAndSet(indexUntilCheckpointCount()); });\n indexingThread.start();\n indexingThread.join();\n latch.await();\n indexDoc();\n totalDocs.incrementAndGet();\n refresh(INDEX_NAME);\n // index again while we are stale.\n assertBusy(() -> {\n expectThrows(OpenSearchRejectedExecutionException.class, () -> {\n indexDoc();\n totalDocs.incrementAndGet();\n });\n });\n final String replica_2 = internalCluster().startNode();\n assertAcked(\n client().admin()\n .indices()\n .prepareUpdateSettings(INDEX_NAME)\n .setSettings(Settings.builder().put(SETTING_NUMBER_OF_REPLICAS, 2))\n );\n replicaNodes.add(replica_2);\n }\n ensureGreen(INDEX_NAME);\n waitForSearchableDocs(totalDocs.get(), replicaNodes);\n refresh(INDEX_NAME);\n // wait for the replicas to catch up after block is released.\n assertReplicaCheckpointUpdated(primaryShard);\n\n // index another doc showing there is no pressure enforced.\n indexDoc();\n refresh(INDEX_NAME);\n waitForSearchableDocs(totalDocs.incrementAndGet(), replicaNodes.toArray(new String[] {}));\n verifyStoreContent();\n }" ]
[ "0.7148094", "0.62977785", "0.60073555", "0.5832797", "0.58194464", "0.5722439", "0.56724745", "0.56455225", "0.5612578", "0.5588795", "0.55638313", "0.55404013", "0.55199873", "0.5515967", "0.5507796", "0.55032575", "0.5472647", "0.5467155", "0.5458796", "0.54184407", "0.5406095", "0.5404881", "0.53880876", "0.5377233", "0.5368813", "0.53505313", "0.53398645", "0.53227574", "0.53142184", "0.5298312", "0.528921", "0.52776825", "0.5267637", "0.52502346", "0.5246583", "0.52353567", "0.5228932", "0.52286994", "0.5227491", "0.5216508", "0.52081686", "0.51961535", "0.51844954", "0.518366", "0.51826197", "0.51814747", "0.5180218", "0.51798123", "0.51782846", "0.5173245", "0.51699775", "0.5165382", "0.5149098", "0.5135431", "0.513495", "0.51310146", "0.5124071", "0.5116302", "0.51157326", "0.5114095", "0.510934", "0.509217", "0.5090246", "0.508654", "0.5078394", "0.5076772", "0.5068848", "0.50668234", "0.50466555", "0.50410676", "0.50328976", "0.5032517", "0.5030646", "0.50262916", "0.50227463", "0.50195646", "0.50177306", "0.50149703", "0.5004561", "0.5003437", "0.50034106", "0.500171", "0.49999776", "0.4995339", "0.499052", "0.49902725", "0.4977582", "0.49739903", "0.49720433", "0.4971413", "0.4968655", "0.49660587", "0.49640808", "0.49640644", "0.49637425", "0.49634016", "0.49622685", "0.49614525", "0.49613416", "0.49589747" ]
0.7050354
1
Test that there is a mismatch between two participants.
@Test public void participantsWithMismatchTest() throws Exception { List<ClusterParticipant> participants = new ArrayList<>(); // create a latch with init value = 2 and add it to second participant. This latch will count down under certain condition CountDownLatch invocationLatch = new CountDownLatch(3); MockClusterParticipant participant1 = new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, null); MockClusterParticipant participant2 = new MockClusterParticipant(new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), null, null, invocationLatch); participants.add(participant1); participants.add(participant2); clusterAgentsFactory.setClusterParticipants(participants); AmbryServer server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time); server.startup(); // initially, two participants have consistent sealed/stopped replicas. Verify that: // 1. checker is instantiated 2. no mismatch event is emitted. assertNotNull("The mismatch metric should be created", server.getServerMetrics().sealedReplicasMismatchCount); assertNotNull("The mismatch metric should be created", server.getServerMetrics().partiallySealedReplicasMismatchCount); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().sealedReplicasMismatchCount.getCount()); assertEquals("Sealed replicas mismatch count should be 0", 0, server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount()); assertEquals("Stopped replicas mismatch count should be 0", 0, server.getServerMetrics().stoppedReplicasMismatchCount.getCount()); // induce mismatch for sealed and stopped replica list // add 1 sealed replica to participant1 ReplicaId mockReplica1 = Mockito.mock(ReplicaId.class); when(mockReplica1.getReplicaPath()).thenReturn("12"); participant1.setReplicaSealedState(mockReplica1, ReplicaSealStatus.SEALED); // add 1 stopped replica to participant2 ReplicaId mockReplica2 = Mockito.mock(ReplicaId.class); when(mockReplica2.getReplicaPath()).thenReturn("4"); participant2.setReplicaStoppedState(Collections.singletonList(mockReplica2), true); // add 1 partially sealed replica to participant2 ReplicaId mockReplica3 = Mockito.mock(ReplicaId.class); when(mockReplica2.getReplicaPath()).thenReturn("5"); participant2.setReplicaSealedState(mockReplica3, ReplicaSealStatus.PARTIALLY_SEALED); assertTrue("The latch didn't count to zero within 5 secs", invocationLatch.await(5, TimeUnit.SECONDS)); assertTrue("Sealed replicas mismatch count should be non-zero", server.getServerMetrics().sealedReplicasMismatchCount.getCount() > 0); assertTrue("Partially sealed replicas mismatch count should be non-zero", server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount() > 0); assertTrue("Stopped replicas mismatch count should be non-zero", server.getServerMetrics().stoppedReplicasMismatchCount.getCount() > 0); server.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testDetermineMatchWinner2() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\r\n\tpublic void testDetermineMatchWinner1() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\n public void participantsWithNoMismatchTest() throws Exception {\n List<String> sealedReplicas = new ArrayList<>(Arrays.asList(\"10\", \"1\", \"4\"));\n List<String> stoppedReplicas = new ArrayList<>();\n List<String> partiallySealedReplicas = new ArrayList<>();\n List<ClusterParticipant> participants = new ArrayList<>();\n // create a latch with init value = 2 to ensure both getSealedReplicas and getStoppedReplicas get called at least once\n CountDownLatch invocationLatch = new CountDownLatch(2);\n MockClusterParticipant participant1 =\n new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, invocationLatch, null,\n null);\n MockClusterParticipant participant2 =\n new MockClusterParticipant(sealedReplicas, partiallySealedReplicas, stoppedReplicas, null, null, null);\n participants.add(participant1);\n participants.add(participant2);\n clusterAgentsFactory.setClusterParticipants(participants);\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertTrue(\"The latch didn't count to zero within 5 secs\", invocationLatch.await(5, TimeUnit.SECONDS));\n // verify that: 1. checker is instantiated 2.no mismatch event is emitted.\n assertNotNull(\"The mismatch metric should be created\",\n server.getServerMetrics().sealedReplicasMismatchCount);\n assertNotNull(\"The partial seal mismatch metric should be created\",\n server.getServerMetrics().partiallySealedReplicasMismatchCount);\n assertEquals(\"Sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().sealedReplicasMismatchCount.getCount());\n assertEquals(\"Partially sealed replicas mismatch count should be 0\", 0,\n server.getServerMetrics().partiallySealedReplicasMismatchCount.getCount());\n assertEquals(\"Stopped replicas mismatch count should be 0\", 0,\n server.getServerMetrics().stoppedReplicasMismatchCount.getCount());\n server.shutdown();\n }", "public void testDetermineLeagueWinner() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}", "@Test\r\n\tpublic void testSenderAndReceiverAccountNumberSame() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Invalid_Sender_And_Receiver_AccountNumber\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testCheckConflictOverlappingTimes() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC226\", \"Discrete Math\", \"001\", 3, \"sesmith5\", 12, \"MW\", 1445, 1545);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"MW 2:45PM-3:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "public void test1_CheckUniqueParticipant() {\n if (!ParticipantController.checkUniqueParticipant(\"ControllerTest\")) {\n assertTrue(true);\n } else {\n assertTrue(\"Fail\", false);\n }\n\n // should not find participant else fail\n if (ParticipantController.checkUniqueParticipant(\"ControllerTestDummy\")) {\n assertTrue(true);\n } else {\n assertTrue(\"Fail\", false);\n }\n }", "@Test\n void verschillendeTelefoonNrsHebbenVerschillendeNummersBis() {\n assertThat( nummer1.getNummer() ).isNotEqualTo( nummer2.getNummer() );\n }", "@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "@Test\r\n public void ObjectsAreNotTheSame() {\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n Assert.assertNotSame(try_scorers ,try_scorers.updateGamesPlayed(4),\"The Objects are the same\"); \r\n \r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void updateParticipantRegistrationGetParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException, DatatypeConfigurationException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse updateResponse = getUpdateParticipantResponse(SUCCESS);\n final CaaersServiceResponse getResponse = getParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(updateResponse).anyTimes();\n EasyMock.expect(wsClient.getParticipant((String) EasyMock.anyObject())).andReturn(getResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "@Test\n @DisplayName(\"Test wrong location proof response\")\n public void proofResponseBadLocation() {\n Record record = new Record(\"client2\", 0, 3, 3);\n InvalidRecordException e = Assertions.assertThrows(InvalidRecordException.class, () -> {\n user1.getListeningService().proveRecord(record);\n });\n Assertions.assertEquals(InvalidRecordException.INVALID_POSITION, e.getMessage());\n }", "@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"[email protected]\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch2() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "@Test\n @DisplayName(\"Test far Id proof response\")\n public void proofResponseFarId() {\n Record record = new Record(\"client3\", 0, 10, 10);\n InvalidRecordException e = Assertions.assertThrows(InvalidRecordException.class, () -> {\n user1.getListeningService().proveRecord(record);\n });\n Assertions.assertEquals(InvalidRecordException.TOO_FAR, e.getMessage());\n }", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}", "@Test\r\n\tpublic void testEndMatchToMatchLeaguePlayMatch2() {\n\t\tassertTrue(\"Error storing end stock data\", false);\r\n\t\t//Check that portfolio values have been calculated correctly\r\n\t\tassertTrue(\"Error calcuating final portfolio values\", false);\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void updateParticipantRegistrationFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException, DatatypeConfigurationException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse updateParticipantResponse = getUpdateParticipantResponse(FAILURE);\n final CaaersServiceResponse getParticipantResponse = getParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(updateParticipantResponse)\n .anyTimes();\n EasyMock.expect(wsClient.getParticipant((String) EasyMock.anyObject())).andReturn(getParticipantResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "@Test\n public final void testPlayer2Win() {\n checkPlayerWin(player2);\n }", "@Test\n public void testValidateDuplicateAccountsDifferentAccount() {\n // Same account\n Long accountId = 123l;\n BankAccount bankAccountRequest = new BankAccountImpl();\n bankAccountRequest.setAccountId(accountId);\n Locale locale = Locale.getDefault();\n ErrorMessageResponse errorMessageResponse = new ErrorMessageResponse();\n List<BankAccount> bankAccountList = new ArrayList<>();\n\n // ACCOUNT HELD BY DIFFERENT CUSTOMER\n BankAccount bankAccount = new BankAccountImpl();\n bankAccount.setAccountId(accountId);\n bankAccount.setActivatedDate(new Date());\n bankAccountList.add(bankAccount);\n\n // Older activation means it will not be first in the list\n bankAccount = new BankAccountImpl();\n bankAccount.setAccountId(12345l);\n bankAccount.setActivatedDate(new Date(new Date().getTime() - 1000));\n bankAccountList.add(bankAccount);\n\n BankHelper\n .validateDuplicateAccounts(bankAccountRequest, locale, errorMessageResponse, bankAccountList, account);\n assertTrue(errorMessageResponse.hasErrors());\n }", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "@Test\r\n\tpublic void testEndMatchToMatchLeaguePlayMatch1() {\n\t\tassertTrue(\"Error storing end stock data\", false);\r\n\t\t//Check that portfolio values have been calculated correctly\r\n\t\tassertTrue(\"Error calcuating final portfolio values\", false);\r\n\t}", "private void checkForJudgeAndTeam(IInternalContest contest) {\n Account account = contest.getAccounts(ClientType.Type.TEAM).firstElement();\n assertFalse(\"Team account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n \n account = contest.getAccounts(ClientType.Type.JUDGE).firstElement();\n assertFalse(\"Judge account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n\n }", "@Test\n public void equals_DifferentUserId_Test() {\n Assert.assertFalse(bq1.equals(bq2));\n }", "@Test(description = \"Verify node's update reject request with the same responsible for different matching \"\n + \"node_type+External ID (Negative)\", groups = \"smoke\")\n public void updateRegisteredNodeWithSameResponsibleForDifferentMatchingTest() {\n AccountEntity cameraResponsible = new AccountEntityManager().createAccountEntity();\n Response cameraResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(cameraResponsible);\n Integer cameraResponsibleId = getAccountId(cameraResponsibleResponse);\n\n //Create responsible for airsensor\n AccountEntity airsensorResponsible = new AccountEntityManager().createAccountEntity();\n Response airsensorResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(airsensorResponsible);\n Integer airsensorResponsibleId = getAccountId(airsensorResponsibleResponse);\n\n //LWA Camera registration\n LightWeightAccount.Node node = createDefaultNode();\n\n LightWeightAccount lwa = createDefaultLightWeightAccount(node)\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa).then().statusCode(200);\n\n //LWA Airsensor registration\n LightWeightAccount.Node node2 = createDefaultNode()\n .setNodeType(\"AIRSENSOR\")\n .setAttributes(new HashMap<String, Object>() {{\n put(\"msisdn\", \"value1\");\n put(\"oem\", \"11\");\n put(\"location\", \"12356\");\n put(\"model\", \"1234\");\n }});\n\n LightWeightAccount lwa2 = createDefaultLightWeightAccount(node2)\n .setResponsibleId(airsensorResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa2).then().statusCode(200);\n\n //Update camera with same responsible\n LightWeightAccount lwaCameraUpdated = new LightWeightAccount()\n .setExternalId(lwa.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(node.getNodeType()));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaCameraUpdated).then().statusCode(428);\n\n //Update airsensor with new responsible\n LightWeightAccount lwaAirsensorUpdated = new LightWeightAccount()\n .setExternalId(lwa2.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(\"AIRSENSOR\"));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaAirsensorUpdated).then().statusCode(200);\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch1() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackUpdateRegisterParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getUpdateParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "public void testUnmatchedPassword() {\n\n // unmatched length\n boolean test1 = UserService.checkPasswordMatch(\"password123\", \"ppassword123\");\n assertFalse(test1);\n\n boolean test2 = UserService.checkPasswordMatch(\"ppassword123\", \"password123\");\n assertFalse(test2);\n\n // unmatched number\n boolean test3 = UserService.checkPasswordMatch(\"password123\", \"password124\");\n assertFalse(test3);\n\n // unmatched letter (case sensitive)\n boolean test4 = UserService.checkPasswordMatch(\"123password\", \"123Password\");\n assertFalse(test4);\n\n // unmatched letter\n boolean test5 = UserService.checkPasswordMatch(\"123password\", \"123passward\");\n assertFalse(test5);\n\n // unmatched letter/number\n boolean test6 = UserService.checkPasswordMatch(\"123password\", \"12password3\");\n assertFalse(test6);\n }", "@Test\n\tpublic void test_equals2() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(521,\"Joe Tsonga\");\n\tassertFalse(c1.equals(c2));\n }", "@Test\n public void testEqualsReturnsFalseOnDifferentIdVal() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n }", "public static void ensureEquivalent(Message m1, JBossMessage m2) throws JMSException\n {\n assertTrue(m1 != m2);\n \n //Can't compare message id since not set until send\n \n assertEquals(m1.getJMSTimestamp(), m2.getJMSTimestamp());\n \n byte[] corrIDBytes = null;\n String corrIDString = null;\n \n try\n {\n corrIDBytes = m1.getJMSCorrelationIDAsBytes();\n }\n catch(JMSException e)\n {\n // correlation ID specified as String\n corrIDString = m1.getJMSCorrelationID();\n }\n \n if (corrIDBytes != null)\n {\n assertTrue(Arrays.equals(corrIDBytes, m2.getJMSCorrelationIDAsBytes()));\n }\n else if (corrIDString != null)\n {\n assertEquals(corrIDString, m2.getJMSCorrelationID());\n }\n else\n {\n // no correlation id\n \n try\n {\n byte[] corrID2 = m2.getJMSCorrelationIDAsBytes();\n assertNull(corrID2);\n }\n catch(JMSException e)\n {\n // correlatin ID specified as String\n String corrID2 = m2.getJMSCorrelationID();\n assertNull(corrID2);\n }\n }\n assertEquals(m1.getJMSReplyTo(), m2.getJMSReplyTo());\n assertEquals(m1.getJMSDestination(), m2.getJMSDestination());\n assertEquals(m1.getJMSDeliveryMode(), m2.getJMSDeliveryMode());\n //We don't check redelivered since this is always dealt with on the proxy\n assertEquals(m1.getJMSType(), m2.getJMSType());\n assertEquals(m1.getJMSExpiration(), m2.getJMSExpiration());\n assertEquals(m1.getJMSPriority(), m2.getJMSPriority());\n \n int m1PropertyCount = 0, m2PropertyCount = 0;\n for(Enumeration p = m1.getPropertyNames(); p.hasMoreElements(); m1PropertyCount++)\n {\n p.nextElement();\n }\n for(Enumeration p = m2.getPropertyNames(); p.hasMoreElements(); m2PropertyCount++)\n {\n p.nextElement();\n }\n \n assertEquals(m1PropertyCount, m2PropertyCount);\n \n for(Enumeration props = m1.getPropertyNames(); props.hasMoreElements(); )\n {\n boolean found = false;\n \n String name = (String)props.nextElement();\n \n boolean booleanProperty = false;\n try\n {\n booleanProperty = m1.getBooleanProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a boolean\n }\n \n if (found)\n {\n assertEquals(booleanProperty, m2.getBooleanProperty(name));\n continue;\n }\n \n byte byteProperty = 0;\n try\n {\n byteProperty = m1.getByteProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a byte\n }\n \n if (found)\n {\n assertEquals(byteProperty, m2.getByteProperty(name));\n continue;\n }\n \n short shortProperty = 0;\n try\n {\n shortProperty = m1.getShortProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a short\n }\n \n if (found)\n {\n assertEquals(shortProperty, m2.getShortProperty(name));\n continue;\n }\n \n \n int intProperty = 0;\n try\n {\n intProperty = m1.getIntProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a int\n }\n \n if (found)\n {\n assertEquals(intProperty, m2.getIntProperty(name));\n continue;\n }\n \n \n long longProperty = 0;\n try\n {\n longProperty = m1.getLongProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a long\n }\n \n if (found)\n {\n assertEquals(longProperty, m2.getLongProperty(name));\n continue;\n }\n \n \n float floatProperty = 0;\n try\n {\n floatProperty = m1.getFloatProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a float\n }\n \n if (found)\n {\n assertTrue(floatProperty == m2.getFloatProperty(name));\n continue;\n }\n \n double doubleProperty = 0;\n try\n {\n doubleProperty = m1.getDoubleProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a double\n }\n \n if (found)\n {\n assertTrue(doubleProperty == m2.getDoubleProperty(name));\n continue;\n }\n \n String stringProperty = null;\n try\n {\n stringProperty = m1.getStringProperty(name);\n found = true;\n }\n catch(JMSException e)\n {\n // not a String\n }\n \n if (found)\n {\n assertEquals(stringProperty, m2.getStringProperty(name));\n continue;\n }\n \n \n fail(\"Cannot identify property \" + name);\n }\n }", "@Test @SpecAssertion(id = \"432-A2\", section=\"4.3.2\")\n public void testConversionComparedWithRate(){\n Assert.fail();\n }", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "@Test(priority=1)\n\tpublic void verifyPasswordsMatch() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterPassword(\"abcd\");\n\t\tsignup.reenterPassword(\"1235\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }", "@Test\n void compareTo_MatchButModifying_NameAndAddress()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.no, AnswerType.no, ContactMatchType.MatchButModifying);\n }", "@Test\n void compareTo_NoMatch_AllParts() {\n runIsMatchTest(AnswerType.no, AnswerType.no, AnswerType.no, AnswerType.no, ContactMatchType.NoMatch);\n }", "public Optional<String> assertNodeEqual(DataFlowNode exp, DataFlowNode res) {\n List<DataFlowEdge> expIn = exp.getIn();\n List<DataFlowEdge> resIn = res.getIn();\n String message =\n !(exp.getName().equals(res.getName())) ? \"Names are not equal of expected node \" + exp.getName() + \" and result node \" + res.getName() : null;\n message = (message == null && expIn.size() != resIn.size())\n ? \"number of incoming edges not equal expected \" + expIn.size() + \" but was \" + resIn.size() + \" for expected node \" + exp + \" and resultNode \" + res\n : message;\n for (int i = 0; i < expIn.size() && message == null; i++) {\n String edgeMessage = assertEdgeEqual(expIn.get(0), resIn.get(0));\n if (edgeMessage != null) {\n message = \"Incoming edges not equal of expected node \" + exp + \" and result node \" + res + \": \" + edgeMessage;\n }\n }\n\n List<DataFlowEdge> expOut = exp.getOut();\n List<DataFlowEdge> resOut = res.getOut();\n message = (message == null && expOut.size() != resOut.size()) ? \"number of outgoing edges not equal for expected node \" + exp + \" and resultNode \" + res\n : message;\n for (int i = 0; i < expOut.size() && message == null; i++) {\n String edgeMessage = assertEdgeEqual(expOut.get(0), resOut.get(0));\n if (edgeMessage != null) {\n message = \"Outgoing edges not equal of expected node \" + exp + \" and result node \" + res + \": \" + edgeMessage;\n }\n }\n\n if (message == null) {\n String s = \"Owner not equal for node \" + exp.getName() + \" expected \" + exp.getOwner() + \" but was \" + res.getOwner();\n if (exp.getOwner().isPresent() && res.getOwner().isPresent()) {\n if (!Objects.equal(exp.getOwner().get().getName(), res.getOwner().get().getName()) || //\n !(exp.getOwner().get().getClass().equals(res.getOwner().get().getClass()))) {\n message = s;\n }\n } else if (exp.getOwner().isPresent() != res.getOwner().isPresent()) {\n message = s;\n }\n }\n\n if (message == null && !exp.getRepresentedNode().equals(res.getRepresentedNode())) {\n message = \"RepresentedNode not equal for node \" + exp.getName() + \" expected \" + exp.getRepresentedNode() + \" (\" + exp.getRepresentedNode().getClass()\n + \")\" + \" but was \" + res.getRepresentedNode() + \" (\" + res.getRepresentedNode().getClass() + \")\";\n }\n\n return Optional.ofNullable(message);\n }", "private static void assertEqual(ReviewFeedback first, ReviewFeedback other) {\n\t\tassertEquals(\"The result should be correct.\", first.getCreateUser(),\n\t\t\t\tother.getCreateUser());\n\t\tassertEquals(\"The result should be correct.\", first.getProjectId(),\n\t\t\t\tother.getProjectId());\n\t\tassertEquals(\"The result should be correct.\", first.getComment(),\n\t\t\t\tother.getComment());\n\t\tassertEquals(\"The result should be correct.\", first.getId(),\n\t\t\t\tother.getId());\n\t\tassertEquals(\"The result should be correct.\",\n\t\t\t\tfirst.getDetails().size(), other.getDetails().size());\n\t\tComparator<ReviewFeedbackDetail> comparator = new Comparator<ReviewFeedbackDetail>() {\n\t\t\tpublic int compare(ReviewFeedbackDetail o1, ReviewFeedbackDetail o2) {\n\t\t\t\treturn o1.getFeedbackText().hashCode()\n\t\t\t\t\t\t- o2.getFeedbackText().hashCode();\n\t\t\t}\n\t\t};\n\t\tCollections.sort(first.getDetails(), comparator);\n\t\tCollections.sort(other.getDetails(), comparator);\n\t\tfor (int i = 0; i < first.getDetails().size(); i++) {\n\t\t\tassertEquals(\"The result should be correct.\", first.getDetails()\n\t\t\t\t\t.get(i).getReviewerUserId(), other.getDetails().get(i)\n\t\t\t\t\t.getReviewerUserId());\n\t\t\tassertEquals(\"The result should be correct.\", first.getDetails()\n\t\t\t\t\t.get(i).getScore(), other.getDetails().get(i).getScore());\n\t\t\tassertEquals(\"The result should be correct.\", first.getDetails()\n\t\t\t\t\t.get(i).getFeedbackText(), other.getDetails().get(i)\n\t\t\t\t\t.getFeedbackText());\n\t\t}\n\t}", "@Test\n\tpublic void testCheckCoflictOneDay() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MWF\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TWH\", 1330, 1445);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MWF 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"TWH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}", "@Test\r\n\tpublic void testCreateMatchToMatchLeaguePlayGame() {\n\t\tassertTrue(\"New match to match league play game not created\", false);\r\n\t\tassertTrue(false);\r\n\t}", "@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }", "@Test\n public void testSendMessage()\n {\n System.out.println(\"sendMessage\");\n Account sender = new Account(\"Henk\");\n String message = \"Test\";\n Party instance = new Party(sender);\n boolean expResult = true;\n boolean result = instance.sendMessage(sender, message);\n assertEquals(\"The message gave a 'not send' answer.\", expResult, result);\n ArrayList<Message> chat = instance.getChat();\n boolean result2 = false;\n for (Message chatMessage : chat)\n {\n if (chatMessage.getText().equals(message))\n {\n result2 = true;\n break;\n }\n }\n assertEquals(\"The message isn't in the chat.\", expResult, result2);\n }", "public double calculateExpectedDisagreement();", "@Test\n public void testImpossible1TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.transferMoney(user.getPassport(), acc.getRequisites(), user.getPassport(), acc2.getRequisites(), 100), is(false));\n }", "@Test\n public void testAndConjunctionInvalidValidations() {\n final String anotherMessage = \"This is also invalid\";\n Validation<Pv> anotherInvalid = (pv) -> Result.failure(anotherMessage);\n\n Validation<Pv> conjunction = anotherInvalid.and(invalidResult);\n Result<Pv, String> result = conjunction.validate(new Pv());\n\n assertThat(result.isFailure(), is(true));\n assertThat(result.failure().get(), is(anotherMessage));\n }", "@Test\n void joinQuiz() throws Exception {\n int oldCount = quizService.findById(1L).getParticipants().size();\n quizService.JoinQuiz(\"mahnaemehjeff\", \"S3NDB0BSANDV4G3N3\");\n int newCount = quizService.findById(1L).getParticipants().size();\n\n assertNotEquals(oldCount, newCount);\n }", "@Order(2)\n\t\t@Test\n\t\tpublic void listExistingMessagesBetweenNonExistentUsers() throws IOException {\n\t\t\tboolean result = Requests.listMessagesBoolReturn(INVALID_USER_ID, INVALID_USER_ID);\n\t\t\tassertTrue(result);\n\t\t}", "@Test\n void test001_addValidFriendshipFor2BuddiesInNetwork() {\n\n try {\n christmasBuddENetwork.addFriendship(\"santa\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\");\n christmasBuddENetwork.addFriendship(\"comet\", \"santa\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"comet\");\n\n\n // no exception should be thrown because this is a different network:\n lonelERedNosedRudolphNetwork.addFriendship(\"santa\", \"grinch\");\n // adding another friendship to the different network\n lonelERedNosedRudolphNetwork.addFriendship(\"blitzen\", \"donder\");\n // the lonelERedNosedRudolphNetwork should have 4 buddEs: santa, grinch,\n // blitzen, and donder\n Set<User> lonelERudolphSet = lonelERedNosedRudolphNetwork.getAllUsers();\n int numLonelERudolphBuddEs = lonelERudolphSet.size();\n if (numLonelERudolphBuddEs != 4) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 4 for the # of BuddEs in the \"\n + \"lonelERedNosedRudolphNetwork but instead returned: \"\n + numLonelERudolphBuddEs);\n }\n // we should see that blitzen and donder each just have 1 buddE in the\n // lonelERedNosedRudolphNetwork:\n lonelERedNosedRudolphNetwork.setCentralUser(\"blitzen\");\n User centralUserBlitzen = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> blitzensFriends = centralUserBlitzen.getFriends();\n int numFriendsOfBlitzen = blitzensFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfBlitzen != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Blitzen has (Donder) and \"\n + \"instead returned: \" + numFriendsOfBlitzen);\n }\n for (User i : blitzensFriends)\n\n if ((!i.getName().equals(\"donder\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Blitzens buddE list is NOT correct\");\n\n }\n\n lonelERedNosedRudolphNetwork.setCentralUser(\"donder\");\n User centralUserDonder = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> dondersFriends = centralUserDonder.getFriends();\n int numFriendsOfDonder = dondersFriends.size(); // please note this should\n // be 1\n\n if (numFriendsOfDonder != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Donder has (Blitzen) and \"\n + \"instead returned: \" + numFriendsOfDonder);\n }\n\n for (User i : dondersFriends) {\n if ((!i.getName().equals(\"blitzen\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Donders buddE list is NOT correct\");\n\n }\n }\n\n\n\n // ensuring we have added all 5 buddEs to the christmasBuddENetwork\n // because addFriendship should do\n // this :)\n // we should have 5 buddEs: santa, grinch, rudolph, comet, and prancer in\n // the network\n Set<User> allChristmasBuddEsSet = christmasBuddENetwork.getAllUsers();\n int numOfBuddEs = allChristmasBuddEsSet.size();\n if (numOfBuddEs != 5) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 5 for the # of BuddEs in the christmasBuddENetwork \"\n + \"but instead returned: \" + numOfBuddEs);\n }\n\n // checking Santa's friendships:\n // Santa's friends: grinch, rudolph, and comet (3 friends)\n christmasBuddENetwork.setCentralUser(\"santa\");\n User centralUserSanta = christmasBuddENetwork.getCentralUser();\n Set<User> santasFriends = centralUserSanta.getFriends();\n int numFriendsOfSanta = santasFriends.size(); // please note this should\n // be 3\n\n if (numFriendsOfSanta != 3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 3 for the # of friends Santa has (Grinch, Rudolph, \"\n + \"and Comet) and instead returned: \" + numFriendsOfSanta);\n }\n\n ArrayList<String> santaBudsList = new ArrayList<String>();\n for (User i : santasFriends) {\n santaBudsList.add(i.getName());\n }\n\n if ((!santaBudsList.contains(\"grinch\"))\n || (!santaBudsList.contains(\"comet\"))\n || (!santaBudsList.contains(\"rudolph\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Santas buddE list is NOT correct\");\n\n }\n\n // checking Grinch's friendships:\n // we should have 2 friends: santa and prancer\n christmasBuddENetwork.setCentralUser(\"grinch\");\n User centralUserGrinch = christmasBuddENetwork.getCentralUser();\n Set<User> grinchsFriends = centralUserGrinch.getFriends();\n int numFriendsOfGrinch = grinchsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfGrinch != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of friends Grinch has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfGrinch);\n }\n\n ArrayList<String> grinchBudsList = new ArrayList<String>();\n for (User i : grinchsFriends) {\n grinchBudsList.add(i.getName());\n }\n\n\n if ((!grinchBudsList.contains(\"santa\"))\n || (!grinchBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Grinchs buddE list is NOT correct\");\n\n }\n\n // checking Comet's friendships:\n // Comet's friends: Santa and Prancer (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"comet\");\n User centralUserComet = christmasBuddENetwork.getCentralUser();\n Set<User> cometsFriends = centralUserComet.getFriends();\n int numFriendsOfComet = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfComet != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Comet has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfComet);\n }\n\n ArrayList<String> cometBudsList = new ArrayList<String>();\n for (User i : cometsFriends) {\n cometBudsList.add(i.getName());\n }\n\n if ((!cometBudsList.contains(\"santa\"))\n || (!cometBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Comets buddE list is NOT correct\");\n\n }\n\n // checking Prancer's friendships:\n // Prancer's friends: Grinch and Comet (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"prancer\");\n User centralUserPrancer = christmasBuddENetwork.getCentralUser();\n Set<User> prancersFriends = centralUserPrancer.getFriends();\n int numFriendsOfPrancer = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfPrancer != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Prancer has (Grinch \"\n + \"and Comet) and instead returned: \" + numFriendsOfPrancer);\n }\n\n ArrayList<String> prancerBudsList = new ArrayList<String>();\n for (User i : prancersFriends) {\n prancerBudsList.add(i.getName());\n }\n\n if ((!prancerBudsList.contains(\"grinch\"))\n || (!prancerBudsList.contains(\"comet\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Prancers buddE list is NOT correct\");\n }\n\n // checking Rudolph's friendships:\n // Rudolph's friends: Santa (1 buddE)\n christmasBuddENetwork.setCentralUser(\"rudolph\");\n User centralUserRudolph = christmasBuddENetwork.getCentralUser();\n Set<User> rudolphsFriends = centralUserRudolph.getFriends();\n int numFriendsOfRudolph = rudolphsFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfRudolph != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Red-Nose reindeer Rudolph has \"\n + \"(Santa) and instead returned: \" + numFriendsOfRudolph);\n }\n\n ArrayList<String> rudolphBudsList = new ArrayList<String>();\n for (User i : rudolphsFriends) {\n rudolphBudsList.add(i.getName());\n }\n\n\n if ((!rudolphBudsList.contains(\"santa\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Rudolphs buddE list is NOT correct\");\n }\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an IllegalNullArgumentException when trying to add a valid \"\n + \"friendship!\");\n } catch (UserNotFoundException e2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"a UserNotFoundException when trying to add a valid friendship!\");\n } catch (Exception e3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an Exception when trying to add a valid friendship!\");\n }\n\n\n\n // please see if Grinch is in this set\n\n\n }", "@Test\n void leaveQuiz() throws Exception {\n quizService.JoinQuiz( \"mahnaemehjeff\", \"S3NDB0BSANDV4G3N3\");\n int oldCount = quizService.findById(1L).getParticipants().size();\n\n quizService.LeaveQuiz(\"S3NDB0BSANDV4G3N3\", \"mahnaemehjeff\");\n int newCount = quizService.findById(1L).getParticipants().size();\n\n assertNotEquals(oldCount, newCount);\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackRegisterParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getDeleteParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.deleteParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "@Test\n \tpublic void testNotEqual() {\n \t\tAssert.assertFalse(f1.equals(f2));\n \t}", "public boolean testVerify(Synth synth2, String key, Object obj1, Object obj2)\n {\n return false;\n }", "@Test(expected=UnautorizedPlayersMatchException.class)\n\tpublic void testPlayException() {\n\t\tMatch match = new Match();\n\t\tCompetitor competitor = new Competitor(\"Abitbol\");\n\t\tmatch.setPlayer1(competitor);\n\t\tmatch.setPlayer2(competitor);\n\t\t\n\t\tmatch.play();\n\t}", "@Order(1)\n\t\t@Test\n\t\tpublic void sendMessageInvalidFromAndTo() throws IOException, ParseException {\n\t\t\t boolean response = Requests.createMessageBoolReturn(JSONUtils.createMessageObject(INVALID_USER_ID, INVALID_USER_ID, \"Test message\"));\n\t\t\t assertFalse(response);\n\t\t\t \n\t\t\t \n\t\t}", "@Test\n\tpublic void testNotEqualsPersonalData() {\n\t\tSystem.out.println(\"starting testNotEqualsPersonalData()\");\n\t\tPersonalData personalData1 = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tPersonalData personalData2 = new PersonalData(\"Kevin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertFalse (\"personalData1 NOT equals personalData2\", personalData1.equals(personalData2));\n\t System.out.println(\"testNotEqualsPersonalData PASSED\");\t\t\n\t}", "@Test\r\n\tpublic void testOutgoingFriendRequest() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tp1.nonDatabase = true;\r\n\t\tassertTrue(p1.newOutgoingFriendRequest(\"test\"));\r\n\t\tassertFalse(p1.newOutgoingFriendRequest(\"test\")); // Fail if duplicate\r\n\t}", "@Test\r\n public void testCreatePopularTour_sameTours() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}", "boolean isMismatch(double score);", "@Test\n\tpublic void testUnmatchingPasswordNegative2() {\n\t\tfillSignUpForm(\"marius\",\"voda\",\"[email protected]\",\"Parola123\",\"PaR0la123\",\"socialNetworks\");\n\t\tassertEquals(\"Passwords must match\", driver.findElement(By.cssSelector(\"#sign-up-confirm-password-div > app-form-control-error-message > em > span\")).getText());\n\t}", "@Test\n public void testDoubleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,1, 1,1,1,0};\n final int expectedErrorIndex = ResponseCode.TWO_ERRORS.code;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }", "private void verifyExchange(Scenario scenario, long time, long timeStep) {\r\n\t\tfor(ElementImpl e1 : scenario.getElements()) {\r\n\t\t\tfor(ElementImpl e2 : scenario.getElements()) {\r\n\t\t\t\tResource e12 = e1.getNetExchange(e2, timeStep);\r\n\t\t\t\tResource e21 = e2.getNetExchange(e1, timeStep);\r\n\r\n\t\t\t\tif(!e12.equals(e21.negate())) {\r\n\t\t\t\t\tlogger.warn(\"@ t = \" + time + \": Unbalanced resource exchange: \" + \r\n\t\t\t\t\t\t\te1.getName() + \"<->\" + e2.getName() + \", delta=\" +\r\n\t\t\t\t\t\t\te12.add(e21) + \", error=\" + (e12.add(e21)).safeDivide(e12));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testReceiverAccountNumberLength() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(\"56789054\");\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Invalid_Sender_And_Receiver_AccountNumber\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Test\n public void testValidateShouldNotThrowExceptionWhenNeitherOfTheValidatorsThrowException() throws MapValidationException {\n underTest.validate(MAP_VO);\n\n // then\n verify(validator1).validate(MAP_VO);\n verify(validator2).validate(MAP_VO);\n }", "@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "public void forgotPasswordValidate()\r\n\t{\n\t\tString expectedMessage = \"An email with a confirmation link has been sent your email address.\";\r\n\t\tString actualMessage=this.forgotPasswordSuccessMessage.getText();\r\n\t\tAssert.assertEquals(expectedMessage,actualMessage);\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void transferBetweenTwoAccountsMustBelongToSameOwner() {\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, \"owner1\");\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, \"owner2\");\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void registerParticipantFailure() throws IntegrationException, SOAPFaultException, MalformedURLException,\n JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getRegisterParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.createParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }", "public void testGetProblemRejectReason_accuracy() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(null);\r\n assertEquals(\"The method getProblemRejectReason does not function correctly.\", null,\r\n exception.getProblemRejectReason());\r\n exception = new RejectReasonNotFoundException(null, null, reason);\r\n assertEquals(\"The method getProblemRejectReason does not function correctly.\", reason,\r\n exception.getProblemRejectReason());\r\n }", "@Test\n public void consistencyCheckerDisabledTest() throws Exception {\n // 1. only one participant, consistency checker should be disabled\n AmbryServer server =\n new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n // 2. there are two participants but period of checker is zero, consistency checker should be disabled.\n props.setProperty(\"server.participants.consistency.checker.period.sec\", Long.toString(0L));\n List<ClusterParticipant> participants = new ArrayList<>();\n for (int i = 0; i < 2; ++i) {\n participants.add(\n new MockClusterParticipant(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), null,\n null, null));\n }\n clusterAgentsFactory.setClusterParticipants(participants);\n server = new AmbryServer(new VerifiableProperties(props), clusterAgentsFactory, notificationSystem, time);\n server.startup();\n assertNull(\"The mismatch metric should not be created\", server.getServerMetrics().stoppedReplicasMismatchCount);\n server.shutdown();\n }", "@Test\r\n\tpublic void equalsTest() throws Exception {\r\n\t\t\r\n\t\tUMLMessageArgument msgArg1 = new UMLMessageArgument(\"name1\",\"datatype1\",\"initVal\",false);\r\n\t\tUMLMessageArgument msgArg2 = new UMLMessageArgument(\"name1\",\"datatype1\",\"initVal\",false);\r\n\t\tUMLMessageArgument msgArg3 = new UMLMessageArgument(\"name1\",\"datatype1\",\"initVal\",false);\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\t// vary the datatype\r\n\t\tmsgArg2.setDataType(\"datatype2\");\r\n\t\tassertFalse(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\tmsgArg2.setDataType(\"datatype1\");\r\n\t\tassertTrue(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\t// vary the name\r\n\t\tmsgArg2.setName(\"name2\");\r\n\t\tassertFalse(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\tmsgArg2.setName(\"name1\");\r\n\t\tassertTrue(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\t// vary the initial value\r\n\t\tmsgArg2.setInitializedTo(\"initVal2\");\r\n\t\tassertFalse(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\tmsgArg2.setInitializedTo(\"initVal\");\r\n\t\tassertTrue(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\t// vary the variable arguments flag\r\n\t\tmsgArg2.setHasVarArgs(true);\r\n\t\tassertFalse(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\tmsgArg2.setHasVarArgs(false);\r\n\t\tassertTrue(msgArg1.equals(msgArg2));\r\n\t\tassertEqualsTest(msgArg1,msgArg2,msgArg3);\r\n\t\t\r\n\t\t// verify that IllegalArgumentException is detected\r\n\t\tObject o = new Object();\r\n\t\tException ee = null; \r\n\t\ttry {\r\n\t\t\tassertFalse(msgArg1.equals(o));\r\n\t\t}catch(Exception e) {\r\n\t\t\tee = e;\r\n\t\t}\r\n\t\tassertNull(ee);\r\n\t\t\r\n\t\t// verify that IllegalArgumentException is detected\r\n\t\tException ee2 = null;\r\n\t\tUMLSymbol umlSymbol = new UMLActor(\"1\",\"2\", new UMLSequenceDiagram());\r\n\t\ttry {\r\n\t\t\tassertFalse(msgArg1.equals(umlSymbol));\r\n\t\t}catch(Exception e) {\r\n\t\t\tee2 = e;\r\n\t\t}\r\n\t\tassertNull(ee2);\r\n\t}", "@Test\n public void testEquals() {\n assertTrue(chatMessage.equals(chatMessage));\n assertFalse(chatMessage.equals(new ChatMessage(author, \"JaJa!\")));\n assertFalse(chatMessage.equals(new ChatMessage(\"Javache\", text)));\n assertFalse(chatMessage.equals(new ChatMessage(\"Javache\", \"JaJa!\")));\n }", "@Test\n public void authenticateTestFailure2() {\n DatabaseTest.setupDevice();\n Device device = new Device(DatabaseTest.DEVICE_ID, \"other_token\");\n assertFalse(device.authenticate());\n DatabaseTest.cleanDatabase();\n }", "@Test\n public void testImpossible2TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n assertThat(bank.transferMoney(user.getPassport(), \"0000 0000 0000 0000\", user.getPassport(), acc.getRequisites(), 100), is(false));\n }", "@SmallTest\n @Test\n public void testNegotiationFailedInvalidResponse() {\n testStartNegotiation();\n\n // Received something other than the probe; it should be ignored\n mDtmfTransport.onDtmfReceived('1');\n // Super short message.\n mDtmfTransport.onDtmfReceived('A');\n mDtmfTransport.onDtmfReceived('D');\n\n verify(mCallback).onNegotiationFailed(eq(mDtmfTransport));\n }", "@Test\n\tpublic void testUnmatchingPasswordNegative1() {\n\t\tfillSignUpForm(\"marius\",\"voda\",\"[email protected]\",\"Parola123\",\"parola123\",\"socialNetworks\");\n\t\tassertEquals(\"Passwords must match\", driver.findElement(By.cssSelector(\"#sign-up-confirm-password-div > app-form-control-error-message > em > span\")).getText());\n\t}", "@Test\n public void testAmountLeftToPay() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getAmountLeftToPay(), results.getAmountLeftToPay(), 0.15);\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "@Test\n void compareTo_PotentialMatch_OnlyNameMatches()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.no, AnswerType.no, AnswerType.no, ContactMatchType.PotentialMatch);\n }", "@Test\r\n\tpublic void testConfirmFriendRequest() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tp1.receiveFriendRequest(\"JavaLord\", \"JavaLordDisplayName\");\r\n\t\tassertTrue(p1.hasFriendRequest(\"JavaLord\"));\r\n\t\tp1.confirmFriendRequest(\"JavaLord\");\r\n\t\tassertFalse(p1.hasFriendRequest(\"JavaLord\"));\r\n\t}", "public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }", "@Test\n public void testGetOtherPlayer2Player() {\n Player p = new Player();\n Player p2 = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n pL.add(p2);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n\n Player l = j.getOtherPlayer(p);\n\n assertEquals(\"Le player ne devrai pas etre le même que celui mis dans la fonction\", p2, l);\n }", "@Test\r\n\tpublic void testTournamentTurnsConditions() {\r\n\t\tassertTrue(cl.checkTournamentTurnsConditions(Integer.parseInt(tags[8])));\r\n\t\tassertFalse(cl.checkTournamentTurnsConditions(Integer.parseInt(tags2[8])));\r\n\t}", "public static void massertEqual(Object a, Object b, String pfmessg, Object... pfargs)\r\n\t{\r\n\t\tif(!a.equals(b))\r\n\t\t{\r\n\t\t\tObject[] vargar = new Object[pfargs.length+2];\r\n\t\t\t\r\n\t\t\tvargar[0] = a; \r\n\t\t\tvargar[1] = b;\r\n\t\t\t\r\n\t\t\tfor(int i : Util.range(pfargs.length))\r\n\t\t\t\t{ vargar[i+2] = pfargs[i]; }\r\n\t\t\t\r\n\t\t\tthrow new RuntimeException(\"\\nEquality Assertion failed: \" + sprintf(pfmessg, vargar));\t\t\t\r\n\t\t}\r\n\t}", "@Test\n public void equals_DifferentTimeRangeEnd_Test() {\n Assert.assertFalse(bq1.equals(bq4));\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"[email protected]\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test\r\n\tpublic void testL1IsSubSeqOfL2WithAnELementNotInL2() {\r\n\t\tl1 = Arrays.asList(2, 4, 5);\r\n\t\tl2 = Arrays.asList(2, 3, 1, 5, 1, 3);\r\n\t\tassertTrue(\"The list L1 is a subseq of L2\", sequencer.subSeq(l1, l2));\r\n\t}", "@Test\r\n\tpublic void testL1IsSubSeqOfL2WithOneELementNotInL2() {\r\n\t\tl1 = Arrays.asList(2, 4, 5);\r\n\t\tl2 = Arrays.asList(2, 3, 1, 4, 1, 3);\r\n\t\tassertTrue(\"The list L1 is a subseq of L2\",\r\n\t\t\t\tsequencer.subSeq(l1, l2));\r\n\t}", "@Test (expected = IllegalArgumentException.class)\r\n\tpublic void testInvalid2ConsultPatientFile() {\r\n\t\tsessionController.login(testC1Doctor1, getCampus(0));\r\n\t\tdoctorController.consultPatientFile(new Patient(\"Sally\"));\r\n\t}", "@Ignore\n @Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetFalse() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertFalse(john.equals(snow));\n }", "@Test(expected = AccountNotFoundException.class)\npublic void testValidateAccount() throws AccountNotFoundException {\n List<Account> accounts = new ArrayList<>();\n Account account = new Account();\n account.setAccountId(1,\"4\");\n accounts.add(account);\n\n Account capturedAccount = sut.validateAccount(accounts,1);\n\n assertSame(account,capturedAccount);\n\n}", "@Test\n public void testEPPNThenTwo() throws Exception {\n UserMultiID umk = createUMK(getRandomString());\n UserMultiID eppnKey = new UserMultiID(umk.getEppn());\n UserMultiID umk2 = new UserMultiID(umk.getEppn(), umk.getEptid());\n User user = testOneThenTwoIds(eppnKey, umk2);\n user = getUserStore().get(user.getIdentifier());\n assert user.getePPN().equals(umk2.getEppn());\n assert user.getePTID().equals(umk2.getEptid());\n\n }", "@Test\n public void equals2() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 1);\n SmartPlayer y = new SmartPlayer(0, 2);\n assertFalse(x.equals(y));\n }", "@Test\n public void testAndConjunctionValidFollowedByInvalid() {\n Validation<Pv> conjunction = validResult.and(invalidResult);\n Result<Pv, String> result = conjunction.validate(new Pv());\n\n assertThat(result.isFailure(), is(true));\n assertThat(result.failure().get(), is(message));\n }", "@Test\n public void equals_DifferentTimeRangeStart_Test() {\n Assert.assertFalse(bq1.equals(bq3));\n }", "@Test\n\tvoid testTwoPlayers() {\n\t\tGameLogic gameLogic = configureGetMarriedStateTestGameLogic();\n\t\t\n\t\tPlayer currentPlayerUnderTest = gameLogic.getCurrentPlayer();\n\t\tassertEquals(MaritalStatus.Single, currentPlayerUnderTest.getMaritalStatus());\t\t\n\t\t\n\t\tcurrentPlayerUnderTest.setCurrentLocation(new BoardLocation(PRIOR_TILE_LOCATION));\n\t\t\n\t\tint playerUnderTestInitialBalance = currentPlayerUnderTest.getCurrentMoney();\n\t\tint marriageGuestInitialBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney();\n\t\t\n\t\t// Mock messages to logic, performing pathChoiceState functionality\n LifeGameMessage messageToLogic = new LifeGameMessage(LifeGameMessageTypes.SpinResponse);\n LifeGameMessage messageFromLogic = gameLogic.handleInput(messageToLogic);\n\n\t\tassertEquals(LifeGameMessageTypes.SpinResult, messageFromLogic.getLifeGameMessageType(),\"Expected message not received\");\n\t\tLifeGameMessage spinMessage = new LifeGameMessage(LifeGameMessageTypes.AckResponse);\n\t\tmessageFromLogic = gameLogic.handleInput(spinMessage);\n\n // Now the current player is on the GetMarriedTile - other players have to be queried to spin\n assertEquals(LifeGameMessageTypes.SpinRequest, messageFromLogic.getLifeGameMessageType());\n \n // Provide mock UI response\n messageToLogic = new LifeGameMessage(LifeGameMessageTypes.SpinResponse);\n messageFromLogic = gameLogic.handleInput(messageToLogic);\n\n assertEquals(LifeGameMessageTypes.SpinResult, messageFromLogic.getLifeGameMessageType(),\"Expected message not received\");\n spinMessage = new LifeGameMessage(LifeGameMessageTypes.AckResponse);\n messageFromLogic = gameLogic.handleInput(spinMessage);\n \n // Assert the current player is still the same, and they are being asked to spin again\n assertEquals(LifeGameMessageTypes.SpinRequest, messageFromLogic.getLifeGameMessageType());\n assertEquals(gameLogic.getCurrentPlayer().getPlayerNumber(), currentPlayerUnderTest.getPlayerNumber());\n \n // Assert the player's marital status has been correctly updated\n assertEquals(MaritalStatus.Married, currentPlayerUnderTest.getMaritalStatus());\n \n /* Assert that the current player's money has increased by either the odd amount or even amount, \n * and that the other player(s) were deducted the same amount\n */\n int currentBalance = gameLogic.getCurrentPlayer().getCurrentMoney();\n \n if(currentBalance == playerUnderTestInitialBalance + GameConfig.get_married_even_payment) {\n \t// Ensure the other player's balance was decremented by the same amount\n \tint marriageGuestCurrentBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney(); \t\n \tint marriageGuestBalanceDelta = marriageGuestInitialBalance - marriageGuestCurrentBalance;\n \tassertEquals(GameConfig.get_married_even_payment, marriageGuestBalanceDelta);\n }\n else if(currentBalance == playerUnderTestInitialBalance + GameConfig.get_married_odd_payment) {\n \t// Ensure the other player's balance was decremented by the same amount\n \tint marriageGuestCurrentBalance = gameLogic.getPlayerByIndex(1).getCurrentMoney(); \t\n \tint marriageGuestBalanceDelta = marriageGuestInitialBalance - marriageGuestCurrentBalance;\n \tassertEquals(GameConfig.get_married_odd_payment, marriageGuestBalanceDelta);\n }\n else {\n \tint invalidBalanceDelta = currentBalance - playerUnderTestInitialBalance; \t\n \tfail(\"Player's balance was changed by an invalid amount (\" + invalidBalanceDelta + \") when they got married.\");\n }\n\n\t}", "@Test\r\n\tpublic void testReceiverAccountNumberPattern() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(\"*654rt\");\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Invalid_Sender_And_Receiver_AccountNumber\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}" ]
[ "0.70904917", "0.6919199", "0.6473029", "0.6408751", "0.6162918", "0.61459875", "0.61055297", "0.60932434", "0.6079809", "0.6065695", "0.6040791", "0.5995711", "0.5961303", "0.5954422", "0.5942899", "0.59379613", "0.59019494", "0.58751816", "0.58529145", "0.58444315", "0.5830349", "0.5794461", "0.57904196", "0.57879543", "0.5767851", "0.57673275", "0.57651824", "0.5697368", "0.56874204", "0.5678157", "0.567339", "0.5651398", "0.56361127", "0.56158835", "0.56145597", "0.5580296", "0.5574976", "0.55612504", "0.5560947", "0.5542924", "0.5539059", "0.5536141", "0.5522041", "0.5508097", "0.5501773", "0.55000013", "0.54935795", "0.5491369", "0.5488223", "0.54834634", "0.5478157", "0.546861", "0.5456001", "0.5451409", "0.54456806", "0.542042", "0.54175675", "0.5415968", "0.5411838", "0.5392153", "0.538811", "0.53832823", "0.53792375", "0.53640044", "0.53636926", "0.53627855", "0.5362645", "0.53624266", "0.5361171", "0.5359068", "0.5339609", "0.53336704", "0.53274906", "0.5319973", "0.53165764", "0.5314913", "0.531249", "0.5310139", "0.5305265", "0.530471", "0.53014314", "0.52978516", "0.5297494", "0.5296684", "0.5294499", "0.5291728", "0.52825654", "0.5274381", "0.5270223", "0.52699375", "0.52697", "0.5267277", "0.52654874", "0.52643967", "0.5263264", "0.52612406", "0.5255176", "0.5254427", "0.52543753", "0.5252378" ]
0.62491673
4
send timing headers just before the body is emitted
protected void finish() { writerServerTimingHeader(); try { // maybe nobody ever call getOutputStream() or getWriter() if (bufferedOutputStream != null) { // make sure the writer flushes everything to the underlying output stream if (bufferedWriter != null) { bufferedWriter.flush(); } // send the buffered response to the client bufferedOutputStream.writeBufferTo(getResponse().getOutputStream()); } } catch (IOException e) { throw new IllegalStateException("Could not flush response buffer", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushHeader() {\r\n\t\t//resetBuffer();\r\n\t\tif (sc_status == 0) {\r\n\t\t\tsetStatus(200);\r\n\t\t}\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n StringBuffer headerVal = new StringBuffer();\r\n headerVal.append(request.getProtocol() + \" \" + sc_status + \" \" + HttpResponse.getStatusMessage(sc_status) + \"\\r\\n\");\r\n// System.out.println(\"1st line:\" + headerVal.toString());\r\n headerVal.append(\"Date: \" + dateFormat.format(new Date()) + \"\\r\\n\");\r\n for (String headerName : headersMap.keySet()) {\r\n headerVal.append(headerName + \": \" + headersMap.get(headerName).get(0) + \"\\r\\n\");\r\n }\r\n //System.out.println(\"IF request.hasSession? \" + request.hasSession());\r\n if (request.hasSession() && request.getSession().isNew()) {\r\n \tServletEngine.deleteInvalidatedSession();\r\n \tHttpServletSessionM sessionM = (HttpServletSessionM) request.getSession(false);\r\n \tCookie sessionCookie = new Cookie(\"sessionId\", sessionM.getId());\r\n \t\r\n \t//HttpSession calExpireTime = request.getSession(false);\r\n \tint maxAge = (int) ((sessionM.getLastAccessedTime() - new Date().getTime())/1000 + sessionM.getMaxInactiveInterval());\r\n \t//maxAge = maxAge/1000;\r\n \tsessionCookie.setMaxAge(maxAge*60);\r\n// \tif (!sessionM.isValid()) {\r\n// \t\tSystem.out.println(\"Here the session is invaid\");\r\n// \t\tsessionCookie.setMaxAge(0);\r\n// \t}\r\n \theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(sessionCookie)).append(\"\\r\\n\");\r\n }\r\n if (cookies.size() > 0) {\r\n \tfor (Cookie cur : cookies) {\r\n \t\theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(cur)).append(\"\\r\\n\");\r\n \t}\r\n }\r\n \r\n headerVal.append(\"Content-Length: \" + buffer.getContentLength() + \"\\r\\n\");\r\n //System.out.println(\"buffer.getContentLength:\" + buffer.getContentLength());\r\n headerVal.append(\"Content-Type: \" + contentType + \"\\r\\n\");\r\n headerVal.append(\"Content-Encoding: \" + encoding + \"\\r\\n\");\r\n headerVal.append(\"Connection: close\\r\\n\\r\\n\");\r\n //System.out.println(headerVal.toString());\r\n try {\r\n\t\t\tout.write(headerVal.toString().getBytes());\r\n\t\t\tout.flush();\r\n\t\t\tisCommitted = true;\r\n\t\t\t//System.out.println(\"flushed \");\r\n\t\t} catch (IOException e) {\r\n\t\t\tLogRecorder.addErrorMessage(e, \"cannot write or flush\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void getResponseHeadersTimesOut() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n stream.readTimeout().timeout(500, TimeUnit.MILLISECONDS);\n long startNanos = System.nanoTime();\n try {\n stream.takeHeaders();\n Assert.fail();\n } catch (InterruptedIOException expected) {\n }\n long elapsedNanos = (System.nanoTime()) - startNanos;\n awaitWatchdogIdle();\n /* 200ms delta */\n Assert.assertEquals(500.0, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200.0);\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n Assert.assertEquals(TYPE_RST_STREAM, peer.takeFrame().type);\n }", "private synchronized void create_head(){\n\t\t// Take current time\n\t\thead_time = System.currentTimeMillis();\n\t\tdouble lcl_head_time = head_time/1000.0;\n\t\tString time = Double.toString(lcl_head_time);\n\t\t \n\t\theader.append(\"protocol: 1\\n\");\n\t\theader.append(\"experiment-id: \" + oml_exp_id + \"\\n\");\n\t\theader.append(\"start_time: \" + time + \"\\n\");\n\t\theader.append(\"sender-id: \" + oml_name + \"-sender\\n\");\n\t\theader.append(\"app-name: \" + oml_app_name + \"\\n\");\n\t}", "@Test\n public void serverFinishesStreamWithHeaders() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"headers\", \"bam\"));\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), false);\n connection.writePingAndAwaitPong();\n Assert.assertEquals(Headers.of(\"headers\", \"bam\"), stream.takeHeaders());\n Assert.assertEquals(Util.EMPTY_HEADERS, stream.trailers());\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"a\", \"artichaut\"), synStream.headerBlock);\n }", "@Test\n public void serverWritesTrailersWithData() throws Exception {\n peer.setClient(true);\n // Write the mocking script.\n peer.sendFrame().settings(new Settings());\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"client\", \"abc\"));\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// HEADERS STREAM 3\n\n peer.acceptFrame();// DATA STREAM 3 \"abcde\"\n\n peer.acceptFrame();// HEADERS STREAM 3\n\n peer.play();\n // Play it back.\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"android\"), true);\n stream.enqueueTrailers(Headers.of(\"foo\", \"bar\"));\n BufferedSink sink = Okio.buffer(stream.getSink());\n sink.writeUtf8(\"abcdefghi\");\n sink.close();\n // Verify the peer received what was expected.\n MockHttp2Peer.InFrame headers1 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, headers1.type);\n MockHttp2Peer.InFrame data1 = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data1.type);\n Assert.assertEquals(3, data1.streamId);\n Assert.assertArrayEquals(\"abcdefghi\".getBytes(StandardCharsets.UTF_8), data1.data);\n Assert.assertFalse(data1.inFinished);\n MockHttp2Peer.InFrame headers2 = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, headers2.type);\n Assert.assertTrue(headers2.inFinished);\n }", "private void writeHTTPHeader(OutputStream os, String contentType) throws Exception {\n Date d = new Date();\n DateFormat df = DateFormat.getDateTimeInstance();\n df.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n os.write(streamStatus.getBytes());\n os.write(\"Date: \".getBytes());\n os.write((df.format(d)).getBytes());\n os.write(\"\\n\".getBytes());\n os.write(\"Server: Jon's very own server\\n\".getBytes());\n //os.write(\"Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT\\n\".getBytes());\n //os.write(\"Content-Length: 438\\n\".getBytes()); //num characters in HTML line\n os.write(\"Connection: close\\n\".getBytes());\n os.write(\"Content-Type: \".getBytes());\n os.write(contentType.getBytes());\n os.write(\"\\n\\n\".getBytes()); // HTTP header ends with 2 newlines\n return;\n}", "@Test\n public void headers() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"c\", \"c3po\"));\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n connection.writePingAndAwaitPong();// Ensure that the HEADERS has been received.\n\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n Assert.assertEquals(Headers.of(\"c\", \"c3po\"), stream.takeHeaders());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }", "public void run(){\n\t\t\t\t\t\taddToHashmap(key, timestamp);\r\n\r\n\t\t\t\t\t\treq.response().putHeader(\"Content-Type\", \"text/plain\");\r\n\t\t\t\t\t\treq.response().end();\r\n\t\t\t\t\t\treq.response().close();\r\n\t\t\t\t\t}", "@Override\n\tpublic void WriteResponseTime() {\n\t\ttry (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(responseTimeFileStr, true))) {\n\t\t\tString responseStr = \"Using Buffered Stream with a Byte Size of \" + bufferSize + \"\\n\";\n\t\t\tresponseStr += \"Response Time: \" + elapsedTime / 1000000.0 + \" msec\\n\\n\";\n\t\t\tout.write(responseStr.getBytes());\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void timeout()\n\t{\n\t\ttry {\n\t\t\tbyte[] fileData = Server.readFileAsString(\"./resource/400.html\");\n\t\t\tString header = Server.ConstructHttpHeader(400, \"html\", fileData.length);\n\t\t\toutStream.writeBytes(header);\n\t\t\toutStream.write(fileData);\t\n\t\t\tthis.stop();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"Timeout Error\");\n\t\t}\n\t\ttry {\n\t\t\toutStream.flush();\n\t\t\t/* Interaction with this client complete, close() the socket */\n\t\t\tclientSock.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void prepareEndWriteOnePage() throws IOException {\n timeEncoder.flush(timeOut);\n valueEncoder.flush(valueOut);\n }", "@Override\n\tpublic void run() {\n\t\tPrintWriter out;\n\t\ttry {\n\t\t\tout = new PrintWriter(s.getOutputStream());\n\t\t\tout.print(\"HTTP/1.1 200 Ok\\n\\r\"+ \n\"Server: nginx/1.8.0\\n\\r\"+\n\"Date: Mon, 07 Dec 2015 09:11:39 GMT\\n\\r\"+ \n\"Content-Type: text/html\\n\\r\"+\n\"Connection: close\\n\\r\\n\\r\"+\n\"<html>\"+ \n\"<head><title>Test ok</title></head>\"+\n\"<body bgcolor=\\\"white\\\"> \"+\n\"<center><h1>HELLO</h1></center>\"+ \n\"</body>\"+\n\"</html>\"); \n\t\t\tout.close();\n\t\t\ts.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\n\t\t\n\t}", "@Override\r\n\tpublic void configure() throws Exception {\n\t\tfrom(\"timer:foo?period=1s\")\r\n\t\t.transform()\r\n\t\t.simple(\"HeartBeatRouter3 rounting at ${date:now:yyyy-MM-dd HH:MM:SS}\")\r\n\t\t.to(\"stream:out\");\r\n\t}", "private void generateHeader() throws IOException {\r\n\t\tcharset = Charset.forName(encoding);\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\t//first line\r\n\t\tsb.append(\"HTTP/1.1 \");\r\n\t\tsb.append(statusCode);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(statusText);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//second line\r\n\t\tsb.append(\"Content-type: \");\r\n\t\tsb.append(mimeType);\r\n\t\tif (mimeType.startsWith(\"text/\")) {\r\n\t\t\tsb.append(\" ;charset= \");\r\n\t\t\tsb.append(encoding);\r\n\t\t}\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//third line\r\n\t\tif (contentLength > 0) {\r\n\t\t\tsb.append(\"Content-Length: \");\r\n\t\t\tsb.append(contentLength);\r\n\t\t\tsb.append(\"\\r\\n\");\r\n\t\t}\r\n\t\t\r\n\t\t//fourth line\r\n\t\tgetOutputCookies(sb);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\toutputStream.write(sb.toString().getBytes(Charset.forName(\"ISO_8859_1\")));\r\n\t\t\r\n\t\theaderGenerated = true;\r\n\t}", "public void flushBuffer() throws IOException {\n this.response.flushBuffer();\n }", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "private static void wireTogether(\n final HttpTask httpTask,\n final TimerTask timerTask,\n final ArrayList<TimerDevice.RaceStartedCallback> raceStartedCallbacks,\n final ArrayList<TimerDevice.RaceFinishedCallback> raceFinishedCallbacks) {\n StdoutMessageTrace.trace(\"Timer-Server connection established.\");\n httpTask.registerHeatReadyCallback(new HttpTask.HeatReadyCallback() {\n public void onHeatReady(int roundid, int heat, int laneMask) {\n if (timerTask.device() == null) {\n return;\n }\n try {\n timerTask.device().prepareHeat(roundid, heat, laneMask);\n } catch (Throwable t) {\n LogWriter.stacktrace(t);\n httpTask.queueMessage(\n new Message.Malfunction(false, \"Can't ready timer.\"));\n }\n }\n });\n httpTask.registerAbortHeatCallback(new HttpTask.AbortHeatCallback() {\n public void onAbortHeat() {\n try {\n timerTask.device().abortHeat();\n } catch (Throwable t) {\n LogWriter.stacktrace(t);\n t.printStackTrace();\n }\n }\n });\n httpTask.registerRemoteStart(new HttpTask.RemoteStartCallback() {\n @Override\n public boolean hasRemoteStart() {\n if (timerTask.device() == null) {\n return false;\n }\n RemoteStartInterface rs = timerTask.device().getRemoteStart();\n return rs != null && rs.hasRemoteStart();\n }\n\n @Override\n public void remoteStart() {\n RemoteStartInterface rs = timerTask.device().getRemoteStart();\n if (rs != null) {\n try {\n LogWriter.serial(\"Executing remote-start\");\n rs.remoteStart();\n } catch (SerialPortException ex) {\n LogWriter.stacktrace(ex);\n }\n } else {\n LogWriter.serial(\"Unable to respond to remote-start\");\n }\n }\n });\n timerTask.device().registerRaceStartedCallback(\n new TimerDevice.RaceStartedCallback() {\n public void raceStarted() {\n try {\n httpTask.queueMessage(new Message.Started());\n } catch (Throwable t) {\n }\n if (raceStartedCallbacks != null) {\n for (TimerDevice.RaceStartedCallback cb : raceStartedCallbacks) {\n cb.raceStarted();\n }\n }\n }\n });\n timerTask.device().registerRaceFinishedCallback(\n new TimerDevice.RaceFinishedCallback() {\n public void raceFinished(int roundid, int heat,\n Message.LaneResult[] results) {\n // Rely on recipient to ignore if not expecting any results\n try {\n httpTask.queueMessage(new Message.Finished(roundid, heat, results));\n } catch (Throwable t) {\n }\n if (raceFinishedCallbacks != null) {\n for (TimerDevice.RaceFinishedCallback cb : raceFinishedCallbacks) {\n cb.raceFinished(roundid, heat, results);\n }\n }\n }\n });\n timerTask.device().registerTimerMalfunctionCallback(\n new TimerDevice.TimerMalfunctionCallback() {\n public void malfunction(boolean detectable, String msg) {\n try {\n httpTask.queueMessage(new Message.Malfunction(detectable, msg));\n } catch (Throwable t) {\n }\n }\n });\n }", "protected void send(OutputStream outputStream) {\n\t\t\tSimpleDateFormat gmtFrmt = new SimpleDateFormat(\"E, d MMM yyyy HH:mm:ss 'GMT'\",\n\t\t\t\t\tLocale.US);\n\t\t\tgmtFrmt.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n\t\t\ttry {\n\t\t\t\tif (this.status == null) {\n\t\t\t\t\tthrow new Error(\"sendResponse(): Status can't be null.\");\n\t\t\t\t}\n\t\t\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(\n\t\t\t\t\t\toutputStream, \"UTF-8\")), false);\n\t\t\t\tpw.append(\"HTTP/1.1 \").append(this.status.getDescription()).append(\" \\r\\n\");\n\t\t\t\tif (this.mimeType != null) {\n\t\t\t\t\tprintHeader(pw, \"Content-Type\", this.mimeType);\n\t\t\t\t}\n\t\t\t\tif (getHeader(\"date\") == null) {\n\t\t\t\t\tprintHeader(pw, \"Date\", gmtFrmt.format(new Date()));\n\t\t\t\t}\n\t\t\t\tfor (Entry<String, String> entry : this.header.entrySet()) {\n\t\t\t\t\tprintHeader(pw, entry.getKey(), entry.getValue());\n\t\t\t\t}\n\t\t\t\tif (getHeader(\"connection\") == null) {\n\t\t\t\t\tprintHeader(pw, \"Connection\", (this.keepAlive ? \"keep-alive\" : \"close\"));\n\t\t\t\t}\n\t\t\t\tif (getHeader(\"content-length\") != null) {\n\t\t\t\t\tencodeAsGzip = false;\n\t\t\t\t}\n\t\t\t\tif (encodeAsGzip) {\n\t\t\t\t\tprintHeader(pw, \"Content-Encoding\", \"gzip\");\n\t\t\t\t\tsetChunkedTransfer(true);\n\t\t\t\t}\n\t\t\t\tlong pending = this.data != null ? this.contentLength : 0;\n\t\t\t\tif (this.requestMethod != Method.HEAD && this.chunkedTransfer) {\n\t\t\t\t\tprintHeader(pw, \"Transfer-Encoding\", \"chunked\");\n\t\t\t\t} else if (!encodeAsGzip) {\n\t\t\t\t\tpending = sendContentLengthHeaderIfNotAlreadyPresent(pw, pending);\n\t\t\t\t}\n\t\t\t\tpw.append(\"\\r\\n\");\n\t\t\t\tpw.flush();\n\t\t\t\tsendBodyWithCorrectTransferAndEncoding(outputStream, pending);\n\t\t\t\toutputStream.flush();\n\t\t\t\tsafeClose(this.data);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tNanoHTTPDSingleFile.LOG.log(Level.SEVERE, \"Could not send response to the client\",\n\t\t\t\t\t\tioe);\n\t\t\t}\n\t\t}", "public void sendHearBeat() {\n try {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"type\", WsMessage.MessageType.HEART_BEAT_REQ);\n this.wsManager.sendMessage(WsMessage.MessageType.HEART_BEAT_REQ, jsonObject.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void serverWritesTrailersAndClientReadsTrailers() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"headers\", \"bam\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"trailers\", \"boom\"));\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"a\", \"artichaut\"), false);\n Assert.assertEquals(Headers.of(\"headers\", \"bam\"), stream.takeHeaders());\n connection.writePingAndAwaitPong();\n Assert.assertEquals(Headers.of(\"trailers\", \"boom\"), stream.trailers());\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"a\", \"artichaut\"), synStream.headerBlock);\n }", "@Test\n public void serverReadsHeadersDataHeaders() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// DATA\n\n peer.acceptFrame();// HEADERS\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n BufferedSink out = Okio.buffer(stream.getSink());\n out.writeUtf8(\"c3po\");\n out.close();\n stream.writeHeaders(TestUtil.headerEntries(\"e\", \"elephant\"), false, false);\n connection.writePingAndAwaitPong();\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n Assert.assertFalse(synStream.outFinished);\n Assert.assertEquals(3, synStream.streamId);\n Assert.assertEquals((-1), synStream.associatedStreamId);\n Assert.assertEquals(TestUtil.headerEntries(\"b\", \"banana\"), synStream.headerBlock);\n MockHttp2Peer.InFrame requestData = peer.takeFrame();\n Assert.assertArrayEquals(\"c3po\".getBytes(StandardCharsets.UTF_8), requestData.data);\n MockHttp2Peer.InFrame nextFrame = peer.takeFrame();\n Assert.assertEquals(TestUtil.headerEntries(\"e\", \"elephant\"), nextFrame.headerBlock);\n }", "public void run() {\n req.response().end(\"0\"); // Default response = 0\n }", "@Override\n public void startTimeLoop() {\n MyLog.log(\"startTimeLoop::\");\n // handler.sendEmptyMessage(5);\n }", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355620946302\"; //--separate-comp\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multicomp\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"sep_comp\");\r\n\t\t\t\t\r\n\t\t\t\t//multiCounter.printResponse(req, \"sep_comp\");\r\n\t\t\t\t// use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"sep_comp\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "@Test\n public void writeTimesOutAwaitingStreamWindow() throws Exception {\n Settings peerSettings = new Settings().set(Settings.INITIAL_WINDOW_SIZE, 5);\n // write the mocking script\n peer.sendFrame().settings(peerSettings);\n peer.acceptFrame();// ACK SETTINGS\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// DATA\n\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n connection.writePingAndAwaitPong();// Make sure settings have been received.\n\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n Sink sink = stream.getSink();\n sink.write(new Buffer().writeUtf8(\"abcde\"), 5);\n stream.writeTimeout().timeout(500, TimeUnit.MILLISECONDS);\n long startNanos = System.nanoTime();\n sink.write(new Buffer().writeUtf8(\"f\"), 1);\n try {\n sink.flush();// This will time out waiting on the write window.\n\n Assert.fail();\n } catch (InterruptedIOException expected) {\n }\n long elapsedNanos = (System.nanoTime()) - startNanos;\n awaitWatchdogIdle();\n /* 200ms delta */\n Assert.assertEquals(500.0, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200.0);\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n Assert.assertEquals(TYPE_PING, peer.takeFrame().type);\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n Assert.assertEquals(TYPE_DATA, peer.takeFrame().type);\n Assert.assertEquals(TYPE_RST_STREAM, peer.takeFrame().type);\n }", "public void sendHeader(Pair<Integer, String> statusCode, String contentType, Integer contentLength) throws IOException {\n\n\n this.out.write((\"HTTP/1.1 \" + statusCode.getKey() + \" \" + statusCode.getValue() + CRLF).getBytes());\n this.out.write((\"Date: \" + new Date().toString() + CRLF).getBytes());\n if (contentLength != null) {\n this.out.write((\"Content-Type: \" + contentType + CRLF).getBytes());\n this.out.write((\"Content-Encoding: UTF-8\" + CRLF).getBytes());\n this.out.write((\"Content-Length: \" + contentLength + CRLF).getBytes());\n }\n this.out.write((\"\" + CRLF).getBytes());\n }", "private void httpHeader(String method) throws Exception {\n if(outputStream==null){\n throw new Exception(\"socket未打开\");\n }\n //直接遍历Request的头就行\n HashMap<String, String> headers = request.getHeaders();\n \n //httpHeader用来发送的http头部。\n StringBuilder httpHeader = new StringBuilder();\n \n \n //GET /PCcontrolServer/ImageGet?pwd=5678 HTTP/1.1\n //首先是对方法的判断,先只支持get和post方法\n URL url = connection.getUrl();\n if(request.getMethod().equals(\"get\")\n \t\t||request.getMethod().equals(\"GET\")){\n \t\n \tif(url.getQuery()!=null){\n \t\thttpHeader.append(\"GET \" + url.getPath()+\"?\"\n \t\t\t+url.getQuery() + \" HTTP/1.1\\r\\n\");\n \t}else{\n \t\thttpHeader.append(\"GET \" + url.getPath()+\" HTTP/1.1\\r\\n\");\n \t}\n\n }else if(request.getMethod().equals(\"POST\")||\n \t\trequest.getMethod().equals(\"post\")){\n \thttpHeader.append(\"POST \" + url.getPath() + \" HTTP/1.1\\r\\n\");\n \n \tcontentLength = CalcDataLength();\n \t\n \t//如果是post则默认使用这个content-Type发送\n \thttpHeader.append(\"Content-Type: multipart/form-data; boundary=\"\n \t\t\t+boundary+\"\\r\\n\");\n \t\n \thttpHeader.append(\"Content-Length: \" + contentLength + \"\\r\\n\");\n \n }\n \n //其次对其他header头参数进行拼接。其中contentlength这个只有post方法才支持。要独立判断\n Iterator<Entry<String, String>> iterator = headers.entrySet().iterator();\n \n //Cache-Control: max-age=0\n while(iterator.hasNext()){\n \tEntry<String, String> current = iterator.next();\n \thttpHeader.append(current.getKey()+\n \t\t\t\": \" + current.getValue() + \"\\r\\n\");\n }\n \n //Log.E(httpHeader.toString());\n //这个/r/n表示消息头结束,否则服务器会一直阻塞在那里不会将结果返回。\n httpHeader.append(\"\\r\\n\");\n //将Http头写入socket,发起http请求\n outputStream.write(httpHeader.toString().getBytes());\n \n\n// URL url = connection.getUrl();\n// //决定是get还是post方法,如果是get方法的话,\n// //则非常简单直接。\n// String requestMethod = \"\";\n// if(method.equals(\"get\")){\n// requestMethod = \"GET \"+ url.getPath() +\"?\"+ url.getQuery()+\" HTTP/1.1\\r\\n\";\n// }else{\n// requestMethod = \"POST \" + url.getPath() +\" HTTP/1.1\\r\\n\";\n// }\n//\n// outputStream.write(requestMethod.getBytes());\n// String language = \"Accept-Language: zh-CN\\r\\n\";\n\n\n }", "private static BiFunction<HttpServerRequest, HttpServerResponse, Publisher<Void>> serveSse() {\n Flux<Long> flux = Flux.interval(Duration.ofMillis(10));\n return (request, response) ->\n response.sse()\n .send(flux.map(in -> toByteBuf(UUID.randomUUID().toString())), b -> true);\n }", "@Override\n public void filterResponse(HttpResponse response, HttpMessageContents contents, HttpMessageInfo messageInfo) {\n timestampWriter.write(new HttpResponseDetail(System.currentTimeMillis(), response, contents, messageInfo));\n }", "public void start() {\n \tupdateHeader();\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/plain;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n log(\"caller=\"+request.getParameter(\"id\"));\r\n /* TODO output your page here. You may use following sample code. */\r\n out.println(\"id=\"+request.getParameter(\"id\"));\r\n out.println(\"block=\"+request.getParameter(\"block\"));\r\n out.println(\"sendTime=\"+request.getParameter(\"sendTime\"));\r\n out.println(\"receivedTime=\"+Calendar.getInstance().getTimeInMillis());\r\n// out.println(\"Received Time:\"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(Calendar.getInstance().getTime()));\r\n out.println(\"Received Time:\"+String.format(\"%1$tH:%1$tM:%1$tS,%1$tL\", Calendar.getInstance().getTime()));\r\n \r\n if (request.getParameter(\"sendTime\") != null && NumberUtils.isNumber(request.getParameter(\"sendTime\"))) {\r\n// out.println(\"Send Time:\"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(new Date(Long.valueOf(request.getParameter(\"sendTime\")))));\r\n out.println(\"Send Time:\"+String.format(\"%1$tH:%1$tM:%1$tS,%1$tL\", new Date(Long.valueOf(request.getParameter(\"sendTime\")))));\r\n }\r\n long pause = 0;\r\n if (request.getParameter(\"block\") != null && NumberUtils.isNumber(request.getParameter(\"block\"))) {\r\n pause = Long.valueOf(request.getParameter(\"block\"));\r\n }\r\n \r\n if (pause == 0) {\r\n pause = 2500;\r\n }\r\n try {\r\n Thread.currentThread().sleep(pause);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(test.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n// out.println(\"Response Time:\"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(Calendar.getInstance().getTime()));\r\n out.println(\"Response Time:\"+String.format(\"%1$tH:%1$tM:%1$tS,%1$tL\", Calendar.getInstance().getTime()));\r\n out.println(\"responseTime=\"+Calendar.getInstance().getTimeInMillis());\r\n out.println(\"responseTime=\"+Calendar.getInstance().getTimeInMillis());\r\n out.println(\"thread=\"+Thread.currentThread().getName());\r\n \r\n } finally { \r\n out.close();\r\n }\r\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public void write(final ChannelHandlerContext ctx, final Object msg, final ChannelPromise promise) {\n // We still have a request in-flight so we need to reschedule it in order to not let it trip on each others\n // toes.\n if (currentRequest != null) {\n RetryOrchestrator.maybeRetry(endpointContext, (Request<? extends Response>) msg, RetryReason.NOT_PIPELINED_REQUEST_IN_FLIGHT);\n if (endpoint != null) {\n endpoint.decrementOutstandingRequests();\n }\n return;\n }\n\n if (msg instanceof NonChunkedHttpRequest) {\n try {\n currentRequest = (NonChunkedHttpRequest<Response>) msg;\n FullHttpRequest encoded = ((NonChunkedHttpRequest<Response>) msg).encode();\n encoded.headers().set(HttpHeaderNames.HOST, remoteHost);\n encoded.headers().set(HttpHeaderNames.USER_AGENT, endpointContext.environment().userAgent().formattedLong());\n dispatchTimingStart = System.nanoTime();\n if (currentRequest.requestSpan() != null) {\n RequestTracer tracer = endpointContext.environment().requestTracer();\n currentDispatchSpan = tracer.requestSpan(TracingIdentifiers.SPAN_DISPATCH, currentRequest.requestSpan());\n\n if (!CbTracing.isInternalTracer(tracer)) {\n setCommonDispatchSpanAttributes(\n currentDispatchSpan,\n ctx.channel().attr(ChannelAttributes.CHANNEL_ID_KEY).get(),\n ioContext.localHostname(),\n ioContext.localPort(),\n endpoint.remoteHostname(),\n endpoint.remotePort(),\n currentRequest.operationId()\n );\n }\n }\n ctx.write(encoded, promise);\n } catch (Throwable t) {\n currentRequest.response().completeExceptionally(t);\n if (endpoint != null) {\n endpoint.decrementOutstandingRequests();\n }\n }\n } else {\n if (endpoint != null) {\n endpoint.decrementOutstandingRequests();\n }\n eventBus.publish(new InvalidRequestDetectedEvent(ioContext, serviceType, msg));\n ctx.channel().close().addListener(f -> eventBus.publish(new ChannelClosedProactivelyEvent(\n ioContext,\n ChannelClosedProactivelyEvent.Reason.INVALID_REQUEST_DETECTED)\n ));\n }\n }", "@Override\n\tpublic synchronized boolean writeHeader() {\n\t\tif(!trailerWritten) \n\t\t{\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tsuper.writeHeader();\n\t\t\tlong diff = System.currentTimeMillis() - startTime;\n\t\t\tlogger.info(\"write header takes {} for rtmp:{}\", diff, getOutputURL());\n\t\t\t\n\t\t\theaderWritten = true;\n\t\t\tsetStatus(IAntMediaStreamHandler.BROADCAST_STATUS_BROADCASTING);\n\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tlogger.warn(\"Trying to write header after writing trailer\");\n\t\t\treturn false;\n\t\t}\n\t}", "protected abstract void timed() throws Throwable;", "@Test\n public void sending_request_headers() {\n given()\n .baseUri(\"http://data.fixer.io/api\")\n .queryParam(\"access_key\", \"b406c5d0bd55d77d592af69a930f4feb\")\n .queryParam(\"Symbols\", \"USD\")\n .header(\"If-None-Match\", \"03a4545f530000f3491fbca200000001\")\n .header(\"If-Modified-Since\", \"Tue, 30 Jun 2020 01:01:25 GMT\").\n when()\n .get(\"/latest\").\n then()\n .log().all()\n .statusCode(200);\n }", "void doHead(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Test\n public void outgoingWritesAreBatched() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// DATA\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n // two outgoing writes\n Sink sink = stream.getSink();\n sink.write(new Buffer().writeUtf8(\"abcde\"), 5);\n sink.write(new Buffer().writeUtf8(\"fghij\"), 5);\n sink.close();\n // verify the peer received one incoming frame\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n MockHttp2Peer.InFrame data = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data.type);\n Assert.assertArrayEquals(\"abcdefghij\".getBytes(StandardCharsets.UTF_8), data.data);\n Assert.assertTrue(data.inFinished);\n }", "@Override\n public void hflush() throws IOException {\n hsync();\n }", "private void reportMetrics(HttpServerRequest request, HttpServerResponse response) {\n response.setChunked(true)\n .setStatusCode(200)\n .headers()\n .add(HttpHeaders.CONTENT_TYPE, HTTP_CONTENT_TYPE_VALUE)\n .add(HttpHeaders.CACHE_CONTROL, HTTP_CACHE_CONTROL_VALUE)\n .add(HTTP_HEADER_PRAGMA, HTTP_HEADER_PRAGMA_VALUE);\n\n long delay = DEFAULT_DELAY;\n\n final String requestDelay = request.getParam(\"delay\");\n try {\n if (requestDelay != null && !requestDelay.isEmpty()) {\n delay = Math.max(Long.parseLong(requestDelay), 1);\n }\n } catch (Exception e) {\n log.warn(\"[Vertx-EventMetricsStream] Error parsing the delay parameter [{}]\", requestDelay);\n }\n\n final Subscription metricsSubscription = Observable.interval(delay, TimeUnit.MILLISECONDS, scheduler)\n .map(i -> new DashboardData(HystrixCommandMetrics.getInstances(),\n HystrixThreadPoolMetrics.getInstances(),\n HystrixCollapserMetrics.getInstances()))\n .concatMap(dashboardData -> Observable.from(SerialHystrixDashboardData.toMultipleJsonStrings(dashboardData)))\n .onTerminateDetach()\n .subscribe(metric -> writeMetric(metric, response),\n ex -> log.error(\"Error sending metrics\", ex));\n\n response.closeHandler(ignored -> {\n log.debug(\"[Vertx-EventMetricsStream] - Client closed connection, stopping sending metrics\");\n metricsSubscription.unsubscribe();\n handleClosedConnection();\n });\n\n request.exceptionHandler(ig -> {\n log.error(\"[Vertx-EventMetricsStream] - Sending metrics, stopping sending metrics\", ig);\n metricsSubscription.unsubscribe();\n handleClosedConnection();\n });\n }", "public void sendHeartbeat();", "@Override\n public void call(final HttpTrade trade) {\n final FullHttpResponse response = new DefaultFullHttpResponse(\n HttpVersion.HTTP_1_0, OK, \n Unpooled.wrappedBuffer(HttpTestServer.CONTENT));\n response.headers().set(HttpHeaderNames.CONTENT_TYPE, \"text/plain\");\n // missing Content-Length\n// response.headers().set(CONTENT_LENGTH, response.content().readableBytes());\n response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n trade.outboundResponse(Observable.just(response));\n }", "@Override\n public void call(final HttpTrade trade) {\n final FullHttpResponse response = new DefaultFullHttpResponse(\n HttpVersion.HTTP_1_0, OK, \n Unpooled.wrappedBuffer(HttpTestServer.CONTENT));\n response.headers().set(HttpHeaderNames.CONTENT_TYPE, \"text/plain\");\n // missing Content-Length\n// response.headers().set(CONTENT_LENGTH, response.content().readableBytes());\n response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n trade.outboundResponse(Observable.just(response));\n }", "protected void writeHeader() throws IOException {\n _baos = new ByteArrayOutputStream();\n _dos = new DataOutputStream(_baos);\n _dos.write(PushCacheProtocol.instance().header(), 0, PushCacheProtocol.instance().header().length);\n }", "public void sendHeaders(HeaderSet headers) throws IOException {\n ensureOpen();\n if (isDone) {\n throw new IOException(\"Operation has already exchanged all data\");\n }\n\n if (headers == null) {\n throw new NullPointerException(\"Headers may not be null\");\n }\n\n int[] headerList = headers.getHeaderList();\n if (headerList != null) {\n for (int i = 0; i < headerList.length; i++) {\n requestHeaders.setHeader(headerList[i], headers.getHeader(headerList[i]));\n }\n }\n }", "@Override\n\tprotected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doOptions(req, resp);\n\t\tH5Utils.setHeaders(resp);\n\t}", "@Override\n\tprotected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doOptions(req, resp);\n\t\tH5Utils.setHeaders(resp);\n\t}", "@Override\n protected void writeStreamHeader() throws IOException {\n reset();\n }", "@Override\n public void call(final HttpTrade trade) {\n final FullHttpResponse response = new DefaultFullHttpResponse(\n HttpVersion.HTTP_1_0, OK, \n Unpooled.wrappedBuffer(HttpTestServer.CONTENT));\n response.headers().set(HttpHeaderNames.CONTENT_TYPE, \"text/plain\");\n // BAD Content-Length, actual length + 1\n response.headers().set(HttpHeaderNames.CONTENT_LENGTH, \n response.content().readableBytes() + 1);\n response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n trade.outboundResponse(Observable.just(response));\n }", "@Override\n public void call(final HttpTrade trade) {\n final FullHttpResponse response = new DefaultFullHttpResponse(\n HttpVersion.HTTP_1_0, OK, \n Unpooled.wrappedBuffer(HttpTestServer.CONTENT));\n response.headers().set(HttpHeaderNames.CONTENT_TYPE, \"text/plain\");\n // BAD Content-Length, actual length + 1\n response.headers().set(HttpHeaderNames.CONTENT_LENGTH, \n response.content().readableBytes() + 1);\n response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n trade.outboundResponse(Observable.just(response));\n }", "@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tsetImdHeartBeat();\n\t\t\t}", "public void handle(HttpExchange h) throws IOException {\n String message = \"The server is running without any problem\"; //Message to be shown to client\n h.sendResponseHeaders(200, message.length());//response code and the length of message to be sent\n \n /*writes in the output stream, converts the message into array of bytes and closes the stream.*/\n OutputStream out = h.getResponseBody();\n out.write(message.getBytes());\n out.close();\n }", "private void sendHeader(Space jSpace, int playerID, ServerCommands cmd) throws InterruptedException {\n\t\tjSpace.put(cmd, playerID);\n\t}", "private void sendHttpRequest(String body) throws IOException {\n OutputStreamWriter writer = new OutputStreamWriter(\n httpConnection.getOutputStream());\n writer.write(body);\n writer.flush();\n writer.close();\n }", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n @Override\n public void run() {\n log.info(\"send heart beat\");\n HeartBeat heartBeat = new HeartBeat();\n ctx.writeAndFlush(heartBeat);\n }\n }, 0, 5, TimeUnit.SECONDS);\n }", "static void send(OutputStream out, int status) throws IOException {\n\t\tsend(out, status, new Headers(), List.of(), null, 0, null);\n\t}", "public void h() {\n long currentTimeMillis = System.currentTimeMillis();\n this.m.sendEmptyMessageDelayed(48, q.c(currentTimeMillis));\n this.m.sendEmptyMessageDelayed(49, q.d(currentTimeMillis));\n }", "private void send(HttpServletResponse response, int status, String message) throws IOException {\n\t\tresponse.setStatus(status);\n\t\tresponse.getOutputStream().println(message);\n\t}", "private static void sendProfilingPacket() throws IOException{\r\n ProfilingPacketType profilingPacket = new ProfilingPacketType();\r\n ProfilingPacketType.serializePacket(profilingPacket);\r\n\r\n System.out.println(\"Client - sending datagram!\");\r\n //printSendProfilingPacket(profilingPacket);\r\n clientObjectOutputStream.writeObject(new String(\"DATA\"));\r\n //clientObjectOutputStream.flush();\r\n\r\n try{\r\n Thread.sleep(PACKET_SEND_INTERVAL);\r\n }catch (InterruptedException interE){\r\n interE.printStackTrace();\r\n //TODO - log error etc.\r\n }\r\n }", "Single<WebClientServiceRequest> whenSent();", "Single<WebClientServiceRequest> whenSent();", "void responseSent( C conn ) ;", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}", "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 }", "public void triggerHeartBeat() {\n\t\tif (this.postman==null) return;\n\t\tthis.postman.sendHeartBeatAt = 0;\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n// Set refresh, autoload time as 5 seconds\n response.setIntHeader(\"Refresh\", 5);\n// Set response content type\n response.setContentType(\"text/html\");\n// Get current time\n Calendar calendar = new GregorianCalendar();\n String am_pm;\n int hour = calendar.get(Calendar.HOUR);\n int minute = calendar.get(Calendar.MINUTE);\n int second = calendar.get(Calendar.SECOND);\n if (calendar.get(Calendar.AM_PM) == 0) {\n am_pm = \"AM\";\n } else {\n am_pm = \"PM\";\n }\n String CT = hour + \":\" + minute + \":\" + second + \" \" + am_pm;\n //PrintWriterout = response.getWriter();\n String title = \"Auto Refresh Header Setting\";\n String docType =\n \"<!doctype html public \\\"-//w3c//dtd html 4.0 \"\n + \"transitional//en\\\">\\n\";\n out.println(docType\n + \"<html>\\n\"\n + \"<head><title>\" + title + \"</title></head>\\n\"\n + \"<body bgcolor=\\\"#f0f0f0\\\">\\n\"\n + \"<h1 align=\\\"center\\\">\" + title + \"</h1>\\n\"\n + \"<p>Current Time is: \" + CT + \"</p>\\n\");\n } finally {\n out.close();\n }\n }", "void flushBlocking();", "public void processTransmissionTimeout() {\n //to be overridden by extending classes\n }", "public long getSentTime();", "@Override\r\n\tpublic void exec() {\n\t\tHttpRequestHead hrh = null;\r\n\t\tint headSize = 0;\r\n\t\tboolean isSentHead = false;\r\n\t\ttry {\r\n\t\t\tArrays.fill(buffer, (byte) 0);\r\n\t\t\tint getLen = 0;\r\n\t\t\tboolean getHead = false;\r\n\t\t\tint mode = 0;\r\n\t\t\tlong contentLength = 0;\r\n\t\t\twhile (!proxy.isClosed.get()) {\r\n\t\t\t\tint nextread = inputStream.read(buffer, getLen, buffer.length - getLen);\r\n\t\t\t\tif (nextread == -1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tgetLen += nextread;\r\n\t\t\t\tif (!getHead) {\r\n\t\t\t\t\tif ((headSize = Proxy.protocol.validate(buffer, getLen)) > 0) {\r\n\t\t\t\t\t\thrh = (HttpRequestHead) Proxy.protocol.decode(buffer);\r\n\t\t\t\t\t\tlog.debug(proxy.uuid + debug + \"传入如下请求头:\" + new String(Proxy.protocol.encode(hrh)));\r\n\t\t\t\t\t\t\r\n//\t\t\t\t\t\tif(\"keep-alive\".equals(hrh.getHead(\"Connection\")))\r\n//\t\t\t\t\t\t\tkeepAlive = true;\r\n\t\t\t\t\t\tif (\"chunked\".equals(hrh.getHead(\"Transfer-Encoding\")))\r\n\t\t\t\t\t\t\tmode = 2;\r\n\t\t\t\t\t\tif (!StringUtils.isBlank(hrh.getHead(\"Content-Length\"))) {\r\n\t\t\t\t\t\t\tmode = 1;\r\n\t\t\t\t\t\t\tcontentLength = Long.valueOf(hrh.getHead(\"Content-Length\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString forward = hrh.getHead(\"X-Forwarded-For\");\r\n\t\t\t\t\t\tif (!StringUtils.isBlank(forward))\r\n\t\t\t\t\t\t\tforward += \",\";\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tforward = \"\";\r\n\t\t\t\t\t\tforward += proxy.source.getInetAddress().getHostAddress();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-For\", forward);\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-Proto\", \"http\");\r\n\t\t\t\t\t\thrh.addHead(\"X-Forwarded-Host\", CoreDef.config.getString(\"serverIp\"));\r\n\r\n\t\t\t\t\t\tgetHead = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// http访问代理服务器模式\r\n//\t\t\t\t\t\tInetAddress addr = InetAddress.getByName(hrh.getHead(\"host\"));\r\n//\t\t\t\t\t\tproxy.destination = new Socket(addr, 80);\r\n//\t\t\t\t\t\toutputStream = proxy.destination.getOutputStream();\r\n//\t\t\t\t\t\tproxy.sender = new ServerChannel(proxy);\r\n//\t\t\t\t\t\tproxy.sender.begin(\"peer - \" + this.getTaskId());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\theadSize = 0;\r\n\t\t\t\t\t\tif (getLen > buffer.length - 128)\r\n\t\t\t\t\t\t\tbuffer = Arrays.copyOf(buffer, buffer.length * 10);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isSentHead) {\r\n\t\t\t\t\tisSentHead = true;\r\n\t\t\t\t\tlog.debug(proxy.uuid + \"为\" + debug + \"转发了如下请求头:\" + new String(Proxy.protocol.encode(hrh)));\r\n\t\t\t\t\toutputStream.write(Proxy.protocol.encode(hrh));\r\n//\t\t\t\t\tswitch (mode) {\r\n//\t\t\t\t\tcase 1:\r\n//\t\t\t\t\t\toutputStream.write(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\tcontentLength -= getLen - headSize;\r\n//\t\t\t\t\t\tbreak;\r\n//\t\t\t\t\tcase 2:\r\n//\t\t\t\t\t\tcontentLength += getChunkedContentSize(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\toutputStream.write(buffer, headSize, getLen - headSize);\r\n//\t\t\t\t\t\tcontentLength -= getLen - headSize;\r\n//\t\t\t\t\t\tbreak;\r\n//\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tswitch (mode) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\toutputStream.write(buffer, headSize, getLen-headSize);\r\n\t\t\t\t\tcontentLength -= getLen - headSize;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tcontentLength += getChunkedContentSize(buffer, headSize, getLen-headSize);\r\n\t\t\t\t\toutputStream.write(buffer, 0, getLen);\r\n\t\t\t\t\tcontentLength -= getLen - headSize;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\theadSize = 0;\r\n\t\t\t\tif(contentLength == 0) {\r\n\t\t\t\t\tgetHead = false;\r\n\t\t\t\t\tisSentHead = false;\r\n\t\t\t\t}\r\n\t\t\t\tgetLen = 0;\r\n\t\t\t\tArrays.fill(buffer, (byte) 0);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(proxy.uuid + \"与客户端通信发生异常\" + Utils.getStringFromException(e));\r\n\t\t\tlog.info(proxy.uuid + \"最后的数据如下\" + new String(buffer).trim());\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\tlog.info(proxy.uuid + \"与客户端通信,试图关闭端口\");\r\n\t\t\tproxy.close();\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }", "private void serverHeader(\n HttpHeaderFW header)\n {\n serverHeader |= header.name().value().equals(context.nameBuffer(54));\n }", "@Override\n public void send(String[] tokens, DataOutputStream dataOutputStream) throws IOException {\n if (headers.isEmpty()) {\n for (int i = 0; i < tokens.length; i++) {\n headers.put(tokens[i], i);\n }\n } else {\n long timestamp = Long.valueOf(tokens[headers.get(Constants.DATE)]) * 1000;\n String section = tokens[headers.get(Constants.REQUEST)].split(\" \")[1].split(\"\\\\/\")[1];\n String remoteHost = tokens[headers.get(Constants.REMOTE_HOST)];\n int bytes = Integer.valueOf(tokens[headers.get(Constants.BYTES)]);\n logEntryBuilder.newMsg().setTimestamp(timestamp).setSection(section).setRemoteHost(remoteHost).setBytes(bytes).send(dataOutputStream);\n }\n }", "@Override\n\tpublic void handler(Packet packet, ChannelContext channelContext) throws Exception {\n\t\tlong c = HttpClientStarter.receivedCount.incrementAndGet();\n\t\tlong stageC = HttpClientStarter.receivedStageCount.incrementAndGet();\n\n\t\tlong bs = HttpClientStarter.receivedBytes.addAndGet(packet.getByteCount());\n\t\tlong stageBs = HttpClientStarter.receivedStageBytes.addAndGet(packet.getByteCount());\n\n\t\tif (c % HttpClientStarter.stepCount == 0) {\n\t\t\tlong endtime = System.currentTimeMillis();\n\t\t\tlong stageIv = endtime - HttpClientStarter.stageStartTime;\n\t\t\tlong iv = endtime - HttpClientStarter.startTime;\n\t\t\t//\t\t\tSystem.out.println(\"已经完成请求数:\" + StrUtil.fillBefore(c + \"\", '0', 10) + \", 本次耗时:\" + stageIv + \"ms, 总耗时:\" + iv + \"ms, \" + \"本次平均每秒处理请求数:\" + (1000 * (stageC / stageIv)));\n\n\t\t\t/*\n\t\t\t * %10s: 输出固定长度为10的字符串 默认右对齐 \n\t\t\t %-10s: 输出固定长度10的字符串 左对齐;\n\t\t\t */\n\t\t\tSystem.out.printf(\"已收到响应数:%-12s 流量:%-12s 本次耗时:%-8s 总耗时:%-8s \" + \"本次R/S:%-10s 本次吞吐量/S:%-10s\\r\\n\", c, (bs / 1024) + \" KB\", stageIv + \" ms\", iv + \" ms\",\n\t\t\t (1000 * (stageC / stageIv)), (1000 * (stageBs / stageIv)) / 1024 + \" KB\");\n\n\t\t\tHttpClientStarter.stageStartTime = System.currentTimeMillis();\n\t\t\tHttpClientStarter.receivedStageCount.set(0);\n\t\t\tHttpClientStarter.receivedStageBytes.set(0);\n\n\t\t}\n\t\tif (c == HttpClientStarter.totalRequestCount) {\n\t\t\tlong endtime = System.currentTimeMillis();\n\t\t\tlong iv = endtime - HttpClientStarter.startTime;\n\t\t\tSystem.out.printf(SysConst.CRLF);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"request path\", HttpClientStarter.requestPath);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"client count\", HttpClientStarter.clientCount);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"complete requests\", c);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"time taken for tests\", iv + \" ms\");\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"requests per second\", (1000 * (c / iv)));\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"transfer rate(KB/S)\", ((1000 * (bs / iv)) / 1024));\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"Bytes/Response\", bs / c);\n\t\t\tSystem.out.printf(SysConst.CRLF);\n\t\t}\n\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "@Override\n\tpublic void flush(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"flush\");\n\t\tsuper.flush(ctx);\n\t}", "@Test\n public void readMultipleSetsOfResponseHeaders() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(true, 3, TestUtil.headerEntries(\"c\", \"cola\"));\n peer.sendFrame().ping(true, 1, 0);// PONG\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n stream.getConnection().flush();\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n connection.writePingAndAwaitPong();\n Assert.assertEquals(Headers.of(\"c\", \"cola\"), stream.trailers());\n // verify the peer received what was expected\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n Assert.assertEquals(TYPE_PING, peer.takeFrame().type);\n }", "void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);", "@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n final Channel ch = e.getChannel();\n ChannelBuffer headerBuffer = ChannelBuffers.buffer(header.length());\n headerBuffer.writeBytes(header.getBytes());\n ChannelFuture f = ch.write(headerBuffer);\n f.addListener(ChannelFutureListener.CLOSE_ON_FAILURE);\n channelAtomicReference.set(ch);\n log.info(\"Input Stream {} : Channel Connected. Sent Header : {}\", name, header);\n }", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355562000000\"; //--multi-dist\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multi\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"multidist\");\r\n\t\t\t\t//multiCounter.printResponse(req, \"multidist\");\r\n\t\t\t\t//use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"multidist\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "private void sendStatus() throws IOException {\n\t\tWriteStatus status = new WriteStatus.Builder().build();\n\t\tstatus.writeTo(out);\n\t\tout.flush();\n\t}", "@Override\n\tpublic void WriteResponseTime() {\n\t\ttry (FileOutputStream out = new FileOutputStream(responseTimeFileStr, true)) {\n\t\t\tString responseStr = \"Using a programmer-managed byte-array of \" + bufferSize + \"\\n\";\n\t\t\tresponseStr += \"Response Time: \" + elapsedTime / 1000000.0 + \" msec\\n\\n\";\n\t\t\tout.write(responseStr.getBytes());\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void setDateHeader(String header, long date)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setDateHeader(header, date);\n\t\t}\n\t}", "@Test\n public void remoteSendsDataAfterInFinished() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"robot\"), 5);\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"c3po\"), 4);\n peer.acceptFrame();// RST_STREAM\n\n peer.sendFrame().ping(false, 2, 0);// Ping just to make sure the stream was fastforwarded.\n\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n assertStreamData(\"robot\", stream.getSource());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame rstStream = peer.takeFrame();\n Assert.assertEquals(TYPE_RST_STREAM, rstStream.type);\n Assert.assertEquals(3, rstStream.streamId);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(2, ping.payload1);\n }", "private void teHeader(\n DirectBuffer name,\n DirectBuffer value)\n {\n if (!error() && name.equals(TE) && !value.equals(TRAILERS))\n {\n streamError = Http2ErrorCode.PROTOCOL_ERROR;\n }\n }", "public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }", "public void send(SseEventBuilder builder)\n/* */ throws IOException\n/* */ {\n/* 123 */ Set<ResponseBodyEmitter.DataWithMediaType> dataToSend = builder.build();\n/* 124 */ synchronized (this) {\n/* 125 */ for (ResponseBodyEmitter.DataWithMediaType entry : dataToSend) {\n/* 126 */ super.send(entry.getData(), entry.getMediaType());\n/* */ }\n/* */ }\n/* */ }", "@Test\n public void writeTimesOutAwaitingConnectionWindow() throws Exception {\n Settings peerSettings = new Settings().set(Settings.INITIAL_WINDOW_SIZE, 5);\n // write the mocking script\n peer.sendFrame().settings(peerSettings);\n peer.acceptFrame();// ACK SETTINGS\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 0);\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 3, 0);\n peer.acceptFrame();// DATA\n\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n connection.writePingAndAwaitPong();// Make sure settings have been acked.\n\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n connection.writePingAndAwaitPong();// Make sure the window update has been received.\n\n Sink sink = stream.getSink();\n stream.writeTimeout().timeout(500, TimeUnit.MILLISECONDS);\n sink.write(new Buffer().writeUtf8(\"abcdef\"), 6);\n long startNanos = System.nanoTime();\n try {\n sink.flush();// This will time out waiting on the write window.\n\n Assert.fail();\n } catch (InterruptedIOException expected) {\n }\n long elapsedNanos = (System.nanoTime()) - startNanos;\n awaitWatchdogIdle();\n /* 200ms delta */\n Assert.assertEquals(500.0, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200.0);\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n Assert.assertEquals(TYPE_PING, peer.takeFrame().type);\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n Assert.assertEquals(TYPE_PING, peer.takeFrame().type);\n Assert.assertEquals(TYPE_DATA, peer.takeFrame().type);\n Assert.assertEquals(TYPE_RST_STREAM, peer.takeFrame().type);\n }", "public void send1(){\n digitalWrite(data1, LOW);\n delayMicroseconds(34);\n digitalWrite(data1, HIGH);\n}", "@Override\n public void run() {\n if (timerValidFlag)\n gSeconds++;\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }", "public void send(Message message) {\n\t\tthis.clockSer.addTS(this.localName);\n\t\t((TimeStampedMessage)message).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\n\t\ttry {\n\t\t\tparseConfig();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessage.set_source(localName);\n\t\tmessage.set_seqNum(currSeqNum++);\n\t\t\t\t\n\t\tRule rule = null;\n\t\tif((rule = matchRule(message, RuleType.SEND)) != null) {\n\t\t\tif(rule.getAction().equals(\"drop\")) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"duplicate\")) {\n\t\t\t\tMessage dupMsg = message.makeCopy();\n\t\t\t\tdupMsg.set_duplicate(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Send 'message' and 'dupMsg' */\n\t\t\t\tdoSend(message);\n\t\t\t\t/* update the timestamp */\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t((TimeStampedMessage)dupMsg).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\t\t\t\tdoSend(dupMsg);\n\t\t\t\t\n\t\t\t\t/* We need to send delayed messages after new message.\n\t\t\t\t * This was clarified in Live session by Professor.\n\t\t\t\t */\n\t\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\t\tdoSend(m);\n\t\t\t\t}\n\t\t\t\tdelaySendQueue.clear();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"delay\")) {\n\t\t\t\tdelaySendQueue.add(message);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"We get a wierd message here!\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdoSend(message);\n\t\t\t\n\t\t\t/* We need to send delayed messages after new message.\n\t\t\t * This was clarified in Live session by Professor.\n\t\t\t */\n\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\tdoSend(m);\n\t\t\t}\n\t\t\tdelaySendQueue.clear();\n\t\t}\n\t\t\n\t}", "public void generatePostHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n request.getParameter(\"Blabbo\"); // Dummy read to send continue back to the client.\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }", "private Thing headers(String methodName, Thing[] args, Evaller evaller,\n\t\t\tFramelike frame, Syntax src) throws FisherException {\n\t\tcheckNumberOfArgs(0, 1, methodName, args, evaller, frame, src);\n\t\tif(args.length == 0)\n\t\t\treturn http.getHeaders();\n\t\telse{\n\t\t\t// FIXME: how much checking of args?\n\t\t\tcheckArg(args[0], RecordTh.class, null);\n\t\t\treturn http.setHeaders((RecordTh)args[0]);\n\t\t\t}\n\t}", "@Override\n\tpublic void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {\n\t\tnextFilter.messageSent(session, writeRequest);\n\t}", "private void emitHeader(OutputStream stream) throws IOException {\n int header = 0x0;\n header |= WORKBUF_PROTOCOL_VERSION;\n stream.write(TfWorkbufProtocol.intToFourBytes(header));\n }", "@Override\n\tpublic void tick(TrafficSignal TS) {\n\t\t\n\t}", "static void serverHandlerImpl(InputStream inputStream,\n OutputStream outputStream,\n URI uri,\n SendResponseHeadersFunction sendResponseHeadersFunction)\n throws IOException\n {\n try (InputStream is = inputStream;\n OutputStream os = outputStream) {\n readAllBytes(is);\n\n String magicQuery = uri.getQuery();\n if (magicQuery != null) {\n int bodyIndex = Integer.valueOf(magicQuery);\n String body = BODIES[bodyIndex];\n byte[] bytes = body.getBytes(UTF_8);\n sendResponseHeadersFunction.apply(200, bytes.length);\n int offset = 0;\n // Deliberately attempt to reply with several relatively\n // small data frames ( each write corresponds to its own\n // data frame ). Additionally, yield, to encourage other\n // handlers to execute, therefore increasing the likelihood\n // of multiple different-stream related frames in the\n // client's read buffer.\n while (offset < bytes.length) {\n int length = Math.min(bytes.length - offset, 64);\n os.write(bytes, offset, length);\n os.flush();\n offset += length;\n Thread.yield();\n }\n } else {\n sendResponseHeadersFunction.apply(200, 1);\n os.write('A');\n }\n }\n }", "public void expect() throws IOException\n\t{\n\t\tString response = mClient.rx();\n\t\t\n\t\tif(mListener != null)\n\t\t\tmListener.onResponse(this, response);\n\t}" ]
[ "0.5762513", "0.57573664", "0.573814", "0.5680817", "0.5564485", "0.5554", "0.55436593", "0.53549856", "0.5350609", "0.5350604", "0.5343478", "0.53096944", "0.53054726", "0.5298391", "0.52970207", "0.5286225", "0.5260307", "0.5257828", "0.52482086", "0.523203", "0.52097726", "0.52084863", "0.5165509", "0.51574993", "0.5134795", "0.5124201", "0.5111902", "0.5100812", "0.50934917", "0.5092715", "0.50693345", "0.504196", "0.50307506", "0.5028573", "0.50046927", "0.5000532", "0.49731463", "0.4972066", "0.49658516", "0.49614415", "0.49614346", "0.49614346", "0.4953405", "0.494204", "0.4931164", "0.4931164", "0.49251467", "0.4918974", "0.4918974", "0.49066716", "0.49024197", "0.48957935", "0.48945123", "0.48938403", "0.48903733", "0.4889743", "0.48864907", "0.48785293", "0.48756364", "0.48730865", "0.48730865", "0.48602962", "0.48372903", "0.48363733", "0.48346186", "0.48302782", "0.4827266", "0.48205382", "0.4812089", "0.480671", "0.4806429", "0.48041275", "0.4797035", "0.4793875", "0.47923982", "0.4791906", "0.47913697", "0.47896817", "0.47888455", "0.47874236", "0.47857222", "0.47853878", "0.47829613", "0.4777094", "0.47740325", "0.47714406", "0.47687238", "0.4767707", "0.476388", "0.47609863", "0.4755742", "0.47537965", "0.47526985", "0.47490102", "0.47429183", "0.4741001", "0.4739917", "0.47384915", "0.47323975", "0.47171396" ]
0.6028209
0
Return the temporary file path
public final String getTemporaryFile() { return m_tempFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemporaryFilePath()\n {\n return callString(\"GetTemporaryFilePath\");\n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "private String getTempFileString() {\n final File path = new File(getFlagStoreDir() + String.valueOf(lJobId) + File.separator);\n // // If this does not exist, we can create it here.\n if (!path.exists()) {\n path.mkdirs();\n }\n //\n return new File(path, Utils.getDeviceUUID(this)+ \".jpeg\")\n .getPath();\n }", "public String getTempPath() {\n return tempPath;\n }", "public File getTmpFile() {\n return tmpFile;\n }", "public static File getTemporaryDirectory() {\r\n\t\tFile dir = new File(System.getProperty(\"java.io.tmpdir\", //$NON-NLS-1$\r\n\t\t\t\tSystem.getProperty(\"user.dir\", \".\"))); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\ttry {\r\n\t\t\treturn dir.getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn dir;\r\n\t\t}\r\n\t}", "public static File getTempDirectory() {\r\n\t\treturn new File(System.getProperty(\"java.io.tmpdir\"));\r\n\t}", "public static String getTempDirectoryPath()\n {\n return System.getProperty( \"java.io.tmpdir\" );\n }", "private File getCameraTempFile() {\n\t\tFile dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n\t\tFile output = new File(dir, SmartConstants.CAMERA_CAPTURED_TEMP_FILE);\n\n\t\treturn output;\n\t}", "public static File getTempDirectory() {\r\n\t\tFile tempdir = new File(System.getProperty(\"java.io.tmpdir\"));\r\n\t\treturn tempdir;\r\n\t}", "Optional<Path> getTempPath()\n {\n return tempPath;\n }", "private static File generateTemp(Path path) {\n File tempFile = null;\n try {\n InputStream in = Files.newInputStream(path);\n String tDir = System.getProperty(\"user.dir\") + File.separator + ASSETS_FOLDER_TEMP_NAME;\n tempFile = new File(tDir + File.separator + path.getFileName());\n try (FileOutputStream out = new FileOutputStream(tempFile)) {\n IOUtils.copy(in, out);\n }\n album.addToImageList(tempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tempFile;\n }", "public static Path getTaskAttemptPath(\n final TaskAttemptContext context) {\n Configuration config = context.getConfiguration();\n // Try to use the following base temporary directories, in this order:\n // 1. New-style option for task tmp dir\n // 2. Old-style option for task tmp dir\n // 3. Hadoop system-wide tmp dir\n // 4. /tmp\n // Hadoop Paths always use \"/\" as a directory separator.\n return new Path(\n String.format(\"%s/%s/%s/_out\",\n getTempDirectory(config),\n context.getTaskAttemptID().toString(), TEMP_DIR_NAME));\n }", "private String generateSavePath(HttpSession session) {\n try {\n\t\t\tint adminId = ((Admin) session.getAttribute(\"emm.admin\")).getAdminID();\n\t\t\tRandom random = new Random();\n\t\t\tint randomNum = random.nextInt();\n\t\t\tString savePath = AgnUtils.getTempDir() + File.separator +\n\t\t\t \"tmp_csv_file_\" + adminId + \"_\" + randomNum + \".csv\";\n\t\t\treturn savePath;\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Cannot create temp file path for upload file storage\", e);\n\t\t\treturn null;\n\t\t}\n }", "public String getUserTempDir() throws IOException {\n\t\treturn \"/data/local/tmp/\";\n\t}", "@Override\n public String getTempDir() {\n return Comm.getAppHost().getTempDirPath();\n }", "public static String readTempFile() throws IOException {\r\n\t\tbyte[] buffer = null;\r\n\r\n\t\tFileInputStream input = null;\r\n\t\ttry {\r\n\t\t\tinput = new FileInputStream(Utils.HOME + Utils.FSEP + TEMP_FILE);\r\n\t\t\tbuffer = new byte[input.available()];\r\n\t\t\tinput.read(buffer);\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\tinput.close();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new String(buffer);\r\n\t}", "private String getWebTmpDir()\n\t\t\tthrows Exception\n\t{\n\t\t\treturn Contexto.getPropiedad(\"TMP.UPLOAD2\");\n }", "public String getTempFile(String url) {\n String tempFile = StringUtils.md5ToHex(url);\n if (tempFile == null) {\n tempFile = url;\n }\n return this.context.getExternalCacheDir() + WVNativeCallbackUtil.SEPERATER + tempFile;\n }", "public interface TempFile {\n\n\t\tpublic void delete() throws Exception;\n\n\t\tpublic String getName();\n\n\t\tpublic OutputStream open() throws Exception;\n\t}", "private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}", "private File createTempFile(TransferSongMessage message)\n throws IOException {\n File outputDir = MessagingService.this.getCacheDir(); // context being the Activity pointer\n String filePrefix = UUID.randomUUID().toString().replace(\"-\", \"\");\n int inx = message.getSongFileName().lastIndexOf(\".\");\n String extension = message.getSongFileName().substring(inx + 1);\n File outputFile = File.createTempFile(filePrefix, extension, outputDir);\n return outputFile;\n }", "public String getTemporaryUrl(T file) {\n\t\t\treturn getTemporaryUrl(file, false);\n\t\t}", "private File getTempFolder(String osBasePath) {\n File baseTempFolder = new File(osBasePath, \"temp\");\n return baseTempFolder;\n }", "public static File createTemporaryCacheFile(CacheKey cacheKey) throws IOException {\n // Create a file in Java temp directory with cacheKey.toSting() as file name.\n\n File file = File.createTempFile(cacheKey.toString(), \".tmp\");\n if (null != file) {\n log.debug(\"Temp file created with the name - {}\", cacheKey.toString());\n }\n return file;\n }", "public static File createTempFile() throws Exception {\n File dir = tempFileDirectory();\n dir.mkdirs();\n File tempFile = File.createTempFile(\"tst\", null, dir);\n dir.deleteOnExit(); // Not fail-safe on android )¬;\n return tempFile;\n }", "private String getDirTempDruida()\n\t\t\tthrows Exception\n {\t\t\t\t\n\t\t\tString dir = null;\n\t\t\tdir = Contexto.getPropiedad(\"TMP.UPLOAD\");\t\t\n\t\t\treturn dir;\n }", "String createTempFile(String text,String filename) {\r\n\t\tString tmpDirectory = Configuration.getConfiguration().getMpdTmpSubDir();\r\n\t\tif(!tmpDirectory.endsWith(java.io.File.separator)) {\r\n\t\t\ttmpDirectory += java.io.File.separator;\r\n\t\t}\r\n\t\tconvert(text,Configuration.getConfiguration().getMpdFileDirectory(),tmpDirectory+filename);\r\n\t\t\r\n\t\treturn tmpDirectory+filename;\r\n\t}", "public static File CreateTempFile(String fileName, String resourcePath) throws IOException {\n \n /*if (tempDirectoryPath == null) {\n tempDirectoryPath = Files.createTempDirectory(null);\n System.getSecurityManager().checkDelete(tempDirectoryPath.toFile().toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath);\n System.out.println(\"Temp path: \" + tempDirectoryPath.toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath.toFile().toString());\n }*/\n \n File tempFile = null;\n InputStream input = null;\n OutputStream output = null;\n \n try {\n // Create temporary file\n //tempFile = File.createTempFile(tempDirectoryPath.getFileName() + File.separator + fileName , null);\n //System.out.println(\"Temp file: \" + tempFile);\n tempFile = File.createTempFile(filePrefix + fileName , null);\n tempFile.setReadable(false , false);\n tempFile.setReadable(true , true);\n tempFile.setWritable(true , true);\n tempFile.setExecutable(true , true);\n tempFile.deleteOnExit();\n \n // Read resource and write to temp file\n output = new FileOutputStream(tempFile);\n if (resourcePath != null) {\n input = Main.class.getClassLoader().getResourceAsStream(resourcePath);\n\n byte[] buffer = new byte[1024];\n int read;\n\n if (input == null) {\n Logger.log(\"Resource '\" + fileName + \"' at '\" + resourcePath + \"' not available!\");\n } else {\n while ((read = input.read(buffer)) != -1) {\n output.write(buffer , 0 , read);\n }\n }\n }\n } catch (IOException ex) {\n throw(ex);\n } finally {\n close(input);\n close(output);\n }\n return tempFile;\n }", "public void setTempPath(String tempPath) {\n this.tempPath = tempPath;\n }", "java.lang.String getFilePath();", "private File createTempFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File albumF = getAlbumDir();\n File mediaF = null;\n\n profile = IMG_FILE_PREFIX + timeStamp+\"_\";\n mediaF = File.createTempFile(profile, IMG_FILE_SUFFIX, albumF);\n\n return mediaF;\n }", "static File createTempImageFile(Context context)\n throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\",\n Locale.getDefault()).format(new Date());\n String imageFileName = \"AZTEK\" + timeStamp + \"_\";\n\n globalImageFileName = imageFileName;\n\n File storageDir = context.getExternalCacheDir();\n\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "private static Path saveTempFile(InputStream input) throws IOException {\n\t\tPath tempFile = Files.createTempFile(null, \".csv\");\n\t\tFiles.copy(input, tempFile, StandardCopyOption.REPLACE_EXISTING);\n\n\t\tinput.close();\n\n\t\t// TODO delete tempFile\n\t\treturn tempFile;\n\t}", "protected String tmpname() {\n\t\tsynchronized ( OsLib.class ) {\n\t\t\treturn TMP_PREFIX+(tmpnames++)+TMP_SUFFIX;\n\t\t}\n\t}", "public void setTmpFile(File tmpFile) {\n this.tmpFile = tmpFile;\n }", "String getFilepath();", "private String saveTmpFile(ByteBuffer b, int offset, int len, String filename_hint) {\n\t\t\tString path = \"\";\n\t\t\tif (len > 0) {\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tTempFile tempFile = this.tempFileManager.createTempFile(filename_hint);\n\t\t\t\t\tByteBuffer src = b.duplicate();\n\t\t\t\t\tfileOutputStream = new FileOutputStream(tempFile.getName());\n\t\t\t\t\tFileChannel dest = fileOutputStream.getChannel();\n\t\t\t\t\tsrc.position(offset).limit(offset + len);\n\t\t\t\t\tdest.write(src.slice());\n\t\t\t\t\tpath = tempFile.getName();\n\t\t\t\t} catch (Exception e) { // Catch exception if any\n\t\t\t\t\tthrow new Error(e); // we won't recover, so throw an error\n\t\t\t\t} finally {\n\t\t\t\t\tsafeClose(fileOutputStream);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn path;\n\t\t}", "public String getFile(Element temp){\r\n\t\t//Element temp = getPlace(where,\"Characters\");\r\n\t\treturn temp.getChildText(\"Path\") + temp.getChildText(\"File\");\r\n\t}", "private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }", "public static Path createSimpleTmpFile( final Configuration conf, boolean deleteOnExit ) throws IOException\r\n\t{\r\n\t\t/** Make a temporary File, delete it, mark the File Object as delete on exit, and create the file with data using hadoop utils. */\r\n\t\tFile localTempFile = File.createTempFile(\"tmp-file\", \"tmp\");\r\n\t\tlocalTempFile.delete();\r\n\t\tPath localTmpPath = new Path( localTempFile.getName());\r\n\t\t\r\n\t\tcreateSimpleFile(conf, localTmpPath, localTmpPath.toString());\r\n\t\tif (deleteOnExit) {\r\n\t\t\tlocalTmpPath.getFileSystem(conf).deleteOnExit(localTmpPath);\r\n\t\t}\r\n\t\treturn localTmpPath;\r\n\t}", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "String getFilePath();", "public final void setTemporaryFile(String tempFile) {\n\t\tm_tempFile = tempFile;\n\t}", "private File createTempFile(WorkDirectory workDir, BackupPolicy backupPolicy)\n throws IOException {\n int MAX_TRIES = 100; // absurdly big limit, but a limit nonetheless\n for (int i = 0; i < MAX_TRIES; i++) {\n File tempFile = new File(resultsFile.getPath() + \".\" + i + \".tmp\");\n if (tempFile.createNewFile()) {\n return tempFile;\n }\n }\n throw new IOException(\"could not create temp file for \" + resultsFile + \": too many tries\");\n }", "private static Path localTemp(Configuration conf, int taskId, int attemptId) {\n String localDirs = conf.get(\"mapreduce.cluster.local.dir\");\n Random rand = new Random(Objects.hashCode(taskId, attemptId));\n String[] dirs = localDirs.split(\",\");\n String dir = dirs[rand.nextInt(dirs.length)];\n\n try {\n return FileSystem.getLocal(conf).makeQualified(new Path(dir));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to localize path: \" + dir, e);\n }\n }", "public static void createTempFileForLinux() throws IOException {\n Path path = Files.createTempFile(\"temp_linux_file\", \".txt\",\n PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString(\"rw-------\")));\n System.out.println(\"Path is : \" + path.toFile().getAbsolutePath());\n }", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "String getFullWorkfileName();", "@Override\n\tpublic String generatePathStr(String component,\n\t\t\tString outputName) throws RemoteException {\n\t\treturn \"/user/\" + userName + \"/tmp/redsqirl_\" + component + \"_\" + outputName\n\t\t\t\t+ \"_\" + RandomString.getRandomName(8)+\".txt\";\n\t}", "File getWorkfile();", "Path getFilePath();", "private File getImageFile() throws IOException {\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\n String imageName = \".jpg_\" + timeStamp + \"_\";\n\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n\n\n File imageFile = File.createTempFile(imageName, \".jpg\", storageDir);\n\n\n return imageFile;\n }", "public File getScratchDir();", "public SoPath \n\t getCurPath()\n\t {\n\t \t return this.currentpath;\n//\t if(tempPath == null){\n//\t tempPath = new SoTempPath(32);\n//\t tempPath.ref();\n//\t }\n//\t currentpath.makeTempPath(tempPath);\n//\t return tempPath;\n\t }", "public interface TempFileManager {\n\n\t\tvoid clear();\n\n\t\tpublic TempFile createTempFile(String filename_hint) throws Exception;\n\t}", "File createFile(String name) throws IOException {\n File storageFile = File.createTempFile(FILE_PREFIX + name + \"_\", null, this.subDirectories[fileCounter.getAndIncrement()&(this.subDirectories.length-1)]); //$NON-NLS-1$\n if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {\n LogManager.logDetail(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, \"Created temporary storage area file \" + storageFile.getAbsoluteFile()); //$NON-NLS-1$\n }\n return storageFile;\n }", "public LinkedList<Path> getTemp() {\n\t\treturn this.temp;\n\t}", "private String getPhotoFilePath(boolean getThumbnail) throws IOException {\n\n String mainPath = config.getString(\"travelea.photos.main\");\n\n String returnPath = mainPath + (getThumbnail\n ? config.getString(\"travelea.photos.thumbnail\")\n : \"\");\n\n\n Path path = Paths.get(returnPath).toAbsolutePath();\n\n returnPath = path.toString();\n\n if (!path.toFile().exists() || !path.toFile().isDirectory()) {\n Files.createDirectory(path);\n }\n\n return returnPath;\n }", "public static File makeTempDir(String prefix){\n try {\n return Files.createTempDirectory(prefix).toFile();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "public String genLogFilePath() {\n\n\t\tString logFileName = generateFileName();\n\t\tString logFilePath = FileIoUtils.getLogFilePathPrefix(logFileName)\n\t\t\t\t+ \"/\" + logFileName;\n\t\treturn logFilePath;\n\n\t}", "private String generateFilename() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "private void saveTempFile(DigitalObject object) {\n String tempFileName = tempDir.getAbsolutePath() + \"/\" + System.nanoTime();\n OutputStream fileStream;\n try {\n fileStream = new BufferedOutputStream(new FileOutputStream(tempFileName));\n if (object != null) {\n byte[] data = object.getData().getData();\n if (data != null) {\n\n fileStream.write(data);\n }\n }\n fileStream.close();\n tempFiles.put(object, tempFileName);\n } catch (FileNotFoundException e) {\n log.error(\"Failed to store tempfile\", e);\n } catch (IOException e) {\n log.error(\"Failed to store tempfile\", e);\n }\n }", "public String createTempThumbnail(String fileId)\n\t\t\tthrows RPCIllegalArgumentException {\n\n\t\tString outputSufix = TEMPORAL_THUMB_PREXIF + fileId;\n\n\t\tString sourceFileName = Properties.REAL_TEMP_FILES_DIR + fileId;\n\n\t\tString destinyFileName = Properties.REAL_TEMP_FILES_DIR + outputSufix;\n\n\t\tImageMagickAPI.createThumb(sourceFileName, destinyFileName);\n\n\t\treturn Properties.WEB_TEMP_MEDIA_DIR + outputSufix;\n\n\t}", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public File makeTemporaryBAMFile() throws IOException{\n final File file = IOUtils.createTempFile(\"tempBAM\", \".bam\");\n return makeBAMFile(file);\n }", "@Test\n public void testTempDirectory() {\n assertTrue(getTempDirPath().indexOf(File.separator\n\t+ \"TestSpringLockssTestCase\") > -1);\n assertTrue(getTempDirPath().endsWith(\".tmp\"));\n }", "@Test\n public void testCopyToTempDir() throws IOException {\n File fileA = null;\n\n try {\n fileA = File.createTempFile(\"fileA\", \"fileA\");\n System.out.println(fileA.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(fileA);\n InputStream sis = new StringInputStream(\"some content\");\n StreamUtil.copy(sis, fos);\n sis.close();\n fos.close();\n\n copyToTempDir(fileA);\n\n File fileACopy = new File(new File(getTempDirPath()), fileA.getName());\n assertTrue(fileACopy.exists());\n assertTrue(fileACopy.isFile());\n } finally {\n boolean deleted = fileA.delete();\n assertTrue(deleted);\n }\n\n File dirB = null;\n\n try {\n dirB = Files.createTempDirectory(\"dirB\").toFile();\n System.out.println(dirB.getAbsolutePath());\n\n copyToTempDir(dirB);\n\n File dirBCopy = new File(new File(getTempDirPath()), dirB.getName());\n assertTrue(dirBCopy.exists());\n assertTrue(dirBCopy.isDirectory());\n } finally {\n boolean deleted = dirB.delete();\n assertTrue(deleted);\n }\n }", "public String getFilePath() {\n\t\treturn Constants.CSV_DIR+getFileName();\n\t}", "private File createImageFile() throws IOException\r\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"MYAPPTEMP_\" + timeStamp + \"_\";\r\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n return image;\r\n }", "private String getUploadFileName() {\r\n\t\tJFileChooser fc = new JFileChooser(\"./\");\r\n\t\tint returnVal = fc.showOpenDialog(this);\r\n\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tFile quizFile = fc.getSelectedFile();\r\n\t\treturn quizFile.getAbsolutePath();\r\n\t}", "public File getImageFile() throws IOException {\n String timeStamp=new SimpleDateFormat(\"yyyymmdd_HHmmss\").format(new Date());\n String imageName=timeStamp;\n File storageDir=getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File imageFile=File.createTempFile(imageName,\".jpg\",storageDir);\n currentImagePath=imageFile.getAbsolutePath();\n imguri.setText(currentImagePath);\n return imageFile;\n }", "public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setTempFile: \" + tempFile.getAbsolutePath());\n } catch (IOException e) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Exception creating tempfile. \" + e.getMessage());\n return false;\n }\n\n if (tempFile==null || !(tempFile instanceof File)) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Failed to create valid tempFile.\");\n return false;\n }\n\n return true;\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "protected File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n strAbsolutePath = image.getAbsolutePath();\n Log.e(\"XpathX\", image.getAbsolutePath());\n return image;\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public final void deleteTemporaryFile()\n\t\tthrows IOException {\n\t\t\t\n // DEBUG\n \n if ( isQueued()) {\n Debug.println(\"@@ Delete queued file segment, \" + this);\n Thread.dumpStack();\n }\n \n\t\t//\tDelete the temporary file used by the file segment\n\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\t\t\t\n\t\tif ( tempFile.exists() && tempFile.delete() == false) {\n\n\t\t //\tDEBUG\n\t\t \n\t\t Debug.println(\"** Failed to delete \" + toString() + \" **\");\n\t\t \n\t\t //\tThrow an exception, delete failed\n\t\t \n\t\t\tthrow new IOException(\"Failed to delete file \" + getTemporaryFile());\n\t\t}\n\t}", "public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }", "@Test\n public void testTemporaryFileIgnored() throws Exception {\n addPeers(Collections.singletonList(\"peer3\"));\n\n // Get artifact from the peer, it will be cached\n File artifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n\n // Create a temporary file in the same directory\n try {\n Files.createFile(artifactPath.getParentFile().toPath().resolve(\"16734042670004650467150673059434.tmp\"));\n } catch (FileAlreadyExistsException e) {\n // no-op\n }\n\n // Get the artifact again. It should be fetched from the cache and the temporary file should be ignored.\n File newPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n Assert.assertEquals(artifactPath, newPath);\n }", "private static Path createTempFile(String folderName) throws IOException {\n while (true) {\n String fileName = UUID.randomUUID().toString();\n Path filePath = Paths.get(folderName + \"/\" + fileName);\n\n if (Files.notExists(filePath)) {\n Files.createFile(filePath);\n return filePath;\n }\n }\n }", "public File createTempDir(String prefix, String suffix) {\n try {\n // Create a tempfile, and delete it.\n File file = File.createTempFile(prefix, suffix, baseDir);\n\n if (!file.delete()) {\n throw new IOException(\"Unable to create temp file\");\n }\n\n // Create it as a directory.\n File dir = new File(file.getAbsolutePath());\n if (!dir.mkdirs()) {\n throw new UncheckedIOException(\n new IOException(\"Cannot create profile directory at \" + dir.getAbsolutePath()));\n }\n\n // Create the directory and mark it writable.\n FileHandler.createDir(dir);\n\n temporaryFiles.add(dir);\n return dir;\n } catch (IOException e) {\n throw new UncheckedIOException(\n new IOException(\"Unable to create temporary file at \" + baseDir.getAbsolutePath()));\n }\n }", "private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private File createFilePictures() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String pictureName = \"BEER_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n pictureName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPicturePath = image.getAbsolutePath();\n return image;\n }", "private static File createTempFile(final byte[] data) throws IOException {\r\n \t// Genera el archivo zip temporal a partir del InputStream de entrada\r\n final File zipFile = File.createTempFile(\"sign\", \".zip\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n final FileOutputStream fos = new FileOutputStream(zipFile);\r\n\r\n fos.write(data);\r\n fos.flush();\r\n fos.close();\r\n\r\n return zipFile;\r\n }", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public static Resource getUserFileResource() throws IOException {\n Path tempFile = Files.createTempFile(\"upload-test-file\", \".jpg\");\n Files.write(tempFile,FileUtils.readFileToByteArray(new File(\"d:/file_test.jpg\"))); \n // \"some test content...\\nline1\\nline2\".getBytes());\n System.out.println(\"uploading: \" + tempFile);\n File file = tempFile.toFile();\n //to upload in-memory bytes use ByteArrayResource instead\n return new FileSystemResource(file);\n }", "private File getTempPkc12File() throws IOException {\n InputStream pkc12Stream = context.getAssets().open(\"projectGoogle.p12\");\n File tempPkc12File = File.createTempFile(\"projectGoogle\", \"p12\");\n OutputStream tempFileStream = new FileOutputStream(tempPkc12File);\n\n int read = 0;\n byte[] bytes = new byte[1024];\n while ((read = pkc12Stream.read(bytes)) != -1) {\n tempFileStream.write(bytes, 0, read);\n }\n return tempPkc12File;\n }", "public final File mo14819f() {\n return new File(mo14820g(), \"_tmp\");\n }", "private File createImageFile() throws IOException {\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n currentUser.username, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "String getFile();", "String getFile();", "String getFile();", "protected void createHMetisOutFilePath() {\n\t\tString file = \"\";\n\t\tfile += \"TEMP_GRAPH_FILE.hgr.part.\";\n\t\tfile += this.getPartitioner().getPartition().getNumBlock();\n\t\tthis.setHMetisOutFile(file);\t\n\t}", "public String getFilepath()\n\t{\n\t\treturn filepath;\n\t}", "public File mo27424a(File file) throws IOException {\n return File.createTempFile(this.f17426b + \".\", \".tmp\", file);\n }", "private File getFile() {\n Date date = new Date();\n File file = new File(\"D://meteopost//\" + date + \".txt\");\n if (file.exists()) {\n file.delete();\n }\n return file;\n }", "@Override\n public String getAbsolutePathImpl() {\n return file.getAbsolutePath();\n }" ]
[ "0.85718656", "0.79383034", "0.75348955", "0.7475164", "0.7398278", "0.728038", "0.7088385", "0.70421034", "0.6926201", "0.6856083", "0.6816325", "0.67301923", "0.66885436", "0.6653604", "0.66207427", "0.65640473", "0.65228736", "0.65105385", "0.65061206", "0.6474187", "0.6440761", "0.6432429", "0.638529", "0.6381945", "0.6356499", "0.63498116", "0.6337063", "0.630254", "0.6291499", "0.6260532", "0.62016666", "0.61991256", "0.61957425", "0.6179383", "0.6130727", "0.6089466", "0.6072982", "0.6067099", "0.6052249", "0.6048629", "0.6047229", "0.6020426", "0.6012597", "0.60071236", "0.59921384", "0.59604675", "0.5890026", "0.58891547", "0.5872638", "0.5861715", "0.58469784", "0.5845335", "0.58432615", "0.5795307", "0.5791673", "0.5784781", "0.5775234", "0.5765488", "0.5754731", "0.5744688", "0.57161367", "0.5679051", "0.5665033", "0.56608397", "0.56311864", "0.5630668", "0.5586435", "0.5583664", "0.55737287", "0.55732596", "0.5568857", "0.55618745", "0.556139", "0.55603594", "0.5557679", "0.5552666", "0.554146", "0.5522036", "0.5506437", "0.5495472", "0.5460776", "0.54198676", "0.54081166", "0.5401201", "0.5398867", "0.53945374", "0.53889436", "0.5383713", "0.5382005", "0.5380676", "0.5380675", "0.53800696", "0.53757644", "0.53757644", "0.53757644", "0.5373016", "0.53699905", "0.53677106", "0.53672993", "0.5362881" ]
0.8040519
1
Check if the segment has been updated
public final boolean isUpdated() { return (m_flags & Updated) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUpdate();", "boolean hasUpdate();", "boolean hasTsUpdate();", "public boolean hasChanged();", "public boolean hasChanged();", "boolean hasStatusChanged();", "boolean hasUpdateInode();", "public boolean wasDataUpdated() {\n\t\treturn true;\n\t}", "public synchronized boolean hasChanged() {\n return changed;\n }", "boolean hasSegment();", "@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}", "boolean isSetSegmented();", "boolean needUpdate();", "public boolean updated()\r\n\t{\r\n\t\treturn bChanged;\r\n\t}", "public boolean isRegionUpdated() {\n return REGIONUPDATED.equals(message);\n }", "@java.lang.Override\n public boolean hasCurrentRouteSegmentVersion() {\n return currentRouteSegmentVersion_ != null;\n }", "public boolean hasChanges();", "public boolean hasChanged()\n {\n return map.hasChanged();\n }", "protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}", "public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }", "public boolean hasUpdated() {\n return fieldSetFlags()[5];\n }", "boolean hasUpdateInodeFile();", "boolean hasChangeStatus();", "public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }", "private boolean isSeedsInfoUpdated(String tDate){\n \treturn mSharedPref.getBoolean(tDate,false); \t\n }", "default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }", "public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}", "public boolean isChanged() {\r\n return isChanged;\r\n }", "public void checkUpdateRecordSetComment() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tif (this.graphicsTabItem != null && this.graphicsTabItem.getGraphicsComposite().isRecordCommentChanged()) this.graphicsTabItem.getGraphicsComposite().updateRecordSetComment();\r\n\t\t}\r\n\t\telse { // if the percentage is not up to date it will updated later\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (DataExplorer.this.graphicsTabItem.getGraphicsComposite().isRecordCommentChanged()) DataExplorer.this.graphicsTabItem.getGraphicsComposite().updateRecordSetComment();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }", "boolean hasEvents() {\n return !currentSegment.isEmpty() || !historySegments.isEmpty();\n }", "@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }", "public boolean updated() {\n return (!getText().equals(\"0.0.0.0\"));\n }", "public void requestUpdate(){\n shouldUpdate = true;\n }", "@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "private boolean stabilizedOnUpdate(\n final UpdateMonitoringScheduleRequest updateMonitoringScheduleRequest,\n final UpdateMonitoringScheduleResponse updateMonitoringScheduleResponse,\n final ProxyClient<SageMakerClient> proxyClient,\n final ResourceModel model,\n final CallbackContext callbackContext) {\n\n if(model.getMonitoringScheduleArn() == null){\n model.setMonitoringScheduleArn(updateMonitoringScheduleResponse.monitoringScheduleArn());\n }\n\n final ScheduleStatus monitoringScheduleState = proxyClient.injectCredentialsAndInvokeV2(\n TranslatorForRequest.translateToReadRequest(model),\n proxyClient.client()::describeMonitoringSchedule).monitoringScheduleStatus();\n\n switch (monitoringScheduleState) {\n case SCHEDULED:\n case STOPPED:\n logger.log(String.format(\"%s [%s] has been stabilized with state %s during update operation.\",\n ResourceModel.TYPE_NAME, model.getPrimaryIdentifier(), monitoringScheduleState));\n return true;\n case PENDING:\n logger.log(String.format(\"%s [%s] is stabilizing during update.\", ResourceModel.TYPE_NAME, model.getPrimaryIdentifier()));\n return false;\n default:\n throw new CfnGeneralServiceException(\"Stabilizing during update of \" + model.getPrimaryIdentifier());\n\n }\n }", "public void checkForUpdate();", "boolean isOssModified();", "@Override\r\n\tpublic boolean update(Station obj) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "public boolean isUpdated() {\n return this.updated;\n }", "boolean hasUpdateTriggerTime();", "public boolean isChanged()\r\n\t{\r\n\t\treturn changed;\r\n\t}", "public boolean hasCurrentRouteSegmentVersion() {\n return currentRouteSegmentVersionBuilder_ != null || currentRouteSegmentVersion_ != null;\n }", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "public boolean update() {\n\t\ttimeElapsed++;\n\t\treturn false;\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "public boolean isUpdate() {\r\n\t\treturn update;\r\n\t}", "boolean doUpdate(int index) {\n return (index >= updateStart) && (index <= updateEnd);\n }", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }", "boolean update();", "private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }", "public boolean isUpdated()\n\t{\n\t\treturn mUpdated;\n\t}", "@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tboolean updated();", "boolean hasStateChange();", "private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }", "public boolean canUpdate();", "public boolean isGridUpdated() {\n return GRIDUPDATED.equals(message);\n }", "public boolean isChanged() {\n return this.changed;\n }", "public boolean isPathChanged() {\r\n return ctrlDomain.isPathChanged();\r\n }", "@JsonIgnore\n\tpublic boolean isEmptyEdit() {\n\t\treturn getUpdatedStatements().isEmpty();\n\t}", "void statusUpdate(boolean invalid);", "@Override\r\n public boolean eventSourcing(){\n loadSnapshot();\r\n\r\n // check offsets value\r\n\r\n // rerun events\r\n\r\n // rerun commands\r\n\r\n // print es results\r\n\r\n return true;\r\n }", "public boolean areGraticulesUpdated() {\n return GRATICULESUPDATED.equals(message);\n }", "public boolean wasDatastreamChanged(String dsId);", "@Override\r\n\tpublic boolean canUpdate() {\r\n\t\treturn true;\r\n\t}", "public boolean requiresUpdate(final Rectangle rect) {\n if (!viewport.intersects(rect)) {\n return false;\n }\n \n return fullUpdate || (getDirtyArea(rect) != null);\n }", "boolean hasUpdateInodeDirectory();", "public boolean hasTsUpdate() {\n return fieldSetFlags()[11];\n }", "public boolean hasUpdateInode() {\n return ((bitField0_ & 0x20000000) == 0x20000000);\n }", "public boolean isValid(Segment segment) {\n\t\treturn !(segment instanceof ActualSegment) || (((ActualSegment)segment).txCount >= 0);\n\t}", "public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }", "boolean getIsUpdate();", "public boolean update() {\n\n if (clock == 1439) return false;\n ++clock;\n return true;\n }", "public boolean update() {\n if(0==modified) return false;\n \n final int res = modified;\n if( (res&DIRTY_MODELVIEW)!=0 ) {\n setMviMvit();\n }\n modified=0;\n return res!=0;\n }", "boolean hasUpdateUfsMode();", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "public boolean hasStackFrameChanged() {\n\t\treturn lineNumber != oldLineNumber;\n\t}", "boolean hasScoreUpdateResponse();", "boolean getSegmented();", "boolean hasCompletePartition();", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "public boolean hasTsUpdate() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "protected synchronized void setChanged() {\n changed = true;\n }", "public boolean isDataChanged(){\r\n\t\t\r\n return customElementsForm.isSaveRequired();\r\n }", "public boolean updateComplete() {\n return this.updateComplete;\n }", "public boolean lastOpSuccess()\r\n {\r\n \treturn this.stat == VirtualPointer.Serializer.STATUS_SUCCESS;\r\n }", "@java.lang.Override\n public boolean hasCurrentRouteSegmentEndPoint() {\n return currentRouteSegmentEndPoint_ != null;\n }", "public boolean hasUpdateInode() {\n return ((bitField0_ & 0x20000000) == 0x20000000);\n }", "boolean hasUpdateMask();", "boolean hasUpdateMask();", "boolean hasUpdateMask();", "boolean hasUpdateMask();" ]
[ "0.6758639", "0.6758639", "0.6543979", "0.6481296", "0.6481296", "0.6400161", "0.63488346", "0.627962", "0.62446547", "0.62191576", "0.6204775", "0.61635077", "0.6133169", "0.61184824", "0.6106964", "0.6062551", "0.6059863", "0.60494685", "0.60443026", "0.603071", "0.6024513", "0.6001471", "0.59780324", "0.5976558", "0.5960028", "0.5945308", "0.59451276", "0.59314084", "0.5923758", "0.59221005", "0.58794004", "0.58736986", "0.5869642", "0.5864925", "0.58538127", "0.5840774", "0.5840774", "0.5840774", "0.58198667", "0.5813894", "0.58068365", "0.5800706", "0.57972884", "0.57972884", "0.57972884", "0.5793852", "0.5779201", "0.5776637", "0.576926", "0.57653874", "0.5760147", "0.5757763", "0.5753585", "0.5741025", "0.57335526", "0.5728708", "0.5726253", "0.57235235", "0.5715811", "0.56950724", "0.5680386", "0.56722385", "0.5666617", "0.56658614", "0.56615996", "0.56591296", "0.5658694", "0.56524545", "0.56248814", "0.5620687", "0.5603935", "0.5594233", "0.5589611", "0.55760056", "0.55630964", "0.5547323", "0.5547125", "0.5545366", "0.5537244", "0.5534803", "0.5529445", "0.5526787", "0.5524776", "0.55229187", "0.55215704", "0.55139065", "0.55059654", "0.55028975", "0.5501723", "0.5494064", "0.5493008", "0.54901147", "0.5487177", "0.5476878", "0.5474781", "0.5472941", "0.54709226", "0.54709226", "0.54709226", "0.54709226" ]
0.5822728
38
Check if the segment has a file request queued
public final boolean isQueued() { return (m_flags & RequestQueued) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUploadRequest();", "boolean hasUploadResponse();", "public boolean hasUploadRequest() {\n return uploadRequestBuilder_ != null || uploadRequest_ != null;\n }", "@java.lang.Override\n public boolean hasUploadRequest() {\n return uploadRequest_ != null;\n }", "boolean hasChunkRequest();", "private boolean checkForTaskQueue(HttpServletRequest request, HttpServletResponse response) {\n if (request.getHeader(\"X-AppEngine-QueueName\") == null) {\n log.log(Level.SEVERE, \"Received unexpected non-task queue request. Possible CSRF attack.\");\n try {\n response.sendError(\n HttpServletResponse.SC_FORBIDDEN, \"Received unexpected non-task queue request.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }", "@java.lang.Override\n public boolean hasChunkRequest() {\n return chunkRequest_ != null;\n }", "public boolean hasChunkRequest() {\n return chunkRequestBuilder_ != null || chunkRequest_ != null;\n }", "boolean hasDownloadRequest();", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasRetrieveFileResponse();", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "private boolean hasInProgressAttempt(QueuedRequestWithState queuedRequestWithState) {\n return (\n queuedRequestWithState.getCurrentState() ==\n InternalRequestStates.SEND_APPLY_REQUESTS &&\n !agentManager\n .getAgentResponses(queuedRequestWithState.getQueuedRequestId().getRequestId())\n .isEmpty()\n );\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "boolean isPendingToRead();", "boolean hasCompleteFile();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "public boolean isFileStartHit() {\n return pageRequest.getStart() == 0;\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return instance.hasRequest();\n }", "public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }", "public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }", "public boolean isRequestInProgress(final int requestId) {\n return (mRequestSparseArray.indexOfKey(requestId) >= 0);\n }", "boolean hasRetrieveFile();", "boolean hasProgress();", "boolean hasProgress();", "public boolean hasUploadResponse() {\n return uploadResponseBuilder_ != null || uploadResponse_ != null;\n }", "boolean hasMediaFile();", "public boolean hasProgress();", "boolean hasStoreChunkResponse();", "public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }", "public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "public boolean isRecordsAwaitingToBeCommitted() {\n var partitionWorkRemainingCount = getNumberOfEntriesInPartitionQueues();\n return partitionWorkRemainingCount > 0;\n }", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@java.lang.Override\n public boolean hasUploadResponse() {\n return uploadResponse_ != null;\n }", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "public boolean hasBytesToSend() {\n\t\treturn !byteBufferQueue.isEmpty();\n\t}", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "private boolean wasTheFileReallyTransferred(SubmittedFile file)\n\t{\n\t\treturn Duration.between(file.getTimeStamp(), Instant.now()).toMillis() >= tailerDelayMillis; \n\t}", "public boolean isStillProcessing() {\r\n\tif(logger.isDebugEnabled())\r\n\t\tlogger.debug(\"BytesnotReadChangedCount is: \" + bytesReadNotChangedCount);\r\n\tif (bytesReadNotChangedCount > 3) {\r\n\t //Abort processing\r\n\t return false;\r\n\t} else {\r\n\t return true;\r\n\t}\r\n }", "@java.lang.Override\n public boolean hasRequestStatus() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean hasDownloadRequest() {\n return downloadRequestBuilder_ != null || downloadRequest_ != null;\n }", "private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}", "boolean canRequestChunk();", "public boolean wasQueued() {\r\n\t\tif (wasQueued == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean requestPending(String barcode) {\n return currentRequests.contains(barcode);\n }", "public boolean hasRequestStreaming()\n {\n return requestStreaming;\n }", "private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}", "@java.lang.Override\n public boolean hasRequestStatus() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean isDone(String requestId);", "public synchronized boolean hasEditorSynchronizeQueue(IFile f){\r\n \t\treturn syncEditorJobQueue.containsKey(f);\r\n \t}", "@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }", "public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }", "@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}", "public final boolean isDataAvailable() {\n\t\tif ( hasStatus() >= FileSegmentInfo.Available &&\n\t\t\t\t hasStatus() < FileSegmentInfo.Error)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasProgress() {\n return progress_ != null;\n }", "public synchronized boolean isEnabled()\n {\n return requestQueue == null || requestQueue.isEnabled();\n }", "boolean hasAttachment();", "public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }", "boolean hasHaveReceiveAttachment();", "public boolean isQueued() {\r\n\t\tif (vehicleState == \"queued\") {\r\n\t\t\twasQueued = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasChunkSize();", "boolean hasClientRequest();", "boolean hasSegment();", "public boolean inProgress(){return (this.currentTicket != null);}", "public boolean queueFull() {\r\n\t\tif (vehiclesInQueue.size() > maxQueueSize) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasUpdateInodeFile();", "private boolean fileArrived(boolean granted) {\n\tString name = getPolicyFileName(granted);\n\tFile f = new File(name);\n\tboolean rvalue = ( f.exists() && _fileChanged(granted,f) );\n\n if (logger.isLoggable(Level.FINE)){\n logger.fine(\"JACC Policy Provider: file arrival check\" +\n \" type: \" + (granted? \"granted \" : \"excluded \") +\n \" arrived: \" + rvalue +\n\t\t \" exists: \" + f.exists() +\n\t\t \" lastModified: \" + f.lastModified() + \n\t\t \" storedTime: \" + lastModTimes[(int) (granted ? 1 : 0)] +\n \" state: \" + (this.state == OPEN_STATE ? \"open \" : \"deleted \") +\n CONTEXT_ID);\n }\n\n\treturn rvalue;\n }", "public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }", "public boolean hasHttpRequest() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "private boolean isValidFile(String sHTTPRequest) {\n String sRootFolder = \"/\" + ROOT_FOLDER.getName();\n return sAvailableFiles.contains(sRootFolder + sHTTPRequest.toLowerCase());\n }", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@java.lang.Override\n public boolean hasHttpRequest() {\n return httpRequest_ != null;\n }", "boolean hasHaveAttachment();", "public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasEvents() {\n return !currentSegment.isEmpty() || !historySegments.isEmpty();\n }", "boolean isFileEnded();", "boolean hasTask();" ]
[ "0.69090354", "0.6468922", "0.64056236", "0.6280838", "0.625458", "0.620004", "0.61747545", "0.61634177", "0.6148895", "0.6138443", "0.6138443", "0.6138443", "0.6135919", "0.6135919", "0.6133334", "0.61140907", "0.60967875", "0.6076559", "0.6076559", "0.6065202", "0.6065202", "0.6053827", "0.60345364", "0.6026904", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.60083055", "0.6008211", "0.6004386", "0.6004386", "0.5944561", "0.5921578", "0.5921578", "0.59105337", "0.59103996", "0.58946675", "0.58946675", "0.5852469", "0.5840241", "0.5839896", "0.58359885", "0.58252156", "0.58235484", "0.5812685", "0.5812685", "0.57999283", "0.57967615", "0.57768726", "0.57673573", "0.57603484", "0.57552147", "0.57474464", "0.57216245", "0.5683751", "0.56561244", "0.5645751", "0.5644978", "0.5644043", "0.5642211", "0.5633677", "0.56132644", "0.56120294", "0.55974674", "0.5592363", "0.55889595", "0.55678034", "0.5558933", "0.5542954", "0.5540925", "0.55346286", "0.5522133", "0.5518011", "0.55123967", "0.55061144", "0.5502767", "0.5496977", "0.5493221", "0.5479783", "0.54752564", "0.5468614", "0.54674035", "0.54455566", "0.54274106", "0.5417317", "0.5394058", "0.5386899", "0.53800035", "0.53765106", "0.5368024", "0.5352651", "0.53428805", "0.5337763", "0.5337527" ]
0.6130022
15
Check if the file data is available
public final boolean isDataAvailable() { if ( hasStatus() >= FileSegmentInfo.Available && hasStatus() < FileSegmentInfo.Error) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean fileIsReady()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(notFound)\n\t\t\t{\n\t\t\t\tisReady = false;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tisReady = reader.ready();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn isReady;\n\t}", "@Override\n\tpublic boolean readData(File file) {\n return file.exists();\n\t}", "public boolean canReadData() {\r\n \t\tboolean can = true;\r\n \t\tif (null == dataFile ) {\r\n \t\t\tcan = false;\r\n \t\t}\r\n \t\treturn can;\r\n \t}", "private boolean canRead() {\n\t\treturn fileStatus;\n\t}", "public boolean IsAvailable(File file){\n\n\t\tif(file==null) {\n\t\t\tnew Log (\"File EROOR: NULL\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (file.exists()) {\n\t\t\tif (file.isFile() && file.canRead() && file.canWrite()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tnew Log(file.getPath() + \" is Not Available\");\n\t\treturn false;\n\t}", "boolean hasCompleteFile();", "boolean hasRead();", "public boolean isDataAvailable()\r\n {\r\n return true;\r\n }", "boolean isUsedForReading();", "public boolean isSetFileData() {\n return this.fileData != null;\n }", "private void checkFile() {\n \ttry {\n \t\tdata = new BufferedReader(\n \t\t\t\t new FileReader(textFile));\n \t\t\n \t}\n \tcatch(FileNotFoundException e)\n \t{\n \t\tSystem.out.println(\"The mentioned File is not found.\");\n System.out.println(\"\");\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The following error occured while reading the file.\");\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(2);\n\t\t}\n }", "boolean hasRetrieveFile();", "public boolean isDataAvailable(){return true;}", "boolean hasFileLoc();", "private boolean isEmptyFile(String filename) {\n try (InputStream in = IO.openFile(filename)) {\n int b = in.read();\n return (b == -1);\n } catch (IOException ex) {\n throw IOX.exception(ex);\n }\n }", "public boolean readData() {\r\n \t\tif (null == dataFile)\r\n \t\t\treturn false;\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Reading Data...\");\r\n \t\t}\r\n \t\tgncDataHandler = new GNCDataHandler(this, dataFile, gzipFile);\r\n \t\treturn true;\r\n \t}", "boolean hasRetrieveFileResponse();", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }", "public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasFileInfo();", "boolean hasFileInfo();", "@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }", "public boolean hasData();", "public boolean loadData() throws IOException{\n showFileBrowser();\n m_FileName = PATH+ m_FileName;\n m_File = new Scanner(new FileInputStream(m_FileName));\n if (fileFound()){\n if (m_File.hasNextLine()) {\n if (readGrid()){\n } else {\n return false;\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Empty File\");\n return false;\n }\n } else {\n return false;\n }\n return true;\n }", "public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasLoadedFile() {\n return isSuccessfulFileLoad;\n }", "public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }", "public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}", "boolean hasFileLocation();", "boolean hasInodeFile();", "public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "public boolean readDataFile();", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }", "public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}", "public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }", "public boolean exists() {\n return _file.exists();\n }", "public static void checkDataStatus() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tif (DataHandler.currentDataFileName == null)\r\n\t\t\tDialogConfigureYear.noDatabaseMessage();\r\n\t}", "protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }", "private boolean readFile() {\n JFileChooser jfc=new JFileChooser();\n jfc.setCurrentDirectory(new File(\"Users/\"+System.getProperty(\"user.name\")+\"/Desktop\"));\n jfc.setDialogTitle(WED_ZERO.lang.getInstruct().get(1)[34]);\n jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n jfc.setFileFilter(new FileType());\n jfc.setVisible(true);\n if (jfc.showOpenDialog(panel)==JFileChooser.APPROVE_OPTION) {\n Reader read=new Reader(FileManaging.processLoc(jfc.getCurrentDirectory(), jfc.getSelectedFile()));\n try {\n this.processNewData(read.getMap(), read.getPacketName());\n return true;\n } catch (IOException ex) {\n ERROR.ERROR_362(Launch.frame);\n return false;\n }\n }\n return true;\n }", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "public synchronized boolean isOpen() {\n return randomAccessFile != null;\n }", "boolean hasFilePath();", "public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }", "public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }", "boolean hasDriveFile();", "boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }", "boolean getFileErr();", "public static boolean isFileAvailable(String ID, DawnParser parser)\n {\n return (parser.getProperty(\"DAWN.IO#FILE.\" + ID) != null);\n }", "public boolean isMetaDataAvailable()\n\t{\n\t\tboolean allLoaded = true;\n\t\ttry \n\t\t{\n\t\t\t// we need to ask the session since our fileinfocache will hide the exception\n\t\t\tSwfInfo[] swfs = m_session.getSwfs();\n\t\t\tfor(int i=0; i<swfs.length; i++)\n\t\t\t{\n\t\t\t\t// check if our processing is finished.\n\t\t\t\tSwfInfo swf = swfs[i];\n\t\t\t\tif (swf != null && !swf.isProcessingComplete())\n\t\t\t\t{\n\t\t\t\t\tallLoaded = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NoResponseException nre)\n\t\t{\n\t\t\t// ok we still need to wait for player to read the swd in\n\t\t\tallLoaded = false;\n\t\t}\n\n\t\t// count the number of times we checked and it wasn't there\n\t\tif (!allLoaded)\n\t\t{\n\t\t\tint count = propertyGet(METADATA_NOT_AVAILABLE);\n\t\t\tcount++;\n\t\t\tpropertyPut(METADATA_NOT_AVAILABLE, count);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// success so we reset our attempt counter\n\t\t\tpropertyPut(METADATA_ATTEMPTS, METADATA_RETRIES);\n\t\t}\n\t\treturn allLoaded;\n\t}", "public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean exist(String fileName) throws DataAccessException;", "protected boolean checkFileSystem() {\n if (this.fsOk && fs != null) {\n try {\n FSUtils.checkFileSystemAvailable(fs);\n } catch (IOException e) {\n LOG.fatal(\"Shutting down HRegionServer: file system not available\", e);\n abort();\n fsOk = false;\n }\n }\n return this.fsOk;\n }", "public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }", "protected int available() throws IOException {\n return getInputStream().available();\n }", "public boolean hasFileAttached()\n throws OculusException;", "private boolean isFileAccessible() {\n\t\ttry {\n\t\t\tif (!new File(fileUpload.getFilePath()).exists())\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t} catch (SecurityException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public final int available() throws IOException {\r\n\t\treturn (int)(f.length() - f.getFilePointer());\r\n\t}", "boolean hasBinaryData();", "private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }", "boolean hasForRead();", "private boolean canReadFile(File file) {\n if (!file.exists()) {\n log(log, Level.INFO, \"File \" + file.getAbsolutePath() + \" does not exist\");\n return false;\n }\n\n if (!file.canRead()) {\n log(log, Level.INFO, \"File \" + file.getAbsolutePath() + \" cannot be read\");\n\n return false;\n }\n\n return true;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}", "public int available() throws IOException;", "public boolean available() throws SerialPortException {\n\t\treturn port.getInputBufferBytesCount()>0;\n\t}", "protected int available() throws IOException\n {\n return getInputStream().available();\n }", "boolean isPendingToRead();", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}", "public boolean fileExists(String fileName){\n\t\t\tboolean exists = false;\n\t\t\ttry{\n\t \t FileInputStream fin = openFileInput(fileName);\n\t\t\t\tif(fin == null){\n\t\t\t\t\texists = false;\n\t\t\t\t}else{\n\t\t\t\t\texists = true;\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t}catch (Exception je) {\n\t\t //Log.i(\"ZZ\", \"AppDelegate:fileExists ERROR: \" + je.getMessage()); \n\t\t exists = false;\n\t\t\t}\n\t\t\treturn exists;\n\t\t}", "private boolean isExternalStorageAvailable() {\n String state = Environment.getExternalStorageState();\n return state.equals(Environment.MEDIA_MOUNTED);\n }", "boolean hasDownloadResponse();", "public boolean hasFileLocation() {\n return msgCase_ == 9;\n }", "boolean hasDownloadRequest();", "protected boolean checkFileSystem() {\n if (fsOk) {\n try {\n FSUtils.checkFileSystemAvailable(fs);\n } catch (IOException e) {\n LOG.fatal(\"Shutting down HBase cluster: file system not available\", e);\n closed.set(true);\n fsOk = false;\n }\n }\n return fsOk;\n }", "boolean hasMediaFile();", "public final boolean isAlive() {\n\t\tboolean isAlive = (new File(getFileNamePath())).isFile();\n\n\t\tif (isAlive) {\n\t\t\ttry (Socket socket = new Socket()) {\n\t\t\t\t// this will throw an exception if the socket is in use/unavailable.\n\t\t\t\tsocket.bind(\n\t\t\t\t\t\tnew InetSocketAddress(InetAddress.getLoopbackAddress().getHostAddress(), getPublisherPort()));\n\t\t\t\tisAlive = false;\n\t\t\t} catch (IOException e) {\n\t\t\t\tisAlive = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (SystemUtils.isInDebugMode()) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!isAlive) {\n\t\t\t// we should try to delete the file; this may be left over from a crashed\n\t\t\t// process..\n\t\t\tFileUtils.safeDeleteFile(getFileNamePath());\n\t\t}\n\n\t\treturn isAlive;\n\t}", "private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }", "public boolean hasFileLocation() {\n return msgCase_ == 9;\n }", "public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}", "private boolean isValid() throws BadInputException {\n try {\n if( ! br.ready() ) \t\t\t\t\t\t//Is the reader ready?\n throw new BadInputException();\t\t//Must be a problem with the file, throw exception\n }\n catch(java.io.IOException e) {\n System.out.println(\"Error validating readability of file: \" + e.toString() );\n }\n\n return true;\n }", "boolean isSeekable();", "public boolean fileFound(){\n\n try{\n\n m_CSVReader = new CSVReader(new FileReader(m_FileName));\n\n } catch (FileNotFoundException e){\n\n System.out.println(\"Input file not found.\");\n\n return false;\n }\n return true;\n }", "private static boolean readReadWriteFile() {\n File mountFile = new File(\"/proc/mounts\");\n StringBuilder procData = new StringBuilder();\n if (mountFile.exists()) {\n try {\n FileInputStream fis = new FileInputStream(mountFile.toString());\n DataInputStream dis = new DataInputStream(fis);\n BufferedReader br = new BufferedReader(new InputStreamReader(\n dis));\n String data;\n while ((data = br.readLine()) != null) {\n procData.append(data).append(\"\\n\");\n }\n\n br.close();\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n String[] tmp = procData.toString().split(\"\\n\");\n for (String aTmp : tmp) {\n // Kept simple here on purpose different devices have\n // different blocks\n if (aTmp.contains(\"/dev/block\")\n && aTmp.contains(\"/system\")) {\n if (aTmp.contains(\"rw\")) {\n // system is rw\n return true;\n } else if (aTmp.contains(\"ro\")) {\n // system is ro\n return false;\n } else {\n return false;\n }\n }\n }\n }\n return false;\n }", "private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}" ]
[ "0.7324387", "0.72718513", "0.69816786", "0.69286335", "0.68515974", "0.68084097", "0.6734463", "0.6688101", "0.6637037", "0.6580543", "0.6579351", "0.65683436", "0.6530605", "0.6471933", "0.6460734", "0.6431436", "0.6405581", "0.639043", "0.6384524", "0.6363784", "0.6330478", "0.6325085", "0.6325085", "0.6325085", "0.6325085", "0.6325085", "0.6325085", "0.6325085", "0.6312671", "0.6312671", "0.63071096", "0.6302149", "0.6263587", "0.6260641", "0.62552714", "0.62544906", "0.624909", "0.6248286", "0.6242915", "0.6240211", "0.62375027", "0.6232507", "0.6228715", "0.6227368", "0.62272763", "0.62255514", "0.621575", "0.6212417", "0.61799306", "0.61755866", "0.61700565", "0.6145831", "0.61396873", "0.6129425", "0.6113952", "0.61120003", "0.61032724", "0.60949916", "0.6093588", "0.60900825", "0.6081795", "0.6078965", "0.60616916", "0.6051998", "0.6050412", "0.60434365", "0.6040337", "0.6038448", "0.60262126", "0.6023509", "0.60021067", "0.5980672", "0.5976846", "0.5976044", "0.59680265", "0.5953894", "0.5947224", "0.59411037", "0.59402716", "0.5931018", "0.5928448", "0.5912988", "0.5912988", "0.59124595", "0.5910887", "0.59095496", "0.5909418", "0.5909295", "0.59040153", "0.5902757", "0.59000814", "0.58967537", "0.58951217", "0.58924055", "0.58888626", "0.588877", "0.5870261", "0.58595186", "0.5857394", "0.5851844" ]
0.7563476
0
Check if the associated temporary file should be deleted once the data store has completed successfully.
public final boolean hasDeleteOnStore() { return (m_flags & DeleteOnStore) != 0 ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }", "boolean hasDeleteFile();", "protected abstract boolean deleteCheckedFiles();", "private boolean deleteIfState(File file) {\n if (file.exists()) {\n Duration itemAge = Duration.ofMillis(file.lastModified());\n if (!itemAge.plus(duration).minusMillis(System.currentTimeMillis()).isNegative()) {\n return file.delete();\n }\n }\n\n return false;\n }", "public boolean isDeleteFileWhenComplete() {\r\n\t\treturn deleteFileWhenComplete;\r\n\t}", "private static boolean deleteRealmFileInStorage(RealmConfiguration realmConfiguration){\n return (Realm.deleteRealm(realmConfiguration));\n }", "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "private void checkAndDeleteFile(String resultLogFileName) {\n\t\t// check whether a file was written\n\t\tfinal File f = new File(resultLogFileName);\n\t\t// The true result log file name has attached time stamps!\n\t\tFile parentDirectory = f.getParentFile();\n\t\tString[] files = parentDirectory.list(new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\tif(name.startsWith(f.getName())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tAssert.assertNotSame(\"No log file was created.\", 0, files.length);\n\t\tFile realF = new File(parentDirectory, files[0]);\n\t\tAssert.assertTrue(\"Created file is empty.\", realF.length() > 0);\n\n\t\t// remove file again\n\t\tif(realF.exists()) {\n\t\t\trealF.delete();\n\t\t}\n\t}", "private static boolean hasTempPermission() {\n\n if (System.getSecurityManager() == null) {\n return true;\n }\n File f = null;\n boolean hasPerm = false;\n try {\n f = File.createTempFile(\"+~JT\", \".tmp\", null);\n f.delete();\n f = null;\n hasPerm = true;\n } catch (Throwable t) {\n /* inc. any kind of SecurityException */\n }\n return hasPerm;\n }", "public final void deleteTemporaryFile()\n\t\tthrows IOException {\n\t\t\t\n // DEBUG\n \n if ( isQueued()) {\n Debug.println(\"@@ Delete queued file segment, \" + this);\n Thread.dumpStack();\n }\n \n\t\t//\tDelete the temporary file used by the file segment\n\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\t\t\t\n\t\tif ( tempFile.exists() && tempFile.delete() == false) {\n\n\t\t //\tDEBUG\n\t\t \n\t\t Debug.println(\"** Failed to delete \" + toString() + \" **\");\n\t\t \n\t\t //\tThrow an exception, delete failed\n\t\t \n\t\t\tthrow new IOException(\"Failed to delete file \" + getTemporaryFile());\n\t\t}\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n Log.d(\"Paul\", \"delete file\");\n\n File file = new File(Environment.getExternalStorageDirectory().getPath(), getString(R.string.temp_file_name));\n try {\n // if file exists in memory\n if (file.exists()) {\n file.delete();\n Log.d(\"Paul\", \"file deleted\");\n }\n } catch (Exception e) {\n Log.d(\"Paul\",\"Some error happened?\");\n }\n\n }", "public boolean delete() {\n return new File(DataCrow.moduleDir, filename).delete();\n }", "public boolean delete() throws SecurityException {\n return _file.delete();\n }", "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "private synchronized boolean deleteFileOrFolder(File fileToDelete, String readablePathForLog)\n {\n if (fileToDelete != null && fileToDelete.exists())\n {\n if (fileToDelete.delete())\n {\n // Success\n //String fileMsg = \"Deleted \" + readablePathForLog;\n //LogDAO.getInstance().add(fileMsg);\n return true;\n }\n else\n {\n // Failure\n\n // Only write to log if failed\n String fileMsg = \"Failed to delete \" + readablePathForLog;\n LogDAO.getInstance().add(fileMsg);\n }\n }\n\n // Failure\n return false;\n }", "public void deleteReportFileIfExists(final ReportsTestData testData)\n throws IOException, NullPointerException {\n Log.logScriptInfo(\"Cleaning before or after the script...\");\n switch (testData.getFileType()) {\n case \"PDF\":\n verifyIfReportPdfFileExists(\n testData.getReportFileName(),\n false);\n break;\n case \"Excel\":\n verifyIfReportExcelFileExists(\n testData.getReportFileName(), false);\n break;\n case \"CSV\":\n verifyIfReportCsvFileExists(\n testData.getReportFileName(), false);\n break;\n }\n }", "boolean hasForceDelete();", "protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }", "public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setTempFile: \" + tempFile.getAbsolutePath());\n } catch (IOException e) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Exception creating tempfile. \" + e.getMessage());\n return false;\n }\n\n if (tempFile==null || !(tempFile instanceof File)) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Failed to create valid tempFile.\");\n return false;\n }\n\n return true;\n }", "@Override\r\n\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\tS3FileHandle updated = fileHandleDao.createFile(fh);\r\n\t\t\t\ttoDelete.add(updated.getId());\r\n\t\t\t\treturn true;\r\n\t\t\t}", "public boolean deleteExternalStoragePrivateFile() {\n if (context != null) {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n file.delete();\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean onCreate() {\n File[] files = getContext().getCacheDir().listFiles();\n for (File file : files) {\n String filename = file.getName();\n if (filename.endsWith(\".tmp\") || filename.startsWith(\"thmb_\")) {\n file.delete();\n }\n }\n return true;\n }", "protected void tryDeleting() {\n\t\tAsyncTaskHelper.create(new AsyncMethods<SavedGoal>() {\n\n\t\t\t@Override\n\t\t\tpublic SavedGoal doInBackground() {\n\t\t\t\treturn ClientSavedGoalManagement.deleteSavedGoal(savedGoal);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDone(SavedGoal value, long ms) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\t// error, nothing deleted\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\"Your saved goal was not deleted, error!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\"Saved goal deleted!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\tprotected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize(); // currently empty but there for safer refactoring\n\n\t\tFile outputFile = dfos.getFile();\n\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "private boolean checkDeletion(Path folder) {\n if (logger.isDebugEnabled()) {\n logger.log(Level.DEBUG, \"Checking for: \" + folder.getFileName());\n }\n\n try {\n FileTime time = Files.getLastModifiedTime(folder);\n Calendar calTime = Calendar.getInstance();\n calTime.setTimeInMillis(time.toMillis());\n calTime.add(Calendar.HOUR_OF_DAY, CLEAN_HOURS);\n\n if (calTime.getTimeInMillis() <= Calendar.getInstance().getTimeInMillis()) {\n return true;\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot check file\", ex);\n }\n\n return false;\n }", "private boolean deleteFilesNow(File cacheFile)\r\n {\r\n CacheFileProps props = new CacheFileProps(cacheFile);\r\n props.delete();\r\n long fileSize = cacheFile.length();\r\n boolean deleted = cacheFile.delete();\r\n if (deleted)\r\n {\r\n numFilesDeleted++;\r\n sizeFilesDeleted += fileSize;\r\n Deleter.deleteEmptyParents(cacheFile, cache.getCacheRoot());\r\n }\r\n \r\n return deleted;\r\n }", "public void testDeleteFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n assertTrue(\"the file should exist\", new File(VALID_FILELOCATION, FILENAME).exists());\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n assertFalse(\"the file should not exist\", new File(VALID_FILELOCATION, FILENAME).exists());\r\n }", "public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean hasDeleteAfterCompletion()\r\n\t{\r\n\t\treturn isDeleteAfterCompletion();\r\n\t}", "private boolean onlyInstance(){\n File dir1 = new File (\".\");\n String location=\"\";\n\n try{\n location = dir1.getCanonicalPath();\n } catch (IOException e) {\n }\n File temp = new File(location+\"\\\\holder.tmp\");\n\n if (!temp.exists())\n return true;\n else\n {\n int result = JOptionPane.showConfirmDialog(null,\n \"Instance of TEWIN already running (or at least I think it is)!\\n\" +\n \"Click YES to load anyway, or NO to exit\",\"I think I'm already running\",\n JOptionPane.YES_NO_OPTION);\n if(result == JOptionPane.YES_OPTION)\n {\n temp.delete();\n return true;\n }else\n return false;\n }\n \n }", "public boolean clean() {\n\t\tboolean result = false;\n\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t((File) file).delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "private static boolean deleteFile(String fileName) {\n File f = new File(fileName);\n\n // Make sure the file or directory exists and isn't write protected\n// if (!f.exists())\n// throw new IllegalArgumentException(\n// \"Delete: no such file or directory: \" + fileName);\n//\n// if (!f.canWrite())\n// throw new IllegalArgumentException(\"Delete: write protected: \"\n// + fileName);\n\n // If it is a directory, make sure it is empty\n// if (f.isDirectory()) {\n// String[] files = f.list();\n// if (files.length > 0)\n// throw new IllegalArgumentException(\n// \"Delete: directory not empty: \" + fileName);\n// }\n\n // Attempt to delete it\n boolean success = f.delete();\n\n// if (!success)\n// throw new IllegalArgumentException(\"Delete: deletion failed\");\n return success;\n }", "private static boolean DeleteFile(String fileName) {\n boolean delete = false;\n File f = new File(fileName);\n if (f.exists()) {\n delete = f.delete();\n }\n return delete;\n }", "public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean dropTemporaryTableAfterUse() {\n \t\treturn true;\n \t}", "boolean hasReinitializeFile();", "boolean hasDeleteStore();", "private boolean deleteFile(final File file)\n\t\t\tthrows WritePermissionException\n\t{\n\t\tif (!file.exists())\n\t\t\treturn false;\n\n\t\t// First try the normal deletion.\n\t\tif (file.delete()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Try with Storage Access Framework.\n\t\tif (Util.hasLollipop())\n\t\t{\n\t\t\tUsefulDocumentFile document = getDocumentFile(file, false, true);\n\t\t\treturn document != null && document.delete();\n\t\t}\n\n\t\treturn !file.exists();\n\t}", "public boolean delete() {\r\n\t return SharedPreferencesUtil.delete(mContext, prefsFileName); \r\n\t}", "protected boolean arff_exists() {\n\t\tFile tmpDir = new File(arff_path + \"\\\\\" + taskdata_name + \".arff\");\n\t\treturn tmpDir.exists();\n\t}", "@AfterStep\n\tprivate void deleteFile(){\n\t\tif(LOGGER.isDebugEnabled()){\n\t\tLOGGER.debug(\" Entering into SalesReportByProductEmailProcessor.deleteFile() method --- >\");\n\t\t}\n\t\ttry {\n\t\t\tif(null != salesReportByProductBean){\n\t\t\tReportsUtilBO reportsUtilBO = reportBOFactory.getReportsUtilBO();\n\t\t\tList<String> fileNames = salesReportByProductBean.getFileNameList();\n\t\t\tString fileLocation = salesReportByProductBean.getFileLocation();\n\t\t\treportsUtilBO.deleteFile(fileNames, fileLocation);\n\t\t\t}\n\t\t} catch (PhotoOmniException e) {\n\t\t\tLOGGER.error(\" Error occoured at SalesReportByProductEmailProcessor.deleteFile() method ----> \" + e);\n\t\t}finally {\n\t\t\tif(LOGGER.isDebugEnabled()){\n\t\t\tLOGGER.debug(\" Exiting from SalesReportByProductEmailProcessor.deleteFile() method ---> \");\n\t\t\t}\n\t\t}\n\t}", "private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected void deletePotentialUpload(String targetPath) {\n\t\tFileSystem fileSystem = Mesh.vertx().fileSystem();\n\t\tif (fileSystem.existsBlocking(targetPath)) {\n\t\t\t// Deleting of existing binary file\n\t\t\tfileSystem.deleteBlocking(targetPath);\n\t\t}\n\t\t// log.error(\"Error while attempting to delete target file {\" + targetPath + \"}\", error);\n\t\t// log.error(\"Unable to check existence of file at location {\" + targetPath + \"}\");\n\n\t}", "@Override\n public void onRunFinish(boolean succeeded, BatchSourceContext context) {\n // perform any actions that should happen at the end of the run.\n // in our case, we want to delete the data read during this run if the run succeeded.\n if (succeeded && config.deleteInputOnSuccess) {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n FileSet fileSet = context.getDataset(config.fileSetName, arguments);\n for (Location inputLocation : fileSet.getInputLocations()) {\n try {\n inputLocation.delete(true);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n }\n }", "public void deleteTemporaryFiles() {\n if (!shouldReap()) {\n return;\n }\n\n for (File file : temporaryFiles) {\n try {\n FileHandler.delete(file);\n } catch (UncheckedIOException ignore) {\n // ignore; an interrupt will already have been logged.\n }\n }\n }", "protected boolean afterDelete() {\n if (!DOCSTATUS_Drafted.equals(getDocStatus())) {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n } \n \n //C_AllocationLine\n String sql = \"DELETE FROM C_AllocationLine \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PaymentAllocate\n sql = \"DELETE FROM C_PaymentAllocate \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_VALORPAGO\n sql = \"DELETE FROM C_VALORPAGO \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTVALORES\n sql = \"DELETE FROM C_PAYMENTVALORES \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTRET\n sql = \"DELETE FROM C_PAYMENTRET \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n return true;\n\n }", "public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }", "public void tesCloseFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n try {\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n fail(\"there shouldn't exist output stream with id \" + fileCreationId);\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "@Test\n public void shouldDeleteIncompleteRestores()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the replica meta data indicates the file was\n // being restored from tape and has is supposed to have a\n // different file size,\n StorageInfo info = createStorageInfo(20);\n givenMetaDataStoreHas(PNFSID, FROM_STORE, info);\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then nothing is returned\n assertThat(record, is(nullValue()));\n\n // and the replica is deleted\n assertThat(_metaDataStore.get(PNFSID), is(nullValue()));\n assertThat(_fileStore.get(PNFSID).exists(), is(false));\n\n // and the location is cleared\n verify(_pnfs).clearCacheLocation(PNFSID);\n\n // and the name space entry is not touched\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n }", "@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = MockFile.createTempFile(\"ShoppingCart=get&f=xml&dev-t=\", \"\");\n file0.delete();\n boolean boolean0 = fileUtil0.isAgeGood(file0);\n assertFalse(boolean0);\n }", "protected boolean shouldDelete(String segmentsFileName) {\r\n return !segmentsFileToIDs.containsKey(segmentsFileName);\r\n }", "private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }", "public boolean delete()\n\t{\n\t\treturn deleteRecursive( file ) ;\n\t}", "private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }", "public boolean hasForceDelete() {\n return forceDelete_ != null;\n }", "public void destroy() {\r\n if (isDestroyed) {\r\n return;\r\n }\r\n isDestroyed = true;\r\n IOUtil.safeDelete(fileA);\r\n IOUtil.safeDelete(fileB);\r\n }", "public void testCreateFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.closeFile(fileCreationId);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "@Override\n\tpublic boolean isLocked() { The lock file must be manually deleted.\n\t\t//\n\t\treturn lockFile.exists();\n\t}", "@Override\r\n public void onConfirmation(String callerTag) {\r\n ComponentsGetter cg = (ComponentsGetter)getSherlockActivity();\r\n FileDataStorageManager storageManager = cg.getStorageManager();\r\n if (storageManager.getFileById(mTargetFile.getFileId()) != null) {\r\n cg.getFileOperationsHelper().removeFile(mTargetFile, false);\r\n }\r\n }", "static boolean removeAllCacheFiles() {\n // delete cache files in a separate thread to not block UI.\n final Runnable clearCache = new Runnable() {\n public void run() {\n // delete all cache files\n try {\n String[] files = mBaseDir.list();\n // if mBaseDir doesn't exist, files can be null.\n if (files != null) {\n for (int i = 0; i < files.length; i++) {\n File f = new File(mBaseDir, files[i]);\n if (!f.delete()) {\n Log.e(LOGTAG, f.getPath() + \" delete failed.\");\n }\n }\n }\n } catch (SecurityException e) {\n // Ignore SecurityExceptions.\n }\n }\n };\n new Thread(clearCache).start();\n return true;\n }", "protected boolean afterDelete() throws DBSIOException{return true;}", "boolean hasDeleteTaskPack();", "boolean hasDelete();", "boolean hasDelete();", "@Override public void cleanupTempCheckpointDirectory() throws IgniteCheckedException {\n try {\n try (DirectoryStream<Path> files = Files.newDirectoryStream(cpDir.toPath(), TMP_FILE_MATCHER::matches)) {\n for (Path path : files)\n Files.delete(path);\n }\n }\n catch (IOException e) {\n throw new IgniteCheckedException(\"Failed to cleanup checkpoint directory from temporary files: \" + cpDir, e);\n }\n }", "public boolean clearCache() {\n File directory=new File(cacheDirectory);\n File[] files=directory.listFiles();\n boolean alldeleted=true;\n for (File file:files) {\n if (!engine.deleteTempFile(file)) { // this will delete files recursively for directories\n engine.logMessage(\"SYSTEM ERROR: Unable to delete cache for: \"+file.getAbsolutePath());\n alldeleted=false; \n }\n }\n return alldeleted;\n }", "boolean hasDeleteSensor();", "@Override\n public void onDestroy() {\n super.onDestroy();\n if (!isChangingConfigurations()) {\n pickiT.deleteTemporaryFile(this);\n }\n }", "protected void tearDown() throws Exception {\r\n filePersistence = null;\r\n readOnlyFile.delete();\r\n }", "private boolean checkDeletion() {\n/* 4471 */ if (this.creatures == null || this.creatures.size() == 0)\n/* */ {\n/* 4473 */ if (this.vitems == null || this.vitems.isEmpty())\n/* */ {\n/* 4475 */ if (this.walls == null || this.walls.size() == 0)\n/* */ {\n/* 4477 */ if (this.structure == null)\n/* */ {\n/* 4479 */ if (this.fences == null)\n/* */ {\n/* 4481 */ if (this.doors == null || this.doors.size() == 0)\n/* */ {\n/* 4483 */ if (this.effects == null || this.effects.size() == 0)\n/* */ {\n/* 4485 */ if (this.floors == null || this.floors.size() == 0)\n/* */ {\n/* 4487 */ if (this.mineDoors == null || this.mineDoors.size() == 0) {\n/* */ \n/* 4489 */ this.zone.removeTile(this);\n/* 4490 */ return true;\n/* */ } \n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 4500 */ return false;\n/* */ }", "boolean hasCompleteFile();", "boolean hasDeleteBackUp();", "public boolean delete(String filename);", "@After\n public void after() throws Exception\n {\n Files.walkFileTree(tempDir, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException {\n Files.delete(file);\n return(FileVisitResult.CONTINUE);\n }\n @Override\n public FileVisitResult postVisitDirectory(final Path dir, final IOException exc) throws IOException {\n Files.delete(dir);\n return(FileVisitResult.CONTINUE);\n }\n });\n // Check that it has been cleared.\n if(tempDir.toFile().exists()) { throw new AssertionError(\"cleanup failed: \" + tempDir); }\n tempDir = null;\n }", "public boolean hasDeleteSensor() {\n return deleteSensor_ != null;\n }", "protected void deleteEmptyErrorORSuccessFile(boolean errorFound, boolean successFound, String errorFile, String successFile) {\n\t\tif(!errorFound) {\n\t\t\tlog.debug(\"No error record found...\");\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(Paths.get(errorFile));\n\t\t\t\tlog.debug(\"Deleted empty error file : {}\", errorFile);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"Can't delete empty error file : {}\", errorFile);\n\t\t\t}\n\t\t}\n\n\t\t// If no success record found then delete success csv file\n\t\tif(!successFound) {\n\t\t\tlog.debug(\"No success record found...\");\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(Paths.get(successFile));\n\t\t\t\tlog.debug(\"Deleted empty success file : {}\", successFile);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"Can't delete empty success file : {}\", successFile);\n\t\t\t}\n\t\t}\n\t}", "public void exitTemp() {\r\n tr.saveTempToFile(TemplateManager.IdToTemplate);\r\n }", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "@AfterClass\n public static void teardown() {\n logger.info(\"teardown: remove the temporary directory\");\n\n // the assumption is that we only have one level of temporary files\n for (File file : directory.listFiles()) {\n file.delete();\n }\n directory.delete();\n }", "public boolean temporaryExist(String temporary) {\n\t\treturn temporaryTable.containsKey(temporary);\n\t}", "boolean hasRetrieveFile();", "public boolean deleteOnExit();", "@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }", "public void deleteTempDir(File file) {\n if (!shouldReap()) {\n return;\n }\n\n // If the tempfile can be removed, delete it. If not, it wasn't created by us.\n if (temporaryFiles.remove(file)) {\n FileHandler.delete(file);\n }\n }", "boolean getTemporaryInMemory();", "public void tryDelete() throws Exception {\r\n\t\tif (_confirmDelete && getPageDataStoresStatus() != DataStoreBuffer.STATUS_NEW) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToDeleteQuestion, _okToDeleteValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToDeleteQuestion, null, -1, _okToDelete);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoDelete();\r\n }\r\n\t}", "public boolean isDeleteAfterCompletion()\r\n\t{\r\n\t\treturn deleteAfterCompletion;\r\n\t}", "public boolean deleteFile(File file) {\n\t\treturn file.delete();\n\t}", "public void testDisposeSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.dispose();\r\n try {\r\n filePersistence.appendBytes(fileCreationId, new byte[10]);\r\n fail(\"all open output stream should closed\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "public static boolean emptyTempTables() {\n ArrayList temp_tables = new ArrayList();\n // Since the mrblock depends on mrfile it actually\n // could be skipped but this way the program will also\n // check if the tables exist and give an error back if any doesn't.\n temp_tables.add( \"mrfile\" );\n temp_tables.add( \"mrblock\" );\n boolean status = sql_epiII.emptyTables( temp_tables, false );\n return status;\n }", "public void deleteOutputData() {\n\t\tif (outputData != null) {\n\t\t\tFile file = outputData;\n\t\t\toutputData = null;\n\t\t\tsave();\n\t\t\tfile.delete();\n\t\t}\n\t}", "public boolean removeFile(String filename) {\n\n\t\tif (m_db == null)\n\t\t\treturn false;\n\t\t\n\t\ttry {\n\t\t\tlong pending_affected = 0;\n\t\t\tlong file_cache_affected = 0;\n\n\t\t\t//\n\t\t\t// remove all file references\n\t\t\t//\n\t\t\tremoveFileReferences(filename);\n\n\t\t\t//\n\t\t\t// remove file from tag store\n\t\t\t//\n\t\t\tfile_cache_affected = m_db.delete(FILE_TABLE_NAME, FILE_FIELD_PATH\n\t\t\t\t\t+ \"=?\", new String[] { filename });\n\n\t\t\t//\n\t\t\t// informal debug message\n\t\t\t//\n\t\t\tLogger.i(\"DBManager::removeFile> Pending file: \" + pending_affected\n\t\t\t\t\t+ \" TagStore Cache: \" + file_cache_affected);\n\n\t\t\t//\n\t\t\t// done\n\t\t\t//\n\t\t\treturn true;\n\t\t} catch (SQLException exc) {\n\t\t\tLogger.e(\"DBManager::removeFile> exception occured\");\n\t\t\texc.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@AfterClass\n public static void cleanup() throws IOException {\n File directory = new File(TMP_DIR_BASE);\n File dirname = directory.getParentFile();\n final String basename = directory.getName() + \"[0-9]+\";\n File[] files = dirname.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.matches(basename);\n }\n });\n for (File file : files) {\n if (file.delete() == false) {\n throw new IOException(\"Can't delete \" + file);\n }\n }\n }", "public void delete() {\r\n Log.d(LOG_TAG, \"delete()\");\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.delete()) {\r\n Log.d(LOG_TAG, \"Deleted file \" + chunk.getAbsolutePath());\r\n }\r\n }\r\n new File(mBaseFileName + \".zip\").delete();\r\n }", "@Override\n public CompletableFuture<Void> deleteForcefully() {\n return delete(true);\n }", "@Test\n public void testDeleteGeneratedEmptyFile() throws Throwable {\n String resources = getResourceFolder();\n String outputFile = resources + \"/out/test_deleteGeneratedEmptyFile.csv\";\n LOGGER.debug(\"Test file path: \" + outputFile);\n TFileOutputDelimitedProperties properties = createOutputProperties(outputFile, false);\n List<IndexedRecord> records = new ArrayList<>();\n // Delete generated empty file function not be checked\n doWriteRows(properties, records);\n File outFile = new File(outputFile);\n assertTrue(outFile.exists());\n assertEquals(0, outFile.length());\n assertTrue(outFile.delete());\n // Active delete generated empty file function\n assertFalse(outFile.exists());\n properties.deleteEmptyFile.setValue(true);\n doWriteRows(properties, records);\n assertFalse(outFile.exists());\n\n }", "public boolean delete(String pathAndFilename)\r\n\t{\r\n\r\n\t\t/* Refresh the connection, if necessary. */\r\n\r\n\t\tif (isRefreshConnection())\r\n\t\t\tdoRefreshConnection();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tservice.deleteObject(bucket, pathAndFilename);\r\n\t\t}\r\n\t\tcatch (ServiceException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "private boolean markOrDelete(File file, CacheFileProps props)\r\n {\r\n Integer deleteWatchCount = props.getDeleteWatchCount();\r\n\r\n // Just in case the value has been corrupted somehow.\r\n if (deleteWatchCount < 0)\r\n deleteWatchCount = 0;\r\n \r\n boolean deleted = false;\r\n \r\n if (deleteWatchCount < maxDeleteWatchCount)\r\n {\r\n deleteWatchCount++;\r\n \r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Marking file for deletion, deleteWatchCount=\" + deleteWatchCount + \", file: \"+ file);\r\n }\r\n props.setDeleteWatchCount(deleteWatchCount);\r\n props.store();\r\n numFilesMarked++;\r\n }\r\n else\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Deleting cache file \" + file);\r\n }\r\n deleted = deleteFilesNow(file);\r\n }\r\n \r\n return deleted;\r\n }", "boolean deleteFile(File f);" ]
[ "0.7049401", "0.6968943", "0.657171", "0.64104086", "0.6391457", "0.6336969", "0.63319254", "0.6252975", "0.6235082", "0.62160134", "0.6159366", "0.6132389", "0.61289006", "0.6083492", "0.60682684", "0.60103124", "0.59747", "0.59713274", "0.5918687", "0.59145176", "0.5884518", "0.58656734", "0.58570284", "0.58526117", "0.58502203", "0.58356255", "0.5815623", "0.5806558", "0.57971007", "0.5765113", "0.5762753", "0.5752568", "0.573391", "0.5723149", "0.570863", "0.5707008", "0.56971043", "0.56912386", "0.56893396", "0.5682797", "0.56721956", "0.5645676", "0.5625693", "0.56244045", "0.56209934", "0.56159294", "0.5608033", "0.55973905", "0.55809057", "0.55766284", "0.5575902", "0.5549645", "0.5542979", "0.55352044", "0.5523354", "0.5522322", "0.5519152", "0.5517726", "0.5513496", "0.5511666", "0.55035466", "0.5502982", "0.5490153", "0.54829174", "0.54813963", "0.54813963", "0.5473742", "0.5444878", "0.5431156", "0.5426389", "0.54211503", "0.5414192", "0.5408358", "0.5406559", "0.540597", "0.54039973", "0.5386856", "0.538372", "0.53834", "0.53787905", "0.537797", "0.5374558", "0.53733814", "0.5365595", "0.5365316", "0.5364736", "0.5364084", "0.53488743", "0.53363353", "0.53354615", "0.5327557", "0.532685", "0.5316998", "0.5315311", "0.53124297", "0.5308278", "0.53042126", "0.5300912", "0.5300342", "0.5297761", "0.5295325" ]
0.0
-1
Delete the temporary file used by the file segment
public final void deleteTemporaryFile() throws IOException { // DEBUG if ( isQueued()) { Debug.println("@@ Delete queued file segment, " + this); Thread.dumpStack(); } // Delete the temporary file used by the file segment File tempFile = new File(getTemporaryFile()); if ( tempFile.exists() && tempFile.delete() == false) { // DEBUG Debug.println("** Failed to delete " + toString() + " **"); // Throw an exception, delete failed throw new IOException("Failed to delete file " + getTemporaryFile()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "public void deleteTempDir(File file) {\n if (!shouldReap()) {\n return;\n }\n\n // If the tempfile can be removed, delete it. If not, it wasn't created by us.\n if (temporaryFiles.remove(file)) {\n FileHandler.delete(file);\n }\n }", "private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}", "protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }", "private void removeTmpConfigFile() throws IOException {\n fileSystem.delete(tempConfigPath, true);\n LOG.info(\"delete temp configuration file: \" + tempConfigPath);\n }", "public void delete() {\r\n Log.d(LOG_TAG, \"delete()\");\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.delete()) {\r\n Log.d(LOG_TAG, \"Deleted file \" + chunk.getAbsolutePath());\r\n }\r\n }\r\n new File(mBaseFileName + \".zip\").delete();\r\n }", "public void deleteTemporaryFiles() {\n if (!shouldReap()) {\n return;\n }\n\n for (File file : temporaryFiles) {\n try {\n FileHandler.delete(file);\n } catch (UncheckedIOException ignore) {\n // ignore; an interrupt will already have been logged.\n }\n }\n }", "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "private void removeTempData(CopyTable table)\n\t{\n\t\tFile dataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_data.csv\");\n\t\tFile countFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_count.txt\");\n\t\tFile metaDataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_metadata.ser\");\n\t\t\n\t\tdataFile.delete();\n\t\tcountFile.delete();\n\t\tmetaDataFile.delete();\n\t\t\n\t\tFile tempDir = new File(config.getTempDirectory());\n\t\ttempDir.delete();\n\t}", "public void destroy() {\r\n if (isDestroyed) {\r\n return;\r\n }\r\n isDestroyed = true;\r\n IOUtil.safeDelete(fileA);\r\n IOUtil.safeDelete(fileB);\r\n }", "void deleteFile(FsPath path);", "public static void destroy(String filename) throws IOException {\n\t\t// only system calls are used\n\t\tFileChannel fc = (new RandomAccessFile(filename, \"rw\")).getChannel();\n\t\tlong size = fc.size();\n\t\tfc.truncate(0);\n\t\tfc.truncate(size);\n\t\tfc.close();\n\t}", "public void removeFileInstance()\n {\n this.source = null;\n this.data = null;\n }", "public void deleteFile(File f);", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "@AfterClass\n public static void teardown() {\n logger.info(\"teardown: remove the temporary directory\");\n\n // the assumption is that we only have one level of temporary files\n for (File file : directory.listFiles()) {\n file.delete();\n }\n directory.delete();\n }", "void deleteFile(FileReference fileReferece);", "private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }", "@Override public void cleanupTempCheckpointDirectory() throws IgniteCheckedException {\n try {\n try (DirectoryStream<Path> files = Files.newDirectoryStream(cpDir.toPath(), TMP_FILE_MATCHER::matches)) {\n for (Path path : files)\n Files.delete(path);\n }\n }\n catch (IOException e) {\n throw new IgniteCheckedException(\"Failed to cleanup checkpoint directory from temporary files: \" + cpDir, e);\n }\n }", "public void deleteTmpDirectory() {\n\t\tdeleteTmpDirectory(tmpDir);\n\t}", "public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }", "protected void deleteTmpDirectory(File file) {\n\t\tif (file.exists() && file.canWrite()) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\tfor (File child : files) {\n\t\t\t\t\tif (child.isDirectory()) {\n\t\t\t\t\t\tdeleteTmpDirectory(child);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfile.delete();\n\t\t}\n\t}", "public void cleanup() {\n this.close();\n this.delete(this.backingFileBasename + RECORDING_OUTPUT_STREAM_SUFFIX);\n this.delete(this.backingFileBasename + RECORDING_INPUT_STREAM_SUFFIX);\n }", "protected static void deleteTrash() {\n\t\tArrays.stream(new File(\".\").listFiles())\n\t\t\t.filter(f -> f.getName().startsWith(\"_tmp.\"))\n\t\t\t.forEach(File::delete);\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n if (!isChangingConfigurations()) {\n pickiT.deleteTemporaryFile(this);\n }\n }", "@Override\n public void delete(File file) {\n }", "public void mo83565a(File file) {\n if (!file.delete()) {\n file.deleteOnExit();\n }\n }", "public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }", "public static void clean(Task task, String localTemp) {\n\t\tif (state.getErrCode() == null) S3IO.uploadDir(task.getOutputPath(), localTemp);\n\t\ttry {\n\t\t\tFileUtils.deleteDirectory(new File(localTemp));\n\t\t\tFileUtils.deleteDirectory(task.getTaskType() == TaskType.MAP_TASK\n\t\t\t ? new File(MAP_INPUT_DIR + task.getTaskId()) : new File(REDUCE_INPUT_DIR + task.getTaskId()));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Exception occoured while deleting input files and local temporary directory \\n\"\n\t\t\t + e.getLocalizedMessage());\n\t\t\tstate.setErrCode(state.getTsk() == TaskType.MAP_TASK ? ERR_CODE.EXCEPTION_DELETING_TEMP_DIR_MAP\n\t\t\t : ERR_CODE.EXCEPTION_DELETING_TEMP_DIR_REDUCE);\n\t\t}\n\n\t}", "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }", "public static void clearFile() {\n if (data.delete())\n data = new File(\"statistics.data\");\n }", "public void cancelDemo() {\r\n \t\t\r\n \t\tif (this.fos != null) {\r\n \t\t\t\r\n \t\t\ttry {\r\n \t\t\t\tthis.fos.close();\r\n \t\t\t\tthis.fos = null;\r\n \t\t\t} catch (IOException e) {\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (this.fileName != null) {\r\n \t\t\t\r\n \t\t\ttry {\r\n \t\t\t\tthis.fileIO.deleteFile(this.fileName);\r\n \t\t\t} catch (IOException e) {\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void cleanup() {\n try {\n Files.delete(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to delete staged document!\", e);\n }\n }", "public static void unlockFile() {\n try {\n \t\n if(lock != null) {\n \t\n lock.release();\n channel.close();\n f.delete();\n \n }\n \n } catch(IOException e) {\n \t\n e.printStackTrace();\n \n }\n \n }", "private void del_file() {\n\t\tFormatter f;\n\t\ttry{\n\t\t\tf = new Formatter(url2); //deleting file content\n\t\t\tf.format(\"%s\", \"\");\n\t\t\tf.close();\t\t\t\n\t\t}catch(Exception e){}\n\t}", "private void deleteFile(@Nonnull File file) throws IOException {\n Files.delete(file.toPath());\n }", "public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n Log.d(\"Paul\", \"delete file\");\n\n File file = new File(Environment.getExternalStorageDirectory().getPath(), getString(R.string.temp_file_name));\n try {\n // if file exists in memory\n if (file.exists()) {\n file.delete();\n Log.d(\"Paul\", \"file deleted\");\n }\n } catch (Exception e) {\n Log.d(\"Paul\",\"Some error happened?\");\n }\n\n }", "protected void deleteAttachmentFile()\n {\n try\n {\n if (deleteAttachmentAfterSend && fullAttachmentFilename != null)\n {\n File attFile = new File(fullAttachmentFilename);\n if (log.isDebugEnabled())\n {\n log.debug(\"Delete attachment file: \" + attFile.getCanonicalPath());\n }\n attFile.delete();\n }\n } catch (Exception e)\n {\n log.warn(\"Unable to delete \" + fullAttachmentFilename + \" : \" + e.getMessage());\n }\n }", "private void log_out() {\n File xx = new File(\"resource/data/staff_id_logedin.txt\");\n if(xx.isFile()){\n xx.delete();\n }\n this.dispose();\n }", "public void delete() throws IOException {\n\t\tclose();\n\t\tdeleteContents(directory);\n\t}", "protected void deletePotentialUpload(String targetPath) {\n\t\tFileSystem fileSystem = Mesh.vertx().fileSystem();\n\t\tif (fileSystem.existsBlocking(targetPath)) {\n\t\t\t// Deleting of existing binary file\n\t\t\tfileSystem.deleteBlocking(targetPath);\n\t\t}\n\t\t// log.error(\"Error while attempting to delete target file {\" + targetPath + \"}\", error);\n\t\t// log.error(\"Unable to check existence of file at location {\" + targetPath + \"}\");\n\n\t}", "@AfterClass\n\tpublic static void cleanup() {\n\t\ttestDir.delete();\n\t\tfile.delete();\n\t}", "@AfterClass\n public static void cleanup() throws IOException {\n File directory = new File(TMP_DIR_BASE);\n File dirname = directory.getParentFile();\n final String basename = directory.getName() + \"[0-9]+\";\n File[] files = dirname.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.matches(basename);\n }\n });\n for (File file : files) {\n if (file.delete() == false) {\n throw new IOException(\"Can't delete \" + file);\n }\n }\n }", "@Override\n public void destroy() {\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (IOException e) {\n }\n }\n }", "private static void removeDeviceFile(ITestDevice device) throws DeviceNotAvailableException {\n device.deleteFile(BusinessLogic.DEVICE_FILE);\n }", "public static void deleteChatThumbTempIntStg() {\n File f = new File(PathUtil.getInternalChatImageTempUri().getPath());\n if(f.exists()) {\n delete(f);\n //LogUtil.e(\"StorageUtil\", \"deleteChatThumbTempIntStg\");\n }\n }", "public void deleteUrl() throws IOException\n\t{\n\t\tFile tempFile = new File(\"Resource/test.txt\");\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(newFile);\n\t\twriter.close();\n\t\t\n\t\t//boolean successful = tempFile.renameTo(inputFile);\n\t}", "public void deleteBuffer(File buffer)\n {\n this.buffer2file.remove(buffer);\n\n // If we are deleting an Untitled buffer, we can decrement\n if (buffer.getName().startsWith(\"#Untitled\")) {\n this.untitledCounter--;\n }\n\n /* We must delete the buffers when we are done with them so that their\n * parent directory is empty, and able to be deleted upon the exiting\n * of the application. */\n System.out.println(\"Buffer was \" + (buffer.delete() ? \"\" : \"NOT \") + \"deleted.\");\n // (and we may as well use the return value of buffer.delete() for something)\n }", "@AfterStep\n\tprivate void deleteFile(){\n\t\tif(LOGGER.isDebugEnabled()){\n\t\tLOGGER.debug(\" Entering into SalesReportByProductEmailProcessor.deleteFile() method --- >\");\n\t\t}\n\t\ttry {\n\t\t\tif(null != salesReportByProductBean){\n\t\t\tReportsUtilBO reportsUtilBO = reportBOFactory.getReportsUtilBO();\n\t\t\tList<String> fileNames = salesReportByProductBean.getFileNameList();\n\t\t\tString fileLocation = salesReportByProductBean.getFileLocation();\n\t\t\treportsUtilBO.deleteFile(fileNames, fileLocation);\n\t\t\t}\n\t\t} catch (PhotoOmniException e) {\n\t\t\tLOGGER.error(\" Error occoured at SalesReportByProductEmailProcessor.deleteFile() method ----> \" + e);\n\t\t}finally {\n\t\t\tif(LOGGER.isDebugEnabled()){\n\t\t\tLOGGER.debug(\" Exiting from SalesReportByProductEmailProcessor.deleteFile() method ---> \");\n\t\t\t}\n\t\t}\n\t}", "public void deleteOutputData() {\n\t\tif (outputData != null) {\n\t\t\tFile file = outputData;\n\t\t\toutputData = null;\n\t\t\tsave();\n\t\t\tfile.delete();\n\t\t}\n\t}", "@Override\n\tprotected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize(); // currently empty but there for safer refactoring\n\n\t\tFile outputFile = dfos.getFile();\n\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "protected void tearDown() throws Exception {\r\n filePersistence = null;\r\n readOnlyFile.delete();\r\n }", "public void exitTemp() {\r\n tr.saveTempToFile(TemplateManager.IdToTemplate);\r\n }", "public static void deleteQuietly(File f) {\n if (!delete_(f, true)) {\n // As a last resort\n f.deleteOnExit();\n }\n }", "public interface TempFile {\n\n\t\tpublic void delete() throws Exception;\n\n\t\tpublic String getName();\n\n\t\tpublic OutputStream open() throws Exception;\n\t}", "private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }", "public void deleteGeneratedFiles();", "public static void deleteTempMapset() {\r\n if ((getGrassMapsetFolder() != null) && (getGrassMapsetFolder().length() > 2)) {\r\n String tmpFolder;\r\n tmpFolder = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File.separator)));\r\n if (new File(tmpFolder).exists()) {\r\n deleteDirectory(new File(tmpFolder));\r\n }\r\n }\r\n }", "public void remFile(){\n ((MvwDefinitionDMO) core).remFile();\n }", "private void finalizeFileSystemFile() throws IOException {\n Path finalConfigPath = getFinalConfigPath(tempConfigPath);\n fileSystem.rename(tempConfigPath, finalConfigPath);\n LOG.info(\"finalize temp configuration file successfully, finalConfigPath=\"\n + finalConfigPath);\n }", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "public void deleteLocalImage() {\n try {\n if (isDeleteLocalImage && localImageFile != null) {\n localImageFile.delete();\n isDeleteLocalImage = false;\n } else {\n isDeleteLocalImage = false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void deleteFile(FileItem file) {\n\t\tPerformDeleteFileAsyncTask task = new PerformDeleteFileAsyncTask(this, credential);\n\t\ttask.execute(file);\n\t}", "void delete(InformationResourceFile file);", "public void delete() {\n\t\tclose();\n\t\t// delete the files of the container\n\t\tfor (int i=0; i<BlockFileContainer.getNumberOfFiles(); i++)\n\t\t\tfso.deleteFile(prefix+EXTENSIONS[i]);\n\t}", "public static void delete(File f) {\n delete_(f, false);\n }", "void fileDeleted(String path);", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.deleteFile(\"\");\n }", "@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }", "public void emptyFile() throws IOException {\n FileWriter fileWriter = new FileWriter(filePath);\n fileWriter.close();\n }", "public static void m85582a(File file) {\n try {\n if (!file.delete()) {\n file.deleteOnExit();\n }\n } catch (Exception unused) {\n }\n }", "@AfterClass\n\tpublic static void cleanUp() throws IOException {\n\t\tLpeFileUtils.removeDir(tempDir.getAbsolutePath());\n\t}", "private void delete(File file) {\n if (file.isDirectory()) {\n cleanDirectory(file);\n }\n file.delete();\n }", "boolean deleteFile(File f);", "public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void qnaFileDelete(int qnaFileIdx) {\n\t\t\r\n\t}", "public void deleteFile(IAttachment file)\n throws OculusException;", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "@Override\r\n\tpublic void deleteFileData(Long id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remFile(String path) {\n\t\t\r\n\t}", "private void cleanOutputFiles() throws DeviceNotAvailableException {\n CLog.d(\"Remove output file: %s\", mOutputFile);\n String extStore = mTestDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE);\n mTestDevice.executeShellCommand(String.format(\"rm %s/%s\", extStore, mOutputFile));\n }", "public void clearFile(File file){\n try{\n PrintWriter writer = new PrintWriter(file);\n writer.close();\n }\n catch(IOException e){\n System.out.println(\"IOException\");\n }\n }", "public void deleteLocal() {\n if (isLocal()) {\n deleteFileOrFolder(new File(getLocalOsPath()));\n }\n }", "private Step deleteHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_HDFS_WORK_DIR)\n .tasklet(deleteHdfsWorkingDir)\n .build();\n }", "public static File createTempFile() throws Exception {\n File dir = tempFileDirectory();\n dir.mkdirs();\n File tempFile = File.createTempFile(\"tst\", null, dir);\n dir.deleteOnExit(); // Not fail-safe on android )¬;\n return tempFile;\n }", "@Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Assert.assertFalse(start.equals(file));\n // Delete the file.\n Files.delete(file);\n logger.output(\"Deleted file \" + file);\n return FileVisitResult.CONTINUE;\n }", "private void deleteFile(String runtimePropertiesFilename) {\n File f = new File(runtimePropertiesFilename);\r\n\r\n // Make sure the file or directory exists and isn't write protected\r\n if (!f.exists())\r\n return; // already gone!\r\n\r\n if (!f.canWrite())\r\n throw new IllegalArgumentException(\"Delete: write protected: \"\r\n + runtimePropertiesFilename);\r\n\r\n // If it is a directory, make sure it is empty\r\n if (f.isDirectory()) {\r\n String[] files = f.list();\r\n if (files.length > 0)\r\n throw new IllegalArgumentException(\r\n \"Delete: directory not empty: \" + runtimePropertiesFilename);\r\n }\r\n\r\n // Attempt to delete it\r\n if (!f.delete())\r\n throw new IllegalArgumentException(\"Delete: deletion failed\");\r\n }", "public static Path createSimpleTmpFile( final Configuration conf, boolean deleteOnExit ) throws IOException\r\n\t{\r\n\t\t/** Make a temporary File, delete it, mark the File Object as delete on exit, and create the file with data using hadoop utils. */\r\n\t\tFile localTempFile = File.createTempFile(\"tmp-file\", \"tmp\");\r\n\t\tlocalTempFile.delete();\r\n\t\tPath localTmpPath = new Path( localTempFile.getName());\r\n\t\t\r\n\t\tcreateSimpleFile(conf, localTmpPath, localTmpPath.toString());\r\n\t\tif (deleteOnExit) {\r\n\t\t\tlocalTmpPath.getFileSystem(conf).deleteOnExit(localTmpPath);\r\n\t\t}\r\n\t\treturn localTmpPath;\r\n\t}", "@Override\n public void dispose() {\n file = null;\n }", "private static void deleteTempFolder(String folderName) throws IOException {\n Path tempFolderPath = Paths.get(folderName);\n\n if (Files.exists(tempFolderPath) && Files.isDirectory(tempFolderPath)) {\n Files.walk(tempFolderPath)\n .sorted(Comparator.reverseOrder())\n .map(Path::toFile)\n .forEach(File::delete);\n }\n }", "public void clearBuffer(){\n System.out.println(\"Clearning beffer\");\n //Deletes the buffer file\n File bufferFile = new File(\"data/buffer.ser\");\n bufferFile.delete();\n }", "public void manageFile() {\n long seconds = System.currentTimeMillis();\n filename = \"sdcard/LocationWise/LocationWiseImages/\" + seconds + \".png\";\n path_to_file = new File(filename);\n if (path_to_file.exists()) {\n boolean delete = path_to_file.delete();\n if (delete == true) {\n writeFile();\n // Toast.makeText(this, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n // Toast.makeText(this, \"Deletion Failed\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n writeFile();\n\n }\n }", "private void clean(Path path) throws IOException {\n if (Files.exists(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<>() {\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n\n public FileVisitResult postVisitDirectory(Path path, IOException exception) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n }", "public int deleteFile(String datastore, String filename) throws HyperVException;", "public void clean()\r\n {\r\n // DO NOT TOUCH\r\n // System.out.println(unzipedFilePath);\r\n\r\n // only clean if there was a successful unzipping\r\n if (success)\r\n {\r\n // only clean if the file path to remove matches the zipped file.\r\n if (unzippedFilePath.equals(zippedFilePath.substring(0,\r\n zippedFilePath.length() - 4)))\r\n {\r\n // System.out.println(\"to be implmented\");\r\n for (File c : outputDir.listFiles())\r\n {\r\n // System.out.println(c.toString());\r\n if (!c.delete())\r\n {\r\n System.out.println(\"failed to delete\" + c.toString());\r\n }\r\n }\r\n outputDir.delete();\r\n outputDir = null;\r\n }\r\n }\r\n }", "private Step deleteLocalWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_LOCAL_WORK_DIR)\n .tasklet(deleteLocalWorkingDir)\n .build();\n }" ]
[ "0.78980666", "0.73591864", "0.70954484", "0.7092279", "0.70017475", "0.69493544", "0.6949245", "0.686259", "0.68007815", "0.67849874", "0.6635286", "0.6582005", "0.6569949", "0.6556484", "0.652934", "0.6518105", "0.6482721", "0.63381517", "0.6319515", "0.6315476", "0.63074446", "0.6282836", "0.62447554", "0.62184274", "0.6197709", "0.61574405", "0.6154609", "0.61439675", "0.61415625", "0.6131092", "0.6116615", "0.61151296", "0.61109596", "0.6108901", "0.60985637", "0.6067512", "0.6058356", "0.6036686", "0.60285705", "0.602585", "0.6012614", "0.6012148", "0.6011519", "0.60058796", "0.59825104", "0.59743446", "0.5964275", "0.59491044", "0.59442455", "0.59418005", "0.593941", "0.5932686", "0.59086096", "0.5907882", "0.58893824", "0.5882793", "0.5877456", "0.5873204", "0.58679456", "0.58671516", "0.58655924", "0.5860728", "0.5853265", "0.58389556", "0.5837888", "0.5832698", "0.5830817", "0.58195716", "0.5810937", "0.5806021", "0.5798193", "0.57726216", "0.5755796", "0.57493013", "0.5741231", "0.5740764", "0.5740259", "0.57293636", "0.57243174", "0.56924707", "0.56760097", "0.56655484", "0.56574464", "0.5652743", "0.56517243", "0.56391394", "0.5620152", "0.5619172", "0.5608647", "0.56064326", "0.56011766", "0.5590393", "0.55759966", "0.5561292", "0.55591077", "0.55530065", "0.5542182", "0.55419266", "0.5538425", "0.55359447" ]
0.82023335
0
Return the segment status
public final int hasStatus() { return m_status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getSegmented();", "int getSegment();", "public String getSegment()\n {\n return m_strSegment;\n }", "String status();", "String status();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "default SegmentStats[] segmentStats() {\n throw new UnsupportedOperationException(\"todo\");\n }", "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "boolean hasSegment();", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "boolean isSetSegmented();", "public int getSyncStatus();", "public String getSegmentId() {\n return segmentId;\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "String getSwstatus();", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public Short getStatus() {\n\t\treturn status;\n\t}", "public int getStatus();", "public int getStatus();", "public int getStatus();", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public Short getStatus() {\n return status;\n }", "public Integer getSegment_id() {\n return segment_id;\n }", "public String getStatus () {\r\n return status;\r\n }", "public short getStatus()\r\n {\r\n return statusObj.getValue();\r\n }", "String getSegmentName();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() { return status; }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public short getStatus() {\r\n return this.status;\r\n }", "public int getStatus()\n {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getCBRStatus();", "public abstract String currentStatus();", "public String getStatus() {\n return status;\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }" ]
[ "0.71744657", "0.6678787", "0.66135764", "0.644601", "0.644601", "0.6417781", "0.6417781", "0.6417781", "0.6417781", "0.63957816", "0.6384047", "0.63706183", "0.63706183", "0.63706183", "0.63706183", "0.63706183", "0.6369333", "0.635425", "0.633098", "0.6315027", "0.6295743", "0.62956303", "0.62956303", "0.62772584", "0.6275809", "0.6251441", "0.62458813", "0.62458813", "0.62458813", "0.6229335", "0.62248117", "0.6220693", "0.6219928", "0.621824", "0.6206377", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6160232", "0.6155364", "0.61550325", "0.6154609", "0.6154609", "0.6154609", "0.6154609", "0.6154609", "0.614028", "0.614028", "0.61375815", "0.6134032", "0.61334735", "0.6128529", "0.6128529", "0.6128529", "0.6128529", "0.6128529", "0.61114824", "0.6111091", "0.6094897", "0.609332", "0.609332", "0.609332", "0.609332", "0.609332", "0.6081906", "0.6081906", "0.6081906", "0.6081906", "0.6081906", "0.6077262", "0.6077262", "0.6077262", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666", "0.60721666" ]
0.0
-1
Return the temporary file length
public final long getFileLength() throws IOException { // Get the file length File tempFile = new File(getTemporaryFile()); return tempFile.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "long getFileLength(String path) throws IOException;", "public long getTempFilesBytesWritten() {\n if(tempFileSizeBytesLeft == null || localTempFileSizeLimit <= 0) {\n return -1;\n }\n return localTempFileSizeLimit - tempFileSizeBytesLeft.get();\n }", "public long length() {\n return _file.length();\n }", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long getFileLength() {\n\n return fileLength;\n\n }", "long getFileSize();", "long sizeInBytes() throws IOException;", "public long getFileSize();", "public long getFileSize();", "public long getCurrentFileLength() {\n\t\tif (requestedFile != null) {\n\t\t\ttry {\t// avoid race conditions\n\t\t\t\treturn requestedFile.length;\n\t\t\t} catch (NullPointerException e) {}\n\t\t}\n\t\ttry {\t// avoid race conditions\n\t\t\treturn currentFile.length;\n\t\t} catch (NullPointerException e) {}\n\t\treturn 0;\n\t}", "public long size() {\n return file.length();\n }", "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "int getLength() throws IOException;", "int getFileCount();", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public long getInstrumentedFileSize() {\n if (this.rewrittenFile != null) return this.rewrittenFile.length();\n else return -1;\n }", "long getSize() throws IOException;", "public static long getUnzipingFileLen() {\n\t\treturn unzipingLen;\n\t}", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "protected long getDataFileSize() throws IOException\r\n {\r\n long size = 0;\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n if (dataFile != null)\r\n {\r\n size = dataFile.length();\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return size;\r\n }", "@Override\n\tpublic long contentLength() throws IOException {\n\t\treturn Files.size(this.path);\n\t}", "public abstract long size() throws IOException;", "long getWorkfileSize();", "public long getFileSize() {\n return this.originalFileSize;\n }", "long getMaxFileSizeBytes();", "public long length() throws IOException {\n return raos.length();\n }", "public static long size(File file) {\n\t\treturn file.length();\n\t}", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "long getSize() throws FileSystemException;", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "int getFileInfoCount();", "public long size() {\n return this.filePage.getSizeInfile();\n }", "@Override\n\tpublic long getLength()\n\t{\n\t\treturn inputStream.Length;\n\t}", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public long picoSize() throws IOException {\n return _backing.length();\n }", "private static int m2538d(Context context) {\n try {\n File file = new File(Log.m2547a(context, Log.f1857e));\n if (file.exists()) {\n return file.list().length;\n }\n return 0;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"getFileNum\");\n return 0;\n }\n }", "@Override\n public long size() {\n if (!isRegularFile()) {\n throw new IllegalStateException(\"not a regular file!\");\n }\n return this.fileSize;\n }", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public long getFileSize() {\r\n return fileSize;\r\n }", "public long getSizeFromFile(File file) {\n\t\tlong size = 0;\n\t\tif (file != null) {\n\t\t\tsize = file.length();\n\t\t}\n\t\treturn size;\n\t}", "int getContentLength();", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public int contentLength();", "public long getFileSize() {\n return fileSize_;\n }", "public long getLength();", "public long getLength();", "public java.lang.Integer getApplicationFileLength() {\r\n return applicationFileLength;\r\n }", "long getContentLength() throws IOException;", "public long getFileCompressedSize()\r\n {\r\n return lFileCompressedSize;\r\n }", "public long getFileSize(String filename) {\n\t\treturn 0;\n\t}", "public int getPathLength();", "public static native long nativeAssetGetRemainingLength(long j);", "public long getFileSize() {\n return fileSize_;\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "private long m20332a(File file) {\n if (!file.exists()) {\n return 0;\n }\n long length = file.length();\n if (file.delete()) {\n return length;\n }\n return -1;\n }", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "public static long length(final String fileName) {\n\n return FileSystem.getInstance(fileName).length(fileName);\n }", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "int getFilesCount();", "int getFilesCount();", "public Integer getFileSize(Long key) {\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n return (int)file.length();\n }", "public void testGetFileSizeSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.appendBytes(fileCreationId, new byte[10]);\r\n filePersistence.closeFile(fileCreationId);\r\n assertEquals(\"should be size of 10 bytes\", filePersistence.getFileSize(VALID_FILELOCATION, FILENAME), 10);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "public static long getFileSize(String filePath) {\n\t\treturn new File(filePath).length();\n\t}", "public static long getUnzipingFileSize() {\n\t\treturn unzipingFileSize;\n\t}", "public long length() {\r\n return 1 + 4 + buffer.length;\r\n }", "public long size(String path);", "public int size() {\n return files.size();\n }", "long getSize();", "public long getMaximumFileLength() {\n return (httpFileUploadManager == null)\n ? 0 : httpFileUploadManager.getDefaultUploadService().getMaxFileSize();\n }", "public int returnSize()\r\n {\r\n \treturn length;\r\n }", "public int getFileSize (String filePath) throws RemoteException {\r\n\t\tint size;\r\n\t\tFile myFile = new File(filePath);\r\n\t\tsize = (int)myFile.length();\r\n\t\treturn size;\r\n\r\n\t\t\t\t\r\n\t}", "public int getFileInfoCount() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.size();\n } else {\n return fileInfoBuilder_.getCount();\n }\n }", "abstract Long getContentLength();", "public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}", "public int length() {\r\n\t\treturn _stream.size();\r\n\t}", "int len();", "public int getNumberOfAvailableFiles() {\n return numberOfAvailableFiles;\n }", "public String getFileSize() {\n return fileSize;\n }", "public byte getLength_unit() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 8);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 8);\n\t\t}\n\t}", "public Integer getPathLength() {\n return pathLength;\n }", "public final int available() throws IOException {\r\n\t\treturn (int)(f.length() - f.getFilePointer());\r\n\t}", "public float getFileSize() {\n return fileSize_;\n }", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public long lastReadLength() {\n return lastReadLength;\n }", "public final String getTemporaryFile() {\n\t\treturn m_tempFile;\n\t}", "public int getContentLength() {\r\n if (!connected)\r\n return -1;\r\n\r\n return (int) zipEntry.getSize();\r\n }", "public Long getTapeSizeInBytes() {\n return tapeSizeInBytes;\n }", "public long getDbFileSize() {\r\n\tlong result = -1;\r\n\r\n\ttry {\r\n\t File dbFile = new File(fileName);\r\n\t if (dbFile.exists()) {\r\n\t\tresult = dbFile.length();\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n\r\n\treturn result;\r\n }", "public float getFileSize() {\n return fileSize_;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "Long diskSizeBytes();", "public abstract long getLength();", "public abstract long getLength();", "public int getLengthInBytes()\n \t{\n \t\treturn FormatableBitSet.numBytesFromBits(lengthAsBits);\n \t}", "int countFile(File file) {\n return readFile(file).length;\n }", "public static long getDownloadingFileSize() {\n\t\treturn downloadingFileSize;\n\t}" ]
[ "0.7357923", "0.73315805", "0.7272155", "0.7168789", "0.70794964", "0.705328", "0.7052988", "0.7034728", "0.6999802", "0.69403344", "0.69403344", "0.69136786", "0.6894081", "0.68877923", "0.67874545", "0.6753241", "0.6720431", "0.67176765", "0.668383", "0.65420777", "0.64860886", "0.64578867", "0.64126015", "0.64093095", "0.6406281", "0.6402531", "0.6400026", "0.6394048", "0.6367353", "0.6343559", "0.6342992", "0.6342762", "0.6317569", "0.63168675", "0.6291106", "0.62858367", "0.6271101", "0.62597096", "0.62541157", "0.6218226", "0.6192999", "0.6187566", "0.6171968", "0.6133071", "0.6116475", "0.61158454", "0.611322", "0.6108451", "0.6081751", "0.6081751", "0.6080459", "0.60690624", "0.6039754", "0.60366404", "0.6006884", "0.6006811", "0.60066825", "0.60006845", "0.59923875", "0.59843266", "0.59828496", "0.59578973", "0.594228", "0.594228", "0.5937056", "0.59345067", "0.5930967", "0.59249735", "0.59219396", "0.59101963", "0.58915836", "0.58739436", "0.5853979", "0.5851042", "0.58509463", "0.5826374", "0.5826314", "0.5818728", "0.5818154", "0.58144766", "0.5799544", "0.5791127", "0.57808053", "0.57737005", "0.57706153", "0.5770222", "0.57602596", "0.575598", "0.57502055", "0.5742014", "0.5736269", "0.57360274", "0.57316005", "0.5719543", "0.571118", "0.5706702", "0.5706702", "0.5705018", "0.57044333", "0.5704307" ]
0.83591586
0
Return the readable file data length
public final long getReadableLength() { return m_readable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public long length() {\n return _file.length();\n }", "int getLength() throws IOException;", "@Override\n\tpublic long getLength()\n\t{\n\t\treturn inputStream.Length;\n\t}", "public long getFileLength() {\n\n return fileLength;\n\n }", "long getFileLength(String path) throws IOException;", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "protected long getDataFileSize() throws IOException\r\n {\r\n long size = 0;\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n if (dataFile != null)\r\n {\r\n size = dataFile.length();\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return size;\r\n }", "public int getReadLength() {\r\n \t\treturn readLength;\r\n \t}", "public final long getFileLength()\n\t\tthrows IOException {\n\t\t\n\t\t//\tGet the file length\n\t\t\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\treturn tempFile.length();\n\t}", "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "private int getLength() throws IOException {\n\n\t\t\tint i = this.in.read();\n\t\t\tif (i == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length missing\");\n\t\t\t}\n\n\t\t\t// A single byte short length\n\t\t\tif ((i & ~0x7F) == 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\n\t\t\tint num = i & 0x7F;\n\n\t\t\t// We can't handle length longer than 4 bytes\n\t\t\tif (i >= 0xFF || num > 4) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length field too big (\" + i + \")\");\n\t\t\t}\n\n\t\t\tbyte[] bytes = new byte[num];\n\t\t\tint n = this.in.read(bytes);\n\t\t\tif (n < num) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length too short\");\n\t\t\t}\n\n\t\t\treturn new BigInteger(1, bytes).intValue();\n\t\t}", "public long size() {\n return file.length();\n }", "public int getLength() { return dataLength; }", "private int getLength() throws IOException {\n\n int i = in.read();\n if ( i == -1 ) {\n throw new IOException( BaseMessages\n .getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthMissing\" ) );\n }\n\n // A single byte short length\n if ( ( i & ~0x7F ) == 0 ) {\n return i;\n }\n\n int num = i & 0x7F;\n\n // We can't handle length longer than 4 bytes\n if ( i >= 0xFF || num > 4 ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERFieldTooBig\", i ) );\n }\n\n byte[] bytes = new byte[num];\n int n = in.read( bytes );\n if ( n < num ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthTooShort\" ) );\n }\n\n return new BigInteger( 1, bytes ).intValue();\n }", "public long getFileSize();", "public long getFileSize();", "public int getLength() {\n\t\treturn data.length;\n\t\t\n\t}", "public long length() throws IOException {\n return raos.length();\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "long sizeInBytes() throws IOException;", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "public int getLength() {\n/* 301 */ return this.stream.getInt(COSName.LENGTH, 0);\n/* */ }", "public int getLength(){\n\t\treturn data.length;\n\t}", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public long getLength();", "public long getLength();", "long getFileSize();", "long getSize() throws IOException;", "public short getDataLength() {\r\n //Add the size of the header also\r\n //Header length contains the header+data length\r\n final int lpadding;\r\n if (_padding != null) lpadding = _padding.length();\r\n else lpadding = 0;\r\n return ( (short) (_len + lpadding));\r\n }", "public int getDecodedStreamLength()\n {\n return this.stream.getInt(COSName.DL);\n }", "public int length() {\r\n\t\treturn _stream.size();\r\n\t}", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "public final int length() {\n return this.data.remaining();\n }", "@Override\n\tpublic long contentLength() throws IOException {\n\t\treturn Files.size(this.path);\n\t}", "public long picoSize() throws IOException {\n return _backing.length();\n }", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public int length() {\n return data.length;\n }", "public long length() {\r\n return 1 + 4 + buffer.length;\r\n }", "public abstract long size() throws IOException;", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "public int length() {\n return data.length;\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public int getLength()\n {\n return this.m_descriptor[1] & 0xFF;\n }", "public long getDataSize() {\n return dataSize;\n }", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "public int size() { return buffer.length; }", "public int get_length();", "public int contentLength();", "public int getLength() {\n return mySize.getLength();\n }", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public abstract long getLength();", "public abstract long getLength();", "public int numberOfBytes() {\n return this.data.size();\n }", "public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n }", "@ApiModelProperty(required = true, value = \"The length of the file/folder.\")\n public Long getLength() {\n return length;\n }", "public int getLength() {\n if (data instanceof String) {\n String string = (String) data;\n return string.length();\n } else if (data instanceof StringReference) {\n StringReference stref = (StringReference) data;\n return stref.getLength();\n } else if (data instanceof Value) {\n Value val = (Value) data;\n return val.getString().length();\n } else {\n return data.toString().length();\n }\n }", "public long getFileSize() {\r\n return fileSize;\r\n }", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "public long lastReadLength() {\n return lastReadLength;\n }", "public int getByteLength() {\n return byteLength;\n }", "public int getSizeOfInitializedData()\n throws IOException, EndOfStreamException\n {\n return peFile_.readInt32(relpos(Offsets.SIZE_OF_INITIALIZED_DATA.position));\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public long getFileSize() {\n return fileSize_;\n }", "public long getFileSize() {\n return this.originalFileSize;\n }", "public int size() {\n return bytes.length;\n }", "public long getSizeFromFile(File file) {\n\t\tlong size = 0;\n\t\tif (file != null) {\n\t\t\tsize = file.length();\n\t\t}\n\t\treturn size;\n\t}", "public long getCurrentFileLength() {\n\t\tif (requestedFile != null) {\n\t\t\ttry {\t// avoid race conditions\n\t\t\t\treturn requestedFile.length;\n\t\t\t} catch (NullPointerException e) {}\n\t\t}\n\t\ttry {\t// avoid race conditions\n\t\t\treturn currentFile.length;\n\t\t} catch (NullPointerException e) {}\n\t\treturn 0;\n\t}", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int getLength() {\r\n\t\treturn messageData.length;\r\n\t}", "public int getLength() {\n return length_;\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "private static int readBinaryLength(ObjectInput in) throws IOException {\n\t\t\n\t\tint bl = in.read();\n\t\tif (bl == -1)\n\t\t\tthrow new java.io.EOFException();\n \n byte li = (byte) bl;\n\n int len;\n\t\tif ((li & ((byte) 0x80)) != 0)\n\t\t{\n\t\t\tif (li == ((byte) 0xC0))\n\t\t\t{ \n\t\t\t\tlen = in.readInt();\n \t\t\t}\n\t\t\telse if (li == ((byte) 0xA0))\n\t\t\t{\n\t\t\t\tlen = in.readUnsignedShort();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlen = li & 0x1F;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n \n\t\t\t// old length in bits\n\t\t\tint v2 = in.read();\n\t\t\tint v3 = in.read();\n\t\t\tint v4 = in.read();\n\t\t\tif (v2 == -1 || v3 == -1 || v4 == -1)\n\t\t\t\tthrow new java.io.EOFException();\n int lenInBits = (((bl & 0xff) << 24) | ((v2 & 0xff) << 16) | ((v3 & 0xff) << 8) | (v4 & 0xff));\n\n\t\t\tlen = lenInBits / 8;\n\t\t\tif ((lenInBits % 8) != 0)\n\t\t\t\tlen++;\n \t\t}\n\t\treturn len;\n\t}", "public static long size(File file) {\n\t\treturn file.length();\n\t}", "public int length()\n\t{\n\t\treturn contents.length;\n\t}", "@Override\n public long size() {\n if (!isRegularFile()) {\n throw new IllegalStateException(\"not a regular file!\");\n }\n return this.fileSize;\n }", "public int returnSize()\r\n {\r\n \treturn length;\r\n }", "public int getLength() {\n\t\treturn length & 0xffff;\n\t}", "public long getBytesRead() {\n return luceneDirectory.getBytesRead();\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength()\n\t{\n\t\treturn mLength;\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "public long length() {\n return length;\n }" ]
[ "0.8173184", "0.7754496", "0.7744472", "0.76999813", "0.7692948", "0.75949115", "0.75908595", "0.74861544", "0.7485123", "0.7452149", "0.7360101", "0.7346647", "0.73095506", "0.73000264", "0.72669315", "0.7243812", "0.7243812", "0.72314703", "0.7225556", "0.7216462", "0.7214946", "0.71809137", "0.71714836", "0.7160597", "0.71165466", "0.7112211", "0.7100929", "0.7100929", "0.7068069", "0.69953847", "0.6980116", "0.6964537", "0.6952346", "0.6941085", "0.6931231", "0.69270474", "0.6900746", "0.6891878", "0.68865705", "0.6880111", "0.6877395", "0.6872205", "0.6869222", "0.68522906", "0.68512255", "0.6846386", "0.6833966", "0.6833281", "0.6825789", "0.6823696", "0.6764993", "0.67641956", "0.67456865", "0.6745075", "0.6740294", "0.67323935", "0.6731572", "0.67282516", "0.67282516", "0.6724346", "0.67204416", "0.67053187", "0.6703524", "0.6699511", "0.6695922", "0.6679535", "0.6678373", "0.6678373", "0.667152", "0.6670488", "0.66684777", "0.66492146", "0.6647134", "0.6640001", "0.6623746", "0.6622814", "0.6622386", "0.6616976", "0.6610288", "0.66084576", "0.660131", "0.6597904", "0.6597904", "0.6597904", "0.6597904", "0.6597904", "0.6597904", "0.6586849", "0.6576708", "0.6573421", "0.657282", "0.6570132", "0.6567553", "0.6566641", "0.6566223", "0.6566223", "0.6566223", "0.656412", "0.65575206", "0.65523" ]
0.68445903
46
Set the readable data length for the file, used during data loading to allow the file to be read before the file load completes.
public final void setReadableLength(long readable) { m_readable = readable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}", "public void setLength(long length);", "public void setLength(long length);", "void setLength( long length );", "public void setRecordLength(int recordLength)\n {\n if (mode == RECORD_READER_MODE.FIXED_WIDTH_RECORD && recordLength <= 0) {\n throw new IllegalArgumentException(\"recordLength should be greater than 0.\");\n }\n this.recordLength = recordLength;\n }", "synchronized void setLength(int length) {\n this.length = length;\n }", "public static void setLength(final RandomAccessFile file, final long newLength) throws IOException {\n\n try {\n trace(\"setLength\", null, file);\n file.setLength(newLength);\n }\n catch (final IOException e) {\n final long length = file.length();\n if (newLength < length) { throw e; }\n final long pos = file.getFilePointer();\n file.seek(length);\n long remaining = newLength - length;\n final int maxSize = 1024 * 1024;\n final int block = (int) Math.min(remaining, maxSize);\n final byte[] buffer = new byte[block];\n while (remaining > 0) {\n final int write = (int) Math.min(remaining, maxSize);\n file.write(buffer, 0, write);\n remaining -= write;\n }\n file.seek(pos);\n }\n }", "public void setLength(long length) { \n this.length = length; \n }", "public void setLength(int length) {\n\t\tloadProgress.setLength(length);\n\t}", "@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}", "public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}", "@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}", "public void setLength(long length) {\r\n\t\tthis.length = length;\r\n\t}", "public void setLength(int length) {\r\n this.length = length;\r\n }", "public void setLength(int length) {\r\n this.length = length;\r\n }", "public void setLength(int length)\n {\n this.length = length;\n }", "public void setDataLength(int length) {\n // should be below 255, check!\n m_DataLength = length + 2;\n }", "public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}", "void setLength(int length);", "public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}", "public void setLength( int length ) { setCapacity( length ); this.length = length; }", "public void setFileSize(long fileSize)\r\n {\r\n lFileSize = fileSize;\r\n }", "@Override\n\tpublic void setContentLength(int len) {\n\t}", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public void setLength(int length) {\n\t\tthis.length = length;\n\t}", "public int getReadLength() {\r\n \t\treturn readLength;\r\n \t}", "public int minReadLength() {\n return mMinReadLength;\n }", "public final long getReadableLength() {\n return m_readable;\n }", "public int getLength() { return dataLength; }", "public void setFieldLength(int fieldLength)\n\t{\n\t\tthis.fieldLength = fieldLength;\n\t}", "@Override\n\tpublic long getLength()\n\t{\n\t\treturn inputStream.Length;\n\t}", "public Builder setFileSize(long value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "public void setLineLength(int len) {\n lineLength = len / 4 * 4;\n }", "public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }", "public void setLength(int length)\n {\n encryptionDictionary.setInt(\"Length\", length);\n }", "public void setDecodedStreamLength(int decodedStreamLength) {\n/* 577 */ this.stream.setInt(COSName.DL, decodedStreamLength);\n/* */ }", "@ApiModelProperty(required = true, value = \"The length of the file/folder.\")\n public Long getLength() {\n return length;\n }", "@Override\n\tpublic void setContentLengthLong(long len) {\n\t}", "public void setLength(int length){\n\t\tif(length > 0){\n\t\t\tthis.length = length; //this.length is the length were in right now. and = length is the length the object is given\n\t\t}\n\t\t\n\t\t\n\t}", "public void setApplicationFileLength(java.lang.Integer applicationFileLength) {\r\n this.applicationFileLength = applicationFileLength;\r\n }", "public void setLength(double newLength) {\n length = newLength;\n }", "public void setFileSize(long fileSize) {\n this.fileSize = fileSize;\n }", "public void setContentLength(Long contentLength) {\n\t\tif (!this.headerGenerated) {\n\t\t\tthis.contentLength = contentLength;\n\t\t}\n\t}", "private void setFileSize(final Long fileSize) {\n\t\t// almacenamos el tamano del fichero\n\t\tthis.fileSize = fileSize;\n\t}", "public void setContentLength(int len) {\n this.response.setContentLength(len);\n }", "public int readBufferSize_() {\n return readBufferSize_;\n }", "public long getFileLength() {\n\n return fileLength;\n\n }", "int getLength() throws IOException;", "public void setDataRetentionPeriodLength(short dataRetentionPeriodLength)\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(DATARETENTIONPERIODLENGTH$26, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATARETENTIONPERIODLENGTH$26);\n }\n target.setShortValue(dataRetentionPeriodLength);\n }\n }", "public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public SamFilterParamsBuilder minLength(int value) {\n mMinReadLength = value;\n return this;\n }", "public void setLength(int length) {\n\t\tif (length <= 0)\n\t\t\tthrow new IllegalArgumentException(\"length must be > 0\");\n\n\t\tthis.length = length;\n\t}", "public boolean isSetFileLength() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILELENGTH_ISSET_ID);\n }", "public boolean isSetFileLength() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILELENGTH_ISSET_ID);\n }", "@Override\n public void setBufferSize(int arg0) {\n\n }", "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public void testSetSize_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setSize(value);\n\n\t\t\n\t}", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "public void setContentLength (String contentLength) {\n\tthis.contentLength = contentLength;\n }", "public void setContentLength(long contentLength)\r\n/* 175: */ {\r\n/* 176:260 */ set(\"Content-Length\", Long.toString(contentLength));\r\n/* 177: */ }", "public void testSetReadable_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setReadable(value);\n\n\t\t\n\t}", "public void setDateLength(int dateLength) { this.dateLength = dateLength; }", "public void setAudiofileSize(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), AUDIOFILESIZE, value);\r\n\t}", "public boolean setPlayLength(int newLength)\n\t{\n\t\tif (newLength >= 1 && (startTime + newLength) <= fileLength)\n\t\t{\n\t\t\tplaybackLength = newLength;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void expandFile(long length) throws IOException {\n\n\t}", "public void setContentLengthLong(long len) {\n this.response.setContentLengthLong(len);\n }", "@Override public long getInitializedDataLength() {\n return getDataLength();\n }", "public void setLength(double length)\r\n {\r\n this.length = length;\r\n }", "public Builder setLength(int value) {\n \n length_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "public long length() {\n return _file.length();\n }", "public void setLength(double length) {\r\n this.length = length;\r\n }", "@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}", "public void OnFileIncoming(int length);", "public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }", "public int getLength(){\n\t\treturn data.length;\n\t}", "public void setMaxLength(int maxLength) {\r\n _maxLength = maxLength;\r\n }", "public void setLength(double length) {\n this.length = length;\n }", "public void setDecodedStreamLength(int decodedStreamLength)\n {\n this.stream.setInt(COSName.DL, decodedStreamLength);\n }", "public void setPathLength(Integer pathLength) {\n this.pathLength = pathLength;\n }", "protected ReaderContext<FSDataInputStream> createFixedWidthReaderContext()\n {\n ReaderContext.FixedBytesReaderContext<FSDataInputStream> fixedBytesReaderContext = new ReaderContext.FixedBytesReaderContext<FSDataInputStream>();\n fixedBytesReaderContext.setLength(recordLength);\n return fixedBytesReaderContext;\n\n }", "public void setLength_unit(byte length_unit) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 8, length_unit);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 8, length_unit);\n\t\t}\n\t}", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "private int getLength() throws IOException {\n\n\t\t\tint i = this.in.read();\n\t\t\tif (i == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length missing\");\n\t\t\t}\n\n\t\t\t// A single byte short length\n\t\t\tif ((i & ~0x7F) == 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\n\t\t\tint num = i & 0x7F;\n\n\t\t\t// We can't handle length longer than 4 bytes\n\t\t\tif (i >= 0xFF || num > 4) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length field too big (\" + i + \")\");\n\t\t\t}\n\n\t\t\tbyte[] bytes = new byte[num];\n\t\t\tint n = this.in.read(bytes);\n\t\t\tif (n < num) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length too short\");\n\t\t\t}\n\n\t\t\treturn new BigInteger(1, bytes).intValue();\n\t\t}", "public void setLength(int duration){\n\t\tlength = duration;\n\t}", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public WorkDataFile(int length)\n\t{\n\t\tsuper(length);\n\t}", "public int getLength() {\n\t\treturn data.length;\n\t\t\n\t}", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public long getFileSize() {\r\n return fileSize;\r\n }", "public void setContentLength(int i) {\n\n\t}", "public void writeMaxLengths(RandomAccessFile stream) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstream.writeInt(dateLength);\r\n\t\t\tstream.writeInt(stratumLength);\r\n\t\t\tstream.writeInt(raceOtherLength);\r\n\t\t\tstream.writeInt(diagOtherLength);\r\n\t\t\tstream.writeInt(narr1Length);\r\n\t\t\tstream.writeInt(narr2Length);\r\n\t\t\tstream.writeInt(numOfRecords);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public long getLength();", "public long getLength();", "public boolean setLength(double Length);" ]
[ "0.715929", "0.6701754", "0.669909", "0.669909", "0.66352886", "0.663308", "0.6516406", "0.6508697", "0.64532363", "0.64340925", "0.6433601", "0.642774", "0.64032835", "0.6357238", "0.63262165", "0.63262165", "0.62967926", "0.6293647", "0.6282016", "0.626687", "0.62527436", "0.62234807", "0.62225693", "0.6186384", "0.61705667", "0.61705667", "0.61705667", "0.6116599", "0.6092794", "0.6070438", "0.60382235", "0.6002423", "0.5980152", "0.5959219", "0.594947", "0.59376955", "0.590629", "0.58986264", "0.58660054", "0.58645904", "0.58637536", "0.5861328", "0.5837218", "0.58343416", "0.57869536", "0.576356", "0.57553035", "0.5753636", "0.574119", "0.57286716", "0.5719599", "0.57176715", "0.5714119", "0.56976867", "0.568958", "0.568958", "0.5636401", "0.56295913", "0.5623317", "0.5609028", "0.5583703", "0.55777836", "0.55694383", "0.55629385", "0.555451", "0.5521394", "0.55200744", "0.55169874", "0.5511616", "0.5500708", "0.5498611", "0.5486611", "0.5482474", "0.5481212", "0.5465816", "0.54508567", "0.5447625", "0.5447555", "0.54438335", "0.543955", "0.5419348", "0.54184234", "0.5412919", "0.54127777", "0.54101807", "0.54062855", "0.54059964", "0.5404719", "0.54016274", "0.53974485", "0.539148", "0.53901535", "0.5389682", "0.5379241", "0.5376264", "0.537573", "0.5373084", "0.5372363", "0.5372363", "0.53722256" ]
0.7151407
1
Set the segment load/update status
public synchronized final void setStatus(int sts) { m_status = sts; notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "void setSegmented(boolean segmented);", "public void setStatus(String stat)\n {\n status = stat;\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "void setStatus(TaskStatus status);", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "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 }", "public void setLoadingStatus(LoadingStatus loadingStatus) {\n this.loadingStatus = loadingStatus;\n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(String st) {\n status = CMnServicePatch.getRequestStatus(st);\n }", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "void setDataStatus(String dataStatus);", "void setStatus(int status);", "void setStatus(STATUS status);", "public void setStatus(int status) {\n STATUS = status;\n }", "public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }", "void setStartSegment(int startSegment);", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "protected void status(String status) throws InvalidKeyException {\n task.setStatus(status);\n }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(ProcessModelStatus status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "private void notifyLoadMonitor(String instanceId, ExecutorStatus status)\n\t{\n\t\tif (m_loadMonitors.containsKey(instanceId))\n\t\t{\n\t\t\tm_loadMonitors.get(instanceId).setProcedureStatus(status);\n\t\t}\n\t}", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(boolean newStatus);", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(JobStatus status);", "public void setStatus(BatchStatus value) {\n this.status = value;\n }", "public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }", "public void setStatus(String status) { this.status = status; }", "void setStatus(String status);", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setStatus(Status vmStatus) {\n this.vmStatus = vmStatus;\n }", "public void setStatus(CMnServicePatch.RequestStatus st) {\n status = st;\n }", "private void setComponentStatus() {}", "private void updateUnitStatus() {\r\n\t\tint b1 = Sense_NotReady;\r\n\t\tif (this.tapeIo != null) {\r\n\t\t\tb1 = Sense_Ready;\r\n\t\t\tb1 |= (this.currentBlock == this.headLimit) ? Sense_AtLoadPoint : 0;\r\n\t\t\tb1 |= (this.isReadonly) ? Sense_FileProtected : 0;\r\n\t\t}\r\n\t\tthis.senseBytes[1] = (byte)((b1 >> 16) & 0xFF);\r\n\t\t\r\n\t\tint b4 = (this.currentBlock == this.tailLimit) ? Sense_EndOfTape : 0;\r\n\t\tthis.senseBytes[4] = (byte)( ((b4 >> 8) & 0xF0) | (this.senseBytes[4] & 0x0F) );\r\n\t}", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(ServiceTaskStatus status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "void setStatus(java.lang.String status);", "public void setStatus(Boolean s){ status = s;}", "public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }", "private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }", "void setLoading(boolean isLoading);", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setLoad(int load) {\n\t\tif (getCurrentPace() - load <= 0) {\n\t\t\tthis.currentPace = 0;\n\t\t\tmoveable = false;\n\t\t} else {\n\t\t\tthis.currentPace = getCurrentPace() - load;\n\t\t}\n\n\t\tthis.load += load;\n\t}", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "private void setLblStatus(String s){\n\t\tlblState.setText(s);\n\t}", "public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }" ]
[ "0.6326079", "0.6258024", "0.61538374", "0.606082", "0.6032758", "0.60172665", "0.5951893", "0.59468114", "0.5938791", "0.58923966", "0.588122", "0.5861684", "0.5854007", "0.5832297", "0.5829626", "0.5828089", "0.5822999", "0.580583", "0.5802302", "0.5801205", "0.57858115", "0.5783595", "0.5783595", "0.57829", "0.57728595", "0.5772378", "0.5767361", "0.57475895", "0.57308775", "0.57043266", "0.5696499", "0.56923425", "0.56861985", "0.56846964", "0.56846964", "0.5681975", "0.56775814", "0.567246", "0.5667835", "0.566555", "0.5659172", "0.5655638", "0.5655241", "0.5653007", "0.5650832", "0.56364596", "0.56274575", "0.5625121", "0.5617342", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.5614571", "0.56130296", "0.56130296", "0.56076795", "0.56070197", "0.5605856", "0.5604504", "0.5603041", "0.5603041", "0.5592369", "0.5592369", "0.5592369", "0.5592369", "0.5592369", "0.5592369", "0.5592369", "0.5591146", "0.5591146", "0.5587581", "0.55874515", "0.5572967", "0.5556267", "0.5552913", "0.5540704", "0.5540109", "0.5540019", "0.5535111", "0.55341214", "0.55341214", "0.5530714", "0.5530714", "0.5530714", "0.5530714" ]
0.568636
32
Set the temporary file that is used to hold the local copy of the file data
public final void setTemporaryFile(String tempFile) { m_tempFile = tempFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTmpFile(File tmpFile) {\n this.tmpFile = tmpFile;\n }", "public void setTempPath(String tempPath) {\n this.tempPath = tempPath;\n }", "public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setTempFile: \" + tempFile.getAbsolutePath());\n } catch (IOException e) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Exception creating tempfile. \" + e.getMessage());\n return false;\n }\n\n if (tempFile==null || !(tempFile instanceof File)) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Failed to create valid tempFile.\");\n return false;\n }\n\n return true;\n }", "public final String getTemporaryFile() {\n\t\treturn m_tempFile;\n\t}", "public File getTmpFile() {\n return tmpFile;\n }", "protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}", "private void saveTempFile(DigitalObject object) {\n String tempFileName = tempDir.getAbsolutePath() + \"/\" + System.nanoTime();\n OutputStream fileStream;\n try {\n fileStream = new BufferedOutputStream(new FileOutputStream(tempFileName));\n if (object != null) {\n byte[] data = object.getData().getData();\n if (data != null) {\n\n fileStream.write(data);\n }\n }\n fileStream.close();\n tempFiles.put(object, tempFileName);\n } catch (FileNotFoundException e) {\n log.error(\"Failed to store tempfile\", e);\n } catch (IOException e) {\n log.error(\"Failed to store tempfile\", e);\n }\n }", "private static Path saveTempFile(InputStream input) throws IOException {\n\t\tPath tempFile = Files.createTempFile(null, \".csv\");\n\t\tFiles.copy(input, tempFile, StandardCopyOption.REPLACE_EXISTING);\n\n\t\tinput.close();\n\n\t\t// TODO delete tempFile\n\t\treturn tempFile;\n\t}", "@Test\n public void testCopyToTempDir() throws IOException {\n File fileA = null;\n\n try {\n fileA = File.createTempFile(\"fileA\", \"fileA\");\n System.out.println(fileA.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(fileA);\n InputStream sis = new StringInputStream(\"some content\");\n StreamUtil.copy(sis, fos);\n sis.close();\n fos.close();\n\n copyToTempDir(fileA);\n\n File fileACopy = new File(new File(getTempDirPath()), fileA.getName());\n assertTrue(fileACopy.exists());\n assertTrue(fileACopy.isFile());\n } finally {\n boolean deleted = fileA.delete();\n assertTrue(deleted);\n }\n\n File dirB = null;\n\n try {\n dirB = Files.createTempDirectory(\"dirB\").toFile();\n System.out.println(dirB.getAbsolutePath());\n\n copyToTempDir(dirB);\n\n File dirBCopy = new File(new File(getTempDirPath()), dirB.getName());\n assertTrue(dirBCopy.exists());\n assertTrue(dirBCopy.isDirectory());\n } finally {\n boolean deleted = dirB.delete();\n assertTrue(deleted);\n }\n }", "public void setFile(File f) { file = f; }", "void setTemporaryInMemory(boolean mode);", "public DiskBackedProjectFilePartSet() {\r\n // make two files to use\r\n fileA = TempFileUtil.createTemporaryFile();\r\n fileB = TempFileUtil.createTemporaryFile();\r\n }", "public static File writeObjectToTempFile(Serializable o, String filename)\n/* */ throws IOException\n/* */ {\n/* 76 */ File file = File.createTempFile(filename, \".tmp\");\n/* 77 */ file.deleteOnExit();\n/* 78 */ ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))));\n/* 79 */ oos.writeObject(o);\n/* 80 */ oos.close();\n/* 81 */ return file;\n/* */ }", "public interface TempFile {\n\n\t\tpublic void delete() throws Exception;\n\n\t\tpublic String getName();\n\n\t\tpublic OutputStream open() throws Exception;\n\t}", "private void setFile() {\n\t}", "public File mo27424a(File file) throws IOException {\n return File.createTempFile(this.f17426b + \".\", \".tmp\", file);\n }", "public String getTemporaryFilePath()\n {\n return callString(\"GetTemporaryFilePath\");\n }", "public static File createTemporaryCacheFile(CacheKey cacheKey) throws IOException {\n // Create a file in Java temp directory with cacheKey.toSting() as file name.\n\n File file = File.createTempFile(cacheKey.toString(), \".tmp\");\n if (null != file) {\n log.debug(\"Temp file created with the name - {}\", cacheKey.toString());\n }\n return file;\n }", "void setNewFile(File file);", "private File getCameraTempFile() {\n\t\tFile dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n\t\tFile output = new File(dir, SmartConstants.CAMERA_CAPTURED_TEMP_FILE);\n\n\t\treturn output;\n\t}", "@Test\n public void testTemporaryFileIgnored() throws Exception {\n addPeers(Collections.singletonList(\"peer3\"));\n\n // Get artifact from the peer, it will be cached\n File artifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n\n // Create a temporary file in the same directory\n try {\n Files.createFile(artifactPath.getParentFile().toPath().resolve(\"16734042670004650467150673059434.tmp\"));\n } catch (FileAlreadyExistsException e) {\n // no-op\n }\n\n // Get the artifact again. It should be fetched from the cache and the temporary file should be ignored.\n File newPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n Assert.assertEquals(artifactPath, newPath);\n }", "public interface TempFileManager {\n\n\t\tvoid clear();\n\n\t\tpublic TempFile createTempFile(String filename_hint) throws Exception;\n\t}", "public void setFile(File file);", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public static File createTempFile() throws Exception {\n File dir = tempFileDirectory();\n dir.mkdirs();\n File tempFile = File.createTempFile(\"tst\", null, dir);\n dir.deleteOnExit(); // Not fail-safe on android )¬;\n return tempFile;\n }", "private File createTempFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File albumF = getAlbumDir();\n File mediaF = null;\n\n profile = IMG_FILE_PREFIX + timeStamp+\"_\";\n mediaF = File.createTempFile(profile, IMG_FILE_SUFFIX, albumF);\n\n return mediaF;\n }", "public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }", "public File makeTemporaryBAMFile() throws IOException{\n final File file = IOUtils.createTempFile(\"tempBAM\", \".bam\");\n return makeBAMFile(file);\n }", "public static File CreateTempFile(String fileName, String resourcePath) throws IOException {\n \n /*if (tempDirectoryPath == null) {\n tempDirectoryPath = Files.createTempDirectory(null);\n System.getSecurityManager().checkDelete(tempDirectoryPath.toFile().toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath);\n System.out.println(\"Temp path: \" + tempDirectoryPath.toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath.toFile().toString());\n }*/\n \n File tempFile = null;\n InputStream input = null;\n OutputStream output = null;\n \n try {\n // Create temporary file\n //tempFile = File.createTempFile(tempDirectoryPath.getFileName() + File.separator + fileName , null);\n //System.out.println(\"Temp file: \" + tempFile);\n tempFile = File.createTempFile(filePrefix + fileName , null);\n tempFile.setReadable(false , false);\n tempFile.setReadable(true , true);\n tempFile.setWritable(true , true);\n tempFile.setExecutable(true , true);\n tempFile.deleteOnExit();\n \n // Read resource and write to temp file\n output = new FileOutputStream(tempFile);\n if (resourcePath != null) {\n input = Main.class.getClassLoader().getResourceAsStream(resourcePath);\n\n byte[] buffer = new byte[1024];\n int read;\n\n if (input == null) {\n Logger.log(\"Resource '\" + fileName + \"' at '\" + resourcePath + \"' not available!\");\n } else {\n while ((read = input.read(buffer)) != -1) {\n output.write(buffer , 0 , read);\n }\n }\n }\n } catch (IOException ex) {\n throw(ex);\n } finally {\n close(input);\n close(output);\n }\n return tempFile;\n }", "public String getTempPath() {\n return tempPath;\n }", "private final FileOutputStream zabz() {\n Serializable serializable = this.zalj;\n if (serializable == null) {\n serializable = new IllegalStateException(\"setTempDir() must be called before writing this object to a parcel\");\n throw serializable;\n }\n Object object = \"teleporter\";\n String string2 = \".tmp\";\n try {\n serializable = File.createTempFile((String)object, string2, (File)serializable);\n }\n catch (IOException iOException) {\n object = new IllegalStateException(\"Could not create temporary file\", iOException);\n throw object;\n }\n try {\n object = new FileOutputStream((File)serializable);\n int n10 = 0x10000000;\n string2 = ParcelFileDescriptor.open((File)serializable, (int)n10);\n this.zalg = string2;\n ((File)serializable).delete();\n return object;\n }\n catch (FileNotFoundException fileNotFoundException) {\n serializable = new IllegalStateException(\"Temporary file is somehow already deleted\");\n throw serializable;\n }\n }", "private File moveTempFile(final CommonsMultipartFile fileData, final String originalFileName) throws IOException {\n String deployFileName = buildDeployFileName(originalFileName);\n logger.info(\"Moving to {}\", deployFileName);\n final File tempFile = new File(deployFileName);\n fileData.transferTo(tempFile);\n return tempFile;\n }", "private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }", "public void init(String tmpInputFile)\r\n {\n readFile(tmpInputFile);\r\n writeInfoFile();\r\n }", "public void setFile(DefaultStreamedContent file) {\n this.file = file;\n }", "@Before\n public void setUp() {\n this.file = null;\n }", "public void setFile(File file) {\r\n\t\tif (file!=null) this.input = null;\r\n\t\tthis.file = file;\r\n\t}", "private void setFile(Serializable object, String path) throws Exception {\t\t\n\t\t\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(object);\n objectOut.close(); \n\t\t\n\t}", "void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}", "public void setTmpLock(boolean tmpLock) {\n \t\tthis.tmpLock = tmpLock;\n \t}", "private static File createTempFile(final byte[] data) throws IOException {\r\n \t// Genera el archivo zip temporal a partir del InputStream de entrada\r\n final File zipFile = File.createTempFile(\"sign\", \".zip\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n final FileOutputStream fos = new FileOutputStream(zipFile);\r\n\r\n fos.write(data);\r\n fos.flush();\r\n fos.close();\r\n\r\n return zipFile;\r\n }", "private static File generateTemp(Path path) {\n File tempFile = null;\n try {\n InputStream in = Files.newInputStream(path);\n String tDir = System.getProperty(\"user.dir\") + File.separator + ASSETS_FOLDER_TEMP_NAME;\n tempFile = new File(tDir + File.separator + path.getFileName());\n try (FileOutputStream out = new FileOutputStream(tempFile)) {\n IOUtils.copy(in, out);\n }\n album.addToImageList(tempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tempFile;\n }", "private File createTempFile(WorkDirectory workDir, BackupPolicy backupPolicy)\n throws IOException {\n int MAX_TRIES = 100; // absurdly big limit, but a limit nonetheless\n for (int i = 0; i < MAX_TRIES; i++) {\n File tempFile = new File(resultsFile.getPath() + \".\" + i + \".tmp\");\n if (tempFile.createNewFile()) {\n return tempFile;\n }\n }\n throw new IOException(\"could not create temp file for \" + resultsFile + \": too many tries\");\n }", "private File createTempFile(TransferSongMessage message)\n throws IOException {\n File outputDir = MessagingService.this.getCacheDir(); // context being the Activity pointer\n String filePrefix = UUID.randomUUID().toString().replace(\"-\", \"\");\n int inx = message.getSongFileName().lastIndexOf(\".\");\n String extension = message.getSongFileName().substring(inx + 1);\n File outputFile = File.createTempFile(filePrefix, extension, outputDir);\n return outputFile;\n }", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n public void setFile(File f) {\n \n }", "private String getTmpPath() {\n return getExternalFilesDir(null).getAbsoluteFile() + \"/tmp/\";\n }", "@Test\n public void testSetDataAccessResultsDir2() throws IOException {\n System.out.println(\"setDataAccessResultsDir2\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n File dir = null;\n try {\n dir = File.createTempFile(\"testfile\", \".txt\");\n\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n\n assertEquals(preferences.get(currentDir, null), \"\");\n assertEquals(preferences.get(previousDir, null), null);\n\n } finally {\n // Cleanup\n if (dir != null && dir.exists()) {\n dir.delete();\n }\n }\n }", "@Override\n public void resetStateOfSUT() {\n\n try {\n //FIXME: this fails due to locks on Neo4j. need way to reset it\n //deleteDir(new File(tmpFolder));\n if(!Files.exists(Path.of(tmpFolder))) {\n Files.createDirectories(Path.of(tmpFolder));\n }\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"users.json\"), Path.of(tmpFolder,\"users.json\"), StandardCopyOption.REPLACE_EXISTING);\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"logins.json\"), Path.of(tmpFolder,\"logins.json\"), StandardCopyOption.REPLACE_EXISTING);\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }", "public static File createSmallFile() throws IOException{\n\t\tFile smallFile = File.createTempFile(\"TempFile\", \".txt\");\n\t\tsmallFile.deleteOnExit();\n\t\t\n\t\tWriter writer = new OutputStreamWriter(new FileOutputStream(smallFile));\n\t\twriter.write(\"0\");\n\t\twriter.close();\n\t\treturn smallFile;\n\t\t\t\t\n\t}", "public static void writeTempFile(InputStream pInputStream, String pTempFilePath) throws IOException {\r\n FileOutputStream lOutputStream = null;\r\n try {\r\n lOutputStream = new FileOutputStream(pTempFilePath);\r\n\r\n byte[] bufferData = new byte[1024];\r\n int read = 0;\r\n\r\n //read employee data from byte stream\r\n while ((read = pInputStream.read(bufferData)) != -1) {\r\n //write file data in temp File output stream\r\n lOutputStream.write(bufferData, 0, read);\r\n }\r\n\r\n try {\r\n lOutputStream.flush();\r\n } catch (IOException e) {\r\n }\r\n } finally {\r\n //close output stream\r\n if (lOutputStream != null) {\r\n try {\r\n lOutputStream.close();\r\n } catch (Exception lEx) {\r\n }\r\n }\r\n }\r\n }", "public void newFile() {\r\n \t\tcurFile = null;\r\n \t}", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public static void createTempFileForLinux() throws IOException {\n Path path = Files.createTempFile(\"temp_linux_file\", \".txt\",\n PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString(\"rw-------\")));\n System.out.println(\"Path is : \" + path.toFile().getAbsolutePath());\n }", "@PostMapping(\"temporaryupload\")\n\tpublic ResponseEntity uploadTemporary(@RequestParam(\"file\") MultipartFile multipartFile) {\n\t\tString originalFileName = multipartFile.getOriginalFilename();\n\n\t\tPaper paper = null;\n\t\tFile storedFile = esPaperService.storeFileTemporary(multipartFile);\n\t\tpaper = esPaperService.getMetadata(storedFile);\n\t\tpaper.setFilename(originalFileName);\n\t\treturn new ResponseEntity<>(paper, HttpStatus.OK);\n\t}", "public void testSetObjTemp() {\n System.out.println(\"setObjTemp\");\n Object objTemp = null;\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n instance.setObjTemp(objTemp);\n }", "public static File getTempDirectory() {\r\n\t\treturn new File(System.getProperty(\"java.io.tmpdir\"));\r\n\t}", "public static void createTempMapset() throws IOException {\r\n\r\n final boolean bIsLatLon = new Boolean(SextanteGUI.getSettingParameterValue(SextanteGrassSettings.GRASS_LAT_LON_MODE)).booleanValue();\r\n final String tmpFolder = new String(getGrassMapsetFolder().substring(0, getGrassMapsetFolder().lastIndexOf(File.separator)));\r\n final boolean b = new File(tmpFolder).mkdir();\r\n new File(tmpFolder + File.separator + \"PERMANENT\").mkdir();\r\n new File(tmpFolder + File.separator + \"user\").mkdir();\r\n new File(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \".tmp\").mkdir();\r\n writeGRASSWindow(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"DEFAULT_WIND\");\r\n new File(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"MYNAME\").createNewFile();\r\n try {\r\n final FileWriter fstream = new FileWriter(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"MYNAME\");\r\n final BufferedWriter out = new BufferedWriter(fstream);\r\n if (!bIsLatLon) {\r\n /* XY location */\r\n out.write(\"SEXTANTE GRASS interface: temporary x/y data processing location.\\n\");\r\n }\r\n else {\r\n /* lat/lon location */\r\n out.write(\"SEXTANTE GRASS interface: temporary lat/lon data processing location.\\n\");\r\n }\r\n out.close();\r\n }\r\n catch (final IOException e) {\r\n throw (e);\r\n }\r\n if (bIsLatLon) {\r\n new File(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"PROJ_INFO\").createNewFile();\r\n try {\r\n final FileWriter fstream = new FileWriter(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"PROJ_INFO\");\r\n final BufferedWriter out = new BufferedWriter(fstream);\r\n out.write(\"name: Latitude-Longitude\\n\");\r\n out.write(\"proj: ll\\n\");\r\n out.write(\"ellps: wgs84\\n\");\r\n out.close();\r\n }\r\n catch (final IOException e) {\r\n throw (e);\r\n }\r\n new File(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"PROJ_UNITS\").createNewFile();\r\n try {\r\n final FileWriter fstream = new FileWriter(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"PROJ_UNITS\");\r\n final BufferedWriter out = new BufferedWriter(fstream);\r\n out.write(\"unit: degree\\n\");\r\n out.write(\"units: degrees\\n\");\r\n out.write(\"meters: 1.0\\n\");\r\n out.close();\r\n }\r\n catch (final IOException e) {\r\n throw (e);\r\n }\r\n }\r\n writeGRASSWindow(tmpFolder + File.separator + \"PERMANENT\" + File.separator + \"WIND\");\r\n new File(tmpFolder + File.separator + \"user\" + File.separator + \"dbf\").mkdir();\r\n new File(tmpFolder + File.separator + \"user\" + File.separator + \".tmp\").mkdir();\r\n new File(tmpFolder + File.separator + \"user\" + File.separator + \"VAR\").createNewFile();\r\n try {\r\n final FileWriter fstream = new FileWriter(tmpFolder + File.separator + \"user\" + File.separator + \"VAR\");\r\n final BufferedWriter out = new BufferedWriter(fstream);\r\n out.write(\"DB_DRIVER: dbf\\n\");\r\n out.write(\"DB_DATABASE: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/\\n\");\r\n out.close();\r\n }\r\n catch (final IOException e) {\r\n throw (e);\r\n }\r\n writeGRASSWindow(tmpFolder + File.separator + \"user\" + File.separator + \"WIND\");\r\n }", "public static File writeObjectToTempFileNoExceptions(Serializable o, String filename)\n/* */ {\n/* */ try\n/* */ {\n/* 93 */ return writeObjectToTempFile(o, filename);\n/* */ } catch (Exception e) {\n/* 95 */ System.err.println(\"Error writing object to file \" + filename);\n/* 96 */ e.printStackTrace(); }\n/* 97 */ return null;\n/* */ }", "static File createTempImageFile(Context context)\n throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\",\n Locale.getDefault()).format(new Date());\n String imageFileName = \"AZTEK\" + timeStamp + \"_\";\n\n globalImageFileName = imageFileName;\n\n File storageDir = context.getExternalCacheDir();\n\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private String saveTmpFile(ByteBuffer b, int offset, int len, String filename_hint) {\n\t\t\tString path = \"\";\n\t\t\tif (len > 0) {\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tTempFile tempFile = this.tempFileManager.createTempFile(filename_hint);\n\t\t\t\t\tByteBuffer src = b.duplicate();\n\t\t\t\t\tfileOutputStream = new FileOutputStream(tempFile.getName());\n\t\t\t\t\tFileChannel dest = fileOutputStream.getChannel();\n\t\t\t\t\tsrc.position(offset).limit(offset + len);\n\t\t\t\t\tdest.write(src.slice());\n\t\t\t\t\tpath = tempFile.getName();\n\t\t\t\t} catch (Exception e) { // Catch exception if any\n\t\t\t\t\tthrow new Error(e); // we won't recover, so throw an error\n\t\t\t\t} finally {\n\t\t\t\t\tsafeClose(fileOutputStream);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn path;\n\t\t}", "File createFile(String name) throws IOException {\n File storageFile = File.createTempFile(FILE_PREFIX + name + \"_\", null, this.subDirectories[fileCounter.getAndIncrement()&(this.subDirectories.length-1)]); //$NON-NLS-1$\n if (LogManager.isMessageToBeRecorded(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {\n LogManager.logDetail(org.teiid.logging.LogConstants.CTX_BUFFER_MGR, \"Created temporary storage area file \" + storageFile.getAbsoluteFile()); //$NON-NLS-1$\n }\n return storageFile;\n }", "public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }", "@Test\n\tpublic void testUsingTempFolder1() throws IOException {\n\t\tFile createdFile= temp.newFile(\"mytestfile.html\");\n\t\t\n\t\t// construct temp(test) html file\n\t\tString content = \"<title>This is title</title>\";\n\t\t\n\t\tPrintStream ps = new PrintStream(new FileOutputStream(createdFile));\n\t\tps.println(content); \n\t\t// what I think it should be\n\t\tString res = \"This is title\"; \n\n\t\t// what actually it is\n\t\tString result = extractTitleModule.WebPageExtraction(createdFile);\n\t\tassertEquals(res,result); \n\t}", "private void tempTOuserFolder (HttpServletRequest request,String folderName,String fileName,String original_name,String fileType)throws IOException{\n try {\n String tempPath=request.getSession().getServletContext().getRealPath(\"/\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+TEMP;\n String persistentPath=request.getSession().getServletContext().getRealPath(\"/\")+\"\\\\\"+REPOSITORY+\"\\\\\"+username+\"\\\\\"+PERSISTENT+\"\\\\\"+folderName;\n File newFile=new File(persistentPath);\n if(!newFile.exists()){\n newFile.mkdirs();//创建永久文件路径\n }\n if(original_name.endsWith(\".csv\")){\n original_name.replace(\"csv\",\"xls\");\n System.out.println(original_name);\n }\n if(original_name.endsWith(\".txt\")){\n original_name.replace(\"txt\",\"xls\");\n System.out.println(original_name);\n }\n //临时文件\n File oldFile=new File(tempPath,original_name);\n if(oldFile==null){\n return;\n }\n //永久文件\n StringBuffer strBuffer=new StringBuffer(fileName);\n strBuffer.append(\".\").append(fileType);\n System.out.println(\"strbuffer:\"+strBuffer);\n File file=new File(newFile,new String(strBuffer));\n Files.copy(oldFile.toPath(), file.toPath());\n oldFile.delete();\n }catch (IOException io){\n io.printStackTrace();\n throw new IOException(\"文件移动失败!\");\n\n }\n }", "String createTempFile(String text,String filename) {\r\n\t\tString tmpDirectory = Configuration.getConfiguration().getMpdTmpSubDir();\r\n\t\tif(!tmpDirectory.endsWith(java.io.File.separator)) {\r\n\t\t\ttmpDirectory += java.io.File.separator;\r\n\t\t}\r\n\t\tconvert(text,Configuration.getConfiguration().getMpdFileDirectory(),tmpDirectory+filename);\r\n\t\t\r\n\t\treturn tmpDirectory+filename;\r\n\t}", "public String getUserTempDir() throws IOException {\n\t\treturn \"/data/local/tmp/\";\n\t}", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "private void removeTempData(CopyTable table)\n\t{\n\t\tFile dataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_data.csv\");\n\t\tFile countFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_count.txt\");\n\t\tFile metaDataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_metadata.ser\");\n\t\t\n\t\tdataFile.delete();\n\t\tcountFile.delete();\n\t\tmetaDataFile.delete();\n\t\t\n\t\tFile tempDir = new File(config.getTempDirectory());\n\t\ttempDir.delete();\n\t}", "public static void useTempFileDatabase() {\n\t\tsetDatabaseMap(TempFileDatabaseMap.class);\n\t}", "public void newFile(int temp) {\n if(!doesExist(temp)){\n System.out.println(\"The Directory does not exist \");\n return;\n }\n\n directory nodeptr = root;\n for(int count = 0; count < temp; count++) {\n nodeptr = nodeptr.forward;\n }\n int space = nodeptr.f.createFile(nodeptr.count);\n nodeptr.count++;\n nodeptr.availableSpace = 512 - space;\n\n }", "@BeforeClass\n public static void setup() {\n logger.info(\"setup: creating a temporary directory\");\n\n // create a directory for temporary files\n directory = new File(UUID.randomUUID().toString());\n directory.mkdir();\n }", "public void save(String newFilePath) {\r\n File deletedFile = new File(path);\r\n deletedFile.delete();\r\n path = newFilePath;\r\n File dataFile = new File(path);\r\n File tempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(tempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n dataFile.delete();\r\n tempFile.renameTo(dataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOException in save2 : FileData\");\r\n }\r\n }", "private void setUp() {\n if (tempDir != null) {\n tearDown();\n }\n tempDir = new File(OS.getTmpPath() + \"imagecompare\" + System.nanoTime());\n tempDir.mkdir();\n tempDir.deleteOnExit();\n tempFiles.clear();\n log.debug(\"using temp directory \" + tempDir.getAbsolutePath());\n\n }", "protected File copyURLToFile(String filename) throws IOException {\r\n\t\tURL deltaFileUrl = getClass().getResource(filename);\t\t\r\n\t\tFile tempFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t_tempFiles.add(tempFile);\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempFile);\t\t\r\n\t\treturn tempFile;\t\r\n\t}", "public void setFile(File file)\n {\n this.file = file;\n }", "public void testExtendsFileSet() throws IOException {\n super.testExtendsFileSet(File.createTempFile(\"cpptaskstest\", \".o\"));\n }", "@Test\r\n public void testUpdateFile() {\r\n System.out.println(\"updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n // no assertEquals needed because the method itself would throw an error\r\n // if an error occurs check your connection to the internet\r\n }", "public void setFile(File file) {\n this.path = file != null ? file.toPath() : null;\n }", "public TorrentState() {\n tempDir = System.getProperty(property) + \"AStreamOfTorrents\";\n }", "public static Path createSimpleTmpFile( final Configuration conf, boolean deleteOnExit ) throws IOException\r\n\t{\r\n\t\t/** Make a temporary File, delete it, mark the File Object as delete on exit, and create the file with data using hadoop utils. */\r\n\t\tFile localTempFile = File.createTempFile(\"tmp-file\", \"tmp\");\r\n\t\tlocalTempFile.delete();\r\n\t\tPath localTmpPath = new Path( localTempFile.getName());\r\n\t\t\r\n\t\tcreateSimpleFile(conf, localTmpPath, localTmpPath.toString());\r\n\t\tif (deleteOnExit) {\r\n\t\t\tlocalTmpPath.getFileSystem(conf).deleteOnExit(localTmpPath);\r\n\t\t}\r\n\t\treturn localTmpPath;\r\n\t}", "protected void clearLocalFileInfo() {\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"[\" + uri + \"]: clearServerFileInfo()\");\n\t\tthis.localFileInfo = null;\n\t}", "public void save() {\r\n File distDataFile = new File(path);\r\n\r\n //String basePath = path;\r\n String endOfPath = path.substring(path.lastIndexOf(\"/\"));\r\n\r\n File rootDataFile;\r\n if (!path.contains(\"artists\")) {\r\n rootDataFile = new File(BASEDIR + \"/resources/data\" + endOfPath);\r\n } else {\r\n rootDataFile = new File(BASEDIR + \"/resources/data/artists\" + endOfPath);\r\n }\r\n\r\n File distTempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n File rootTempFile;\r\n if (!path.contains(\"artists\")) {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/myTempFile.txt\");\r\n } else {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/artists/myTempFile.txt\");\r\n }\r\n \r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(distTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n distDataFile.delete();\r\n distTempFile.renameTo(distDataFile);\r\n\r\n BufferedWriter bw2 = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(rootTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw2.write(line);\r\n bw2.newLine();\r\n }\r\n\r\n bw2.close();\r\n rootDataFile.delete();\r\n rootTempFile.renameTo(rootDataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExceptoin in save1 : FileData\");\r\n }\r\n }", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n\n m_TestHelper.copyResourceToTmp(\"regression.arff\");\n }", "private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void setTempFileManagerFactory(TempFileManagerFactory tempFileManagerFactory) {\n\t\tthis.tempFileManagerFactory = tempFileManagerFactory;\n\t}", "@Test\n\tpublic void testUsingTempFolder2() throws IOException {\n\t\tFile createdFile1= temp.newFile(\"mytestfile.html\");\n\t\t\n\t\t// construct temp(test) html file\n\t\tString content = \"<title>This is title<title>\";\n\t\t\n\t\tPrintStream ps = new PrintStream(new FileOutputStream(createdFile1));\n\t\tps.println(content); \n\t\t// what I think it should be\n\t\tString res = null; \n\n\t\t// what actually it is\n\t\tString result = extractTitleModule.WebPageExtraction(createdFile1);\n\t\tassertEquals(res,result); \n\t}", "private String getTempFileString() {\n final File path = new File(getFlagStoreDir() + String.valueOf(lJobId) + File.separator);\n // // If this does not exist, we can create it here.\n if (!path.exists()) {\n path.mkdirs();\n }\n //\n return new File(path, Utils.getDeviceUUID(this)+ \".jpeg\")\n .getPath();\n }", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "private static void taskContentsFileTransfer() {\n // Transfer text file to temporary file\n try {\n String taskContentsFilePath, taskContents;\n BufferedReader taskContentsLocation = new BufferedReader(new FileReader(FILE_PATH_CONTENT));\n taskContentsFilePath = taskContentsLocation.readLine();\n\n if (taskContentsFilePath != null) {\n BufferedReader taskContentsReader = new BufferedReader(new FileReader(taskContentsFilePath));\n\n taskContents = taskContentsReader.readLine();\n while (taskContents != null) {\n fileContent.add(taskContents);\n taskContents = taskContentsReader.readLine();\n }\n taskContentsReader.close();\n // Clear file\n PrintWriter pw = new PrintWriter(taskContentsFilePath);\n pw.close();\n }\n taskContentsLocation.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void clearFile() {\n if (data.delete())\n data = new File(\"statistics.data\");\n }", "public final File mo14819f() {\n return new File(mo14820g(), \"_tmp\");\n }", "public static File getTemporaryDirectory() {\r\n\t\tFile dir = new File(System.getProperty(\"java.io.tmpdir\", //$NON-NLS-1$\r\n\t\t\t\tSystem.getProperty(\"user.dir\", \".\"))); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\ttry {\r\n\t\t\treturn dir.getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn dir;\r\n\t\t}\r\n\t}", "@BeforeEach\n public void setUp() {\n assertTrue(Files.isDirectory(this.temporaryDirectory));\n }", "private void resetTemporary(){\n temporaryConstants = null;\n temporaryVariables = null;\n }", "public File writeBackFileToDvn(RConnection c, String targetFilename,\n String tmpFilePrefix, String tmpFileExt, int fileSize){\n File tmprsltfl = null;\n \n String resultFilePrefix = tmpFilePrefix + PID + \".\";\n \n String rfsffx = \".\" + tmpFileExt;\n RFileInputStream ris = null;\n OutputStream outbr = null;\n try {\n tmprsltfl = File.createTempFile(resultFilePrefix, rfsffx);\n \n //outbr = new FileOutputStream(tmprsltfl);\n outbr = new BufferedOutputStream(new FileOutputStream(tmprsltfl));\n //File tmp = new File(targetFilename);\n //long tmpsize = tmp.length();\n // open the input stream\n ris = c.openFile(targetFilename);\n \n if (fileSize < 1024*1024*500){\n int bfsize = fileSize +1;\n byte[] obuf = new byte[bfsize];\n ris.read(obuf);\n //while ((obufsize =)) != -1) {\n outbr.write(obuf, 0, bfsize);\n //}\n }\n ris.close();\n outbr.close();\n return tmprsltfl;\n } catch (FileNotFoundException fe){\n fe.printStackTrace();\n dbgLog.fine(\"FileNotFound exception occurred\");\n return tmprsltfl;\n } catch (IOException ie){\n ie.printStackTrace();\n dbgLog.fine(\"IO exception occurred\");\n } finally {\n if (ris != null){\n try {\n ris.close();\n } catch (IOException e){\n \n }\n }\n \n if (outbr != null){\n try {\n outbr.close();\n } catch (IOException e){\n \n }\n }\n \n }\n return tmprsltfl;\n }", "private File writeMoleculeToTemp(IAtomContainer mol, String identifier, int globalCount, String bondEnergy, Integer treeDepth) throws IOException, CDKException\n {\n \tFile temp = File.createTempFile(identifier + \"_\" + globalCount, \".sdf\");\n // Delete temp file when program exits.\n temp.deleteOnExit();\n FileWriter out = new FileWriter(temp);\n SDFWriter mw = new SDFWriter(out);\n IAtomContainer tmp = mol;\n Map<Object, Object> props = mol.getProperties();\n IMolecule test = new Molecule(tmp);\n test.setProperties(props);\n test.setProperty(\"BondEnergy\", bondEnergy);\n test.setProperty(\"TreeDepth\", treeDepth.toString());\n mw.write(test);\n mw.close();\n \n return temp;\n }", "private void finalizeFileSystemFile() throws IOException {\n Path finalConfigPath = getFinalConfigPath(tempConfigPath);\n fileSystem.rename(tempConfigPath, finalConfigPath);\n LOG.info(\"finalize temp configuration file successfully, finalConfigPath=\"\n + finalConfigPath);\n }", "private static void saveTemplateFile(File file, Template newTemp) {\n String string = newTemp.toString();\n\n //Save File\n try {\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(string.getBytes());\n fos.flush();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Read back file and check against original.\n try {\n FileInputStream fis = new FileInputStream(file);\n byte[] data = new byte[(int)file.length()];\n\n fis.read(data);\n String tmpIN = new String(data,\"UTF-8\");\n Log.d(\"Behave\",\"Read Back Template: \"+ tmpIN);\n Log.d(\"Behave\",\"Template Saved Correctly: \"+tmpIN.equals(string));\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // Separate catch block for IOException because other exceptions are encapsulated by it.\n Log.e(\"Behave\", \"IOException not otherwise caught\");\n e.printStackTrace();\n }\n }", "private void setImage() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap originalBm = BitmapFactory.decodeFile(tempFile.getAbsolutePath(), options);\n // Log.d(TAG, \"setImage : \" + tempFile.getAbsolutePath());\n\n myImage.setImageBitmap(originalBm);\n\n /**\n * tempFile 사용 후 null 처리를 해줘야 합니다.\n * (resultCode != RESULT_OK) 일 때 tempFile 을 삭제하기 때문에\n * 기존에 데이터가 남아 있게 되면 원치 않은 삭제가 이뤄집니다.\n */\n System.out.println(\"setImage : \" + tempFile.getAbsolutePath());\n fileSource = tempFile.getAbsolutePath();\n myImageSource = fileSource;\n check++;\n tempFile = null;\n\n }" ]
[ "0.7325322", "0.6568965", "0.64381206", "0.6406577", "0.64028776", "0.61722094", "0.61588997", "0.60810816", "0.60337293", "0.5893831", "0.58806217", "0.58547074", "0.5838956", "0.58163303", "0.5808533", "0.57183236", "0.57006377", "0.56882554", "0.5670217", "0.56392676", "0.5610832", "0.55945075", "0.5586999", "0.5556151", "0.5552301", "0.5533156", "0.5532134", "0.55118763", "0.5492514", "0.549104", "0.5483227", "0.546581", "0.5449706", "0.5445839", "0.54365367", "0.54264104", "0.54229873", "0.5415492", "0.5408181", "0.54005337", "0.5394939", "0.53931576", "0.5391112", "0.5387891", "0.5377046", "0.53495014", "0.53436446", "0.53073376", "0.5302016", "0.52969396", "0.52928805", "0.52790844", "0.5275889", "0.52665395", "0.5223741", "0.52234775", "0.52070636", "0.52016306", "0.52000934", "0.51990914", "0.5163845", "0.5159281", "0.5158756", "0.51578283", "0.5156968", "0.5145475", "0.51394856", "0.5137184", "0.51268363", "0.51217496", "0.51170146", "0.5112456", "0.51032513", "0.50982386", "0.5094688", "0.50896287", "0.5088724", "0.50769776", "0.50756377", "0.5070895", "0.50707597", "0.5066201", "0.50649935", "0.5054871", "0.50503767", "0.5049265", "0.5047678", "0.5046115", "0.50437015", "0.50435734", "0.50418234", "0.50302637", "0.50154847", "0.5014667", "0.5013408", "0.5013407", "0.5003685", "0.50029767", "0.50011086", "0.49945986" ]
0.7584235
0
Set/clear the updated segment flag
public synchronized final void setUpdated(boolean sts) { setFlag(Updated, sts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSegmented(boolean segmented);", "void unsetSegmented();", "void xsetSegmented(org.apache.xmlbeans.XmlBoolean segmented);", "boolean isSetSegmented();", "void setStartSegment(int startSegment);", "public void updateSegment() {\n\t\tint i = curSeg * 2;\n\t\tint iChange = 2;\n\t\tint seg = i;\n\t\toldSeg = curSeg;\n\t\t\n\t\t// This variable is needed to keep looking even though a segment change\n\t\t// has been found. This is needed since the car could possibly pass\n\t\t// through multiple segments in one frame.\n\t\tboolean intersectionFound = false;\n\t\t// The algorithm needs to look at the start segment and the one before it.\n\t\tboolean startDone = false;\n\t\t\n\t\twhile (true) {\n\t\t\tif (i < 0) i = segments.size() + i;\n\t\t\telse if (i >= segments.size()) i = 0;\n\t\t\t\n\t\t\tif (Intersector.intersectSegments(oldPos, pos,\n\t\t\t\t\t segments.get(i), segments.get(i+1), null)) {\n\t\t\t\tintersectionFound = true;\n\t\t\t\tseg = i;\n\t\t\t} else {\n\t\t\t\t// Even though this segment didn't intersect, the previous one did.\n\t\t\t\tif (intersectionFound) break;\n\t\t\t\t// Change direction and check the segment before this one next iteration.\n\t\t\t\telse if (!startDone){\n\t\t\t\t\tstartDone = true;\n\t\t\t\t\tiChange = -2;\n\t\t\t\t} \n\t\t\t\t// No new segment was found.\n\t\t\t\telse break;\n\t\t\t}\n\t\t\ti += iChange;\n\t\t}\n\t\t\n\t\tif (intersectionFound && !startDone) {\n\t\t\tseg +=2;\n\t\t\tif (seg >= segments.size()) seg = 0;\n\t\t}\n\t\tcurSeg = seg/2;\n\t\t\n\t\t// Update the distance to segment.\n\t\tdistToSeg = Intersector.distanceSegmentPoint(segments.get(seg), segments.get(seg+1), pos);\n\t\t\n\t\tif (oldSeg != curSeg || longestDist == 0) {\n\t\t\tlongestDist = distToSeg;\n\t\t}\n\t}", "@Override\n public void resetMap(){\n segmentList=new ArrayList<>();\n intersectionList=new ArrayList<>();\n this.setChanged();\n this.notifyObservers();\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "private void set(){\n resetBuffer();\n }", "private void discardSegment() {\n synchronized (lastSegment) {\n lastSegment.clear();\n lastSegmentTimes.clear();\n lastSegmentCurve.clear();\n }\n }", "public void setSegment(String p_segment)\n {\n m_strSegment = p_segment;\n }", "public void changeMark() {\n marked = !marked;\n }", "private void unmarkForSecOp() {\n\t\tthis.secOpFlag = false;\n\t\tthis.secopDoc = null;\n\t}", "public void invalidateAll() {\n segment.clear();\n }", "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}", "void setEndSegment(int endSegment);", "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "boolean getSegmented();", "private void updateSegments(){\n\t\tfor (int i = 0; i < getSegmentCount(); i++) {\n\t\t\tSegment s = segments.get(i);\n\n\t\t\tfor (int j = 0; j < s.getFaceCount(); j++) {\n\t\t\t\tFace f = s.getFace(j);\n\n\t\t\t\tint[] vtIndex = f.getVertexIndices();\n\t\t\t\tint[] nmIndex = f.getNormalIndices();\n\t\t\t\tint[] uvIndex = f.getTextureIndices();\n\n\t\t\t\tf.vertices.clear();\n\t\t\t\tf.normals.clear();\n\t\t\t\tf.uvs.clear();\n\t\t\t\t// three for loops for safety. if there are no normals or\n\t\t\t\t// uv's then nothing will break\n\t\t\t\tfor (int k = 0; k < vtIndex.length; k++)\n\t\t\t\t\tf.vertices.add(modelVertices.get(vtIndex[k]));\n\n\t\t\t\tfor (int k = 0; k < nmIndex.length; k++)\n\t\t\t\t\tf.normals.add(normalVertices.get(nmIndex[k]));\n\n\t\t\t\tif(textureVertices.size() > 0){\n\t\t\t\t\tfor (int k = 0; k < uvIndex.length; k++)\n\t\t\t\t\t\tf.uvs.add(textureVertices.get(uvIndex[k]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}", "public void clearMark()\n {\n mark = false;\n }", "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "public void refreshGeometry(){\n\t\tfor (int i = 0; i < getSegmentCount(); i++) {\n\t\t\tsegments.get(i).refreshGeometry();\n\t\t}\n\t}", "protected synchronized void clearChanged() {\n changed = false;\n }", "public void setEnabled(boolean state) {\n\t\t\n\t\tif (enabled != state) {\n\t\t\t\n\t\t\t// the display state has changed\n\t\t\tenabled = state;\n\t\t\t\n\t\t\tif (enabled) {\n\t\t\t\t// generate the labels on a switch to enabled\n\t\t\t\t\n\t\t\t\tif (segment != null) {\n\t\t\t\t\t\n\t\t\t\t\t// the vertex entities\n\t\t\t\t\tVertexEntity left_ve = segment.getStartVertexEntity();\n\t\t\t\t\tVertexEntity rght_ve = segment.getEndVertexEntity();\n\t\t\t\t\t\n\t\t\t\t\t// the vertex heights\n\t\t\t\t\tfloat left_height = left_ve.getHeight();\n\t\t\t\t\tfloat rght_height = rght_ve.getHeight();\n\t\t\t\t\t\n\t\t\t\t\tfloat height = Math.max(left_height, rght_height);\n\t\t\t\t\t\n\t\t\t\t\tint num_hash = 1 + (int)(height / hash_separation);\n\t\t\t\t\t\n\t\t\t\t\tint num_line = 1 + num_hash;\n\t\t\t\t\tint num_vertex = 2 * num_line;\n\t\t\t\t\tint num_coord = num_vertex * 3;\n\t\t\t\t\tfloat[] coord = new float[num_coord];\n\t\t\t\t\tint[] strips = new int[num_line];\n\t\t\t\t\t\n\t\t\t\t\tfloat x_max = -GAUGE_OFFSET;\n\t\t\t\t\tfloat x_min_primary = x_max - PRIMARY_HASH_MARK_LENGTH;\n\t\t\t\t\tfloat x_min_secondary = x_max - SECONDARY_HASH_MARK_LENGTH;\n\t\t\t\t\t\n\t\t\t\t\t// generate the coords of the hash marks, bottom to top\n\t\t\t\t\tint idx = 0;\n\t\t\t\t\tint primary_cnt = 0;\n\t\t\t\t\tfor (int i = 0; i < num_hash; i++) {\n\t\t\t\t\t\tfloat hash_height = i * hash_separation;\n\t\t\t\t\t\tif (primary_cnt == 0) {\n\t\t\t\t\t\t\tlabelHashMark(hash_height);\n\t\t\t\t\t\t\tcoord[idx++] = x_min_primary;\n\t\t\t\t\t\t\tprimary_cnt = hash_increment;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcoord[idx++] = x_min_secondary;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcoord[idx++] = hash_height;\n\t\t\t\t\t\tcoord[idx++] = 0;\n\t\t\t\t\t\tcoord[idx++] = x_max;\n\t\t\t\t\t\tcoord[idx++] = hash_height;\n\t\t\t\t\t\tcoord[idx++] = 0;\n\t\t\t\t\t\tstrips[i] = 2;\n\t\t\t\t\t\tprimary_cnt--;\n\t\t\t\t\t}\n\t\t\t\t\t// add the coords of the vertical strip\n\t\t\t\t\tcoord[idx++] = x_max;\n\t\t\t\t\tcoord[idx++] = 0;\n\t\t\t\t\tcoord[idx++] = 0;\n\t\t\t\t\tcoord[idx++] = x_max;\n\t\t\t\t\tcoord[idx++] = height;\n\t\t\t\t\tcoord[idx++] = 0;\n\t\t\t\t\tstrips[num_hash] = 2;\n\t\t\t\t\t\n\t\t\t\t\tLineStripArray gauge_line = new LineStripArray();\n\t\t\t\t\tgauge_line.setVertices(LineStripArray.COORDINATE_3, coord);\n\t\t\t\t\tgauge_line.setStripCount(strips, num_line);\n\t\t\t\t\tgauge_line.setSingleColor(false, new float[]{0, 0, 0});\n\t\t\t\t\t\n\t\t\t\t\tShape3D gauge_line_shape = new Shape3D();\n\t\t\t\t\tgauge_line_shape.setGeometry(gauge_line);\n\t\t\t\t\t\n\t\t\t\t\tnodeAddList.add(gauge_line_shape);\n\t\t\t\t\tconfig = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// on a switch to disabled, queue a request to remove \n\t\t\t\t// the labels - if they exist\n\t\t\t\tif (nodeRemoveList.size() > 0) {\n\t\t\t\t\tconfig = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void confirmSegment(long seq) {\n\n // It is no longer outstanding\n sentOutUnacknowledgedSegStartSeqNumbers.remove(seq);\n\n // Add it to the progression\n acknowledgedSegStartSeqNumbers.add(seq);\n\n // Cancel its resend event\n cancelResendEvent(seq);\n\n }", "public void setLastSegment(boolean v) {\n if (SourceDocumentInformation_Type.featOkTst\n && ((SourceDocumentInformation_Type) jcasType).casFeat_lastSegment == null)\n this.jcasType.jcas.throwFeatMissing(\"lastSegment\", \"org.apache.uima.examples.SourceDocumentInformation\");\n jcasType.ll_cas.ll_setBooleanValue(addr,\n ((SourceDocumentInformation_Type) jcasType).casFeatCode_lastSegment, v);\n }", "public void sync(boolean flush) throws IOException\n {\n segmentManager.sync(flush);\n }", "public synchronized static void setServiceFlag(boolean flag){\n editor.putBoolean(IS_SERVICE_RUNNING, flag);\n editor.commit();\n }", "public void setSegmentReference(int value) {\n this.segmentReference = value;\n }", "@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tvoid updated(boolean pVal);", "@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }", "void clearModifiedFlag();", "public void setSegmentArray(com.eviware.soapui.coverage.SegmentType[] segmentArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(segmentArray, SEGMENT$2);\n }\n }", "public void setNormalizationState(boolean flag);", "public void changeStatus(){\n Status = !Status;\n\n }", "public void updateCurrentInstruction(DrawableVector draw){\n currentInstruction=draw;\n }", "default void setNeedToBeUpdated(boolean flag)\n {\n getUpdateState().update(flag);\n }", "public void bufferSet(boolean b){\n bufferSet = b;\n }", "protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}", "public void markUsed(int segmentNr, int value) {\n for (int i = 0; i < nrVisibleSegments; ++i) {\n int seg = (segmentNr + i)%NR_SEGMENTS;\n values[seg] = Math.min(values[seg], value);\n }\n }", "protected synchronized void setChanged() {\n changed = true;\n }", "public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}", "public Builder setCurrentRouteSegmentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n currentRouteSegment_ = value;\n onChanged();\n return this;\n }", "void unsetBegin();", "public void setClearMines(boolean b);", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void toggle(int weekDay, int segment) {\r\n\t\tvalidateInput(weekDay, segment);\r\n\t\tschedule[weekDay][segment] = !schedule[weekDay][segment];\r\n\t\tnotifyListeners(weekDay, segment);\r\n\t}", "void setZeroStart();", "private void m19558b() {\n this.f21607h = false;\n this.f21602c.invalidateSelf();\n }", "public void setErase(boolean isErase){\n erase=isErase;\n }", "public void setDatossolicitudBfsegmentacionVc(int value) {\n this.datossolicitudBfsegmentacionVc = value;\n }", "public void mark()\n {\n mark = true;\n }", "void\t\tsetCommandState(String command, boolean flag);", "public synchronized void changeServiceStatus() {\n\t\tthis.serviced = true;\n\t}", "public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}", "public void toggleStopMark(final Object entry) {\r\n IOEQ.add(new Runnable() {\r\n public void run() {\r\n if (entry == null || entry == DownloadWatchDog.this.currentstopMark || entry == STOPMARK.NONE) {\r\n /* no stopmark OR toggle current set stopmark */\r\n DownloadWatchDog.this.setStopMark(STOPMARK.NONE);\r\n } else {\r\n /* set new stopmark */\r\n DownloadWatchDog.this.setStopMark(entry);\r\n DownloadsTableModel.getInstance().setStopSignColumnVisible(true);\r\n }\r\n }\r\n }, true);\r\n }", "public void setModified(boolean state) {\n //System.out.println(\"setting modified to \" + state);\n //new Exception().printStackTrace();\n current.setModified(state);\n calcModified();\n }", "private void finishSegment() { \n synchronized (lastSegment) {\n SmoothLastSegment action = new SmoothLastSegment(lastSegment, lastSegmentTimes,\n currentThickness);\n sheet.doAction(action);\n lastSegment.clear();\n lastSegmentTimes.clear();\n lastSegmentCurve.clear();\n }\n }", "void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }", "protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }", "public void markEverythingDirty() {\n fullUpdate = true;\n }", "public void markDirty() {\n dirty = true;\n }", "public void cleanDirtyFlags() {\n RetractedChanged=false;\n AddressIDChanged=false;\n EntityIDChanged=false;\n AddressTypeIDChanged=false;\n}", "public Segment setNextSegment(int nextSegment) throws CursorIndexOutOfBoundsException {\n if(nextSegment < mSegmentList.size()) {\n mCurrentSegment = nextSegment;\n return getCurrentSegment();\n }\n throw new CursorIndexOutOfBoundsException(nextSegment, mSegmentList.size());\n\t}", "public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }", "private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }", "private void updateZeroFlagOnComp(int register, int address){\r\n\t\tif(sim40.memory[register] == sim40.memory[address]){\r\n\t\t\tswitchOnFlag(0);\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tswitchOffFlag(0);\r\n\t\t}\r\n\t}", "void statusUpdate(boolean invalid);", "protected void direct_write(int address, byte val) {\n segment_data[address] = val;\n }", "boolean hasSegment();", "@Override\n\tpublic void drive() {\n\t\tif (gasoline > 0) {\n\t\t\tsetAccelerate(true);\n\t\t}\n\t}", "void changed ( boolean isEmpty ) ;", "public abstract void setSensorState(boolean state);", "public void setBreakStatus(boolean state){\n\tonBreak = state;\n\tstateChanged();\n }", "private void markNeedRestartADBServer() {\n Log.d(\"mark mNeedRestartAdbServer to true\");\n mNeedRestartAdbServer = true;\n mStatus = STATUS.FINISHED;\n notifyResultObserver();\n return;\n }", "public void updateFlags()\n {\n initialize();\n }", "public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}", "private void markSector(boolean[][] b, int x, int y) {\r\n\t\tb[x][y] = true;\t\t\r\n\t}", "public Segment setNextSegment() throws CursorIndexOutOfBoundsException {\n\t\tSegment segment = getNextSegment();\n\t\tmCurrentSegment++;\n\t\treturn segment;\n\t}", "@Override\n public void undo() {\n node.toggleBoundaryMarker();\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "void set(boolean on);", "public void enableUpdates(boolean state) {\n sEnableUpdate = state;\n }", "public synchronized void setStopped() {\n state = STOPPED;\n }", "protected void setTerminated(boolean flag) {\n\t \t pimpl.terminated = flag;\n\t \t }", "public void toggleRunning() {\r\n\t\trunning = !running;\r\n\t}", "public void updateLaps() {\n\t\tint totSegs = (segments.size()-1)/2;\n\t\tif (oldSeg == totSegs && curSeg == 0) {\n\t\t\tif (!cheatedLap) {\n\t\t\t\tlaps++;\n\t\t\t} else cheatedLap = false;\n\t\t} else if (oldSeg == 0 && curSeg == totSegs){\n\t\t\tcheatedLap = true;\n\t\t}\n\t}", "public void clearModifiedFlag();", "void markInactive();", "public final void m15085b() {\n synchronized (this.f20399d) {\n this.f20409o = true;\n setEnabled(false);\n this.f20399d.setEnabled(false);\n }\n }", "public void setProcessed (boolean processed)\r\n {\r\n super.setProcessed (processed);\r\n if (get_ID() == 0)\r\n return;\r\n String set = \"SET Processed='\"\r\n + (processed ? \"Y\" : \"N\")\r\n + \"' WHERE C_Hes_ID=\" + getC_Hes_ID();\r\n int noLine = DB.executeUpdate(\"UPDATE C_HesLine \" + set, get_TrxName());\r\n \r\n \r\n log.fine(processed + \" - Lines=\" + noLine);\r\n }", "public void update(Address addr, boolean validBit){\n\t\tthis.address = addr;\n\t\tthis.validBit = validBit;\n\t}", "public void updateState(boolean state);", "boolean addSegment(S segment);", "public abstract void markForSweep();", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }" ]
[ "0.73202074", "0.6836724", "0.62096417", "0.59341484", "0.5861768", "0.5691957", "0.5613091", "0.5600412", "0.5600412", "0.5557873", "0.55453306", "0.5531828", "0.5521157", "0.5502254", "0.5477136", "0.5474712", "0.54481065", "0.5395969", "0.53660357", "0.53572434", "0.5351274", "0.5290111", "0.52891946", "0.5282506", "0.52476054", "0.5237957", "0.5231023", "0.52241284", "0.52219856", "0.5192347", "0.5176948", "0.51683766", "0.51674646", "0.5131247", "0.51148003", "0.5106455", "0.50904244", "0.5088261", "0.5084015", "0.5082334", "0.50822914", "0.50817865", "0.5081683", "0.5055165", "0.5035648", "0.5032252", "0.5025814", "0.5025746", "0.50186723", "0.5010172", "0.5007653", "0.50020826", "0.50019455", "0.4998756", "0.499078", "0.49881044", "0.49818793", "0.49779025", "0.49742496", "0.49726245", "0.49642023", "0.49640593", "0.49609593", "0.49596414", "0.49594486", "0.49551934", "0.4949229", "0.4948956", "0.4947076", "0.4931305", "0.49064705", "0.4897569", "0.4891703", "0.48902813", "0.48715773", "0.48615643", "0.48609796", "0.48596546", "0.48551124", "0.48530024", "0.48449498", "0.48443544", "0.48428935", "0.4841514", "0.48359707", "0.4831582", "0.4827623", "0.48249406", "0.48217964", "0.48217368", "0.482108", "0.48194245", "0.481934", "0.481918", "0.4816371", "0.48157284", "0.48151764", "0.48139325", "0.48117277", "0.48084795", "0.48083684" ]
0.0
-1
Set/clear the request queued flag
public synchronized final void setQueued(boolean qd) { setFlag(RequestQueued, qd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isQueued() {\n\t\treturn (m_flags & RequestQueued) != 0 ? true : false;\n\t}", "public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }", "private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as possible to avoid thread lock.\n // Note: the method removeRequest from SendQ is synchronized.\n // fix bug jaw.00392.B\n //\n synchronized(this){\n setRequestStatus(stAborted);\n }\n informSession.getSnmpQManager().removeRequest(this);\n synchronized(this){\n requestId=0;\n }\n }", "default void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getResetQueuedResourceMethod(), responseObserver);\n }", "public void queueSyn() {\n\t\tflags |= SYN_SEG_WAITING;\n\t}", "public void cancelAndReleaseQueue() {\n if (mRequestHandle != null) {\n mRequestHandle.cancel();\n mRequestHandle = null;\n }\n releaseQueue();\n }", "public void setQueueOpen(boolean flag){\r\n\t\tthis.quiInschrijvingenOpen = flag;\r\n\t\tif(flag){//queue opent\r\n\t\t\tcolor.sendBroadcastMessage(color.prefix + color.lichtPaars + \"Queue Is Now Open\");\t\t\r\n\t\t\tcolor.sendBroadcastMessage(color.prefix + color.groen + \"use /pm register to register\");\r\n\t\t\ttimer.setTimer(this.timerOpen);\r\n\t\t\ttimer.setRun(true);\r\n\t\t}else{//queue sluit\r\n\t\t\tcolor.sendBroadcastMessage(color.prefix + color.lichtPaars + \"Queue Is Now Closed\");\r\n\t\t\ttimer.setRun(false);\r\n\t\t}\r\n\t}", "private void retainQueue() {\n if (mRequestQueue == null) {\n mRequestQueue = new RequestQueue(mProxy.getContext());\n }\n mQueueRefCount++;\n }", "synchronized public void requestDone(Request request, boolean isSuccessful)\n {\n runningRequest = null;\n runNextRequest();\n }", "protected void onQueued() {}", "public void resendRequestingQueue() {\n Logger.m1416d(TAG, \"Action - resendRequestingQueue - size:\" + this.mRequestingQueue.size());\n printRequestingQueue();\n printRequestingCache();\n while (true) {\n Requesting requesting = (Requesting) this.mRequestingQueue.pollFirst();\n if (requesting == null) {\n return;\n }\n if (requesting.request.getCommand() == 2) {\n this.mRequestingQueue.remove(requesting);\n this.mRequestingCache.remove(requesting.request.getHead().getRid());\n } else {\n requesting.retryAgain();\n sendCommandWithLoggedIn(requesting);\n }\n }\n }", "public final void rq() {\n this.state = 0;\n this.bbo = 0;\n this.bbz = 256;\n }", "public boolean wasQueued() {\r\n\t\tif (wasQueued == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public synchronized void requestStop() \n\t{\n\t\tstoprequested = true;\n\t}", "private void clearRequest() { request_ = null;\n \n }", "public void queueEstimationRequest(Request req) {\n queue.add(req);\n\n if (queueNotEmpty.availablePermits() <= 0) {\n // try to not issue too many permits (>1 make the worker spin needlessly)\n queueNotEmpty.release();\n }\n }", "public int queue() \n { return waiting; }", "public boolean isQueued() {\r\n\t\tif (vehicleState == \"queued\") {\r\n\t\t\twasQueued = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getResetQueuedResourceMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public void passReq(Packet request){\r\n\t\ttry { bQueue.put(request);\r\n\t\t} catch (InterruptedException e) { e.printStackTrace(); }\r\n\t}", "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "private static synchronized void requestStop() {\n stopRequested = true;\n }", "void disable()\n{\n synchronized (this) {\n is_enabled = false;\n request_queue.clear();\n for (DymonPatchRequest ar : active_requests) removeActive(ar);\n if (request_timer != null) request_timer.cancel();\n request_timer = null;\n }\n}", "public void setBusy(boolean flag) {\n isBusy = flag;\n }", "public void ClearSentQueue() {\n \t\tjobsent.clear();\n \t}", "void queueShrunk();", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }", "public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }", "public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n resetQueuedResource(com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getResetQueuedResourceMethod(), getCallOptions()), request);\n }", "public void clear(int flag) {\n setWaitFlags( waitFlags & ~flag );\n }", "private synchronized void startPendingRequests() {\n for (InvocationRequest invocationRequest : pendingRequests) {\n if (!invocationRequest.aborted) {\n ThreadUtil.execute(invocationRequest);\n }\n }\n\n pendingRequests.clear();\n }", "@Override\n\tpublic boolean isPending();", "public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}", "void setWaitFlags(int value)\n {\n waitFlags = value;\n synchronized (QUEUE_LOCK)\n {\n QUEUE_LOCK.notifyAll();\n }\n }", "public void markAsUndone() {\n isDone = false;\n }", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "public void bufferSet(boolean b){\n bufferSet = b;\n }", "public synchronized void setEnabled(boolean enabled)\n {\n if (requestQueue != null)\n {\n requestQueue.setEnabled(enabled);\n }\n }", "public void finishRequest ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\t//Debug/System.out.println(Fmt.time(this.simTime)\r\n\t\t//Debug/\t+ \": <finishRequest> \" + this.request);\r\n\r\n\t\t//\tRemove request from the queue.\r\n\t\tthis.removeRequest();\r\n\t\t//\tGet the next request from the queue.\r\n\t\tthis.nextRequest();\r\n\t\t//\tIf there is one, process it.\r\n\t\t//\tIf not, then the next request scheduled will begin immediately.\r\n\t\tif (this.request != null) this.procRequest();\r\n\t}", "public synchronized boolean isEnabled()\n {\n return requestQueue == null || requestQueue.isEnabled();\n }", "public Builder clearRequestStatus() {\n bitField0_ &= ~0x00000008;\n requestStatus_ = 0;\n onChanged();\n return this;\n }", "public void setWaitForEver(boolean set){\r\n waitForEverFlag=set;\r\n }", "boolean requestPending(String barcode) {\n return currentRequests.contains(barcode);\n }", "public void stopRequest()\r\n\t{\r\n\t\tnoStopRequested = false;\r\n\t\tinternalThread.interrupt();\r\n\t}", "public void cancelAllRequests(boolean mayInterruptIfRunning, RequestHandle cnt) {\n // client.get\n\n }", "public void markAsDone(){\n isDone = true;\n }", "public void setRequested(){\n this.status = \"Requested\";\n }", "public static void unblockRequests() {\n\t\tif (isRunning.compareAndSet(false, true)) {\n\t\t\tsynchronized (isRunning) {\n\t\t\t\tisRunning.notify();\n\t\t\t}\n\t\t}\n\t}", "public void onQueue();", "public com.google.longrunning.Operation resetQueuedResource(\n com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getResetQueuedResourceMethod(), getCallOptions(), request);\n }", "private void doStop()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n \"STOP\", \r\n null,\r\n null,\r\n null, \r\n null,\r\n false,\r\n null,\r\n null ) );\r\n }", "public boolean isSetQueue() {\n return this.queue != null;\n }", "private void stopQueuedItemsSender() {\n if (ctrlSenderTimerRunning) {\n ctrlSenderTimer.cancel();\n }\n\n ctrlSenderTimerRunning = false;\n }", "private void clearRequests() {\n requests_ = emptyProtobufList();\n }", "void cancel() {\n if (mCurrentRequest != null) {\n mCurrentRequest.cancel();\n mCurrentRequest = null;\n }\n mPendingEntries.clear();\n }", "void cancelStickyRequest() {\n if (mStickyRequest) {\n cancelCurrentRequestLocked();\n }\n }", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}", "public synchronized void postRequestAndWait (Runnable r, int time) {\n postRequest (r, time, new RequestWaiter () {\n public void run (Thread t) {\n requestorThread.interrupt ();\n requestorThread.stop ();\n //S ystem.out.println (\"Kill \" + requestorThread.getName ()); // NOI18N\n }\n });\n }", "@Override\r\n public boolean isRequest() {\n return false;\r\n }", "public void SetDone(){\n this.isDone = true;\n }", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - pollTime;\r\n\t\t\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\tString ricevuto = s.receive();\r\n\t\t\treplies.add(ricevuto);\r\n\t\t}\r\n\t\treceiveTime = System.nanoTime();\r\n\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\r\n\t\t\r\n\t\tfor(String reply : replies) {\r\n\t\t\tif(!(\"STORED\".equals(reply))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treplies.clear();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsendBack(currentJob.getClient(), \"STORED\");\r\n\t\treplies.clear();\r\n\t\t\r\n\t}", "@java.lang.Override\n public boolean hasRequestStatus() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public void clearQueue() {\n\tmQueue.clear();\n\tqueueModified();\n }", "private void finishRequests(){\n\t\tpeer.getRequests().removeAll(finishedRequestsList);\n\t\tfinishedRequestsList.clear();\n\t}", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "public boolean setFlagAtIfIsPending(int index, byte flag) {\n final int offsetFlag = this.flagOffset + flag;\n return this.setOffsetFlagAtIfIsPending(index, offsetFlag);\n }", "protected void markAsDone() {\n isDone = true;\n }", "static void clearRequest(long requestId)\n {\n requestMap.remove(requestId);\n }", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void setCanceled(boolean value) {\n\r\n\t}", "@java.lang.Override\n public boolean hasRequestStatus() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean isRequest(){\n return false;\n }", "public void markAsDone() {\n this.isDone = true;\n\n }", "private void workOnQueue() {\n }", "private void set(){\n resetBuffer();\n }", "public void requestDone(Request request, boolean isSuccessful);", "default void deleteQueuedResource(\n com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteQueuedResourceMethod(), responseObserver);\n }", "synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }", "public void markAsDone() {\n this.isDone = true;\n this.completed = \"1\";\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "BaseRequest<T> queue(RequestQueue queue) {\n queue.add(this);\n return this;\n }", "protected abstract long waitOnQueue();", "public void clear(){\r\n\t\tqueue.clear();\r\n\t}", "public void markAsDone() {\n isDone = true;\n }", "public void markAsDone() {\n isDone = true;\n }", "public void markAsDone() {\n isDone = true;\n }", "protected void requestProcessingStopped(long startTime) {\n\t\trequestsInProcessing--;\n\t\tlastProcessingTime = System.currentTimeMillis() - startTime;\t\t\n\t}", "public void markAsDone() {\r\n this.isDone = true;\r\n }", "private void clearHeartBeatReq() {\n if (reqCase_ == 5) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "protected void aq() {\n Object object = this.li;\n synchronized (object) {\n if (this.lz != null) {\n this.lp.unregisterReceiver(this.lz);\n this.lz = null;\n }\n return;\n }\n }", "public void setState(int stateFlag) {\n\t\t_reqState = stateFlag; // Ha ha! State flag.\n\t\tif (_reqState != _state) _reload = true;\n\t}", "public void markRequestTimerDelete() throws JNCException {\n markLeafDelete(\"requestTimer\");\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "public boolean queue(Request pRequest)\n {\n pRequest.into(mQueue);\n \n // Add thread to pool\n if (mPoolSize < mServerConfig.mMaxPoolSize && mProcess.empty())\n {\n createProcess(mPoolSize);\n //System.out.println(\"add #\" + mPoolSize + \" Process \" + pRequest + \" into Queue\" + mQueue);\n }\n \n if (!mProcess.empty())\n { \n \t//System.out.println(\"Activate the first process in queue \" + mProcess.first());\n Process.activate((Process) mProcess.first());\n return true;\n }\n return false;\n }", "public void clearQueuedPassengers(){\n this._queuedPassengers = 0;\n }", "public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }", "public void setIsOnRequest(int value) {\n this.isOnRequest = value;\n }" ]
[ "0.6347069", "0.6337652", "0.6287869", "0.59592116", "0.5917135", "0.5912683", "0.58678126", "0.5833199", "0.5816455", "0.5788886", "0.57781726", "0.5761553", "0.57348275", "0.5733902", "0.5705629", "0.5703353", "0.56961906", "0.56886405", "0.5685409", "0.5642821", "0.55997384", "0.5575885", "0.55503833", "0.554982", "0.55402696", "0.5538899", "0.55002874", "0.5487079", "0.5487079", "0.5487079", "0.5486913", "0.54823035", "0.5478914", "0.5476187", "0.5474183", "0.54714346", "0.5457507", "0.54539263", "0.54521316", "0.5447571", "0.5446747", "0.54195017", "0.5419338", "0.54136014", "0.53929746", "0.53738827", "0.5356619", "0.5346862", "0.53442115", "0.5343795", "0.533582", "0.5335493", "0.53304005", "0.5312122", "0.5302266", "0.53022", "0.5299315", "0.5291781", "0.5290986", "0.52829355", "0.5250403", "0.5249852", "0.5245577", "0.52266914", "0.52190065", "0.52168936", "0.5214924", "0.5201369", "0.5199238", "0.5193257", "0.5171498", "0.517028", "0.5170003", "0.51699793", "0.51674765", "0.5166588", "0.51656824", "0.5159883", "0.5156026", "0.51541036", "0.5147879", "0.51476294", "0.5135146", "0.51343673", "0.51328313", "0.5126143", "0.5126143", "0.5126143", "0.51255", "0.5125345", "0.51218545", "0.5116799", "0.5115342", "0.51113087", "0.51108545", "0.5108856", "0.5106386", "0.50973135", "0.5097217", "0.50768507" ]
0.71315855
0
Set the delete on store flag so that the temporary file is deleted as soon as the data store has completed successfully.
public final synchronized void setDeleteOnStore() { if ( hasDeleteOnStore() == false) setFlag(DeleteOnStore, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }", "void resetStore() {\n File storeFile = new File(getStoreName());\n if (storeFile.exists()) {\n storeFile.delete();\n }\n }", "public void resetStore() {\n try {\n db.close();\n uncommited = null;\n uncommitedDeletes = null;\n autoCommit = true;\n bloom = new BloomFilter();\n utxoCache = new LRUCache(openOutCache, 0.75f);\n } catch (IOException e) {\n log.error(\"Exception in resetStore.\", e);\n }\n\n File f = new File(filename);\n if (f.isDirectory()) {\n for (File c : f.listFiles())\n c.delete();\n }\n openDB();\n }", "void delete(LogicalDatastoreType store, P path);", "public void delete() {\n\t\tdeleted = true;\n\t}", "protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }", "@Override\n public CompletableFuture<Void> deleteForcefully() {\n return delete(true);\n }", "public boolean delete(Datastore store) {\n return delete(store, false);\n }", "public static synchronized void deleteViewStore() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.deleteViewStore\");\n String viewStoreName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_ADMIN_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_VIEW_STORE_NAME + \"dat\";\n File viewStoreFile = new File(viewStoreName);\n if (viewStoreFile.exists()) {\n viewStoreFile.delete();\n }\n }", "public void deleteData(String filename, SaveType type);", "public DBMaker deleteFilesAfterClose(){\n this.deleteFilesAfterCloseFlag = true;\n return this;\n }", "public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }", "public void setDeleteOnExit(boolean flag);", "boolean hasDeleteStore();", "public void close() throws IOException {\n closeStream();\n\n if (storeOutputStream != null) {\n storeOutputStream.close();\n storeOutputStream = null;\n }\n\n super.close();\n if (storeFile != null) {\n storeFile.delete();\n }\n closed = true;\n }", "public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }", "@Override\r\n\tpublic void deleteFileData(Long id) {\n\t\t\r\n\t}", "boolean hasForceDelete();", "@Override\r\n\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\tS3FileHandle updated = fileHandleDao.createFile(fh);\r\n\t\t\t\ttoDelete.add(updated.getId());\r\n\t\t\t\treturn true;\r\n\t\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n Log.d(\"Paul\", \"delete file\");\n\n File file = new File(Environment.getExternalStorageDirectory().getPath(), getString(R.string.temp_file_name));\n try {\n // if file exists in memory\n if (file.exists()) {\n file.delete();\n Log.d(\"Paul\", \"file deleted\");\n }\n } catch (Exception e) {\n Log.d(\"Paul\",\"Some error happened?\");\n }\n\n }", "public void delete() {\r\n Log.d(LOG_TAG, \"delete()\");\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.delete()) {\r\n Log.d(LOG_TAG, \"Deleted file \" + chunk.getAbsolutePath());\r\n }\r\n }\r\n new File(mBaseFileName + \".zip\").delete();\r\n }", "protected void tearDown() throws Exception {\r\n filePersistence = null;\r\n readOnlyFile.delete();\r\n }", "public final void deleteTemporaryFile()\n\t\tthrows IOException {\n\t\t\t\n // DEBUG\n \n if ( isQueued()) {\n Debug.println(\"@@ Delete queued file segment, \" + this);\n Thread.dumpStack();\n }\n \n\t\t//\tDelete the temporary file used by the file segment\n\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\t\t\t\n\t\tif ( tempFile.exists() && tempFile.delete() == false) {\n\n\t\t //\tDEBUG\n\t\t \n\t\t Debug.println(\"** Failed to delete \" + toString() + \" **\");\n\t\t \n\t\t //\tThrow an exception, delete failed\n\t\t \n\t\t\tthrow new IOException(\"Failed to delete file \" + getTemporaryFile());\n\t\t}\n\t}", "boolean hasDeleteFile();", "protected abstract boolean deleteCheckedFiles();", "public final boolean hasDeleteOnStore() {\n\t\treturn (m_flags & DeleteOnStore) != 0 ? true : false;\n\t}", "@Override\n public CompletableFuture<Void> delete() {\n return delete(false);\n }", "public boolean delete();", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "public int deleteFile(String datastore, String filename) throws HyperVException;", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}", "public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }", "@AfterStep\n\tprivate void deleteFile(){\n\t\tif(LOGGER.isDebugEnabled()){\n\t\tLOGGER.debug(\" Entering into SalesReportByProductEmailProcessor.deleteFile() method --- >\");\n\t\t}\n\t\ttry {\n\t\t\tif(null != salesReportByProductBean){\n\t\t\tReportsUtilBO reportsUtilBO = reportBOFactory.getReportsUtilBO();\n\t\t\tList<String> fileNames = salesReportByProductBean.getFileNameList();\n\t\t\tString fileLocation = salesReportByProductBean.getFileLocation();\n\t\t\treportsUtilBO.deleteFile(fileNames, fileLocation);\n\t\t\t}\n\t\t} catch (PhotoOmniException e) {\n\t\t\tLOGGER.error(\" Error occoured at SalesReportByProductEmailProcessor.deleteFile() method ----> \" + e);\n\t\t}finally {\n\t\t\tif(LOGGER.isDebugEnabled()){\n\t\t\tLOGGER.debug(\" Exiting from SalesReportByProductEmailProcessor.deleteFile() method ---> \");\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onRunFinish(boolean succeeded, BatchSourceContext context) {\n // perform any actions that should happen at the end of the run.\n // in our case, we want to delete the data read during this run if the run succeeded.\n if (succeeded && config.deleteInputOnSuccess) {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n FileSet fileSet = context.getDataset(config.fileSetName, arguments);\n for (Location inputLocation : fileSet.getInputLocations()) {\n try {\n inputLocation.delete(true);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n }\n }", "private void delete() {\n\n\t}", "protected boolean afterDelete() throws DBSIOException{return true;}", "void delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;", "boolean delete();", "public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }", "private boolean markOrDelete(File file, CacheFileProps props)\r\n {\r\n Integer deleteWatchCount = props.getDeleteWatchCount();\r\n\r\n // Just in case the value has been corrupted somehow.\r\n if (deleteWatchCount < 0)\r\n deleteWatchCount = 0;\r\n \r\n boolean deleted = false;\r\n \r\n if (deleteWatchCount < maxDeleteWatchCount)\r\n {\r\n deleteWatchCount++;\r\n \r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Marking file for deletion, deleteWatchCount=\" + deleteWatchCount + \", file: \"+ file);\r\n }\r\n props.setDeleteWatchCount(deleteWatchCount);\r\n props.store();\r\n numFilesMarked++;\r\n }\r\n else\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Deleting cache file \" + file);\r\n }\r\n deleted = deleteFilesNow(file);\r\n }\r\n \r\n return deleted;\r\n }", "public void markForDeletion() {\n\t\tthis.mustBeDeleted = true;\n\t}", "@Override\n public boolean delete()\n {\n return false;\n }", "public void markAsDeleted() {\n\t\tthis.setDeleted(true);\t\t\n\t}", "public void MarkForDeletion();", "@Override\n\tpublic boolean delete(Etape obj) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int fileDelete(int no) {\n\t\treturn sqlSession.delete(namespace + \"fileDelete\", no);\r\n\t}", "public void deleteOutputData() {\n\t\tif (outputData != null) {\n\t\t\tFile file = outputData;\n\t\t\toutputData = null;\n\t\t\tsave();\n\t\t\tfile.delete();\n\t\t}\n\t}", "public synchronized void deleteNow() {\n for (FileNode node : delete) {\n tryDelete(node);\n }\n delete.clear();\n }", "public boolean deleteOnExit();", "public void setSaveHadoopTmpDir(final boolean saveTempDir) {\n _saveHadoopTmpDir = saveTempDir;\n }", "private Step deleteHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_HDFS_WORK_DIR)\n .tasklet(deleteHdfsWorkingDir)\n .build();\n }", "public void setItDelete(boolean itDelete) {\n\t\t\n\t}", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "public void forceBackup() {\n // If you configures storage support as a file,\n // method push() send all data from memory into file referenced into properties file.\n // Before writing, all expired data will be flushed.\n DacasTransaction.push();\n\n }", "@Test\n public void shouldDeleteIncompleteRestores()\n throws Exception\n {\n givenStoreHasFileOfSize(PNFSID, 17);\n\n // and given the replica meta data indicates the file was\n // being restored from tape and has is supposed to have a\n // different file size,\n StorageInfo info = createStorageInfo(20);\n givenMetaDataStoreHas(PNFSID, FROM_STORE, info);\n\n // when reading the meta data record\n MetaDataRecord record = _consistentStore.get(PNFSID);\n\n // then nothing is returned\n assertThat(record, is(nullValue()));\n\n // and the replica is deleted\n assertThat(_metaDataStore.get(PNFSID), is(nullValue()));\n assertThat(_fileStore.get(PNFSID).exists(), is(false));\n\n // and the location is cleared\n verify(_pnfs).clearCacheLocation(PNFSID);\n\n // and the name space entry is not touched\n verify(_pnfs, never())\n .setFileAttributes(eq(PNFSID), Mockito.any(FileAttributes.class));\n }", "void deleteIndexStore(String reason, IndexMetadata metadata) throws IOException {\n if (nodeEnv.hasNodeFile()) {\n synchronized (this) {\n Index index = metadata.getIndex();\n if (hasIndex(index)) {\n String localUUid = indexService(index).indexUUID();\n throw new IllegalStateException(\n \"Can't delete index store for [\"\n + index.getName()\n + \"] - it's still part of the indices service [\"\n + localUUid\n + \"] [\"\n + metadata.getIndexUUID()\n + \"]\"\n );\n }\n }\n final IndexSettings indexSettings = buildIndexSettings(metadata);\n deleteIndexStore(reason, indexSettings.getIndex(), indexSettings);\n }\n }", "private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public boolean hasDeleteStore() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "@Override public void cleanupTempCheckpointDirectory() throws IgniteCheckedException {\n try {\n try (DirectoryStream<Path> files = Files.newDirectoryStream(cpDir.toPath(), TMP_FILE_MATCHER::matches)) {\n for (Path path : files)\n Files.delete(path);\n }\n }\n catch (IOException e) {\n throw new IgniteCheckedException(\"Failed to cleanup checkpoint directory from temporary files: \" + cpDir, e);\n }\n }", "public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}", "public boolean delete() {\r\n\t return SharedPreferencesUtil.delete(mContext, prefsFileName); \r\n\t}", "@Override\n\tpublic boolean preDelete() {\n\t\treturn false;\n\t}", "private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}", "public void testDeleteFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n assertTrue(\"the file should exist\", new File(VALID_FILELOCATION, FILENAME).exists());\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n assertFalse(\"the file should not exist\", new File(VALID_FILELOCATION, FILENAME).exists());\r\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n public void delete(File file) {\n }", "@Override\r\n\tpublic int delete() throws Exception {\n\t\treturn 0;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n deleteMetadataStore(com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getDeleteMetadataStoreMethod(), getCallOptions()), request);\n }", "public boolean delete() {\n return delete(Datastore.fetchDefaultService());\n }", "private static void cleanUpGlobalStateAndFileStore() {\n FileUtils.deleteDirectory(Paths.get(GLOBAL_STATE_DIR));\n }", "public void delete() {\n\n\t}", "@Override\n public void onSuccess() {\n Log.i(\"bmob\", \"删除文件成功\");\n deleteFileListener.onSuccess();\n }", "public void setDelete(boolean delete) {\n\t\tthis.delete = delete;\n\t}", "public void cleanup() {\n try {\n Files.delete(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to delete staged document!\", e);\n }\n }", "@Test\n public void setAndThenDeleteStorageAndSelfDestruct() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"resetStorageSelfDestruct\");\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n Assert.assertEquals(65168 - 65168 / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "default void deleteMetadataStore(\n com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteMetadataStoreMethod(), responseObserver);\n }", "public boolean delete() {\n return new File(DataCrow.moduleDir, filename).delete();\n }", "public boolean hasDeleteStore() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "@Override\n\tpublic int delete() {\n\t\treturn 0;\n\t}", "void fileDeleted(String path);", "public void deleteTemporaryFiles() {\n if (!shouldReap()) {\n return;\n }\n\n for (File file : temporaryFiles) {\n try {\n FileHandler.delete(file);\n } catch (UncheckedIOException ignore) {\n // ignore; an interrupt will already have been logged.\n }\n }\n }", "public boolean delete(String filename);", "@Override\n public void onDestroy() {\n super.onDestroy();\n if (!isChangingConfigurations()) {\n pickiT.deleteTemporaryFile(this);\n }\n }", "@Override\n\tpublic void fileDelete(int file_num) {\n\t\tworkMapper.fileDelete(file_num);\n\t}", "@Test\n public void setAndThenDeleteStorage() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"resetStorage\");\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n Assert.assertEquals(58303 - 58303 / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "io.dstore.values.IntegerValue getForceDelete();", "@Override\n\t \tpublic void run() {\n\t \t\tsuper.run();\n\t \t\t FileUtil.DeleteFile(new File(Environment.getExternalStorageDirectory() + \"/\"+\"jikedownload\"));\n\t \t}", "@Override\n public void delete(String reference) throws DataStoreException\n {\n numDeleteRequests.incrementAndGet();\n dataMap.remove(reference);\n }", "public void postRun() {\n if (manageFileSystem && fs != null) {\n try {\n fs.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close AlluxioFileSystem: %s\", e.getMessage()));\n }\n }\n // only to close the FileOutputStream when manageRecordFile=true\n if (manageRecordFile && recordOutput != null) {\n try {\n recordOutput.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close File %s: %s\", recordFileName, e.getMessage()));\n }\n }\n }", "@Override\n\tprotected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize(); // currently empty but there for safer refactoring\n\n\t\tFile outputFile = dfos.getFile();\n\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setTempFile: \" + tempFile.getAbsolutePath());\n } catch (IOException e) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Exception creating tempfile. \" + e.getMessage());\n return false;\n }\n\n if (tempFile==null || !(tempFile instanceof File)) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Failed to create valid tempFile.\");\n return false;\n }\n\n return true;\n }", "public boolean isDeleteFileWhenComplete() {\r\n\t\treturn deleteFileWhenComplete;\r\n\t}", "public final native void setForDelete(boolean del) /*-{\n\t\tthis.forDelete = del;\n\t}-*/;", "public void markFileAsNotSaved()\r\n {\r\n saved = false;\r\n }", "public synchronized void delete() {\n if (this.swigCPtr != 0) {\n if (this.swigCMemOwn) {\n this.swigCMemOwn = false;\n libVisioMoveJNI.delete_VgIDatabaseDatasetDescriptor(this.swigCPtr);\n }\n this.swigCPtr = 0;\n }\n }", "public void cleanup() {\n this.close();\n this.delete(this.backingFileBasename + RECORDING_OUTPUT_STREAM_SUFFIX);\n this.delete(this.backingFileBasename + RECORDING_INPUT_STREAM_SUFFIX);\n }", "public void deleteMetadataStore(\n com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getDeleteMetadataStoreMethod(), getCallOptions()),\n request,\n responseObserver);\n }" ]
[ "0.6727826", "0.62783915", "0.6125298", "0.6085183", "0.60831183", "0.60257447", "0.6019323", "0.5986572", "0.5947088", "0.5938518", "0.5895439", "0.5814383", "0.578576", "0.577008", "0.5768365", "0.5752614", "0.57271755", "0.56653434", "0.56374186", "0.56346905", "0.5613816", "0.55747813", "0.5556747", "0.55280024", "0.54947615", "0.5482667", "0.54809505", "0.54747397", "0.54709285", "0.5461844", "0.5441284", "0.5431694", "0.5431694", "0.5431694", "0.5423873", "0.54165995", "0.5413633", "0.53960055", "0.53943026", "0.53934574", "0.53597605", "0.53434944", "0.53397596", "0.53291", "0.5328095", "0.5322532", "0.5317111", "0.53137606", "0.53011876", "0.5251845", "0.5248184", "0.5237199", "0.52321297", "0.5228159", "0.5223044", "0.5222665", "0.5218331", "0.5214277", "0.52028716", "0.51946014", "0.5192609", "0.51885706", "0.51884466", "0.51879555", "0.5177572", "0.5165931", "0.51539576", "0.5150576", "0.51452863", "0.5139807", "0.51380736", "0.5123889", "0.5122277", "0.5114772", "0.51128745", "0.5112294", "0.5110711", "0.51070035", "0.51048845", "0.509835", "0.50974774", "0.50806427", "0.5079962", "0.5075469", "0.5074203", "0.5073105", "0.50724256", "0.5071511", "0.50650865", "0.5064434", "0.5049371", "0.50443274", "0.5039644", "0.50371337", "0.5036674", "0.5023718", "0.50223607", "0.50189406", "0.50046504", "0.49995303" ]
0.71954733
0
Set/clear the specified flag
protected final synchronized void setFlag(int flag, boolean sts) { boolean state = (m_flags & flag) != 0 ? true : false; if ( state && sts == false) m_flags -= flag; else if ( state == false && sts == true) m_flags += flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "public void setFlag(int which) {\n setFlag(which, true);\n }", "public void clear(int flag) {\n setWaitFlags( waitFlags & ~flag );\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "public void clearFlag( int flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag ) );\n }", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "public void clearFlag( int flag )\n {\n value &= ~( 1 << flag );\n clearBit( flag );\n }", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag.getOrdinal() ) );\n }", "public void setFlag(RecordFlagEnum flag);", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << flag.getOrdinal() );\n clearBit( flag.getOrdinal() );\n }", "public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }", "public int addConditionFlagClear(int flag) {\r\n\t\tbackSteps.push(COPROC1_CONDITION_CLEAR, pc(), flag);\r\n\t\treturn flag;\r\n\t}", "public void setFlags(short flag) {\n\tflags = flag;\n }", "public void removeFlag()\r\n\t{\r\n\t\thasFlag = false;\r\n\t\tflag = null;\r\n\t}", "public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}", "public void set(boolean bol);", "protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public void setFlags(final Flags flags);", "void set(boolean on);", "protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }", "public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}", "void clearModifiedFlag();", "public void changeIsFlagged() {\r\n\t\tif (this.isFlagged) {\r\n\t\t\tthis.isFlagged = false;\r\n\t\t} else {\r\n\t\t\tthis.isFlagged = true;\r\n\t\t}\r\n\t}", "void setSet(boolean set);", "void set(boolean value);", "public void switchAtm(boolean flag);", "public BB set(String flag)\n {\n Validate.notNull(flag,What.VARIABLE_NAME);\n return add(BAL().newSet(flag,VARIABLE,Boolean.TRUE));\n }", "void setBit(int index, boolean value);", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void setFlags(int param1) {\n }", "public static void invertFlag() {\n\t\trunFlag = !runFlag;\n\t}", "static void OPL_STATUSMASK_SET(FM_OPL OPL, int flag) {\n OPL.statusmask = flag;\n /* IRQ handling check */\n OPL_STATUS_SET(OPL, 0);\n OPL_STATUS_RESET(OPL, 0);\n }", "public void setResetTimeOnStop(boolean aFlag) { _resetTimeOnStop = aFlag; }", "private void setDirty(boolean flag) {\n\tmain.getState().dirty = flag;\n\tif (main.bSave != null)\n\t main.bSave.setEnabled(flag);\n }", "void setFlag(ForumFlag flag);", "void\t\tsetCommandState(String command, boolean flag);", "protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "@Override\n\t\t\t\t\tprotected void onChangeFlag(Service object, Boolean flag) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public synchronized static void setServiceFlag(boolean flag){\n editor.putBoolean(IS_SERVICE_RUNNING, flag);\n editor.commit();\n }", "public Builder clearFlag() {\n bitField0_ = (bitField0_ & ~0x00000400);\n flag_ = 0;\n onChanged();\n return this;\n }", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}", "public void setResetDisabled(boolean flag) {\n\t\tthis.resetDisabled = flag;\n\t}", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "default void setNeedToBeUpdated(boolean flag)\n {\n getUpdateState().update(flag);\n }", "public void setIsFlag(String isFlag) {\r\n this.isFlag = isFlag == null ? null : isFlag.trim();\r\n }", "private void setFlag(Post p, String s, Boolean b) {\n p.setFlag(s, b);\n }", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\n }-*/;", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "void setIfCanRemove(boolean set);", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public void setCurrentFlag(Character aCurrentFlag) {\n currentFlag = aCurrentFlag;\n }", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public void clearMark()\n {\n mark = false;\n }", "public void clearModifiedFlag();", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "private void set(){\n resetBuffer();\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "public void turn_off () {\n this.on = false;\n }", "static void stop() {\n flag = 0;\n }", "public void setGenerateFlag(boolean aFlag)\r\n {\r\n if (theGenerateCheckbox != null)\r\n {\r\n if (theGenerateFlag != aFlag)\r\n {\r\n theGenerateCheckbox.doClick();\r\n theGenerateCheckbox.updateUI();\r\n }\r\n }\r\n }", "public void setOp(boolean value) {}", "int getFlag();", "public abstract void setCheck(Boolean check);", "public void bufferSet(boolean b){\n bufferSet = b;\n }", "public void setSoft(boolean soft);", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "void setManualCheck (boolean value);", "static void OPL_STATUS_SET(FM_OPL OPL, int flag) {\n /* set status flag */\n /*RECHECK*/\n OPL.status |= flag;\n if ((OPL.status & 0x80) == 0) {\n if ((OPL.status & OPL.statusmask) != 0) {\n /* IRQ on */\n\n OPL.status |= 0x80;\n /* callback user interrupt handler (IRQ is OFF to ON) */\n if (OPL.IRQHandler != null) {\n OPL.IRQHandler.handler(OPL.IRQParam, 1);\n }\n }\n }\n }", "public void setOperationalFlag(Character aOperationalFlag) {\n operationalFlag = aOperationalFlag;\n }", "public void setFilled ( boolean flag ) {\r\n\t\tfill_flag = flag;\r\n\t}", "public void setZero(final boolean value) {\n\t\tif (value) { \n\t\t\tsetZero();\n\t\t}\n\t\telse {\n\t\t\tresetZero();\n\t\t}\n\t}", "public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}", "public void setFlag(Intent intent) {\n String flag2;\n if (intent != null && (flag2 = intent.getStringExtra(\"flag\")) != null) {\n flag = flag2;\n Log.e(\"MOBISEC\", \"flag set correctly\");\n }\n }", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "public void setClearMines(boolean b);", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }" ]
[ "0.77968127", "0.77968127", "0.7526355", "0.74475354", "0.73378444", "0.73317564", "0.7266681", "0.71854776", "0.71763134", "0.7100592", "0.70812833", "0.70551646", "0.70536304", "0.704906", "0.7034401", "0.7017352", "0.6995164", "0.6919702", "0.6899536", "0.68994254", "0.6863014", "0.6832675", "0.68248165", "0.67411584", "0.6721304", "0.6700907", "0.66975427", "0.66839427", "0.6674668", "0.66525835", "0.6646702", "0.6641183", "0.6528859", "0.6486396", "0.63889253", "0.6367364", "0.63672096", "0.63664854", "0.6340081", "0.6302289", "0.630226", "0.6298178", "0.6294304", "0.62697715", "0.6265763", "0.62513626", "0.62449324", "0.6229875", "0.6215444", "0.6210908", "0.62084574", "0.6202591", "0.61956835", "0.61423403", "0.6140181", "0.6138722", "0.61346173", "0.61289203", "0.61265063", "0.612238", "0.61176205", "0.6108254", "0.61006683", "0.60789114", "0.60776144", "0.6056492", "0.6047917", "0.60041565", "0.599048", "0.5986879", "0.59829825", "0.597208", "0.59701735", "0.59646314", "0.59557337", "0.59511775", "0.59505904", "0.5948136", "0.594228", "0.5939012", "0.59341544", "0.59333366", "0.5932183", "0.5928806", "0.5922528", "0.5917385", "0.5917385", "0.5907169", "0.5891384", "0.58877313", "0.5877334", "0.58765286", "0.58751017", "0.5867088", "0.5853336", "0.58511937", "0.5846837", "0.5832513", "0.5821131", "0.5809348" ]
0.7041347
14
Wait for another thread to load the file data
public final void waitForData(long tmo) { // Check if the file data has been loaded, if not then wait if ( isDataAvailable() == false) { synchronized ( this) { try { // Wait for file data wait(tmo); } catch ( InterruptedException ex) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doLoadInThread() {\n selectFiles(fileChooser.getSelectedFiles(),\n fileChooser.getCurrentDirectory());\n }", "public void procLoadFromFileThread() {\n try {\n\n do {\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n MemoryCacheEntry cacheEntry = _downloader.getMemCache().get(_cacheKey);\n\n if (cacheEntry!=null && cacheEntry.size()>0) {\n _cacheEntry = cacheEntry;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_SUCCESS);\n return;\n } else {\n _cacheEntry = null;\n }\n\n\n _isSuccess = false;\n\n _mutex.lock();\n if (_phoneAlbums!=null && _phoneAlbums.size()>0) {\n _isSuccess = true;\n } else {\n ImageManager.getPhoneAlbumInfo(SMDirector.getDirector().getActivity(), new ImageManager.OnImageLoadListener() {\n @Override\n public void onAlbumImageLoadComplete(ArrayList<PhoneAlbum> albums) {\n _isSuccess = true;\n _phoneAlbums = albums;\n// _cond.notify();\n synchronized (_this) {\n _this.notify();\n }\n }\n\n @Override\n public void onError() {\n synchronized (_this) {\n _this.notify();\n }\n// _cond.notify();\n }\n });\n\n synchronized (_this) {\n _this.wait();\n }\n\n// _cond.wait();\n }\n\n if (!_isSuccess || _phoneAlbums.size()==0) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n Bitmap bmp = getPhotoImage(_requestPath);\n if (bmp==null) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n _imageEntry = ImageCacheEntry.createEntry(bmp);\n _mutex.unlock();\n\n _downloader.handleState(this, ImageDownloader.State.DECODE_SUCCESS);\n _cacheEntry = null;\n return;\n } while (false);\n\n\n } catch (InterruptedException e) {\n\n }\n\n _cacheEntry = null;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_FAILED);\n }", "public static void threadloader()\r\n\r\n\t{\r\n\t\tThread threadloadData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadData(inputFile1);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadloadPattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadPattern(inputFile2);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadloadData.run();\r\n\t\tthreadloadPattern.run();\r\n\t}", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "private void asynload() {\n\t\tfileManager=FileManager.getFileManager();//获取fileManager\n\t\tfileManager.setSearchListener(searchFileListener);//在主线程设置监听\n\t\t//启动工作线程进行文件搜索\n\t\tthread=new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n//相当于将需要在工作线程获得的数据直接封装成方法\n\t\t\t\tfileManager.searchCardFile();//将数据存储到文件集合和文件大小里\n\t\t\t\t\t\t\t\t\n//\t\t\t\trunOnUiThread(new Runnable() {\n//\t\t\t\t\t\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\t//测试将所有文件大小显示\n//\t\t\t\t\t\ttv_all_size.setText(CommonUtil.getFileSize(fileManager.getAnyFileSize()));\n//\t\t\t\t\t\ttv_txt_size.setText(CommonUtil.getFileSize(fileManager.getTxtFileSize()));\n//\t\t\t\t\t\ttv_apk_size.setText(CommonUtil.getFileSize(fileManager.getApkFileSize()));\n//\t\t\t\t\t\ttv_audio_size.setText(CommonUtil.getFileSize(fileManager.getAudioFileSize()));\n//\t\t\t\t\t\ttv_image_size.setText(CommonUtil.getFileSize(fileManager.getImageFileSize()));\n//\t\t\t\t\t\ttv_video_size.setText(CommonUtil.getFileSize(fileManager.getVideoFileSize()));\n//\t\t\t\t\t\ttv_zip_size.setText(CommonUtil.getFileSize(fileManager.getZipFileSize()));\n//\t\t\t\t\t}\n//\t\t\t\t});\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}", "public void waitForData() {\n waitForData(1);\n }", "@Override\n public void run() {\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n System.out.println(Thread.currentThread().getName());\n AddDataFromFile();\n Thread.yield();\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n\n }", "public final synchronized void signalDataAvailable() {\n\n\t\t//\tNotify any waiting threads that the file data ia available\n\t\t\t\n\t\tnotifyAll();\n\t}", "public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }", "@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }", "@Override\n public void run() {\n load_remote_data();\n }", "public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}", "public void run(){\n\t\tFileFeeder fileFeeder = new FileFeeder(mySQLConnection,logWindow, fileIssueList, true);\n\t\tThread feederThread = new Thread(fileFeeder);\n\t\tfeederThread.start();\n\t\twhile (moreFilesComing || !fileList.isEmpty()){ //if more data still to process or more data coming\n\t\t\tDataFile dataFile;\n\t\t\tif ((dataFile = fileList.poll()) != null){ //something to actually write\n\t\t\t\tsynchronized(fileList){\n\t\t\t\t\tfileList.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlogWindow.println(\"Processing data from file: \"+dataFile.fileName+\"...\");\n\t\t\t\t\n\t\t\t\tBufferedReader inputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputStream = new BufferedReader(new FileReader(dataFile.file));\n\t\n\t\t\t\t\tString fileDateFormat = getFileInfo(dataFile,inputStream);\n\t\t\t\t\t\n\t\t\t\t\tif (dataFile.frequency!=0 && !dataFile.meterSerial.equals(\"\")){ //if got valid info\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tString fileExistsSQL = \"SELECT * FROM files WHERE site_id = \"+dataFile.siteID+\" AND source_id = \"+dataFile.sourceID+\" AND file_name = '\"+dataFile.fileName+\"' AND meter_sn = '\"+dataFile.meterSerial+\"' AND frequency = \"+dataFile.frequency;\n\t\t\t\t\t\t\tResultSet fileExistsQuery = dbConn.createStatement().executeQuery(fileExistsSQL);\n\t\t\t\t\t\t\tif (fileExistsQuery.next()==false){ //if no files with same site,source,filename,meterserial and frequency exist\n\n\t\t\t\t\t\t\t\tgetValidData(dataFile,fileDateFormat,inputStream);\n\n\t\t\t\t\t\t\t\tif (dataFile.dataList.size()>0){\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Processing of data complete.\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t/*try{\n\t\t\t\t\t\t\t\t\t\tString fetchRangeLimitsSQL = \"SELECT min,max FROM ranges WHERE source_id = \"+dataFile.sourceID+\" AND site_id = \"+dataFile.siteID;\n\t\t\t\t\t\t\t\t\t\tResultSet fetchRangeLimitsRS = dbConn.createStatement().executeQuery(fetchRangeLimitsSQL);\n\n\t\t\t\t\t\t\t\t\t\tif (fetchRangeLimitsRS.next()){\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = fetchRangeLimitsRS.getDouble(\"min\");\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = fetchRangeLimitsRS.getDouble(\"max\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"No range limits found for \"+dataFile.sourceID+\" or site \"+dataFile.siteID+\". Adding defaults now...\");\t\n\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = Source.getRangeMin(dataFile.sourceType,dataFile.measurementType);\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = Source.getRangeMax(dataFile.sourceType,dataFile.measurementType,dataFile.frequency);\n\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\tString setRangeLimitsSQL = \"INSERT INTO ranges (site_id,source_id,min,max) VALUES(\"+dataFile.siteID+\",\"+dataFile.sourceID+\",\"+dataFile.rangeMin+\",\"+dataFile.rangeMax+\")\";\n\t\t\t\t\t\t\t\t\t\t\t\tdbConn.createStatement().executeUpdate(setRangeLimitsSQL);\n\t\t\t\t\t\t\t\t\t\t\t}catch(SQLException sE){ //NON FATAL\n\t\t\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"Warning: could not write range limits to database for file \"+dataFile.fileName+\".\");\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"GMT+10\"));\n\t\t\t\t\t\t\t\t\t\tdataFile.startDate = dateFormatter.format(dataFile.dataList.get(0).dateTime);\n\t\t\t\t\t\t\t\t\t\tdataFile.endDate = dateFormatter.format(dataFile.dataList.get(dataFile.dataList.size()-1).dateTime);*/\n\n\t\t\t\t\t\t\t\t\t\tfileFeeder.addFile(dataFile); //Send file to feeder\n\n\t\t\t\t\t\t\t\t\t/*} catch (SQLException sE){\n\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\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\telse{\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". No Data found in file.\");\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\telse{\n\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". This file already exists for source \"+dataFile.sourceID+\" at site \"+dataFile.siteID+\".\");\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch(SQLException sE){\n\t\t\t\t\t\t\t//TODO need error here\n\t\t\t\t\t\t\tsE.printStackTrace();\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\tlogWindow.println(dataFile.frequency+\" \"+dataFile.meterSerial);\n\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". Could not determine essential file information.\");\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t} catch (IOException err){\n\t\t\t\t\tdataFile.dataList.clear();\n\t\t\t\t\tlogWindow.println(\"Unable to read from file: \"+dataFile.fileName+\"\\r\\nNo data will be written from this file.\");\n\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\n\t\t\t\t} finally {\n\t\t\t\t\tif (inputStream != null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinputStream.close();\n\t\t\t\t\t\t} catch (IOException err) {\n\t\t\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\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\ttry{\n\t\t\t\tsynchronized(fileList){ //waiter\n\t\t\t\t\twhile (moreFilesComing && fileList.isEmpty()){\n\t\t\t\t\t\tfileList.notify(); //notify adder just in case things got stuck\n\t\t\t\t\t\tfileList.wait(); //wait for a file to be added to file List.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsynchronized(fileFeeder.fileList){\n\t\t\tfileFeeder.moreFilesComing = false;\n\t\t\tfileFeeder.fileList.notify();\n\t\t}\n\t\ttry {\n\t\t\tfeederThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Date endTime = new Date();\n\t\t//logWindow.println(\"Finished sending file(s) to writer for source: \"+sourceID);\n\t\t//logWindow.println(\"Time taken: \"+getTimeString(endTime.getTime()-startTime.getTime()));\n\t}", "@Override\n\t\t\t\tpublic void run() \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"reading..\" +next.getFileName());\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t//ts1.finalWrite(next.getFileName(),(int)file.length());\n\t\t\t\t\t\t\tInputStream in = new FileInputStream(readFile);\n\t\t\t\t\t\t\tint i;\n\t\t\t\t\t\t\tint fileNameLength =readFile.length();\n\t\t\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\t\t\tlong total = (2+fileNameLength+fileLength);\n\t\t\t\t\t\t\t//System.out.println(\"toal length\" +total);\n\t\t\t\t\t\t\tqu.put((byte)total);\n\t\t\t\t\t\t\tqu.put((byte)readFile.length()); // file name length\n\t\t\t\t\t\t\tqu.put((byte)file.length()); //file content length\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int j=0;j<readFile.length();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)readFile.charAt(j)); //writing file Name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhile((i=in.read())!=-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)i);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\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\tcatch (InterruptedException e) \n\t\t\t\t\t{\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\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t\t\t\tv.read(file);\n\t\t\t\t}\n\t\t\t}", "void waitToRead();", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Welcome to thread - \"+threadName);\n\t\tSystem.out.println(\"Loading.....\");\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfindArea(base,height);\n\t\t\n\t}", "private void startRead() {\n ExecutorService service = Executors.newFixedThreadPool(this.countReadThreads);\n while (!this.files.isEmpty() || !this.isWorkSearch()) {\n service.submit(this.threads.getReadThread());\n }\n service.shutdown();\n }", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "@Override\n public void run() {\n \t\n \t\t\n \t\tSearchFile.findFile(f1);\n }", "@Override\n public void run() {\n try (BufferedReader reader = new BufferedReader(new FileReader(file.getAbsoluteFile()))) {\n String lineFromFile = reader.readLine();\n String[] splitLine;\n String userName;\n String url;\n long time;\n while ((lineFromFile = reader.readLine()) != null) {\n splitLine = lineFromFile.split(\";\");\n userName = splitLine[3];\n url = splitLine[1];\n time = Long.parseLong(splitLine[2]);\n if (userNamesAndCorrespondingContent.containsKey(userName)) {\n Content content = userNamesAndCorrespondingContent.get(userName);\n if (content.getUrlAndCorrespondingTime().containsKey(url)) {\n content.updateTimeForCorrespondingUrl(url, time);\n } else {\n content.updateUrlAndTimeInfoForCorrespondingUsername(url, time);\n }\n } else {\n Map<String, Long> newUrlAndTime = new ConcurrentSkipListMap<>();\n newUrlAndTime.put(url, time);\n userNamesAndCorrespondingContent.put(userName, new Content(newUrlAndTime));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile(run)\n\t\t{\n\t\t\tSystem.out.println(\"status : \" + this.filesize + \" Byte\");\n\t\t\t\n\t\t\ttry{\n\t\t\t\tThread.sleep(this.wait);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void start() {\n\t\tif (path != null) {\n\t\t\tfileNameChain = new ByteArrayOutputStream();\n\t\t\tfileAsynctask doing = new fileAsynctask();\n\t\t\tdoing.execute(getPath());\n\t\t}\n\t}", "public void run() {\n load();\n try {\n loop();\n } catch (InterruptedException e) {\n System.err.println(\"An Error occured :\" + e.getMessage());\n }\n quit();\n }", "@Override\n\tpublic void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tThread newThreadSocket = new Thread(new newThreadWaitingForFile(mySocket.accept()));\n\t\t\t\tnewThreadSocket.start();\n\t\t\t} catch (IOException 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\n\t}", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\tif (f.lastModified() > lastModified)\n\t\t\t{\n\t\t\t\tprocessFile(false);\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(60000);\n\t\t\t}\n\t\t\tcatch (InterruptedException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public abstract boolean isLoadCompleted();", "@Override\r\n public void run() {\r\n if (!WaitCursor.isStarted()) {\r\n // Start wait cursor\r\n WaitCursor.startWaitCursor();\r\n try {\r\n if (importInputForm.isFileCSVFormat()) {\r\n importCSV(fileName);\r\n } else if (importInputForm.isFileExcelFormat()) {\r\n importExcel(fileName);\r\n } else if (importInputForm.isFileExcelOpenXMLFormat()) {\r\n importExcelx(fileName);\r\n } else if (importInputForm.isFileXMLFormat()) {\r\n importXML(fileName);\r\n }\r\n } catch (Exception ex) {\r\n Main.logger.error(\"Import failed\", ex);\r\n String title = Labels.getString(\"Common.Error\");\r\n String message = Labels.getString(\"ReportListPanel.Import failed\");\r\n JOptionPane.showConfirmDialog(Main.gui, message, title,\r\n JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, ImageIcons.DIALOG_ICON);\r\n } finally {\r\n // Stop wait cursor\r\n WaitCursor.stopWaitCursor();\r\n }\r\n }\r\n }", "@Override\r\n public void run()\r\n {\r\n File server_Dir_Files = new File(client_Info.getDir());\r\n File[] server_Files = server_Dir_Files.listFiles();\r\n boolean check;\r\n ArrayList<String> user_Files = new ArrayList<>();\r\n try\r\n {\r\n DataInputStream data_Receive = new DataInputStream(client_Info.getUserSocket().getInputStream());\r\n\r\n int files_Number = data_Receive.readInt();\r\n for(int i = 0; i < files_Number; i++)\r\n {\r\n user_Files.add(data_Receive.readUTF());\r\n }\r\n\r\n for(int i = 0; i<server_Files.length; i++)\r\n {\r\n check = false;\r\n for(int j = 0; j<user_Files.size(); j++)\r\n {\r\n if(server_Files[i].getName().equals(user_Files.get(j)))\r\n {\r\n check = true;\r\n break;\r\n }\r\n }\r\n if(check == false)\r\n {\r\n Thread send_File = new ServerSendFile(client_Info, server_Files[i].getName());\r\n send_File.start();\r\n }\r\n }\r\n Thread.sleep(3000);\r\n }\r\n catch(IOException | InterruptedException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n last_Operation.clear();\r\n File old_Dir = new File(client_Info.getDir());\r\n File[] old_Dir_Files = old_Dir.listFiles();\r\n\r\n while(true)\r\n {\r\n try\r\n {\r\n Thread.sleep(3000);\r\n File new_Dir = new File(client_Info.getDir());\r\n File[] new_Dir_Files = new_Dir.listFiles();\r\n\r\n if(new_Dir_Files.length > old_Dir_Files.length)\r\n {\r\n for(int i = 0; i < new_Dir_Files.length; i++)\r\n {\r\n check = false;\r\n for(int j = 0; j < old_Dir_Files.length; j++)\r\n {\r\n if(new_Dir_Files[i].getName().equals(old_Dir_Files[j].getName()))\r\n {\r\n check = true;\r\n break;\r\n }\r\n }\r\n if(check == false)\r\n {\r\n if(last_Operation.size() > 1)\r\n {\r\n if(last_Operation.get(0).equals(\"send\") && last_Operation.get(1).equals(new_Dir_Files[i].getName()))\r\n {\r\n last_Operation.remove(0);\r\n last_Operation.remove(0);\r\n continue;\r\n }\r\n }\r\n else\r\n {\r\n Thread send_File = new ServerSendFile(client_Info, new_Dir_Files[i].getName());\r\n send_File.start();\r\n }\r\n }\r\n }\r\n }\r\n old_Dir = new_Dir;\r\n old_Dir_Files = old_Dir.listFiles();\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private void loadFieldGuideData() {\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLog.d(TAG, \"Loading data via loadData()\");\n\t\t\t\t\t\tloadData();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tbm = getBitmap(url);\n\t\t\tdownLoaderListenner.onDownLoadSuccess(bm,url);\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tURL url;\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\turl = new URL(strUrl);\n\t\t\t\tURLConnection con = url.openConnection();\n\t\t\t\tcon.connect();\n\t\t\t\tInputStream input = con.getInputStream();\n\t\t\t\tList<Map<String,Object>> temp = json.getListItems(input);\n\t\t\t\tif(temp != null){\n\t\t\t\t\tif(merger.mergeTwoList(list, temp, direction))\n\t\t\t\t\t\tmyHandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmyHandler.sendEmptyMessage(5);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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\n\t\t}", "public void generateData(String imageFile) throws Exception\r\n\t{\r\n\t\tboolean old = false;\r\n\t\tthis.loadImage(imageFile);\r\n\r\n\t\tthis.pixelLat = 180f / this.pixelHeight.floatValue();\r\n\t\tthis.pixelLon = 360f / this.pixelWidth.floatValue();\r\n\r\n\t\tThread convertImage = new Thread(new ConvertImage(this.pixelHeight,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pixelWidth,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.image));\r\n\t\tThread convertRgb = new Thread(new ConvertRgb(pixelLon, pixelLat,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpalette));\r\n\r\n\t\tconvertImage.start();\r\n\t\tconvertRgb.start();\r\n\t\t\r\n\t\twhile (convertImage.isAlive() || convertRgb.isAlive())\r\n\t\t{\r\n\t\t\tif(!convertImage.isAlive()){\r\n\t\t\t\tConvertRgb.stopConvertRgb();\r\n\t\t\t\tlogger.info(\"Stop command sent\");\r\n\t\t\t}\r\n\t\t\tif(ImageStorage.heightRowIsFull()){\r\n\t\t\t\tImageStorage.heightRowRemove(0);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (old)\r\n\t\t{\r\n\t\t\tthis.createDirectories();\r\n\t\t\tthis.loadImage(imageFile);\r\n\t\t\t// this.convertImage();\r\n\t\t\tthis.loadConvertImage();\r\n\t\t\tthis.convertRgb();\r\n\r\n\t\t\tThread readFiles1 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles2 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles3 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles4 = new Thread(new ReadRowFilesThread());\r\n\r\n\t\t\tThread baseData1 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData2 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData3 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData4 = new Thread(new EnterBaseDataThread());\r\n\r\n\t\t\treadFiles1.start();\r\n\t\t\treadFiles2.start();\r\n\t\t\treadFiles3.start();\r\n\t\t\treadFiles4.start();\r\n\r\n\t\t\tbaseData1.start();\r\n\t\t\tbaseData2.start();\r\n\t\t\tbaseData3.start();\r\n\t\t\tbaseData4.start();\r\n\r\n\t\t\twhile (readFiles1.isAlive() && readFiles2.isAlive()\r\n\t\t\t\t\t&& readFiles3.isAlive() && readFiles4.isAlive())\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t}\r\n\r\n\t\t\tImageStorage.setEndStatement(true);\r\n\r\n\t\t\twhile (baseData1.isAlive() && baseData2.isAlive()\r\n\t\t\t\t\t&& baseData3.isAlive() && baseData4.isAlive())\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Database Filled\");\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tGPSLogData saved = GPSLogData.loadFile(mCarData.sel_vehicleid);\n\t\t\t\tif (saved != null) {\n\t\t\t\t\tLog.v(TAG, \"GPSLogData loaded for \" + mCarData.sel_vehicleid);\n\t\t\t\t\tlogData = saved;\n\t\t\t\t\tdataSetChanged();\n\t\t\t\t}\n\t\t\t\thideProgressOverlay();\n\t\t\t}", "@Override\n\tpublic void transferFile() throws Exception {\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}).start();\n\t}", "Future<File> processDataFile(File dataFile);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\tOpenFileRequest.Builder openFileReqObj = OpenFileRequest.newBuilder();\n\t\topenFileReqObj.setFileName(fileName);\t\t\n\t\topenFileReqObj.setForRead(true);\n\t\t\n\t\t\n\t\tFileWriterClass fileWriteObj = new FileWriterClass(localOutFile);\n\t\tfileWriteObj.createFile();\n\t\t\n\t\tbyte[] responseArray;\n\t\t\n\t\ttry {\n\t\t\tRegistry registry=LocateRegistry.getRegistry(Constants.NAME_NODE_IP,Registry.REGISTRY_PORT);\n\t\t\tINameNode nameStub;\n\t\t\tnameStub=(INameNode) registry.lookup(Constants.NAME_NODE);\n\t\t\tresponseArray = nameStub.openFile(openFileReqObj.build().toByteArray());\n\t\t\t\n\t\t\ttry {\n\t\t\t\tOpenFileResponse responseObj = OpenFileResponse.parseFrom(responseArray);\n\t\t\t\tif(responseObj.getStatus()==Constants.STATUS_NOT_FOUND)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"File not found fatal error\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tList<Integer> blockNums = responseObj.getBlockNumsList();\n\t\t\t\tBlockLocationRequest.Builder blockLocReqObj = BlockLocationRequest.newBuilder();\n\t\t\t\t\n//\t\t\t\tSystem.out.println(blockNums);\n\t\t\t\t/**Now perform Read Block Request from all the blockNums**/\n\t\t\t\tblockLocReqObj.addAllBlockNums(blockNums);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tresponseArray = nameStub.getBlockLocations(blockLocReqObj.build().toByteArray());\n\t\t\t\t} catch (RemoteException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tBlockLocationResponse blockLocResObj = BlockLocationResponse.parseFrom(responseArray);\n//\t\t\t\tSystem.out.println(blockLocResObj.toString());\n\t\t\t\t\n\t\t\t\tif(blockLocResObj.getStatus()==Constants.STATUS_FAILED)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Fatal error!\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tList<BlockLocations> blockLocations = blockLocResObj.getBlockLocationsList();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<blockLocations.size();i++)\n\t\t\t\t{\n\t\t\t\t\tBlockLocations thisBlock = blockLocations.get(i);\n\t\t\t\t\t\n\t\t\t\t\tint blockNumber = thisBlock.getBlockNumber();\t\t\t\t\t\n\t\t\t\t\tList<DataNodeLocation> dataNodes = thisBlock.getLocationsList();\n\t\t\t\t\t\n\t\t\t\t\tif(dataNodes==null || dataNodes.size()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"All nodes are down :( \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint dataNodeCounter=0;\n\t\t\t\t\t\n\t\t\t\t\tDataNodeLocation thisDataNode = null;//dataNodes.get(dataNodeCounter);\t\t\t\t\t\n\t\t\t\t\tString ip;// = thisDataNode.getIp();\n\t\t\t\t\tint port ; //= thisDataNode.getPort();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIDataNode dataStub=null;\n\t\t\t\t\t\n\t\t\t\t\tboolean gotDataNodeFlag=false;\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthisDataNode = dataNodes.get(dataNodeCounter);\n\t\t\t\t\t\t\tip = thisDataNode.getIp();\n\t\t\t\t\t\t\tport = thisDataNode.getPort();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tRegistry registry2=LocateRegistry.getRegistry(ip,port);\t\t\t\t\t\n\t\t\t\t\t\t\tdataStub = (IDataNode) registry2.lookup(Constants.DATA_NODE_ID);\n\t\t\t\t\t\t\tgotDataNodeFlag=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (RemoteException e) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgotDataNodeFlag=false;\n//\t\t\t\t\t\t\tSystem.out.println(\"Remote Exception\");\n\t\t\t\t\t\t\tdataNodeCounter++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\twhile(gotDataNodeFlag==false && dataNodeCounter<dataNodes.size());\n\t\t\t\t\t\n\t\t\t\t\tif(dataNodeCounter == dataNodes.size())\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"All data nodes are down :( \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\t/**Construct Read block request **/\n\t\t\t\t\tReadBlockRequest.Builder readBlockReqObj = ReadBlockRequest.newBuilder();\n\t\t\t\t\treadBlockReqObj.setBlockNumber(blockNumber);\n\t\t\t\t\t\n\t\t\t\t\t/**Read block request call **/\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tresponseArray = dataStub.readBlock(readBlockReqObj.build().toByteArray());\n\t\t\t\t\t\tReadBlockResponse readBlockResObj = ReadBlockResponse.parseFrom(responseArray);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(readBlockResObj.getStatus()==Constants.STATUS_FAILED)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"In method openFileGet(), readError\");\n\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponseArray = readBlockResObj.getData(0).toByteArray();\t\t\t\t\t\t\n\t\t\t\t\t\tString str = new String(responseArray, StandardCharsets.UTF_8);\t\t\t\t\t\t\n\t\t\t\t\t\tfileWriteObj.writeonly(str);\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (NotBoundException e) {\n\t\t\tSystem.out.println(\"Exception caught: NotBoundException \");\t\t\t\n\t\t} catch (RemoteException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tfileWriteObj.closeFile();\n\t\t\n\t\t\n\t}", "public void run() {\n\t\t\t \t \n\t\t\t \t test.load2();\n\t\t\t \t //System.out.println(\"heart beat report\"+System.currentTimeMillis());\n\t\t\t }", "public void loadFile(View view) {\n // start the background file loading task\n LoadFileTask task = new LoadFileTask();\n task.execute();\n }", "@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException 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}", "@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t// 获取当前要更新的数据\r\n\t\t\t\tList<Data> updateDataList = createUpdateData(currentPage,\r\n\t\t\t\t\t\tpageSize);\r\n\t\t\t\t// 需要更新的数据加入当前数据集合\r\n\t\t\t\tonLoadComplete.onLoadComplete(updateDataList);\r\n\r\n\t\t\t}", "public void loadFromOBJThreaded(Context context, String filename) {\n OBJParser objparser = new OBJParser();\n objparser.loadFromOBJ(context, filename);\n SquareCoords = objparser.getVertices();\n UVCoords = objparser.getUVVertices();\n DrawOrder = objparser.getOrder();\n\n resourcesLoaded++;\n }", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "public void start() {\n\n String pathFile = mainMenu.menuTakePathFile();\n int countThreads = mainMenu.menuCountThreads();\n int downloadSpeed = mainMenu.menuDownloadSpeed();\n String folderForDownload = mainMenu.menuPathDownload();\n\n List<String> urls = null;\n try {\n urls = bootPreparation.parsingFileForUrls(pathFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n List<String> fileNames = bootPreparation.parsingListUrlsForNames(urls);\n\n multiThreadedDownloader.startDownloading(countThreads, urls.size(), urls, fileNames, downloadSpeed, folderForDownload);\n\n }", "@Override\n public void run() {\n System.out.println(\"Starting producer\");\n File file = new File(dirPath + \"/studentVle.csv\");\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n String tempString = null;\n tempString = reader.readLine();\n while ((tempString = reader.readLine()) != null) {\n this.buffer.put(tempString);\n }\n reader.close();\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (a) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.wait();\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}", "public void run() {\n\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// initialize tooltip for a new folder\r\n\t\t\t\t_photoGalleryTooltip.reset(true);\r\n\r\n\t\t\t\tfinal double galleryPosition = getCachedGalleryPosition();\r\n\r\n\t\t\t\t_galleryMT20.setupItems(0, galleryPosition, _restoredSelection);\r\n\r\n\t\t\t\t_restoredSelection = null;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * update status info\r\n\t\t\t\t */\r\n\t\t\t\tfinal long timeDiff = System.currentTimeMillis() - _workerStart;\r\n\t\t\t\tfinal String timeDiffText = NLS.bind(\r\n\t\t\t\t\t\tMessages.Pic_Dir_Status_Loaded,\r\n\t\t\t\t\t\tnew Object[] { Long.toString(timeDiff), Integer.toString(_allPhotos.length) });\r\n\r\n\t\t\t\tsetStatusMessage(timeDiffText);\r\n\t\t\t}", "public void run() {\n try {\n //first send the file name to the receiver\n out.flush();\n out.writeUTF(fileName);\n out.flush();\n //sends the destination folder name\n out.writeUTF(destFolder);\n out.flush(); //flushes the buffer\n //array of bytes that holds the file bytes\n byte[] file = readFile(srcFilePath +\"/\"+fileName);\n System.out.println(\"Sending file: \"+fileName+\" to folder: \"+destFolder);\n //sends the file\n out.write(file,0,file.length);\n out.flush();\n if(notifDownloader) {\n NodeInterface nodeStub = (NodeInterface) Naming.lookup(\"/\"+clientSocket.getInetAddress().toString()+\"/Node\");\n nodeStub.fileDownloaded(fileName);\n }\n } catch (IOException e) {\n System.out.println(\"readline: \" + e.getMessage());\n } catch (NotBoundException e) {\n //e.printStackTrace();\n System.err.println(\"There was an error notifying the downloader \"+e.getMessage());\n } finally{\n try{\n //closes the socket\n clientSocket.close();\n }catch(IOException e){\n System.out.println(\"problem closing the socket: \"+e.getMessage());\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (flag) {\n\t\t\t\tloadData(App.address+\"GetModel.php?uid=\" + id);//循环加载模式\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1*1000); //暂定延时1s\n\t\t\t\t\t\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}\n\t\t\tThread.interrupted();\n\t\t}", "public boolean waitLoading() {\n\t\t\treturn waitLoading;\n\t\t}", "private void waitConfigData() {\n\t\tstartListening();\n\t\twhile (!configDataSet) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t}", "private void startAsyncLoader() {\n if (CheckInternetConnection.isNetworkAvailable(this)) {\n Log.e(\"connection\", \"connection available\");\n if (getLoaderManager().getLoader(ASYNC_LOADER_ID) == null) {\n getLoaderManager().initLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n } else {\n getLoaderManager().restartLoader(ASYNC_LOADER_ID, null, new UpdateDataInfo()).forceLoad();\n }\n } else {\n showMessageDialog(getResources().getString(R.string.message), getResources().getString(R.string.no_int), 1);\n }\n }", "@Override\n public void run() {\n //cria a tela de espera e mostra ela\n JDialogLoading jd = new JDialogLoading(null, false);\n jd.setVisible(true);\n\n try {\n t1.join();//fica esperando a primeira thread acabar\n } catch (InterruptedException ex) {\n Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex);\n }\n // quando acabar fecha a janela de espera, podes fazer outras coisas aqui\n jd.dispose();\n\n }", "private ByteList fread(RubyThread thread, int length) throws IOException, BadDescriptorException {\n Stream stream = openFile.getMainStreamSafe();\n int rest = length;\n waitReadable(stream);\n ByteList buf = blockingFRead(stream, thread, length);\n if (buf != null) {\n rest -= buf.length();\n }\n while (rest > 0) {\n waitReadable(stream);\n openFile.checkClosed(getRuntime());\n stream.clearerr();\n ByteList newBuffer = blockingFRead(stream, thread, rest);\n if (newBuffer == null) {\n // means EOF\n break;\n }\n int len = newBuffer.length();\n if (len == 0) {\n // TODO: warn?\n // rb_warning(\"nonblocking IO#read is obsolete; use IO#readpartial or IO#sysread\")\n continue;\n }\n if (buf == null) {\n buf = newBuffer;\n } else {\n buf.append(newBuffer);\n }\n rest -= len;\n }\n if (buf == null) {\n return ByteList.EMPTY_BYTELIST.dup();\n } else {\n return buf;\n }\n }", "public void run() {\n displayFileWindow();\n }", "public void doLoad() {\n UI.clearText();\n UI.println(\"Loading...\");\n\n waveform = WaveformLoader.doLoad();\n\n this.displayWaveform();\n\n UI.println(\"Loading completed!\");\n }", "public void loadFile(File f) {\n Controller.INSTANCE.run(() -> {\n int iterations = 0;\n StringBuffer buffer = new StringBuffer();\n\n\n try (FileInputStream fis = new FileInputStream(f);\n BufferedInputStream bis = new BufferedInputStream(fis) ) {\n while ( (bis.available() > 0) && (iterations < charThreshold)) {\n iterations++;\n buffer.append((char)bis.read());\n }\n fullContent.add(buffer.toString());\n loadBlock(0);\n //System.out.println(\"Finished first set at \"+ iterations + \" iterations\");\n myEstimatedLoad = EstimatedLoad.MEDIUM;\n while (bis.available() > 0) {\n iterations = 0;\n buffer = new StringBuffer();\n while ((bis.available() > 0) && (iterations < charThreshold)) {\n iterations++;\n buffer.append((char) bis.read());\n }\n fullContent.add(buffer.toString());\n //System.out.println(\"Finished another set at \"+iterations+ \" iterations\");\n synchronized (mine) {\n if (mine.getParentEditor().isClosed())\n return Unit.INSTANCE; //check if this tab is closed. if it is, wrap up\n }\n }\n }\n catch ( Exception e ) {\n System.out.println(\"Failed to load file\");\n e.printStackTrace();\n }\n return Unit.INSTANCE;\n });\n }", "public synchronized void startFileAndDB(int fileOrDB, Runnable r) {\r\n this.dBInError = false;\r\n if (fileOrDB == 1) {\r\n // System.out.println(\"startFileWrite()\");\r\n this.startFileWrite();\r\n while (/* !dBInError&& */!this.dBOutError && (this.semaphore || (!this.is_alg_started\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))))) {\r\n try {\r\n Thread.sleep(200);\r\n // System.out.println(\"Started startFileWrite(): Still\r\n // waiting for finishing.\");\r\n // r.wait();\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n } else if (fileOrDB == 2) {\r\n // System.out.println(\"startDBWrite()\");\r\n this.startDBWrite();\r\n while (/* !dBInError&& */!this.dBOutError && (this.semaphore || (!this.is_alg_started\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))))) {\r\n try {\r\n // r.wait();\r\n Thread.sleep(200);\r\n // System.out.println(\"Started startDBWrite(): Still waiting\r\n // for finishing.\");\r\n } catch (Exception e) {\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\n ArrayList<String> lstNames = null;\n try {\n\n lstNames = readFromFile_getNamesList();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n CountDownLatch latch = new CountDownLatch(1);\n MyThread threads[] = new MyThread[1000];\n for(int i = 0; i<threads.length; i++){\n\n threads[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads.length; i++){\n threads[i].start();\n }\n latch.countDown();\n for(int i = 0; i<threads.length; i++){\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n try {\n System.out.println(\"Sleeeeeeeping....\");\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n latch = new CountDownLatch(1);\n MyThread threads2[] = new MyThread[1000];\n for(int i = 0; i<threads2.length; i++){\n threads2[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads2.length; i++){\n threads2[i].start();\n }\n latch.countDown();\n }", "public static void threadstorer()\r\n\r\n\t{\r\n\t\tThread threadstoreData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//loadData(inputFile1);\r\n\t\t\t\t\tUtility.writeTofile(wordList, outputFile1);\r\n\t\t\t\t\tSystem.out.println(\"Word Stored\");\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in storing data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadstorePattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tUtility.writeTofile(patternOut, outputFile2);\r\n\t\t\t\t\tSystem.out.println(\"Pattern stored\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in storing pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadstoreData.run();\r\n\t\tthreadstorePattern.run();\r\n\t}", "public void run() {\n\t\t\t \t \n\t\t\t \t test.load1();\n\t\t\t \t //System.out.println(\"heart beat report\"+System.currentTimeMillis());\n\t\t\t }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tBitmap bitmap = getImageFromLocal(imgPath);\n\t\t\t\tif (bitmap == null) {\n\t\t\t\t\tloadImgByNet(handler, imgUrl, imgPath);\n\t\t\t\t} else {\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.obj = bitmap;\n\t\t\t\t\tmsg.what = IMG_FROM_LOCAL;\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}\n\t\t\t}", "public void waitForContentLoad() {\n verifyPageIsOpened(currentPage.get(), \"Please open some page before the waiting for content to load.\");\n currentPage.get().waitLoadFinished();\n }", "void massiveModeLoading( File dataPath );", "public void run() {\r\n\r\n \t if(tHread.isAlive()){\r\n \t //do something - for example start and run progressbar\r\n \t }\r\n \t\telse{\r\n \t\t tImer.cancel();\r\n \t\t if(readFromDB)readFromDB = false;\r\n \t\t if(writeIntoDB)writeIntoDB = false;\r\n \t\t System.out.println();\r\n \t\t}\r\n \t}", "protected void ACTION_B_LOAD(ActionEvent arg0) {\n\t\tString capturedata=\"\";\r\n\t\ttry {\r\n\t\t\tFile DATA = new File(\"capturedata.txt\");\r\n\t\t\t\r\n\t\t\tFileInputStream datastream = new FileInputStream(DATA);\r\n\t\t\tInputStreamReader input = new InputStreamReader(datastream);\r\n\t\t\tBufferedReader reader = new BufferedReader(input);\r\n\t\t\t\r\n\t\t\twhile(reader.read() != -1)\r\n\t\t\t{\r\n\t\t\t\tcapturedata=capturedata+reader.readLine();\r\n\t\t\t\tcapturedata=capturedata + \"\\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treader.close();\r\n\t\t\tinput.close();\r\n\t\t\tdatastream.close();\r\n\t\t\t\r\n\t\t\ttextArea_1.setText(capturedata);\r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Data Loaded Successfully\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tJOptionPane.showMessageDialog(null, \"File Access Error !! Unable to Load data\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\trom.setRunInThread(true);\r\n\t\t\t\trom.extractAll(mRomDir);\r\n\t\t\t\tfinal ProgressMonitor monitor = rom.getProgressMonitor();\r\n\t\t\t\twhile (monitor.getState() == ProgressMonitor.STATE_BUSY) {\r\n\t\t\t\t\tzDialog.setFileName(monitor.getFileName());\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}", "public void loadJson(){\n new DownloadJsonTask().execute(URL3);\n// new DownloadJsonTask().execute(URL2);\n }", "public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "public void OnFileComplete();", "public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}", "@Override\n public void run() {\n try {\n File file;\n while ((file = queue.poll(100, TimeUnit.MILLISECONDS)) != null) {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.contains(searchString)) {\n // Synchronization requires because of many threads are writing into results.\n synchronized (results) {\n results.add(file.getAbsolutePath());\n break;\n }\n }\n }\n }\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run(){\n try {\n // Instantiate file reader\n FileReader fr = new FileReader(f);\n @SuppressWarnings(\"resource\")\n BufferedReader br = new BufferedReader(fr);\n StringBuilder stream = new StringBuilder();\n String str = null;\n // Reads in and prints to console in put from read thread\n while ((str = br.readLine()) != null) {\n stream.append(str).append(\"\\n\");\n System.out.println(str);\n }\n // Prints the data received from main method\n System.out.println(line);\n // Closes file and buffer readers\n br.close();\n fr.close();\n // Catches input and output stream exceptions\n } catch (IOException ex){\n System.err.println(ex);\n }\n // Deletes file when finished\n if(f.exists()){\n f.delete();\n }\n }", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket sock = ss.accept(); // 接受连接请求\n\t\t\t\tDataInputStream din = new DataInputStream(sock.getInputStream());\n\t\t\t\tbyte buffer[] = new byte[1024]; // 缓冲区\n\t\t\t\tint len = din.read(buffer);\n\t\t\t\tString filename = new String(buffer, 0, len); // 提取出想要获取的文件名\n\t\t\t\tSystem.out.println(\"Client01: received a file request from\" + sock.getInetAddress()+\":\"+sock.getPort()+\",filename:\"+ filename);\n\t\t\t\tDataOutputStream dout = new DataOutputStream(sock.getOutputStream());\n\t\t\t\tFileInputStream fis = new FileInputStream(new File(\"D:/networkExperiment/experiment04/host01/\" + filename));\n\t\t\t\tbyte b[] = new byte[1024];\n\t\t\t\tfis.read(b); // 从文件中将数据写入缓冲区\n\t\t\t\tdout.write(b); // 将缓冲区中的数据返回\n\t\t\t\tSystem.out.println(\"Client01: return file successfully!\");\n\t\t\t\tdout.close();\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n /* lookup file's lastModified date */\n long lastModified = this.monitoredFile.lastModified();\n \n \n /* if the lastModified > prev lastModified date, notify listener */\n if (lastModified != this.lastModified) {\n log.debug(String.format(\"File last modified %d and known last \" +\n \t\t\"modified %d\", lastModified, this.lastModified));\n this.lastModified = lastModified;\n fireFileChangeEvent(this.listener, this.fileName);\n }\n }", "@Override\n public void run() {\n if (Constants.HF_ReaderStatus.equalsIgnoreCase(\"HF Connected\") || Constants.HF_ReaderStatus.equalsIgnoreCase(\"HF Discovered\")) {\n //BLE Upgrade\n if ((IsHFUpdate.trim().equalsIgnoreCase(\"Y\")) && bleVersionCallCount == 0) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n readBLEVersion();\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Read Fob key\n if (IsHFUpdate.trim().equalsIgnoreCase(\"Y\")) {\n if (bleVersionCallCount != 0) {\n readFobKey();\n }\n } else {\n readFobKey();\n }\n\n }\n }", "public void load() {\n handleLoad(false, false);\n }", "public void retrieveThread() {\n\t\tRunnable runScrape = () -> {\n\t\t\ttry {\n\t\t\t\tPlatform.runLater(() -> { //enables non-FX application thread to update UI elements\n\t\t\t\t\tsetLoadingTxt(\"Getting data...\");\n\t\t\t\t\tsetErrorTxt(\"\");\n\t\t\t\t});\n\t\t\t\tscraper.retrieve(url.getText());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tPlatform.runLater(() -> setErrorTxt(\"Error: could not retrieve data\"));\n\t\t\t}\n\t\t\tPlatform.runLater(() -> setLoadingTxt(\"\"));\n\t\t};\n\t\tThread t = new Thread(runScrape);\n\t\tt.start();\n\t}", "public void waitForData(int minNumBytes) {\n try {\n\n while (available() < minNumBytes) {\n Thread.sleep(500);\n }\n }\n catch (InterruptedException e) {\n System.out.println(\"#### Thread interrupted -- could be big trouble\");\n }\n catch(Exception e){}\n }", "public synchronized void run() {\r\n\t\tsetName(\"I02 - Load messages\");\r\n\t\tboolean run = true;\r\n\t\twhile (run) {\r\n\t\t\tif (tablaMensajes.isDisposed() || vista.getEmpleadoActual().getEmplId()==0) run = false;\r\n\t\t\telse {\r\n\t\t\t\tif (!tabFolder.isDisposed()) {\r\n\t\t\t\t\t// Cargar remitentes\r\n\t\t\t\t\tremitentes = new ArrayList<String>();\r\n\t\t\t\t\t// Añadir nombre remitentes a lista remitentes\r\n\t\t\t\t\tfor (int i = 0; i < vista.getTodosMensajesEntrantes().size(); i++) {\r\n\t\t\t\t\t\tremitentes.add(vista.getEmpleado(vista.getTodosMensajesEntrantes().get(i).getRemitente()).getNombreCompleto());\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Actualizar tabla\r\n\t\t\t\t\tif (!tabFolder.isDisposed()) {\r\n\t\t\t\t\t\ttabFolder.getDisplay().asyncExec(new Runnable () {\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tmostrarMensajes();\r\n\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\ttry {\r\n\t\t\t\t\t// TODO Espera 5 segundos (¿Como lo dejamos?)\r\n\t\t\t\t\twait(5000);\r\n\t\t\t\t\t//desplazarVentanaMensajes(0);\r\n\t\t\t\t\t//vista.loadTodosMensajes();\r\n\t\t\t\t\tnotify();\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run()\r\n {\r\n debug(\"LoadTabPaneDataTask::run() - calling watchListTableModule.loadPersistantWatchLists()\");\r\n watchListTableModule.loadPersistantWatchLists();\r\n this.cancel();\r\n }", "public void getFile(){\n\t\t\n\t\tParser parser = new Parser(f, this, taskPool);\n\t\tWorker w;\n\t\tfor (int i = 0; i < this.getTasks().getNumWorker(); i++){\n\t\t\t w = new Worker(position, this);\n\t\t\t w.setWorkerNum(i);\n\t\t\t workers.add(w);\n\t\t\t} \n\t\t\n\t\tworkPanel = new WorkPanel(tasks, this, workers);\n\t\tworkPanel.setBounds(0, 0, 600, 600);\n\t\tThread twp = new Thread(workPanel);\n\t\ttwp.start();\n\n\t\tmainPanel.add(workPanel);\n\t\t\n\t\t\tfor (int k = 0; k < workers.size(); k++){\n\t\t\t\tworkers.get(k).start();\n\t\t\t}\n\n\t}", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "public void Wait(){\r\n\t\ttry { worker.join(); }\r\n\t\tcatch (InterruptedException e) { e.printStackTrace(); }\r\n\t}", "public void start()\n {\n FileVector = FileHandler.getFileList( harvesterDirName , filterArray, false );\n iter = FileVector.iterator();\n }", "@Override\n\tpublic void run(){\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tString data = input.readUTF();\n\t\t\t\tStringTokenizer st = new StringTokenizer(data);\n\t\t\t\tString cmd = st.nextToken();\n\t\t\t\tswitch(cmd){\n\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Receive a File Sharing request\n\t\t\t\t\t */\n\t\t\t\t\tcase \"cmd_receiverequest_file\": // format: ([cmd_receiverequest_file] [from] [filename] [size]) \n\t\t\t\t\t\tgetReceiveFileRequest(st);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tJOptionPane.showMessageDialog(main, \"Unknown Command '\"+ cmd +\"' in MainThread\", \"Unknown\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(main, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tkeepGoing = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"MainThread was closed.!\");\n\t}", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "public void run() \r\n\t\t{\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tsourcedata.play();\r\n\t\t\t\t//sourcedata.load();\r\n\t\t\t}\r\n\t\t\tcatch ( Exception e )\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}//end catch\r\n\t\t}", "public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}", "@Override\r\n public void run() {\n long time1 = System.currentTimeMillis();\r\n long time2 = 0;\r\n while (true) {\r\n if (BaseApplication.getInstance().isShelfDataLoadOver) {\r\n time2 = System.currentTimeMillis();\r\n break;\r\n }\r\n }\r\n long timeDis = time2 - time1;\r\n if (timeDis < 3500) {\r\n try {\r\n Thread.sleep(3500 - timeDis);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n LauncherActivity.this.runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n startBookMain();\r\n }\r\n });\r\n\r\n }", "public void loadFirstData() throws Exception {\n\t}", "public void run() {\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\tnewdata = false;\n\t\t\t\tFile folder = new File(storagePath);\n\t\t\t\tif (!folder.exists())\n\t\t\t\t\tfolder.mkdirs();\n\t\t\t\t// System.out.println(\"SERVER IS:\" + server);\n\t\t\t\t// System.out.println(\"PORT IS:\" + port);\n\t\t\t\tconnection = new Socket(server, port);\n\t\t\t\tconnection.setSoTimeout(180000);\n\t\t\t\tois = new ObjectInputStream(connection.getInputStream());\n\t\t\t\toos = new ObjectOutputStream(connection.getOutputStream());\n\t\t\t\tboolean result = namespace();\n\t\t\t\t// System.out.println(\"NAMESPACE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = update();\n\t\t\t\t// System.out.println(\"UPDATE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = pull();\n\t\t\t\t// System.out.println(\"PULL RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tif (!newdata)\n\t\t\t\t\t\tdh.changeLockStatus(\"PENDING\", \"LOCKED\");\n\t\t\t\t\tresult = push();\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"PUSH RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tend();\n\t\t\t\t}\n\t\t\t\tconnection.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tint x = 0;\n\t\t\t\twhile (x < 5) {\n\t\t\t\t\t// System.out.println(\"THREAD IS SLEEPING NOW!!! \"\n\t\t\t\t\t// + System.currentTimeMillis() + \" \" + x);\n\t\t\t\t\tsleep(60000);\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"EXITING THREAD NOW!!!\");\n\t}", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}" ]
[ "0.6904765", "0.6773284", "0.6628799", "0.65818167", "0.65685683", "0.64218646", "0.63422376", "0.6173088", "0.6144472", "0.6019637", "0.60014015", "0.59583646", "0.591419", "0.5913239", "0.58711845", "0.5837111", "0.57980275", "0.5779093", "0.5768992", "0.57562774", "0.5722583", "0.57082516", "0.5668337", "0.56406647", "0.5627117", "0.56094646", "0.56043464", "0.56028205", "0.5600323", "0.555656", "0.5526661", "0.5520529", "0.5520431", "0.5487568", "0.54775584", "0.5476342", "0.54762596", "0.5475709", "0.5441652", "0.5427575", "0.5423665", "0.5416977", "0.53995895", "0.5397079", "0.53918505", "0.53703296", "0.5368275", "0.53641766", "0.535653", "0.534997", "0.53470266", "0.5326787", "0.5316897", "0.5315513", "0.53045106", "0.5301711", "0.52944034", "0.529389", "0.5282098", "0.527987", "0.5277108", "0.5263132", "0.5260727", "0.5258066", "0.52547824", "0.52535075", "0.52410585", "0.522936", "0.5224256", "0.5222489", "0.521853", "0.5217918", "0.52145207", "0.52109647", "0.5210158", "0.5207799", "0.52072257", "0.52030975", "0.5201228", "0.5197974", "0.5188628", "0.51772976", "0.51680785", "0.51655185", "0.5159372", "0.5158302", "0.5156245", "0.51543677", "0.5151524", "0.5146084", "0.5132926", "0.5125896", "0.5121622", "0.51149803", "0.5114103", "0.5103151", "0.5099273", "0.5098211", "0.5091478", "0.5090215" ]
0.692143
0
Signal that the file data is available, any threads using the waitForData() method will return so that the threads can access the file data.
public final synchronized void signalDataAvailable() { // Notify any waiting threads that the file data ia available notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForData() {\n waitForData(1);\n }", "public final void waitForData(long tmo) {\n\n\t\t//\tCheck if the file data has been loaded, if not then wait\n\t\t\n\t\tif ( isDataAvailable() == false) {\n\t\t\tsynchronized ( this) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t//\tWait for file data\n\t\t\t\t\t\n\t\t\t\t\twait(tmo);\n\t\t\t\t}\n\t\t\t\tcatch ( InterruptedException ex) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void waitToRead();", "public void waitForData(int minNumBytes) {\n try {\n\n while (available() < minNumBytes) {\n Thread.sleep(500);\n }\n }\n catch (InterruptedException e) {\n System.out.println(\"#### Thread interrupted -- could be big trouble\");\n }\n catch(Exception e){}\n }", "@Override\n public void doDataReceived(ResourceDataMessage dataMessage) {\n if(outputStream == null) return;\n if(startTime == 0) startTime = System.nanoTime();\n if (this.getTunnel() == null)\n this.setTunnel(dataMessage.getNetworkMessage().getTunnel());\n\n EventManager.callEvent(new ResourceTransferDataReceivedEvent(this, dataMessage));\n\n try {\n if (dataMessage.getResourceData().length != 0) {\n //Saving received chunks\n byte[] chunk = dataMessage.getResourceData();\n written += chunk.length;\n double speedInMBps = NANOS_PER_SECOND / BYTES_PER_MIB * written / (System.nanoTime() - startTime + 1);\n System.out.println();\n logger.info(\"Receiving file: {} | {}% ({}MB/s)\", this.getResource().attributes.get(1), ((float) written / (float) fileLength) * 100f, speedInMBps);\n\n //add to 4mb buffer\n System.arraycopy(chunk, 0, buffer, saved, chunk.length);\n saved += chunk.length;\n if (buffer.length - saved < BUFFER_SIZE || written >= fileLength) {\n //save and clear buffer\n outputStream.write(buffer, 0, saved);\n saved = 0;\n }\n\n\n if (written >= fileLength) {\n this.close();\n }\n } else {\n //Empty chunk, ending the transfer and closing the file.\n logger.info(\"Empty chunk received for: {}, ending the transfer...\", this.getResource().attributes.get(1));\n\n //File fully received.\n this.close();\n }\n } catch (Exception e) {\n callError(e);\n }\n }", "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "@Override\n\tpublic void fileAvailable(int arg0, FDFile arg1) {\n\t\t\n\t}", "@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }", "void waitToWrite();", "@Override\n public void run() {\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n System.out.println(Thread.currentThread().getName());\n AddDataFromFile();\n Thread.yield();\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n\n }", "public void waitForNewFiles() throws IOException {\n \n WatchService watcher = FileSystems.getDefault().newWatchService();\n Path dir = Paths.get(DATA_DIRECTORY);\n \n dir.register(watcher, ENTRY_CREATE);\n \n for (; ; ) {\n \n // wait for key to be signaled\n WatchKey key;\n try {\n key = watcher.take();\n } catch (InterruptedException x) {\n return;\n }\n \n for (WatchEvent<?> event : key.pollEvents()) {\n WatchEvent.Kind<?> kind = event.kind();\n \n \n if (kind == OVERFLOW) {\n continue;\n }\n \n \n WatchEvent<Path> ev = (WatchEvent<Path>) event;\n Path filename = ev.context();\n \n /* Verify that the new file is a text file.*/\n try {\n \n Path child = dir.resolve(filename);\n if (!Files.probeContentType(child).equals(\"text/plain\")) {\n System.err.format(\"New file '%s'\" +\n \" is not a plain text file.%n\", filename);\n continue;\n }\n \n \n } catch (IOException x) {\n System.err.println(x);\n continue;\n }\n \n \n /* Verify file name */\n if (!filename.toString().startsWith(\"posture_\") || !filename.toString().endsWith(\".txt\")) {\n continue;\n }\n \n \n try {\n processNewFile(DATA_DIRECTORY + filename.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }\n \n /* reset the key*/\n boolean valid = key.reset();\n if (!valid) {\n break;\n }\n }\n }", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "public void run(){\n\t\tFileFeeder fileFeeder = new FileFeeder(mySQLConnection,logWindow, fileIssueList, true);\n\t\tThread feederThread = new Thread(fileFeeder);\n\t\tfeederThread.start();\n\t\twhile (moreFilesComing || !fileList.isEmpty()){ //if more data still to process or more data coming\n\t\t\tDataFile dataFile;\n\t\t\tif ((dataFile = fileList.poll()) != null){ //something to actually write\n\t\t\t\tsynchronized(fileList){\n\t\t\t\t\tfileList.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlogWindow.println(\"Processing data from file: \"+dataFile.fileName+\"...\");\n\t\t\t\t\n\t\t\t\tBufferedReader inputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputStream = new BufferedReader(new FileReader(dataFile.file));\n\t\n\t\t\t\t\tString fileDateFormat = getFileInfo(dataFile,inputStream);\n\t\t\t\t\t\n\t\t\t\t\tif (dataFile.frequency!=0 && !dataFile.meterSerial.equals(\"\")){ //if got valid info\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tString fileExistsSQL = \"SELECT * FROM files WHERE site_id = \"+dataFile.siteID+\" AND source_id = \"+dataFile.sourceID+\" AND file_name = '\"+dataFile.fileName+\"' AND meter_sn = '\"+dataFile.meterSerial+\"' AND frequency = \"+dataFile.frequency;\n\t\t\t\t\t\t\tResultSet fileExistsQuery = dbConn.createStatement().executeQuery(fileExistsSQL);\n\t\t\t\t\t\t\tif (fileExistsQuery.next()==false){ //if no files with same site,source,filename,meterserial and frequency exist\n\n\t\t\t\t\t\t\t\tgetValidData(dataFile,fileDateFormat,inputStream);\n\n\t\t\t\t\t\t\t\tif (dataFile.dataList.size()>0){\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Processing of data complete.\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t/*try{\n\t\t\t\t\t\t\t\t\t\tString fetchRangeLimitsSQL = \"SELECT min,max FROM ranges WHERE source_id = \"+dataFile.sourceID+\" AND site_id = \"+dataFile.siteID;\n\t\t\t\t\t\t\t\t\t\tResultSet fetchRangeLimitsRS = dbConn.createStatement().executeQuery(fetchRangeLimitsSQL);\n\n\t\t\t\t\t\t\t\t\t\tif (fetchRangeLimitsRS.next()){\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = fetchRangeLimitsRS.getDouble(\"min\");\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = fetchRangeLimitsRS.getDouble(\"max\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"No range limits found for \"+dataFile.sourceID+\" or site \"+dataFile.siteID+\". Adding defaults now...\");\t\n\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = Source.getRangeMin(dataFile.sourceType,dataFile.measurementType);\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = Source.getRangeMax(dataFile.sourceType,dataFile.measurementType,dataFile.frequency);\n\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\tString setRangeLimitsSQL = \"INSERT INTO ranges (site_id,source_id,min,max) VALUES(\"+dataFile.siteID+\",\"+dataFile.sourceID+\",\"+dataFile.rangeMin+\",\"+dataFile.rangeMax+\")\";\n\t\t\t\t\t\t\t\t\t\t\t\tdbConn.createStatement().executeUpdate(setRangeLimitsSQL);\n\t\t\t\t\t\t\t\t\t\t\t}catch(SQLException sE){ //NON FATAL\n\t\t\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"Warning: could not write range limits to database for file \"+dataFile.fileName+\".\");\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"GMT+10\"));\n\t\t\t\t\t\t\t\t\t\tdataFile.startDate = dateFormatter.format(dataFile.dataList.get(0).dateTime);\n\t\t\t\t\t\t\t\t\t\tdataFile.endDate = dateFormatter.format(dataFile.dataList.get(dataFile.dataList.size()-1).dateTime);*/\n\n\t\t\t\t\t\t\t\t\t\tfileFeeder.addFile(dataFile); //Send file to feeder\n\n\t\t\t\t\t\t\t\t\t/*} catch (SQLException sE){\n\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\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\telse{\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". No Data found in file.\");\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\telse{\n\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". This file already exists for source \"+dataFile.sourceID+\" at site \"+dataFile.siteID+\".\");\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch(SQLException sE){\n\t\t\t\t\t\t\t//TODO need error here\n\t\t\t\t\t\t\tsE.printStackTrace();\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\tlogWindow.println(dataFile.frequency+\" \"+dataFile.meterSerial);\n\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". Could not determine essential file information.\");\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t} catch (IOException err){\n\t\t\t\t\tdataFile.dataList.clear();\n\t\t\t\t\tlogWindow.println(\"Unable to read from file: \"+dataFile.fileName+\"\\r\\nNo data will be written from this file.\");\n\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\n\t\t\t\t} finally {\n\t\t\t\t\tif (inputStream != null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinputStream.close();\n\t\t\t\t\t\t} catch (IOException err) {\n\t\t\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\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\ttry{\n\t\t\t\tsynchronized(fileList){ //waiter\n\t\t\t\t\twhile (moreFilesComing && fileList.isEmpty()){\n\t\t\t\t\t\tfileList.notify(); //notify adder just in case things got stuck\n\t\t\t\t\t\tfileList.wait(); //wait for a file to be added to file List.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsynchronized(fileFeeder.fileList){\n\t\t\tfileFeeder.moreFilesComing = false;\n\t\t\tfileFeeder.fileList.notify();\n\t\t}\n\t\ttry {\n\t\t\tfeederThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Date endTime = new Date();\n\t\t//logWindow.println(\"Finished sending file(s) to writer for source: \"+sourceID);\n\t\t//logWindow.println(\"Time taken: \"+getTimeString(endTime.getTime()-startTime.getTime()));\n\t}", "private void notifyOnBinaryReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onBinaryReceived(data);\n }\n }\n }", "public boolean isDataAvailable()\r\n {\r\n return true;\r\n }", "public final boolean isDataAvailable() {\n\t\tif ( hasStatus() >= FileSegmentInfo.Available &&\n\t\t\t\t hasStatus() < FileSegmentInfo.Error)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@DISPID(-2147412071)\n @PropGet\n java.lang.Object ondataavailable();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\n\t\t\t\t\tv.read(file);\n\t\t\t\t}\n\t\t\t}", "public boolean fileIsReady()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(notFound)\n\t\t\t{\n\t\t\t\tisReady = false;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tisReady = reader.ready();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn isReady;\n\t}", "public boolean isDataAvailable(){return true;}", "@Override\n\tpublic void run() {\n\t\twhile(run)\n\t\t{\n\t\t\tSystem.out.println(\"status : \" + this.filesize + \" Byte\");\n\t\t\t\n\t\t\ttry{\n\t\t\t\tThread.sleep(this.wait);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void readWait()\n {\n try{\n waitLock.lock();\n while(readSector != -1){\n \t readDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "public void completeData();", "@Override\n public void run() {\n\n\n try {\n WatchService watchService = FileSystems.getDefault().newWatchService();\n Path path = Paths.get(INPUT_FILES_DIRECTORY);\n\n path.register( watchService, StandardWatchEventKinds.ENTRY_CREATE); //just on create or add no modify?\n\n WatchKey key;\n while ((key = watchService.take()) != null) {\n for (WatchEvent<?> event : key.pollEvents()) {\n\n String fileName = event.context().toString();\n notifyController.processDetectedFile(fileName);\n\n }\n key.reset();\n }\n\n } catch (Exception e) {\n //Logger.getGlobal().setUseParentHandlers(false);\n //Logger.getGlobal().log(Level.SEVERE, e.toString(), e);\n\n }\n }", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "private void waitConfigData() {\n\t\tstartListening();\n\t\twhile (!configDataSet) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t}", "public void restituerChariot() throws InterruptedException {\n\t\tfileDeChariot.stocker();\n\t}", "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "public void signalFinished() throws IOException {\n\t\t// signal the file is done\n\t\tbyte[] data = new byte[PACKET_SIZE];\n\t\tdata[0] = (byte) this.sequence; // set the sequence number\n\t\tdata[1] = (byte) END_BYTES; // send number of bytes read\n\t\tDatagramPacket dp = new DatagramPacket(data, data.length, this.ia, receiverPort);\n\t\tthis.logger.debug(\"Signaling the file is done transferring\");\n\t\ttry {\n\t\t\tthis.socket.send(dp);\n\t\t\tthis.socket.receive(this.in_packet);\n\t\t\tif (!this.in_packet.getAddress().equals(this.ia)) {\n\t\t\t\tthis.logger.debug(\"Not from the send address\");\n\t\t\t\tthis.signalFinished();\n\t\t\t} else {\n\t\t\t\tif (this.in_packet.getData()[0] == this.sequence) {\n\t\t\t\t\tthis.logger.debug(\"Package was ack\");\n\t\t\t\t\tthis.sequence = (this.sequence + 1) % 2; // update the sequence number\n\t\t\t\t} else {\n\t\t\t\t\tthis.logger.debug(\"Acknowledgement for wrong package\");\n\t\t\t\t\tthis.signalFinished();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(SocketTimeoutException e) {\n\t\t\tthis.logger.debug(\"Timeout occurred so resending packet\");\n\t\t\tthis.signalFinished();\n\t\t}\n\t\tthis.logger.debug(\"Done sending file\");\n\t}", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "public void receiveData() throws IOException;", "public void OnFileComplete();", "public static void checkDataStatus() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tif (DataHandler.currentDataFileName == null)\r\n\t\t\tDialogConfigureYear.noDatabaseMessage();\r\n\t}", "public void receiveData(){\n try {\n // setting up input stream and output stream for the data being sent\n fromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n fileCount++;\n outputFile = new FileOutputStream(\"java_20/server/receivedFiles/receivedFile\"+fileCount+\".txt\");\n char[] receivedData = new char[2048];\n String section = null;\n\n //read first chuck of data and start timer\n int dataRead = fromClient.read(receivedData,0,2048);\n startTimer();\n\n //Read the rest of the files worth of data\n while ( dataRead != -1){\n section = new String(receivedData, 0, dataRead);\n outputFile.write(section.getBytes());\n\n dataRead = fromClient.read(receivedData, 0, 2048);\n }\n\n //stop timers\n endTimer();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "private void recieveData() throws IOException, InterruptedException {\n String senderIP= JOptionPane.showInputDialog(WED_ZERO.lang.getInstruct().get(1)[17]);\n if(senderIP==null) {\n ERROR.ERROR_359(Launch.frame);\n return;\n }\n JOptionPane.showMessageDialog(Launch.frame, WED_ZERO.lang.getInstruct().get(1)[18]);\n Networking net=new Networking(true);\n net.setIPAddress(senderIP);\n String to=net.initClient();\n int res = JOptionPane.showConfirmDialog(null, WED_ZERO.lang.getInstruct().get(1)[19]+\" \"\n +to+\".\", WED_ZERO.lang.getInstruct().get(1)[12],\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n if(res==JOptionPane.NO_OPTION||res==JOptionPane.CANCEL_OPTION) {\n return;\n }\n Map<Integer, ArrayList<String>> data=new HashMap<Integer, ArrayList<String>>();\n ArrayList<String> folderName=new ArrayList();\n net.transferData_RECIEVE(folderName, data);\n this.processNewData(data, folderName);\n \n }", "private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }", "public void doLoadInThread() {\n selectFiles(fileChooser.getSelectedFiles(),\n fileChooser.getCurrentDirectory());\n }", "@Override\n\tpublic void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tThread newThreadSocket = new Thread(new newThreadWaitingForFile(mySocket.accept()));\n\t\t\t\tnewThreadSocket.start();\n\t\t\t} catch (IOException 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\n\t}", "public void start()\n {\n FileVector = FileHandler.getFileList( harvesterDirName , filterArray, false );\n iter = FileVector.iterator();\n }", "Future<File> processDataFile(File dataFile);", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "public boolean readData() {\r\n \t\tif (null == dataFile)\r\n \t\t\treturn false;\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Reading Data...\");\r\n \t\t}\r\n \t\tgncDataHandler = new GNCDataHandler(this, dataFile, gzipFile);\r\n \t\treturn true;\r\n \t}", "@Override\n\t\t\t\tpublic void run() \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"reading..\" +next.getFileName());\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t//ts1.finalWrite(next.getFileName(),(int)file.length());\n\t\t\t\t\t\t\tInputStream in = new FileInputStream(readFile);\n\t\t\t\t\t\t\tint i;\n\t\t\t\t\t\t\tint fileNameLength =readFile.length();\n\t\t\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\t\t\tlong total = (2+fileNameLength+fileLength);\n\t\t\t\t\t\t\t//System.out.println(\"toal length\" +total);\n\t\t\t\t\t\t\tqu.put((byte)total);\n\t\t\t\t\t\t\tqu.put((byte)readFile.length()); // file name length\n\t\t\t\t\t\t\tqu.put((byte)file.length()); //file content length\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int j=0;j<readFile.length();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)readFile.charAt(j)); //writing file Name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhile((i=in.read())!=-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)i);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\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\tcatch (InterruptedException e) \n\t\t\t\t\t{\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\t\n\t\t\t\t}", "public void sendFile() throws Exception {\n\t\tthis.logger.info(\"Sender: sending file\");\n\t\tlong senderStartTime = System.nanoTime();\n\t\tboolean done = false;\n\t\tDatagramPacket dp;\n\t\twhile (!done) {\n\t\t\twhile (!this.pw.windowFull() && (dp = this.readyPacket()) != null) {\n\t\t\t\tthis.pw.appendPacket(this.packetNumber, dp); // add the packet to the window\n\t\t\t\tthis.logger.debug(\"Adding packet: \" + this.packetNumber);\n\t\t\t\tthis.packetNumber = (this.packetNumber + 1) % 128;\n\t\t\t}\n\t\t\tthis.pw.transmitWindow(this.socket);\n\t\t\tthis.lastSent = System.nanoTime();\n\t\t\tthis.receivePacket();\n\t\t\tdone = this.pw.doneYet(); // all packages have been acknowledged\n\t\t\tthis.logger.debug(\"Done yet: \" + done + \" \" + this.doneReading);\n\t\t\tif (done && !this.doneReading) {\n\t\t\t\tdone = this.doneReading; // still need to read some packets\n\t\t\t}\n\t\t}\n\t\tthis.signalFinished(); // signal done sending file\n\t\tlong senderEndTime = System.nanoTime();\n\t\tdouble seconds = (senderEndTime - senderStartTime) / NS_TO_S;\n\t\tthis.logger.info(\"Sender: file sending complete\");\n\t\tthis.logger.info(String.format(\"Total time to send file: %.3f seconds\", seconds));\n\t\tthis.logger.info(\"Total file size: \"+ this.totalBytesRead +\" bytes\");\n\t}", "private void startRead() {\n ExecutorService service = Executors.newFixedThreadPool(this.countReadThreads);\n while (!this.files.isEmpty() || !this.isWorkSearch()) {\n service.submit(this.threads.getReadThread());\n }\n service.shutdown();\n }", "public void logReadWait()\n {\n try{\n waitLock.lock();\n while(logReadSector != -1){\n \t logReadDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "public void waitUntilStarted() {\n mStarted.block();\n }", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket sock = ss.accept(); // 接受连接请求\n\t\t\t\tDataInputStream din = new DataInputStream(sock.getInputStream());\n\t\t\t\tbyte buffer[] = new byte[1024]; // 缓冲区\n\t\t\t\tint len = din.read(buffer);\n\t\t\t\tString filename = new String(buffer, 0, len); // 提取出想要获取的文件名\n\t\t\t\tSystem.out.println(\"Client01: received a file request from\" + sock.getInetAddress()+\":\"+sock.getPort()+\",filename:\"+ filename);\n\t\t\t\tDataOutputStream dout = new DataOutputStream(sock.getOutputStream());\n\t\t\t\tFileInputStream fis = new FileInputStream(new File(\"D:/networkExperiment/experiment04/host01/\" + filename));\n\t\t\t\tbyte b[] = new byte[1024];\n\t\t\t\tfis.read(b); // 从文件中将数据写入缓冲区\n\t\t\t\tdout.write(b); // 将缓冲区中的数据返回\n\t\t\t\tSystem.out.println(\"Client01: return file successfully!\");\n\t\t\t\tdout.close();\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t}", "public static void sync() {\n\t\tUiApplication.getUiApplication().addFileSystemJournalListener(fileListener);\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\t// Find files sdcard\n\t\t\t\tif (ToolsBB.fsMounted(FILESYSTEM.SDCARD)) {\n\t\t\t\t\tlogger.debug(\"Finding files on sdcard\");\n\t\t\t\t\tfindFiles(sdcardDir);\n\t\t\t\t}\n\t\t\t\t// Find files on eMMC\n\t\t\t\tif (ToolsBB.fsMounted(FILESYSTEM.STORE)) {\n\t\t\t\t\tlogger.debug(\"Finding files on eMMC\");\n\t\t\t\t\tfindFiles(storeDir);\n\t\t\t\t}\n\n\t\t\t\t// Upload files to server\n\t\t\t\tFileLog.upload();\n\n\t\t\t}\n\t\t}.start();\n\t}", "public void downloadStarted();", "@Override\n\tpublic void data() {\n\t\tSystem.out.println(\"Browsing using JIO...\");\n\t}", "public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}", "public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }", "@Override\n\tpublic void run( ) {\n\t\tConnect();\n\t\tSendFile( filePath );\n\t\tDisconnect();\n\t}", "public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "public void run() {\n WatchKey key;\n try {\n while ((key = watchService.take()) != null) {\n for (WatchEvent<?> event : key.pollEvents()) {\n try {\n // the context method returns a relative path, so need to get the parent path from the key\n Path parent = (Path) (key.watchable());\n Path child = parent.resolve((Path) event.context());\n //check that the child object is a file\n if (!Files.isDirectory(child)) {\n buffer.enqueue(child.toString());\n }\n } catch (InterruptedException e) {\n System.out.println(\"watcher interrupted\");\n }\n }\n key.reset();\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException 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}", "@Override\n public void run() {\n System.out.println(\"Starting producer\");\n File file = new File(dirPath + \"/studentVle.csv\");\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n String tempString = null;\n tempString = reader.readLine();\n while ((tempString = reader.readLine()) != null) {\n this.buffer.put(tempString);\n }\n reader.close();\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.startALG(true);\r\n } else {\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.writeIntoFiles.setVisible(true);\r\n Controller.this.isFileWriteInUse = true;\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(true, true, false);\r\n }// run()\r\n });// Thread\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n this.isFileOutStarted = false;\r\n }\r\n }", "public void run() {\n /* lookup file's lastModified date */\n long lastModified = this.monitoredFile.lastModified();\n \n \n /* if the lastModified > prev lastModified date, notify listener */\n if (lastModified != this.lastModified) {\n log.debug(String.format(\"File last modified %d and known last \" +\n \t\t\"modified %d\", lastModified, this.lastModified));\n this.lastModified = lastModified;\n fireFileChangeEvent(this.listener, this.fileName);\n }\n }", "@Override\n\tpublic void run()\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\tif (f.lastModified() > lastModified)\n\t\t\t{\n\t\t\t\tprocessFile(false);\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(60000);\n\t\t\t}\n\t\t\tcatch (InterruptedException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}", "private void frameProcessed(){\n if(DEBUG) Log.d(TAG, \"Frame Processed\");\n synchronized (mWaitFrame) {\n mWaitFrame.notifyAll();\n }\n }", "@Override\n public void checkTaskStillAvailable(String path) {\n this.watcher\n .getRecoverableZooKeeper()\n .getZooKeeper()\n .getData(path, this.watcher, new GetDataAsyncCallback(),\n Long.valueOf(-1) /* retry count */);\n SplitLogCounters.tot_mgr_get_data_queued.incrementAndGet();\n }", "public void waitForReport() {\n CountDownLatch localLatch = crashReportDoneLatch;\n if (localLatch != null) {\n try {\n localLatch.await();\n } catch (InterruptedException e) {\n log.debug(\"Wait for report was interrupted!\", e);\n // Thread interrupted. Just exit the function\n }\n }\n }", "public synchronized void waitForReceived() throws InterruptedException {\n\t\twhile (!_received) {\n\t\t\t// We allow the user to interrupt their own thread.\n\t\t\tthis.wait();\n\t\t}\n\t}", "public void run() {\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\tnewdata = false;\n\t\t\t\tFile folder = new File(storagePath);\n\t\t\t\tif (!folder.exists())\n\t\t\t\t\tfolder.mkdirs();\n\t\t\t\t// System.out.println(\"SERVER IS:\" + server);\n\t\t\t\t// System.out.println(\"PORT IS:\" + port);\n\t\t\t\tconnection = new Socket(server, port);\n\t\t\t\tconnection.setSoTimeout(180000);\n\t\t\t\tois = new ObjectInputStream(connection.getInputStream());\n\t\t\t\toos = new ObjectOutputStream(connection.getOutputStream());\n\t\t\t\tboolean result = namespace();\n\t\t\t\t// System.out.println(\"NAMESPACE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = update();\n\t\t\t\t// System.out.println(\"UPDATE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = pull();\n\t\t\t\t// System.out.println(\"PULL RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tif (!newdata)\n\t\t\t\t\t\tdh.changeLockStatus(\"PENDING\", \"LOCKED\");\n\t\t\t\t\tresult = push();\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"PUSH RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tend();\n\t\t\t\t}\n\t\t\t\tconnection.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tint x = 0;\n\t\t\t\twhile (x < 5) {\n\t\t\t\t\t// System.out.println(\"THREAD IS SLEEPING NOW!!! \"\n\t\t\t\t\t// + System.currentTimeMillis() + \" \" + x);\n\t\t\t\t\tsleep(60000);\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"EXITING THREAD NOW!!!\");\n\t}", "public void procLoadFromFileThread() {\n try {\n\n do {\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n MemoryCacheEntry cacheEntry = _downloader.getMemCache().get(_cacheKey);\n\n if (cacheEntry!=null && cacheEntry.size()>0) {\n _cacheEntry = cacheEntry;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_SUCCESS);\n return;\n } else {\n _cacheEntry = null;\n }\n\n\n _isSuccess = false;\n\n _mutex.lock();\n if (_phoneAlbums!=null && _phoneAlbums.size()>0) {\n _isSuccess = true;\n } else {\n ImageManager.getPhoneAlbumInfo(SMDirector.getDirector().getActivity(), new ImageManager.OnImageLoadListener() {\n @Override\n public void onAlbumImageLoadComplete(ArrayList<PhoneAlbum> albums) {\n _isSuccess = true;\n _phoneAlbums = albums;\n// _cond.notify();\n synchronized (_this) {\n _this.notify();\n }\n }\n\n @Override\n public void onError() {\n synchronized (_this) {\n _this.notify();\n }\n// _cond.notify();\n }\n });\n\n synchronized (_this) {\n _this.wait();\n }\n\n// _cond.wait();\n }\n\n if (!_isSuccess || _phoneAlbums.size()==0) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n /*----------Check Thread Interrupt----------*/\n Thread.sleep(1); if (!_running) break;\n /*------------------------------------------*/\n\n Bitmap bmp = getPhotoImage(_requestPath);\n if (bmp==null) {\n Log.i(\"DT\", \"[[[[[ Failed to get Album list~\");\n _mutex.unlock();\n break;\n }\n\n _imageEntry = ImageCacheEntry.createEntry(bmp);\n _mutex.unlock();\n\n _downloader.handleState(this, ImageDownloader.State.DECODE_SUCCESS);\n _cacheEntry = null;\n return;\n } while (false);\n\n\n } catch (InterruptedException e) {\n\n }\n\n _cacheEntry = null;\n _downloader.handleState(this, ImageDownloader.State.DOWNLOAD_FAILED);\n }", "protected void synchronizeData() {\n\n needsSyncData(false);\n\n DeferredDocumentImpl ownerDocument =\n (DeferredDocumentImpl) this.ownerDocument();\n data = ownerDocument.getNodeValueString(fNodeIndex);", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }", "@Override\n\t\tpublic void run()\n\t\t{\n\t\t\twhile (!stopped)\n\t\t\t{\n\t\t\t\t/* Wait for key to be signaled */\n\t\t\t\tWatchKey key;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tkey = watcher.take();\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException x)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * We have a polled event, now we traverse it and receive all\n\t\t\t\t * the states from it\n\t\t\t\t */\n\t\t\t\tfor (WatchEvent<?> event : key.pollEvents())\n\t\t\t\t{\n\t\t\t\t\tWatchEvent.Kind<?> kind = event.kind();\n\n\t\t\t\t\tif (kind == StandardWatchEventKinds.OVERFLOW)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\t * The filename is the context of the event\n\t\t\t\t\t */\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tWatchEvent<Path> ev = (WatchEvent<Path>) event;\n\t\t\t\t\tPath file = ev.context();\n\n\t\t\t\t\tcopyImages(file.toFile());\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Reset the key -- this step is critical if you want to receive\n\t\t\t\t * further watch events. If the key is no longer valid, the\n\t\t\t\t * directory is inaccessible so exit the loop.\n\t\t\t\t */\n\t\t\t\tboolean valid = key.reset();\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\n\t\t\t\tif (!valid)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void dataArrived() {\n\t\tnewSkillGetHandler.sendEmptyMessage(0);\n\t\tprogressDialog.dismiss();\n\t}", "protected void work() {\n try {\n if(theFile!=null) { \n //construct filePath, fileSize\n int fileSize = theFile.getFileSize();\n if(fileSize==0) fileSize=1;\n String filePath = path+\"/\"+theFile.getFileName();\n if(log.isDebugEnabled()) log.debug(\"Uploading file: \"+filePath+\", filesize: \"+fileSize/1000+\"KB\");\n\t\t\t\n //write out file\n InputStream stream = theFile.getInputStream();\n OutputStream bos = new FileOutputStream(filePath);\n int bytesRead = 0;\n byte[] buffer = new byte[Constants.FILEUPLOAD_BUFFER];\n while(isRunning() && ((bytesRead = stream.read(buffer, 0, Constants.FILEUPLOAD_BUFFER)) != -1)) {\n bos.write(buffer, 0, bytesRead);\n sum+=bytesRead;\n setPercent(sum/fileSize);\n }\n bos.close();\n stream.close();\n }\n } catch(Exception ex) {\n setRunning(false);\n log.error(\"Error while uploading: \"+ex.getMessage());\n ex.printStackTrace();\n }\n }", "public void start() {\n\t\tif (path != null) {\n\t\t\tfileNameChain = new ByteArrayOutputStream();\n\t\t\tfileAsynctask doing = new fileAsynctask();\n\t\t\tdoing.execute(getPath());\n\t\t}\n\t}", "public void downloadData() {\n\t\tint start = millis();\n\t\tdthread = new DaysimDownloadThread();\n\t\tdthread.start();\n\t\tdataready = false;\n\t\twhile(!dataready) {\n\t\t\tif((millis() - start)/175 < 99) {\n\t\t\t\tLightMaskClient.setMainText(\"\\n\\n\" + \"Downloading: \" + (millis() - start)/175 + \"% completed\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLightMaskClient.setMainText(\"Downloading: \" + 99 + \"% completed\");\n\t\t\t}\n\t\t\tdelay(100);\n\t\t}\n\t\tdthread.quit();\n\t\tLightMaskClient.setMainText(\"\\n\\n\" + \"Downloading: 100% completed\");\n\t\tToolkit.getDefaultToolkit().beep();\n\t\tdelay(1000); \n\t\tLightMaskClient.setMainText(\"Please disconnect the Daysimeter\");\n\t\tLightMaskClient.dlComplete = true;\n\t\t//setup the download for processing\n\t\tfor(int i = 0; i < EEPROM.length; i++) {\n\t\t\tEEPROM[i] = bytefile1[i] & 0xFF;\n\t\t}\n\t \n\t\tfor(int i = 0; i < header.length; i++) {\n\t\t\theader[i] = bytefile2[i] & 0xFF;\n\t\t}\n\t\t\n\t\tasciiheader = MakeList(header);\n\t\tisnew = asciiheader[2].contains(\"daysimeter\");\n\t\tisUTC = asciiheader[1].contains(\"1.3\") || asciiheader[1].contains(\"1.4\")\n\t\t\n\t\torganizeEEPROM();\n\t\tprocessData();\n\t\tsavefile();\n\t}", "private void startRtDownload(final DataObject data){\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (streaming_rt) {\n\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdata.setValue();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(35);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}", "public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}", "@DISPID(-2147412071)\n @PropPut\n void ondataavailable(\n java.lang.Object rhs);", "public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void run() {\n try {\n //first send the file name to the receiver\n out.flush();\n out.writeUTF(fileName);\n out.flush();\n //sends the destination folder name\n out.writeUTF(destFolder);\n out.flush(); //flushes the buffer\n //array of bytes that holds the file bytes\n byte[] file = readFile(srcFilePath +\"/\"+fileName);\n System.out.println(\"Sending file: \"+fileName+\" to folder: \"+destFolder);\n //sends the file\n out.write(file,0,file.length);\n out.flush();\n if(notifDownloader) {\n NodeInterface nodeStub = (NodeInterface) Naming.lookup(\"/\"+clientSocket.getInetAddress().toString()+\"/Node\");\n nodeStub.fileDownloaded(fileName);\n }\n } catch (IOException e) {\n System.out.println(\"readline: \" + e.getMessage());\n } catch (NotBoundException e) {\n //e.printStackTrace();\n System.err.println(\"There was an error notifying the downloader \"+e.getMessage());\n } finally{\n try{\n //closes the socket\n clientSocket.close();\n }catch(IOException e){\n System.out.println(\"problem closing the socket: \"+e.getMessage());\n }\n }\n }", "@Override\n public void handle(NIOConnection conn, byte[] data) {\n this.data = data;\n countDownLatch.countDown();\n }", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "public void sendWaitingDatas()\n\t{\n\t\tProcessExecuterModule processExecuterModule = new ProcessExecuterModule();\n\t\t\n\t\tString sendResultByEmail = (settings.getBoolean(\"sendResultByEmail\", false)) ? \"0\" : \"1\";\n\t\t\n\t\tint numberOfWaitingDatas = settings.getInt(\"numberOfWaitingDatas\", 0);\n\t\t\n\t\twhile (numberOfWaitingDatas > 0)\n\t\t{\n\t\t\tprocessExecuterModule.runSendTestData(MainActivity.this,settings.getString(\"fileTitle\"+numberOfWaitingDatas, \"\"),\n\t\t\t\t\tsettings.getString(\"testData\"+numberOfWaitingDatas, \"\"),sendResultByEmail,\n\t\t\t\t\tsettings.getString(\"fileTitle2\"+numberOfWaitingDatas, \"\"), settings.getString(\"xmlResults\"+numberOfWaitingDatas, \"\"));\n\t\t\t\n\t\t\tnumberOfWaitingDatas--; \n\t\t}\n\t\t\n\t\teditor.putInt(\"numberOfWaitingDatas\", 0);\n\t\teditor.putBoolean(\"dataToSend\", false);\n\t\t\n\t\teditor.commit(); \n\t}", "private void asynload() {\n\t\tfileManager=FileManager.getFileManager();//获取fileManager\n\t\tfileManager.setSearchListener(searchFileListener);//在主线程设置监听\n\t\t//启动工作线程进行文件搜索\n\t\tthread=new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n//相当于将需要在工作线程获得的数据直接封装成方法\n\t\t\t\tfileManager.searchCardFile();//将数据存储到文件集合和文件大小里\n\t\t\t\t\t\t\t\t\n//\t\t\t\trunOnUiThread(new Runnable() {\n//\t\t\t\t\t\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\t//测试将所有文件大小显示\n//\t\t\t\t\t\ttv_all_size.setText(CommonUtil.getFileSize(fileManager.getAnyFileSize()));\n//\t\t\t\t\t\ttv_txt_size.setText(CommonUtil.getFileSize(fileManager.getTxtFileSize()));\n//\t\t\t\t\t\ttv_apk_size.setText(CommonUtil.getFileSize(fileManager.getApkFileSize()));\n//\t\t\t\t\t\ttv_audio_size.setText(CommonUtil.getFileSize(fileManager.getAudioFileSize()));\n//\t\t\t\t\t\ttv_image_size.setText(CommonUtil.getFileSize(fileManager.getImageFileSize()));\n//\t\t\t\t\t\ttv_video_size.setText(CommonUtil.getFileSize(fileManager.getVideoFileSize()));\n//\t\t\t\t\t\ttv_zip_size.setText(CommonUtil.getFileSize(fileManager.getZipFileSize()));\n//\t\t\t\t\t}\n//\t\t\t\t});\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}", "public void run() {\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//View if there is some space f the buffer to produce data\n\t\t\t\tempty.acquire();\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//Semaphore for mutual exclusion, acquires the lock to into critical section\n\t\t\t\tmutex.acquire();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Produciendo un recurso (PRODUCTOR)\");\n\t\t\t\t//Produce data in the buffer\n\t\t\t\tbuffer.fill();\n\t\t\t\tSystem.out.println(\"Liberación (PRODUCTOR)\");\n\t\t\t\t\n\t\t\t\t// sleep the Consumidor to work in different time\n\t\t\t\tsleep((long) ((Math.random())%1000));\n\t\t\t\t\n\t\t\t\t//releases the lock\n\t\t\t\tmutex.release();\n\t\t\t\t\n\t\t\t\t//Releases a permit, increasing the number of available permits by one\n\t\t\t\tfull.release();\n\n\t\t\t\t\n\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}", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "public synchronized void finishReading() {\n readerNumber--;\n if (readerNumber == 0) {\n this.notifyAll(); // notify possible waiting writers \n }\n }", "void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }", "public synchronized void tellAt(){\n\t\tnotifyAll();\n\t}", "@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\tfor(String data:queueData) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run(){\n\t\twhile(keepGoing){\n\t\t\ttry {\n\t\t\t\tString data = input.readUTF();\n\t\t\t\tStringTokenizer st = new StringTokenizer(data);\n\t\t\t\tString cmd = st.nextToken();\n\t\t\t\tswitch(cmd){\n\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Receive a File Sharing request\n\t\t\t\t\t */\n\t\t\t\t\tcase \"cmd_receiverequest_file\": // format: ([cmd_receiverequest_file] [from] [filename] [size]) \n\t\t\t\t\t\tgetReceiveFileRequest(st);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tJOptionPane.showMessageDialog(main, \"Unknown Command '\"+ cmd +\"' in MainThread\", \"Unknown\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(main, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tkeepGoing = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"MainThread was closed.!\");\n\t}", "public void update(String filename, SensorData sensorData){\n //Adds the sensor data to the buffer. \n addToBuffer(filename, sensorData);\n \n //Uploads the data to the server if it's turned on. \n if (Server.getInstance().getServerIsOn())\n if(uploadData()){\n //If the upload was successful, clear the buffer.\n clearBuffer();\n }\n }" ]
[ "0.71657276", "0.7122881", "0.6220549", "0.6038972", "0.6034689", "0.57881767", "0.5767099", "0.5747624", "0.5742433", "0.5742233", "0.57411826", "0.57334876", "0.56951135", "0.5616635", "0.559393", "0.5579061", "0.55734766", "0.5474645", "0.54684573", "0.54139626", "0.5412882", "0.5375995", "0.53752404", "0.53719765", "0.5347952", "0.53308034", "0.53069955", "0.53007764", "0.5298664", "0.52895755", "0.52660376", "0.5262635", "0.5253842", "0.523685", "0.52286804", "0.5214119", "0.52135825", "0.5201977", "0.51872826", "0.5180506", "0.51735395", "0.51619124", "0.51596177", "0.51577693", "0.5154755", "0.5134624", "0.51331437", "0.51077694", "0.50952184", "0.50872934", "0.50822353", "0.5078731", "0.50737953", "0.5066697", "0.5051402", "0.5047023", "0.5041335", "0.5036025", "0.4996405", "0.4996172", "0.49904317", "0.49809933", "0.49767184", "0.49606854", "0.49592912", "0.49509543", "0.49327254", "0.49303934", "0.49301425", "0.49230033", "0.49192405", "0.49172333", "0.49159336", "0.4913212", "0.49112782", "0.49007607", "0.49000907", "0.48980203", "0.48904914", "0.4890211", "0.4887509", "0.48798314", "0.48748195", "0.48723006", "0.48717594", "0.4863979", "0.48618057", "0.48570874", "0.48566407", "0.48534116", "0.48489815", "0.4847892", "0.4847658", "0.48472753", "0.48437437", "0.48427135", "0.48363566", "0.4832363", "0.48251185", "0.4823423" ]
0.86604404
0
Return the file segment details as a string
public String toString() { StringBuffer str = new StringBuffer(); str.append("["); str.append(getTemporaryFile()); str.append(":"); str.append(_statusStr[hasStatus()]); str.append(","); if ( isUpdated()) str.append(",Updated"); if ( isQueued()) str.append(",Queued"); str.append("]"); return str.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the string\n\n\t\treturn str.toString();\n\t}", "String getSegmentName();", "public String getSegment()\n {\n return m_strSegment;\n }", "public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t str.append(getOpenCount());\n\t str.append(\",Str=\");\n\t \n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(_fileStates[getStatus()]);\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.filePath.toString();\n\t}", "public String toString() {\n return \"segment : \" + this.point1.toString() + \"-\" +\n this.point2.toString();\n }", "public String toString()\n\t{\n\t\treturn myFilename;\n\t}", "public String toString() {\n\t StringBuffer str = new StringBuffer();\n\t \n\t str.append(\"[\");\n\t str.append(getPath());\n\t str.append(\",\");\n\t str.append(FileStatus.asString(getFileStatus()));\n\t str.append(\":Opn=\");\n\t \n\t str.append(super.getOpenCount());\t// Local open count only\n\t if ( getOpenCount() > 0) {\n\t\t str.append( \"(shr=0x\");\n\t\t str.append( Integer.toHexString( getSharedAccess()));\n\t\t str.append( \",pid=\");\n\t\t str.append( getProcessId());\n\t\t str.append( \",primary=\");\n\t\t str.append( getPrimaryOwner());\n\t\t str.append( \")\");\n\t }\n\n\t str.append(\",Fid=\");\n\t str.append(getFileId());\n\n\t str.append(\",Expire=\");\n\t str.append(getSecondsToExpire(System.currentTimeMillis()));\n\t\t\n\t str.append(\",Sts=\");\n\t str.append(getStatusAsString());\n\n\t str.append(\",Locks=\");\n\t str.append(numberOfLocks());\n\t\t\n\t if ( hasOpLock()) {\n\t\t str.append(\",OpLock=\");\n\t\t str.append(getOpLock());\n\t }\n\t\t\n\t // Near-cache details\n\t \n\t if ( getNearCacheTime() != 0L) {\n\t\t str.append(\" - Near at=\");\n\t\t str.append( System.currentTimeMillis() - getNearCacheTime());\n\t\t str.append(\"ms,\");\n\t\t \n\t\t if ( getNearCacheLastAccessTime() > 0L) {\n\t\t\t str.append(\"acc=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearCacheLastAccessTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t if ( getNearRemoteUpdateTime() > 0L) {\n\t\t\t str.append(\"upd=\");\n\t\t\t str.append( System.currentTimeMillis() - getNearRemoteUpdateTime());\n\t\t\t str.append(\"ms,\");\n\t\t }\n\t\t \n\t\t str.append(\"hits=\");\n\t\t str.append( getNearCacheHitCount());\n\t\t if ( isStateValid() == false)\n\t\t\t str.append(\",NotValid\");\n\t }\n\t \n\t str.append(\"]\");\n\t \n\t return str.toString();\n\t}", "public String toString(){\n String temp = drv.getAbsolutePath() + \"\\n\";\n temp += freeSpace + \" / \" + totalSpace + \"\\n\";\n temp += getPercentRem() +\"%\\n\";\n temp += \"Drive Setup: \" + isSetup + \"\\n\";\n for(String i: drv.list()){\n temp += i + \"\\n\";\n }\n return temp;\n }", "public String getStringFile(){\n return fileView(file);\n }", "public String getFormattedFileContents ();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFileHeaderInfo() != null)\n sb.append(\"FileHeaderInfo: \").append(getFileHeaderInfo()).append(\",\");\n if (getComments() != null)\n sb.append(\"Comments: \").append(getComments()).append(\",\");\n if (getQuoteEscapeCharacter() != null)\n sb.append(\"QuoteEscapeCharacter: \").append(getQuoteEscapeCharacter()).append(\",\");\n if (getRecordDelimiter() != null)\n sb.append(\"RecordDelimiter: \").append(getRecordDelimiter()).append(\",\");\n if (getFieldDelimiter() != null)\n sb.append(\"FieldDelimiter: \").append(getFieldDelimiter()).append(\",\");\n if (getQuoteCharacter() != null)\n sb.append(\"QuoteCharacter: \").append(getQuoteCharacter());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toLsString()\n {\n String sizeOrDeviceId = \"\";\n String name = this.file.getName();\n String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;\n\n switch (this.type)\n {\n case File:\n sizeOrDeviceId = String.valueOf(this.size);\n break;\n case CharacterDevice:\n case BlockDevice:\n sizeOrDeviceId = String.format(\"%3d,%4d\", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);\n break;\n case SymbolicLink:\n name = name + \" -> \" + (realPath == null ? \"(null)\" : new File(realPath).getName());\n break;\n }\n\n return String.format(\"%s %-8s %-8s %8s %s %s\",\n this.mode.getSymbols(),\n //this.hardLinkCount,\n RootTools.getUserName(this.userId),\n RootTools.getUserName(this.groupId),\n sizeOrDeviceId,\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(this.lastModified),\n name);\n }", "public String determineTaskDetailsFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String details = line.substring(indexOfFirstSquareBracket + 8); // from unnecessary info at the front of line.\n return details;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.f.getPath();\n\t}", "private String getSegmentValue(Element p_root)\n {\n StringBuffer result = new StringBuffer();\n\n Element seg = p_root.element(\"seg\");\n\n // TODO for all formats: strip the TMX 1.4 <hi> element.\n seg = removeHiElements(seg);\n\n if (m_tmxLevel == ImportUtil.TMX_LEVEL_1)\n {\n // Level 1: discard any embedded TMX tags.\n result.append(EditUtil.encodeXmlEntities(seg.getText()));\n }\n else if (m_tmxLevel == ImportUtil.TMX_LEVEL_TRADOS_RTF ||\n m_tmxLevel == ImportUtil.TMX_LEVEL_TRADOS_HTML)\n {\n // Trados TMX: converted to native GXML in analysis phase,\n // this is a no-op.\n result.append(EditUtil.encodeXmlEntities(seg.getText()));\n }\n else\n {\n // Level 2 and native: preserve embedded TMX tags.\n try\n {\n // First, ensure we have all G-TMX attributes (i, x, type)\n seg = validateSegment(p_root, seg);\n\n // Thu May 15 18:15:26 2003 CvdL\n // For now, strip out all sub segments.\n seg = removeSubElements(seg);\n\n result.append(ImportUtil.getInnerXml(seg));\n }\n catch (Throwable ex)\n {\n // On error, import as level 1.\n result.append(EditUtil.encodeXmlEntities(seg.getText()));\n }\n\n }\n\n return result.toString();\n }", "public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }", "public abstract String toStringForFileName();", "public String toTerseString()\n {\n return TextUtils.join(\" \", new String[] {\n this.file.getPath(),\n String.valueOf(this.size),\n String.valueOf(this.blockCount),\n Integer.toHexString(this.mode.getValue()),\n String.valueOf(this.userId),\n String.valueOf(this.groupId),\n Long.toHexString(this.deviceId),\n String.valueOf(this.inode),\n String.valueOf(this.hardLinkCount),\n Long.toHexString(this.deviceIdSpecial >> 8),\n Long.toHexString(this.deviceIdSpecial & 0xff),\n String.valueOf(this.lastAccessed.getTime() / 1000),\n String.valueOf(this.lastModified.getTime() / 1000),\n String.valueOf(this.lastChanged.getTime() / 1000),\n String.valueOf(this.blockSize)\n });\n }", "public String toString() {\r\n\t\treturn \"\\nFileID: \" + this.fileID + \" \\nChunkNumber: \" + this.chunkNumber + \"\\nDesired Degree: \" + this.desiredRepDegree + \"\\nActual Degree: \" + this.actualRepDegree + \"\\n\";\r\n\t}", "public String getInfoString();", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(\"Files: \\n\");\n\n\t\tfor( String file : files){\n\t\t\tbuffer.append(\"\t-\");\n\t\t\tbuffer.append(file);\n\t\t\tbuffer.append(\"\\n\");\n\t\t}\n\n\t\tthis.appendIntValueToBuffer(this.regions, \"Regions\", buffer);\n\t\tthis.appendIntValueToBuffer(this.lineAdded, \"LA\", buffer);\n\t\tthis.appendIntValueToBuffer(this.lineDeleted, \"LD\", buffer);\n\n\t\tbuffer.append(\"Functions calls: \\n\");\n\n\t\tfor(String key : this.functionCalls.keySet()) {\n\t\t\tthis.appendIntValueToBuffer(functionCalls.get(key), key, buffer);\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "private String getAFileFromSegment(Value segment, Repository repository)\n {\n \n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?fileName WHERE { <\" + segment + \"> <http://toif/contains> ?file . \"\n + \"?file <http://toif/type> \\\"toif:File\\\" .\" + \"?file <http://toif/name> ?fileName . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"fileName\");\n \n return name.stringValue();\n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return null;\n }", "public String getSegmentId() {\n return segmentId;\n }", "public String toString() {\n\t\treturn BlobUtil.string(buffer, offset, size);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn path.toString();\n\t}", "public String printFileConsultationDetail() {\n String consultationDetail = \"\";\n for (String symptom : symptoms) {\n consultationDetail += symptom + Constants.DETAILS_DELIMITER;\n }\n consultationDetail += Constants.SYMPTOM_DELIMITER;\n for (String diagnosis : diagnoses) {\n consultationDetail += diagnosis + Constants.DETAILS_DELIMITER;\n }\n consultationDetail += Constants.DIAGNOSIS_DELIMITER;\n for (String prescription : prescriptions) {\n consultationDetail += prescription + Constants.DETAILS_DELIMITER;\n }\n consultationDetail += Constants.PRESCRIPTION_DELIMITER;\n return consultationDetail;\n }", "private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}", "public String toString(int indent)\n\t{\n\t\tString sysOut = \"\";\n\t\t\n\t\tfor (int i=0;i<indent;i++)\n\t\t\tsysOut += \"\\t\";\n\t\t\n\t\tsysOut += \"\\nSegmentInformationTable:\";\n\t\t\n\t\tindent++;\n\t\t\n\t\tif(timeUnit != null) {\n\t\t\tsysOut += \"\\n\";\n\t\t\t\n\t\t\tfor (int i=0;i<indent;i++)\n\t\t\t\tsysOut += \"\\t\";\n\t\t\t\n\t\t\tif (timeUnitSet)\n\t\t\t\tsysOut += \"TimeUnit: \" + timeUnit;\n\t\t}\n\t\t\n\t\tif(segmentList != null) {\n\t\t\tsysOut += \"\\n\";\n\t\t\tfor (int i=0;i<indent;i++)\n\t\t\t\tsysOut += \"\\t\";\n\t\t\tsysOut += \"SegmentList: \" + segmentList;\n\t\t}\n\t\t\n\t\tif(segmentGroupList != null) {\n\t\t\tsysOut += \"\\n\";\n\t\t\tfor (int i=0;i<indent;i++)\n\t\t\t\tsysOut += \"\\t\";\n\t\t\tsysOut += \"SegmentGroupList: \" + segmentGroupList;\n\t\t}\n\t\t\n\t\treturn sysOut;\n\t}", "public String getRecordFile();", "int getSegment();", "public String toStringFile(){\n return null;\n }", "@Override\n public String toString() {\n return fileEmpty(); //when file is empty\n }", "public String toString() {\n StringBuffer buf = new StringBuffer(\" SourceFile: \\\"\");\n buf.append(sourceFileName);\n buf.append(\"\\\"\\n\");\n return buf.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "private String readSegment(boolean isLocalPart) {\n stringBuilder.setLength(0);\n\n // -- Test first character\n int ch = reader.peekChar();\n if (ch == Chars.EOF) return \"\";\n if (isLocalPart) {\n if (!isPNChars_U_N(ch)) return \"\";\n } else {\n if (!isPNCharsBase(ch)) return \"\";\n }\n // ch is not added to the buffer until ...\n // -- Do remainer\n stringBuilder.append((char) ch);\n reader.readChar();\n int chDot = 0;\n\n for (; ; ) {\n ch = reader.peekChar();\n if (isPNChars(ch)) {\n reader.readChar();\n // Was there also a DOT?\n if (chDot != 0) {\n stringBuilder.append((char) chDot);\n chDot = 0;\n }\n stringBuilder.append((char) ch);\n continue;\n }\n // Not isPNChars\n if (ch != Chars.CH_DOT) break;\n // DOT\n reader.readChar();\n chDot = ch;\n }\n // On exit, chDot may hold a character.\n\n if (chDot == Chars.CH_DOT)\n // Unread it.\n reader.pushbackChar(chDot);\n\n // stringBuilder.deleteCharAt(chDot)\n\n return stringBuilder.toString();\n }", "public java.lang.String getCurrentRouteSegment() {\n java.lang.Object ref = currentRouteSegment_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentRouteSegment_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPathInfo() {\n return pathInfo;\n }", "public String getFileNamingDetails();", "public String toString() {\n\t\treturn(_device + \":\" + _mount + \":\" + _type);\n\t}", "public String getSegmentAspect() {\n return getAspectShown( getSegment() );\n }", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "public String toString() {\n return new ToStringBuilder(this)\n .append(\"number\", this.number)\n .append(\"fileSets\", this.fileSets)\n .toString();\n }", "public String writeDetails ()\n {\n String memberData = \"\";\n memberData = memberData.concat(fname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(sname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(Float.toString(mark));\n return memberData;\n }", "public FileDesc getFileDesc();", "@Override\n public String toString() {\n final StringBuilder buffer = new StringBuilder();\n try {\n formatPath(buffer, path, 0, indices);\n } catch (IOException e) {\n throw new AssertionError(e); // Should never happen, since we are writting to a StringBuilder.\n }\n return buffer.toString();\n }", "public String getCodeSegment()\n {\n return codeSegment;\n }", "public String[] getInfoFile(){\n String [] values = new String[4];\n values[0]= _file.getName(); //nombre\n values[1]= cities.size()+\"\";//ciudades\n values[2]= paths.length+\"\";\n return values;\n }", "private void printDetails(FileDTO file) {\n\t\tif (file == null) {\n\t\t\tsafePrintln(\"The file could not be retrieved or does not exist!\");\n\t\t} else {\n\t\t\tsafePrintln(file.getName() + \"|\" + file.getPermission() + \"|\" + file.getSize().toString() + \" - \"\n\t\t\t\t\t+ file.getOwnerName());\n\t\t}\n\t}", "protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }", "public String toFileString() {\n return typeIcon() + \" \" + completionIcon() + \" \" + description;\n }", "String getInfo();", "public String toString()\n {\n return statName + \": \" + statValue + \"\\n\";\n }", "public int getSegmentFileSizeMB() {\n return _segmentFileSizeMB;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "public String toString() {\r\n return fileSystem.getCurrentDirectory().toString();\r\n }", "public String toString() {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t//for (GameInfo g : gamePaths)\r\n\t\t\tfor (int gI=0; gI<gamePaths.size(); gI++) {\r\n\t\t\t\tGameInfo g = (GameInfo)gamePaths.get(gI);\r\n\t\t\t\tsb.append(g.name + \"\\t\").append(g.fullName + \"\\t\").append(g.pathToIconFile + \" \\t\").append(g.numBytes + \"\\t\").append(g.mobileFormat + \"\\n\");\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t}", "public int getSegmentReference() {\n return segmentReference;\n }", "public Integer getSegment_id() {\n return segment_id;\n }", "public byte[] getInfoString() {\n return Arrays.copyOf(this.infoString, this.infoString.length);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFileSystemId() != null)\n sb.append(\"FileSystemId: \").append(getFileSystemId()).append(\",\");\n if (getFileSystemType() != null)\n sb.append(\"FileSystemType: \").append(getFileSystemType()).append(\",\");\n if (getVpcConfiguration() != null)\n sb.append(\"VpcConfiguration: \").append(getVpcConfiguration()).append(\",\");\n if (getSecretArn() != null)\n sb.append(\"SecretArn: \").append(getSecretArn()).append(\",\");\n if (getInclusionPatterns() != null)\n sb.append(\"InclusionPatterns: \").append(getInclusionPatterns()).append(\",\");\n if (getExclusionPatterns() != null)\n sb.append(\"ExclusionPatterns: \").append(getExclusionPatterns()).append(\",\");\n if (getFieldMappings() != null)\n sb.append(\"FieldMappings: \").append(getFieldMappings());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n public String toString() {\n return ArrayHelper.join(this.toArray(new Part[0]), \"/\");\n }", "public synchronized String toString() {\n\t\tString nl = System.lineSeparator();\n\t\t\n\t\t// get list of all peers for all files\n\t\tString files = \"\";\n\t\tfor(String filename : peerRecord.keySet()) {\n\t\t\tfiles += \"- \" + filename + \": \";\n\t\t\tfor(PeerConnection peer : peerRecord.get(filename)) {\n\t\t\t\tfiles += peer + \" \";\n\t\t\t}\n\t\t\tfiles += nl;\n\t\t\t\n\t\t}\n\t\treturn \"[TRACKER]\" + nl + files;\n\t}", "public String toString()\n\t{\n\t\treturn getArea() + \".\" + getLine() + \".\" + getDevice();\n\t}", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "String getSnapshotDiskFileName();", "public static void ConvertToString() {\n\t\t_asmFileStr = _asmFile.toString();\n\t\t_asmFileStr = _asmFileStr.substring(0, _asmFileStr.lastIndexOf('.'));\n\t}", "@Override\n public String toString() {\n final ToString ts = new ToString(this);\n\n ts.append(\"path\", getPath());\n\n return ts.toString();\n }", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public String toString (){\r\n\t\t\treturn \"[FZipFile]\"\r\n\t\t\t\t+ \"\\n name:\" + _filename\r\n\t\t\t\t+ \"\\n date:\" + _date\r\n\t\t\t\t+ \"\\n sizeCompressed:\" + _sizeCompressed\r\n\t\t\t\t+ \"\\n sizeUncompressed:\" + _sizeUncompressed\r\n\t\t\t\t+ \"\\n versionHost:\" + _versionHost\r\n\t\t\t\t+ \"\\n versionNumber:\" + _versionNumber\r\n\t\t\t\t+ \"\\n compressionMethod:\" + _compressionMethod\r\n\t\t\t\t+ \"\\n encrypted:\" + _encrypted\r\n\t\t\t\t+ \"\\n hasDataDescriptor:\" + _hasDataDescriptor\r\n\t\t\t\t+ \"\\n hasCompressedPatchedData:\" + _hasCompressedPatchedData\r\n\t\t\t\t+ \"\\n filenameEncoding:\" + _filenameEncoding\r\n\t\t\t\t+ \"\\n crc32:\" + _crc32.toString(16)\r\n\t\t\t\t+ \"\\n adler32:\" + _adler32.toString(16);\r\n\t\t}", "@DISPID(35)\r\n\t// = 0x23. The runtime will prefer the VTID if present\r\n\t@VTID(40)\r\n\tjava.lang.String fullPath();", "public byte[] getCaseDetailFile() {\n\t\treturn caseDetailFile;\n\t}", "@java.lang.Override\n public java.lang.String getCurrentRouteSegment() {\n java.lang.Object ref = currentRouteSegment_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentRouteSegment_ = s;\n return s;\n }\n }", "int getStartSegment();", "@Override public String toString()\n {\n return String.format( \"\\t\\t\\t[ type:'%s', name:'%s', md5:'%s', local:'%s'\\n\", f_type, f_name, f_md5, f_local );\n }", "public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(StringUtil2.padRight((stid.trim() + std2.trim()), 8));\n builder.append(\" \");\n builder.append(Format.i(stnm, 6));\n builder.append(\" \");\n builder.append(StringUtil2.padRight(sdesc, 32));\n builder.append(\" \");\n builder.append(StringUtil2.padLeft(stat.trim(), 2));\n builder.append(\" \");\n builder.append(StringUtil2.padLeft(coun.trim(), 2));\n builder.append(\" \");\n builder.append(Format.i(slat, 5));\n builder.append(\" \");\n builder.append(Format.i(slon, 6));\n builder.append(\" \");\n builder.append(Format.i(selv, 5));\n builder.append(\" \");\n builder.append(Format.i(spri, 2));\n builder.append(\" \");\n builder.append(StringUtil2.padLeft(swfo.trim(), 3));\n return builder.toString();\n }", "public abstract String getFileFormatName();", "java.lang.String getFileLoc();", "@DISPID(77)\r\n\t// = 0x4d. The runtime will prefer the VTID if present\r\n\t@VTID(75)\r\n\tjava.lang.String fullPath();", "public String toString() {\n\t\treturn getClass().getName() + \"[mode=\" + mode + \",size=\" + size\n\t\t\t + \",hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}", "public String toFile(){\n\t\tString personInfo = this.firstName + \" ; \" + this.lastName + \" ; \";\n\t\t\n\t\treturn personInfo;\n\t}", "public String fileView(RandomAccessFile file){\n StringBuilder out = new StringBuilder(\"\");\n try{\n file.seek(0);\n while(true){\n out.append(file.readInt() + \"\\n\");\n }\n }catch (IOException e){\n\n }\n return out.toString();\n }", "public com.google.protobuf.ByteString\n getCurrentRouteSegmentBytes() {\n java.lang.Object ref = currentRouteSegment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currentRouteSegment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAggregationType() != null)\n sb.append(\"AggregationType: \").append(getAggregationType()).append(\",\");\n if (getTargetFileSize() != null)\n sb.append(\"TargetFileSize: \").append(getTargetFileSize());\n sb.append(\"}\");\n return sb.toString();\n }", "private String extractNodeInfo(String path) {\n\t try {\n\t\t\tInputStream is = new FileInputStream(path);\n\t\t\tint len = is.available();\n\t\t\tbyte[] bytes = new byte[len];\n\t\t\tis.read(bytes);\n\t\t\treturn new String(bytes).trim();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n String str = \"Unknown file format\";\n //$$fb2002-11-01: fix for 4672864: AudioFileFormat.toString() throws unexpected NullPointerException\n if (getType() != null) {\n str = getType() + \" (.\" + getType().getExtension() + \") file\";\n }\n if (getByteLength() != AudioSystem.NOT_SPECIFIED) {\n str += \", byte length: \" + getByteLength();\n }\n str += \", data format: \" + getFormat();\n if (getFrameLength() != AudioSystem.NOT_SPECIFIED) {\n str += \", frame length: \" + getFrameLength();\n }\n return str;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s,%s,%s,%s\",path, title, shortDescription, fullDescription);\n\t}", "public String toString() {\n/* 127 */ StringBuilder sb = new StringBuilder(this.dictionary.getNameAsString(COSName.SUBTYPE));\n/* 128 */ sb.append('{');\n/* 129 */ PDDeviceNProcess process = getProcess();\n/* 130 */ if (process != null) {\n/* */ \n/* 132 */ sb.append(getProcess());\n/* 133 */ sb.append(' ');\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 139 */ Map<String, PDSeparation> colorants = getColorants();\n/* 140 */ sb.append(\"Colorants{\");\n/* 141 */ for (Map.Entry<String, PDSeparation> col : colorants.entrySet()) {\n/* */ \n/* 143 */ sb.append('\"');\n/* 144 */ sb.append(col.getKey());\n/* 145 */ sb.append(\"\\\": \");\n/* 146 */ sb.append(col.getValue());\n/* 147 */ sb.append(' ');\n/* */ } \n/* 149 */ sb.append('}');\n/* */ }\n/* 151 */ catch (IOException e) {\n/* */ \n/* 153 */ sb.append(\"ERROR\");\n/* */ } \n/* 155 */ sb.append('}');\n/* 156 */ return sb.toString();\n/* */ }", "String getDiskFileName();", "public abstract long getStreamSegmentOffset();", "public String toString() {\n return path + RegistryConstants.URL_SEPARATOR + \"version:\" + version;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCurrentRouteSegmentBytes() {\n java.lang.Object ref = currentRouteSegment_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currentRouteSegment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getFiledesc() {\n return filedesc;\n }", "java.lang.String getFilePath();", "String getStats()\n {\n StringBuffer result = new StringBuffer(\"\\n<LogFile file='\" + file + \"'>\" +\n \"\\n <rewindCount value='\" + rewindCounter + \"'>Number of times this file was rewind to position(0)</rewindCount>\" +\n \"\\n <bytesWritten value='\" + bytesWritten + \"'>Number of bytes written to the file</bytesWritten>\" +\n \"\\n <position value='\" + position + \"'>FileChannel.position()</position>\" +\n \"\\n</LogFile>\" +\n \"\\n\" \n );\n\n return result.toString();\n }", "@Override\n\tprotected String getFileArress() {\n\t\treturn fileAddress;\n\t}", "public String toString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public String toString() {\n StringBuffer sb = new StringBuffer();\n String mode = (mTransferFlag == FileTransfer.TRANSFER_OPTIONAL) ? \"optional\" : \"any\";\n\n Iterator it = null;\n Map.Entry<String, List<ReplicaCatalogEntry>> entry = null;\n List l = null;\n\n sb.append(mLogicalFile).append(\" \").append(mode);\n\n // writing out all the sources\n it = mSourceMap.entrySet().iterator();\n // sb.append(\"\\n\").append(\" \");\n while (it.hasNext()) {\n entry = (Map.Entry) it.next();\n // inserting the source site\n sb.append(\"\\n\").append(\"#\").append(entry.getKey());\n l = (List<ReplicaCatalogEntry>) entry.getValue();\n Iterator it1 = l.iterator();\n while (it1.hasNext()) {\n // write out the source url's\n // each line starts with a single whitespace\n sb.append(\"\\n\").append(\" \").append(it1.next());\n }\n }\n\n // writing out all the destinations\n it = mDestMap.entrySet().iterator();\n // sb.append(\"\\n\").append(\" \");\n while (it.hasNext()) {\n entry = (Map.Entry) it.next();\n // inserting the destination site\n sb.append(\"\\n\").append(\"# \").append(entry.getKey());\n l = (List<ReplicaCatalogEntry>) entry.getValue();\n Iterator it1 = l.iterator();\n while (it1.hasNext()) {\n // write out the source url's\n // each line starts with a two whitespaces\n sb.append(\"\\n\").append(\" \").append(\" \").append(it1.next());\n }\n }\n\n return sb.toString();\n }", "String getFileOutput();", "public char[] info() {\n\t\treturn null;\r\n\t}" ]
[ "0.6674726", "0.65583855", "0.65417343", "0.6198212", "0.6110968", "0.6082998", "0.60694313", "0.60157144", "0.59931743", "0.5956574", "0.5916504", "0.59010863", "0.58991486", "0.5883035", "0.58800733", "0.58488697", "0.5832811", "0.58297205", "0.5803533", "0.5786179", "0.5781091", "0.5778768", "0.5769823", "0.576469", "0.57555836", "0.5740959", "0.57005477", "0.57004637", "0.56943583", "0.5664377", "0.56538373", "0.565242", "0.5643022", "0.5630817", "0.55983084", "0.5590047", "0.55733913", "0.55724084", "0.5568734", "0.55319405", "0.553024", "0.551897", "0.5499352", "0.5497994", "0.548955", "0.54747117", "0.54592323", "0.54569316", "0.54496676", "0.5448087", "0.5441869", "0.5429923", "0.54208815", "0.54177386", "0.54068017", "0.5400911", "0.53989357", "0.53988165", "0.53795564", "0.53794116", "0.5365322", "0.536021", "0.53396094", "0.53260916", "0.52950144", "0.5289012", "0.5285356", "0.52853394", "0.5280585", "0.5270452", "0.5268026", "0.52670044", "0.5262494", "0.52576363", "0.52517", "0.524751", "0.52445096", "0.524424", "0.5239151", "0.5236052", "0.52277756", "0.52173346", "0.5214493", "0.5210479", "0.52087724", "0.52071375", "0.5198114", "0.5193993", "0.5181127", "0.5178063", "0.51737154", "0.5171503", "0.5163609", "0.516213", "0.5160921", "0.51590747", "0.51576924", "0.5152348", "0.5150608", "0.5139221" ]
0.5488652
45
Get the credentials that will be used to authenticate to the Chef server
private static void performChefComputeServiceBootstrapping(Properties properties) throws IOException, InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException { String rsContinent = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_CONTINENT, "rackspace-cloudservers-us"); String rsUser = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_USERNAME, "asf-gora"); String rsApiKey = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_APIKEY, null); String rsRegion = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_REGION, "DFW"); String client = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_CLIENT, System.getProperty("user.name")); String organization = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_ORGANIZATION, null); String pemFile = System.getProperty("user.home") + "/.chef/" + client + ".pem"; String credential = Files.toString(new File(pemFile), Charsets.UTF_8); // Provide the validator information to let the nodes to auto-register themselves // in the Chef server during bootstrap String validator = organization + "-validator"; String validatorPemFile = System.getProperty("user.home") + "/.chef/" + validator + ".pem"; String validatorCredential = Files.toString(new File(validatorPemFile), Charsets.UTF_8); Properties chefConfig = new Properties(); chefConfig.put(ChefProperties.CHEF_VALIDATOR_NAME, validator); chefConfig.put(ChefProperties.CHEF_VALIDATOR_CREDENTIAL, validatorCredential); // Create the connection to the Chef server ChefApi chefApi = ContextBuilder.newBuilder(new ChefApiMetadata()) .endpoint("https://api.opscode.com/organizations/" + organization) .credentials(client, credential) .overrides(chefConfig) .buildApi(ChefApi.class); // Create the connection to the compute provider. Note that ssh will be used to bootstrap chef ComputeServiceContext computeContext = ContextBuilder.newBuilder(rsContinent) .endpoint(rsRegion) .credentials(rsUser, rsApiKey) .modules(ImmutableSet.<Module> of(new SshjSshClientModule())) .buildView(ComputeServiceContext.class); // Group all nodes in both Chef and the compute provider by this group String group = "jclouds-chef-goraci"; // Set the recipe to install and the configuration values to override String recipe = "apache2"; JsonBall attributes = new JsonBall("{\"apache\": {\"listen_ports\": \"8080\"}}"); // Check to see if the recipe you want exists List<String> runlist = null; Iterable< ? extends CookbookVersion> cookbookVersions = chefApi.chefService().listCookbookVersions(); if (any(cookbookVersions, CookbookVersionPredicates.containsRecipe(recipe))) { runlist = new RunListBuilder().addRecipe(recipe).build(); } for (Iterator<String> iterator = runlist.iterator(); iterator.hasNext();) { String string = (String) iterator.next(); LOG.info(string); } // Update the chef service with the run list you wish to apply to all nodes in the group // and also provide the json configuration used to customize the desired values BootstrapConfig config = BootstrapConfig.builder().runList(runlist).attributes(attributes).build(); chefApi.chefService().updateBootstrapConfigForGroup(group, config); // Build the script that will bootstrap the node Statement bootstrap = chefApi.chefService().createBootstrapScriptForGroup(group); TemplateBuilder templateBuilder = computeContext.getComputeService().templateBuilder(); templateBuilder.options(runScript(bootstrap)); // Run a node on the compute provider that bootstraps chef try { Set< ? extends NodeMetadata> nodes = computeContext.getComputeService().createNodesInGroup(group, 1, templateBuilder.build()); for (NodeMetadata nodeMetadata : nodes) { LOG.info("<< node %s: %s%n", nodeMetadata.getId(), concat(nodeMetadata.getPrivateAddresses(), nodeMetadata.getPublicAddresses())); } } catch (RunNodesException e) { throw new RuntimeException(e.getMessage()); } // Release resources chefApi.close(); computeContext.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCredentials();", "public String getCredentials() {\n return serverGroup.getCredentials();\n }", "private String[] getCredentials() {\n String[] cred = new String[2];\n System.out.print(\"Username: \");\n cred[0] = sc.nextLine();\n System.out.print(\"Password: \");\n cred[1] = sc.nextLine();\n return cred;\n }", "public Object credentials() {\n return cred;\n }", "java.lang.String getCred();", "@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}", "@Override\n public LoginCredentials getCredentials() {\n return (localSshCredentials != null) ? localSshCredentials : getGlobalCredentials();\n }", "private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }", "public Credentials getPeerCredentials() throws IOException {\n return getPeerCredentials_native(fd);\n }", "public Credentials getCredentials() {\n return mCredentials;\n }", "public LoginCredentials getGlobalCredentials() {\n return super.getCredentials();\n }", "private HashMap<String, String> getclientCredentials(String strRequestXML) {\r\n\t\tlogger.info(\"Entering RequestValidator.getclientCredentials()\");\r\n\t\tHashMap<String, String> clientCredentialMap = new HashMap<String, String>();\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory\r\n\t\t\t\t\t.newInstance();\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tfactory.setNamespaceAware(true);\r\n\t\t\tDocument document = null;\r\n\t\t\tXPath xpath = XPathFactory.newInstance().newXPath();\r\n\t\t\tXPathExpression expression;\r\n\r\n\t\t\tdocument = builder.parse(new InputSource(new StringReader(\r\n\t\t\t\t\tstrRequestXML)));\r\n\t\t\tObject result;\r\n\t\t\tNodeList nodes;\r\n\r\n\t\t\texpression = xpath.compile(\"//\"\r\n\t\t\t\t\t+ PublicAPIConstant.IDENTIFICATION_USERNAME + \"/text()\");\r\n\t\t\tresult = expression.evaluate(document, XPathConstants.NODESET);\r\n\t\t\tnodes = (NodeList) result;\r\n\t\t\tclientCredentialMap.put(PublicAPIConstant.LOGIN_USERNAME, nodes\r\n\t\t\t\t\t.item(0).getNodeValue());\r\n\t\t\texpression = xpath.compile(\"//\"\r\n\t\t\t\t\t+ PublicAPIConstant.IDENTIFICATION_APPLICATIONKEY\r\n\t\t\t\t\t+ \"/text()\");\r\n\t\t\tresult = expression.evaluate(document, XPathConstants.NODESET);\r\n\t\t\tnodes = (NodeList) result;\r\n\t\t\tclientCredentialMap.put(PublicAPIConstant.API_KEY, nodes.item(0)\r\n\t\t\t\t\t.getNodeValue());\r\n\t\t\texpression = xpath.compile(\"//\"\r\n\t\t\t\t\t+ PublicAPIConstant.IDENTIFICATION_PASSWORD + \"/text()\");\r\n\t\t\tresult = expression.evaluate(document, XPathConstants.NODESET);\r\n\t\t\tnodes = (NodeList) result;\r\n\t\t\tclientCredentialMap.put(PublicAPIConstant.LOGIN_PASSWORD,\r\n\t\t\t\t\tCryptoUtil.generateHash(nodes.item(0).getNodeValue()));\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t\tlogger.info(\"Leaving RequestValidator.getclientCredentials()\");\r\n\t\treturn clientCredentialMap;\r\n\t}", "public Credentials getCredentials(AuthScope authscope)\n {\n return credentials;\n }", "public Credential getCredential() {\n return this.credential;\n }", "public SelfManagedKafkaAccessConfigurationCredentials getCredentials() {\n return this.credentials;\n }", "@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}", "protected static Credentials getProxyCredentials() {\n if (!proxyUsernameSet) {\n return null;\n }\n String[] parts = getProxyUsername().split(\"\\\\\\\\\");\n if (parts.length > 1) {\n String domain = parts[0];\n String workstation = null;\n String user = parts[1];\n if (parts.length > 2) {\n workstation = user;\n user = parts[2];\n }\n return new Credentials(user, getProxyPassphrase(), domain, workstation);\n }\n return new Credentials(parts[0], getProxyPassphrase());\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Object getCredential()\n {\n return this.credential;\n }", "public Set<Credentials> getCredentials() {\n return credentials;\n }", "private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = EventoUtils.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "protected static Credentials getServiceCredentials() throws AnaplanAPIException {\n if (authType == AUTH_TYPE.CERT) {\n try {\n return new Credentials(getCertificate(), getPrivateKey());\n } catch (Exception e) {\n throw new AnaplanAPIException(\"Could not initialise service credentials\", e);\n }\n } else if (authType == AUTH_TYPE.OAUTH) {\n return new Credentials(clientId);\n }\n return new Credentials(getUsername(), getPassphrase());\n }", "public AuthenticationCredentials getAuthenticationCredentials() {\n return authenticationCredentials;\n }", "@Override\n public Object getCredentials() {\n return token;\n }", "public final String getCredentialsFile() {\n return properties.get(CREDENTIALS_FILE_PROPERTY);\n }", "@Nullable\n public Credentials getCredentials() {\n return credentials;\n }", "@Override // com.tencent.qcloud.core.auth.BasicLifecycleCredentialProvider\n public QCloudLifecycleCredentials fetchNewCredentials() throws QCloudClientException {\n if (this.secretId != null && this.secretKey != null) {\n return onGetCredentialFromLocal(this.secretId, this.secretKey);\n }\n if (this.httpRequest == null) {\n return null;\n }\n try {\n return onRemoteCredentialReceived((String) ((HttpResult) QCloudHttpClient.getDefault().resolveRequest(this.httpRequest).executeNow()).content());\n } catch (QCloudServiceException e) {\n throw new QCloudClientException(\"get session json fails\", e);\n }\n }", "static String getAuth(String key) {\r\n try {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(new File(Run.CREDENTIALS_FILE_NAME)));\r\n\r\n return properties.getProperty(key);\r\n }\r\n catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return null;\r\n }", "Credentials getKrb5Credentials() {\n/* 325 */ return this.krb5Credentials;\n/* */ }", "private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public Optional<String> getCredentials() {\n return Optional.ofNullable(credentials);\n }", "private static Credential getCredentials(HttpTransport HTTP_TRANSPORT) throws IOException {\r\n // Load client secrets.\r\n InputStream in = SheetsQuickstart.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\r\n if (in == null) {\r\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\r\n }\r\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\r\n\r\n // Build flow and trigger user authorization request.\r\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\r\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\r\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\r\n .setAccessType(\"offline\")\r\n .build();\r\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\r\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\r\n }", "public String getClientPassword() {\n return clientPassword;\n }", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n InputStream in = SheetsRead.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public AWSCredentialsProvider getAWSCredentialsProvider() {\n return new DefaultAWSCredentialsProviderChain();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Collection<Object> getVerifiableCredentials() {\n\t\tObject list = jsonObject.get(JSONLD_KEY_VERIFIABLE_CREDENTIAL);\n\t\tif (list != null) {\n\t\t\treturn Collections.unmodifiableCollection((Collection<Object>)list);\n\t\t}\n\t\treturn null;\n\t}", "public String getCredentialsId() {\n return settings.CredentialsId;\n }", "public QCloudLifecycleCredentials onGetCredentialFromLocal(String secretId2, String secretKey2) throws QCloudClientException {\n long current = System.currentTimeMillis() / 1000;\n String keyTime = current + \";\" + (current + this.duration);\n return new BasicQCloudCredentials(secretId2, secretKey2SignKey(secretKey2, keyTime), keyTime);\n }", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT)\n throws IOException {\n // Load client secrets.\n InputStream in = GoogleCalendar.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,\n new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(\n new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\").build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "public Map<String, String> getCPanelCredentials(String ipAddress) {\n\t\tString cPanelResellerList = getProperties().getProperty(\"cpanel.server.list\").trim();\n\t\tString[] cPanelServerList = cPanelResellerList.split(\"#\");\n\t\tMap<String, String> credentials = null;\n\t\tfor(String cPanelServer: cPanelServerList){\n\t\t\tString[] params = cPanelServer.split(\",\");\n\t\t\tif(params!= null && params.length==4){\n\t\t\t\tString cpanelIP = params[0];\n\t\t\t\tif(ipAddress.equals(cpanelIP)){\n\t\t\t\t\tcredentials = new HashMap<String, String>();\n\t\t\t\t\tcredentials.put(\"username\", params[2]);\n\t\t\t\t\tcredentials.put(\"password\", params[3]);\n\t\t\t\t\treturn credentials;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getPassword() throws RemoteException;", "@SuppressWarnings(\"rawtypes\")\n @Override\n public Class[] getSupportedCredentials() {\n return new Class[] { DefaultCredential.class, CertificateCredential.class, PasswordCredential.class, CredentialMap.class };\n }", "private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = GoogleAuthorizeUtil.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }", "List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();", "@DataProvider(name = \"Authentication\")\n\t public static Object[][] credentials() {\n\t return new Object[][] { { \"testuser_1\", \"Test@123\" }, { \"testuser_2\", \"Test@1234\" }}; \n\t }", "private BasicSessionCredentials getBaseAccountCredentials (String roleName){\n\t\tif(devMode){\n\t\t\tString accessKey = System.getProperty(\"ACCESS_KEY\"); \n\t\t\tString secretKey = System.getProperty(\"SECRET_KEY\"); \n\t\t\tBasicAWSCredentials awsCreds = new BasicAWSCredentials(accessKey, secretKey);\n\t\t\tAWSSecurityTokenServiceClientBuilder stsBuilder = AWSSecurityTokenServiceClientBuilder.standard().withCredentials( new AWSStaticCredentialsProvider(awsCreds)).withRegion(baseRegion);\n\t\t\tAWSSecurityTokenService sts = stsBuilder.build();\n\t\t\tAssumeRoleRequest assumeRequest = new AssumeRoleRequest().withRoleArn(getRoleArn(baseAccount,roleName)).withRoleSessionName(\"pic-base-ro\").withDurationSeconds(3600);\n\t\t\tAssumeRoleResult assumeResult = sts.assumeRole(assumeRequest);\n\t\t\treturn new BasicSessionCredentials(\n\t\t\t\t\tassumeResult.getCredentials().getAccessKeyId(), assumeResult.getCredentials().getSecretAccessKey(),\n\t\t\t\t\tassumeResult.getCredentials().getSessionToken());\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tAWSSecurityTokenService sts = AWSSecurityTokenServiceClientBuilder.defaultClient();\n\t\t\tAssumeRoleRequest assumeRequest = new AssumeRoleRequest().withRoleArn(getRoleArn(baseAccount,roleName)).withRoleSessionName(\"pic-base-ro\").withDurationSeconds(3600);\n\t\t\tAssumeRoleResult assumeResult = sts.assumeRole(assumeRequest);\n\t\t\treturn new BasicSessionCredentials(\n\t\t\t\t\tassumeResult.getCredentials().getAccessKeyId(), assumeResult.getCredentials().getSecretAccessKey(),\n\t\t\t\t\tassumeResult.getCredentials().getSessionToken());\n\t\t}\n\t}", "private boolean _credInit() throws FileNotFoundException, IOException \n {\n\n String user = (String) this._argTable.get(CMD.USER);\n String svgp = (String) this._argTable.get(CMD.SERVERGROUP);\n String password = null;\n\n //get the server group first\n if (svgp == null) \n {\n while (svgp == null)\n {\n //if servergroup is null, query.If empty, set to null (which is default) \n System.out.print(\"Server group>> \");\n svgp = this._readTTYLine();\n //System.out.println(\"\");\n svgp = svgp.trim();\n if (svgp.equals(\"\"))\n svgp = null;\n \n if (svgp == null)\n {\n System.out.println(\"Server group must be specified. Enter 'abort' to quit.\");\n }\n else if (svgp.equalsIgnoreCase(\"abort\") || svgp.equalsIgnoreCase(\"exit\") ||\n svgp.equalsIgnoreCase(\"quit\") || svgp.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n }\n }\n else\n {\n System.out.println(\"Server group>> \"+svgp); \n }\n \n //---------------------------\n\n //request the authentication method from the servergroup\n AuthenticationType authType = null;\n try {\n authType = getAuthenticationType(svgp);\n } catch (SessionException sesEx) {\n \n if (sesEx.getErrno() == Constants.CONN_FAILED)\n {\n this._logger.error(\"Unable to connect to server group '\" +\n svgp+\"'.\\nPlease check network status and \"+\n \"FEI domain file configuration.\");\n \n// this._logger.severe(\"Unable to authenticate for group '\"+svgp+\n// \"' due to connection failure. Possible network issue.\");\n }\n else\n {\n this._logger.severe(\"Authentication Error! Unable to query server \"+\n \"authentication method for servergroup '\"+svgp + \"'. (\"+\n sesEx.getErrno()+\")\");\n }\n _logger.trace(null,sesEx);\n return false;\n }\n \n final String pwdPrompt = PasswordUtil.getPrompt(authType);\n\n //---------------------------\n \n if (user == null) \n {\n System.out.print(\"User name>> \");\n user = this._readTTYLine();\n user = user.trim();\n } \n else\n {\n System.out.print(\"User name>> \"+user);\n }\n \n boolean ok = false; \n while (!ok)\n { \n password = ConsolePassword.getPassword(pwdPrompt+\">> \");\n //System.out.println(\"\");\n password = password.trim();\n if (!password.equals(\"\"))\n ok = true; \n }\n \n //System.out.println(\"\");\n //password = password.trim();\n \n if (password.equalsIgnoreCase(\"abort\") || password.equalsIgnoreCase(\"exit\") ||\n password.equalsIgnoreCase(\"quit\") || password.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n \n \n //create the encrypter for passwords\n String encrypted = null;\n try {\n encrypted = this._encrypter.encrypt(password);\n } catch (Exception ex) {\n this._logger.severe(\"Password encrypt Error! Could not write login credentials.\");\n _logger.trace(null,ex);\n return false;\n }\n \n\n \n UserToken userToken = null;\n String authToken = encrypted;\n try {\n userToken = getAuthenticationToken(svgp, user, encrypted);\n } catch (SessionException sesEx) {\n this._logger.severe(\"Authentication Error! Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n _logger.trace(null,sesEx);\n return false;\n }\n \n \n //user was not authenticated\n if (userToken == null || !userToken.isValid())\n {\n this._logger.severe(\"Authentication Error: Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n return false;\n }\n \n this._loginReader.setUsername(svgp, user);\n this._loginReader.setPassword(svgp, userToken.getToken());\n this._loginReader.setExpiry( svgp, userToken.getExpiry());\n \n \n boolean success = true;\n try {\n this._loginReader.commit();\n } catch (IOException ioEx) {\n this._logger.severe(\"Login File Error! Could not write login credentials.\");\n _logger.trace(null, ioEx);\n success = false;\n ++this._errorCount;\n }\n return success;\n \n }", "public PasswordCredential getPasswordCredential() {\n return passCred;\n }", "public static String[] readCredentials(boolean isAdmin) {\n String[] credentials = new String[4];\n\n System.out.println(\"CREDENTIALS must be at lest three characters long and may contain \" +\n \"only letters, digits, a dot sign or an underscore sign\");\n in.nextLine();\n\n System.out.println(\"Username (at least 3 characters): \");\n credentials[0] = in.nextLine();\n System.out.println(\"Password (at least 3 characters): \");\n credentials[1] = in.nextLine();\n System.out.println(\"Email: \");\n credentials[2] = in.nextLine();\n if (isAdmin) {\n System.out.println(\"Agency: \");\n credentials[3] = in.nextLine();\n } else {\n credentials[3] = \"CUSTOMER\";\n }\n return credentials;\n }", "public String getSecretAccessKey() {\n return cred.getAWSSecretKey();\n }", "java.lang.String getServerSecret();", "public static interface Credentials extends Serializable {\n\t\tpublic String getUserName();\n\t\t/**\n\t\t* The password is encrypted.\n\t\t*/\n\t\tpublic String getPassword();\n\t}", "public List<UserCredential> getAllCredentials() {\n\t\t List<UserCredential> userCredentials = new ArrayList<>();\n\t\t \n\t\t credentialRepo.findAll().forEach(userCredential -> userCredentials.add(userCredential));\n\t\t \n\t\treturn userCredentials;\n\t}", "private HttpRequestInitializer getCredentials(final NetHttpTransport HTTP_TRANSPORT, TCC tcc) throws IOException {\n\t\tlogger.debug(\"Obtendo credenciais...\");\n\t\tString credentialsPath = CREDENTIALS_FILE_PATH + tcc.getAluno().getCurso().getCodigoCurso() + \".json\";\n\t\tlogger.debug(\"Caminho do arquivo de credenciais: \" + credentialsPath);\n\t\tGoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialsPath));\n\t\tcredentials = credentials.createScoped(SCOPES);\n\t\tcredentials.refreshIfExpired();\n\t\tHttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(credentials);\n\t\treturn requestInitializer;\n\t}", "@Override\r\n\tpublic Credential getCredential() {\n\t\treturn null;\r\n\t}", "String getHttpProxyPassword();", "public void getCredentials() throws IOException, GeneralSecurityException {\n\n KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance(keyAlg);\n keyGenerator.initialize(keySize);\n keypair = keyGenerator.genKeyPair();\n Security.addProvider(new BouncyCastleProvider());\n \n PKCS10CertificationRequest pkcs10 = null;\n try{\n \tpkcs10 = generateCertificationRequest(DN, keypair);\n }\n catch(Exception ex){\n \tthrow new GeneralSecurityException(ex);\n }\n getCredentials(pkcs10.getEncoded());\n }", "@Nonnull\n public Credential getSPCredential() throws IOException {\n\n final ClassPathResource spKeyResource = new ClassPathResource(SP_KEY);\n Assert.assertTrue(spKeyResource.exists());\n final PrivateKey spPrivateKey = KeyPairUtil.readPrivateKey(spKeyResource.getInputStream());\n\n final ClassPathResource spCrtResource = new ClassPathResource(SP_CRT);\n Assert.assertTrue(spCrtResource.exists());\n final X509Certificate spEntityCert = (X509Certificate) CertUtil.readCertificate(spCrtResource.getInputStream());\n\n return new BasicX509Credential(spEntityCert, spPrivateKey);\n }", "private String getRigorCredentials(String credentialsId) {\n List<RigorCredentials> rigorCredentialsList = CredentialsProvider.lookupCredentials(RigorCredentials.class,\n Jenkins.getInstance(), ACL.SYSTEM);\n RigorCredentials rigorCredentials = CredentialsMatchers.firstOrNull(rigorCredentialsList,\n CredentialsMatchers.allOf(CredentialsMatchers.withId(credentialsId)));\n\n return rigorCredentials == null ? null : rigorCredentials.getApiKey().getPlainText();\n }", "com.google.protobuf.ByteString\n getCredBytes();", "public java.lang.String getAccessToken(java.lang.String userName, java.lang.String password) throws java.rmi.RemoteException;", "public String getCustPwd() {\n return custPwd;\n }", "java.lang.String getPwd();", "protected String getPassword(final String username) {\n return credentials.get(username);\n }", "public Credentials()\n {\n this(null, null, null, null);\n }", "public LoginCredentials getLoginCredentials() {\n\t\treturn this.loginCredentials;\n\t}", "public ClientCredentials() {\n }", "public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}", "@Nonnull protected List<Credential> resolveCredentials(\n @Nonnull final ProfileRequestContext profileRequestContext) {\n try {\n final ArrayList<Credential> credentials = new ArrayList<>();\n Iterables.addAll(credentials, credentialResolver.resolve(\n new CriteriaSet(new UsageCriterion(UsageType.ENCRYPTION))));\n return credentials;\n } catch (final ResolverException e) {\n log.error(\"Error resolving IdP encryption credentials\", e);\n return Collections.emptyList();\n }\n }", "public String getEthereumCredentialsFile() {\n return AccountabilityConfigurationManager.getEthereumCredentialsFilePath() + \"/\" + this.ethereumCredentialsFileName;\n }", "@Nonnull protected List<Credential> getEffectiveKeyTransportCredentials(@Nonnull final CriteriaSet criteria) {\n final ArrayList<Credential> accumulator = new ArrayList<>();\n for (final EncryptionConfiguration config : criteria.get(EncryptionConfigurationCriterion.class)\n .getConfigurations()) {\n \n accumulator.addAll(config.getKeyTransportEncryptionCredentials());\n \n }\n return accumulator;\n }", "public Object encryptedCredential() {\n return this.encryptedCredential;\n }", "public static synchronized Credentials authenticate(String userName, String password){\n\t\t\tConnection connection;\n\t\t \tCredentials credentials=null;\n\t\t \t\n\t\t \tPreparedStatement statement=null;\n\t\t\tString preparedSQL = \"SELECT * FROM Credential WHERE Email = ? and Pass = ?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection=DBConnector.getConnection();\n\t\t \tstatement = connection.prepareStatement(preparedSQL);\n\t\t \tstatement.setString(1, userName);\n\t\t \tstatement.setString(2, password);\n\t\t\t\tResultSet rs = statement.executeQuery();\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tcredentials = new Credentials();\n\t\t\t\t\tcredentials.setCredID(rs.getInt(1));\n\t\t\t\t\tcredentials.setUserID(rs.getInt(2));\n\t\t\t\t\tcredentials.setEmail(rs.getString(3));\n\t\t\t\t\tcredentials.setPass(rs.getString(4));\n\t\t\t\t\tcredentials.setRole(rs.getString(5));\n\t\t\t\t\tcredentials.setValid(rs.getInt(6));\n\t\t\t\t\tcredentials.setRegKey(rs.getString(7));\n\t\t\t\t}\t\n\t\t\t\trs.close();\t\t\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t\t\n\t\t\t}catch (SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t\t\t\tSystem.out.println(\"Query: \" + statement.toString());\n\t\t\t\t\tcredentials = null;\n\t\t\t\t}\t\n\t\t\treturn credentials;\n\t}", "public List<Authentication> getLoginCredentials(String username,String password) {\n // select * from administrators where adminID='Admin1' and password='123456';\n String loginQuery = \"SELECT * FROM administrators WHERE adminID = ? and password = ?\";\n return loginTemplate.query(loginQuery, (rs, rowNum) -> {\n Authentication authentication = new Authentication();\n authentication.setPassword(rs.getString(\"password\"));\n authentication.setUsername(rs.getString(\"adminID\"));\n\n System.out.println(authentication);\n return authentication;\n\n }, username,password\n );\n }", "public DBCredentials() {\n try {\n // Get the inputStream\n InputStream inputStream = this.getClass().getClassLoader()\n .getResourceAsStream(file);\n\n Properties properties = new Properties();\n\n // load the inputStream using the Properties\n properties.load(inputStream);\n // get the value of the property\n this.dbUser = properties.getProperty(\"Username\");\n this.dbPassword = properties.getProperty(\"Password\");\n this.dbUrl = properties.getProperty(\"DataBase\");\n\n } catch (IOException e) {\n System.out.println(\"IOException\");\n e.printStackTrace();\n }\n }", "public String[] getUsers(){\n try {\n names = credentials.keys();\n }catch (java.util.prefs.BackingStoreException e1){\n System.out.println(e1);\n }\n return names;\n }", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "@Nonnull protected List<Credential> getEffectiveKeyTransportCredentials(@Nonnull final CriteriaSet criteria) {\n final EncryptionConfigurationCriterion criterion = criteria.get(EncryptionConfigurationCriterion.class);\n assert criterion != null;\n\n final ArrayList<Credential> accumulator = new ArrayList<>();\n for (final EncryptionConfiguration config : criterion.getConfigurations()) {\n accumulator.addAll(config.getKeyTransportEncryptionCredentials());\n }\n \n return accumulator;\n }", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getCleanDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1111/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "@Override\n public Optional<BasicCredentials> getCredentialsFor(String query) {\n for (CredentialsSupplier s : ss) {\n Optional<BasicCredentials> b = s.getCredentialsFor(query);\n if (b.isPresent())\n return b;\n }\n return empty();\n }", "Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getDirtyDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1112/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "@ApiModelProperty(value = \"The credentials to be used for the issuer.\")\n public IssuerCredentials getCredentials() {\n return credentials;\n }", "private void setCredentials() {\n Properties credentials = new Properties();\n\n try {\n credentials.load(new FileInputStream(\"res/credentials.properties\"));\n } catch (IOException e) {\n __logger.error(\"Couldn't find credentials.properties, not setting credentials\", e);\n return;\n }\n\n this.username = credentials.getProperty(\"username\");\n this.password = credentials.getProperty(\"password\");\n this.smtpHost = credentials.getProperty(\"smtphost\");\n this.imapHost = credentials.getProperty(\"imaphost\");\n\n if (password == null || password.equals(\"\")) {\n password = this.getPasswordFromUser();\n }\n\n __logger.info(\"Set credentials\");\n }", "public static HashMap<String,JSONObject> getCloudFoundryServiceCredentialsAsJSONObjects(){\r\n\t\tHashMap<String,JSONObject> names=new HashMap<String,JSONObject>();\r\n\t\tString svcs=System.getenv(\"VCAP_SERVICES\");\r\n\t\tJSONObject VCAP_SERVICES =null;\r\n\t\ttry {\r\n\t\t\tif(svcs==null) return new JSONObject();\r\n\t\t\tVCAP_SERVICES = (JSONObject)new JSONParser().parse(svcs);\r\n\t\t\tfor(Object type : VCAP_SERVICES.keySet()){\r\n\t\t\t\tJSONArray svcType=(JSONArray)VCAP_SERVICES.get(type);\r\n\t\t\t\tfor(int i=0;i<svcType.size();i++){\r\n\t\t\t\t\tJSONObject svc = (JSONObject)svcType.get(i);\r\n\t\t\t\t\tnames.put((String)svc.get(\"label\"),(JSONObject)svc.get(\"credentials\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new RuntimeException(\"VCAP_SERVICES env data failed to load\",e);\r\n\t\t}\r\n\t\treturn names;\r\n\t}", "public static String getPwd() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"Password\");\n\t}", "public String getCvsPassword() {\r\n\t\treturn cvsPassword;\r\n\t}", "public String getPassword() {\n return getProperty(PASSWORD);\n }", "java.lang.String getPasswd();", "public synchronized char[] getPassword() {\n resetExpiration();\n if (password==null && !configuration.getPasswordFile().exists())\n return FileEncryptionConstants.DEFAULT_PASSWORD;\n else\n return password;\n }", "static Krb5InitCredential getInstance(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials) throws GSSException {\n/* 200 */ EncryptionKey encryptionKey = paramCredentials.getSessionKey();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 207 */ PrincipalName principalName1 = paramCredentials.getClient();\n/* 208 */ PrincipalName principalName2 = paramCredentials.getClientAlias();\n/* 209 */ PrincipalName principalName3 = paramCredentials.getServer();\n/* 210 */ PrincipalName principalName4 = paramCredentials.getServerAlias();\n/* */ \n/* 212 */ KerberosPrincipal kerberosPrincipal1 = null;\n/* 213 */ KerberosPrincipal kerberosPrincipal2 = null;\n/* 214 */ KerberosPrincipal kerberosPrincipal3 = null;\n/* 215 */ KerberosPrincipal kerberosPrincipal4 = null;\n/* */ \n/* 217 */ Krb5NameElement krb5NameElement = null;\n/* */ \n/* 219 */ if (principalName1 != null) {\n/* 220 */ String str = principalName1.getName();\n/* 221 */ krb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL);\n/* */ \n/* 223 */ kerberosPrincipal1 = new KerberosPrincipal(str);\n/* */ } \n/* */ \n/* 226 */ if (principalName2 != null) {\n/* 227 */ kerberosPrincipal2 = new KerberosPrincipal(principalName2.getName());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 232 */ if (principalName3 != null)\n/* */ {\n/* 234 */ kerberosPrincipal3 = new KerberosPrincipal(principalName3.getName(), 2);\n/* */ }\n/* */ \n/* */ \n/* 238 */ if (principalName4 != null) {\n/* 239 */ kerberosPrincipal4 = new KerberosPrincipal(principalName4.getName());\n/* */ }\n/* */ \n/* 242 */ return new Krb5InitCredential(krb5NameElement, paramCredentials, paramCredentials\n/* */ \n/* 244 */ .getEncoded(), kerberosPrincipal1, kerberosPrincipal2, kerberosPrincipal3, kerberosPrincipal4, encryptionKey\n/* */ \n/* */ \n/* */ \n/* */ \n/* 249 */ .getBytes(), encryptionKey\n/* 250 */ .getEType(), paramCredentials\n/* 251 */ .getFlags(), paramCredentials\n/* 252 */ .getAuthTime(), paramCredentials\n/* 253 */ .getStartTime(), paramCredentials\n/* 254 */ .getEndTime(), paramCredentials\n/* 255 */ .getRenewTill(), paramCredentials\n/* 256 */ .getClientAddresses());\n/* */ }", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public Map<String, String>getCPanelResellerCredentials(String ipAddress, String reseller){\n\t\tString cPanelResellerList = getProperties().getProperty(\"cpanel.reseller.list\").trim();\n\t\tString[] cPanelServerList = cPanelResellerList.split(\"#\");\n\t\tMap<String, String> credentials = null;//\n\t\tfor(String cPanelServer: cPanelServerList){\n\t\t\tString[] params = cPanelServer.split(\";\");\n\t\t\tif(params!= null && params.length>1){\n\t\t\t\tString cpanelIP = params[0];\n\t\t\t\tif(ipAddress.equals(cpanelIP)){\n\t\t\t\t\tfor(int i=1; 1<=params.length; i++){\n\t\t\t\t\t\tString[] resellerCredentials = params[i].split(\",\");\n\t\t\t\t\t\tif(resellerCredentials!= null && resellerCredentials.length==2){\n\t\t\t\t\t\t\tString username = resellerCredentials[0].trim();\n\t\t\t\t\t\t\tString password = resellerCredentials[1].trim();\n\t\t\t\t\t\t\tif(username.equals(reseller)){\n\t\t\t\t\t\t\t\tcredentials = new HashMap<String, String>();\n\t\t\t\t\t\t\t\tcredentials.put(\"username\", username);\n\t\t\t\t\t\t\t\tcredentials.put(\"password\", password);\n\t\t\t\t\t\t\t\treturn credentials;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getPwdBytes();", "private boolean _credList() \n {\n\n //File file = new File(loginFileLocation);\n File file = this._loginReader.getFile();\n String fileLocation = (file == null) ? null : file.getAbsolutePath();\n \n if (!file.canRead())\n {\n this._logger.info(\"No credentials exist.\");\n //this._logger.severe(\"Login Error! Please acquire credentials \"\n // + \"with login utility.\");\n System.exit(-1);\n }\n \n String format1 = \"EEE, d MMM yyyy HH:mm:ss Z\";\n String format2 = \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\";\n DateFormat dateFormat = new SimpleDateFormat(format2);\n \n Date timeStamp = new Date(file.lastModified());\n this._logger.info(Constants.COPYRIGHT);\n this._logger.info(Constants.CLIENTVERSIONSTR);\n this._logger.info(Constants.APIVERSIONSTR);\n this._logger.info(\"\"); // empty line\n this._logger.info(\"Credential cache file: \" + fileLocation);\n this._logger.info(\"File modified on: \" + timeStamp.toString());\n String defUser = this._loginReader.getUsername();\n if (defUser != null)\n this._logger.info(\"Default principal: \" + defUser);\n else\n this._logger.info(\"No default principal specified.\");\n \n String[] sgroups = this._loginReader.getNamespaces();\n for (int i = 0; i < sgroups.length; ++i)\n {\n String ns = sgroups[i];\n if (!ns.equals(LoginFile.DEFAULT_NAMESPACE))\n {\n String user = this._loginReader.getUsername(ns, false);\n long expiry = this._loginReader.getExpiry(ns);\n if (user != null)\n {\n String line = \"Principal for group '\"+ns+\"' : \" + user;\n if (expiry != Constants.NO_EXPIRATION)\n {\n String date = dateFormat.format(new Date(expiry));\n if (expiry < System.currentTimeMillis())\n {\n line = line + \" (expired \"+date+\")\"; \n }\n else\n {\n line = line + \" (expires \"+date+\")\"; \n }\n }\n this._logger.info(line);\n }\n }\n }\n\n return true;\n }", "java.lang.String getSecret();", "public Credentials(String user, String password) {\r\n\t\tthis.user = user;\r\n\t\tthis.password = password;\r\n\t}" ]
[ "0.758201", "0.72935", "0.71893024", "0.7184488", "0.71337295", "0.67479515", "0.6705211", "0.6535445", "0.6411403", "0.6388724", "0.63846046", "0.62634766", "0.62030095", "0.61963165", "0.61874956", "0.61582124", "0.6154626", "0.61380684", "0.61380684", "0.61380684", "0.60814047", "0.6069306", "0.6027757", "0.6020824", "0.60189223", "0.6016782", "0.60143524", "0.60094", "0.5996943", "0.5982699", "0.5981649", "0.59609675", "0.5905555", "0.5891935", "0.5880415", "0.5854949", "0.5853975", "0.5835442", "0.58337766", "0.5830622", "0.5820757", "0.58173966", "0.5796656", "0.5794331", "0.5779946", "0.5779218", "0.57353324", "0.5722745", "0.56685746", "0.5666793", "0.56585085", "0.5651826", "0.5644875", "0.56347334", "0.56182003", "0.56152606", "0.56152284", "0.5613669", "0.55960125", "0.5581403", "0.5538286", "0.5537934", "0.55247843", "0.5512691", "0.5509075", "0.55034345", "0.5493021", "0.5490082", "0.5473434", "0.5470698", "0.54582924", "0.54374886", "0.5423013", "0.5406048", "0.53838897", "0.5376366", "0.53655857", "0.5312398", "0.5312398", "0.5312398", "0.5308932", "0.53067553", "0.530564", "0.5302424", "0.5299622", "0.5297209", "0.5293193", "0.52867126", "0.528573", "0.5222033", "0.5209935", "0.5206449", "0.5199688", "0.5198046", "0.51943254", "0.5194021", "0.5186801", "0.51826906", "0.5177964", "0.51703185", "0.5168663" ]
0.0
-1
Creates a new instance of the RaiderFundAuth.
public RaiderFundAuth(TTUAuth auth) { this.auth = auth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FundingDetails() {\n super();\n }", "public FeeAccount ()\n {\n }", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "Account() { }", "public Account() {\n\n\t}", "public Account() {\n\t}", "public Account()\n {\n balance = 0;\n balanceChangeLock = new ReentrantLock();\n sufficientFundsCondition = balanceChangeLock.newCondition();\n }", "public Account() {\n super();\n }", "public UserAccount() {\n\n\t}", "public Principal() {\r\n\t\tinitialize();\r\n\t}", "public Account() {\n this(null, 0);\n }", "public UserAcct() {\r\n }", "public Account() {\r\n\t\tthis(\"[email protected]\", \"Account\");\r\n\t}", "public AuthRecord() {\n super(Auth.AUTH);\n }", "public Account() {\n }", "Account create();", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public Firma() {\n }", "public Principal()\n {\n\n }", "public Account() {\n }", "public Account() {\n }", "public LibMembership() {\n\t\t\n\t}", "public Account() {\n this(DSL.name(\"account\"), null);\n }", "public Account() {\n\n }", "public com.vodafone.global.er.decoupling.binding.request.UsageAuthRate createUsageAuthRate()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.UsageAuthRateImpl();\n }", "private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public UserAccount() {\n }", "public JsonpAccount() {\n }", "public Account()\n {\n id = UUID.randomUUID();\n }", "public AccountAuthToken() {\n }", "public _AccountStub ()\n {\n super ();\n }", "public static Fitbit create( String email, String password ) throws FitbitAuthenticationException {\n\t\treturn new Fitbit( email, password );\n\t}", "public ATM() {\n usuarioAutenticado = false; // al principio, el usuario no está autenticado\n numeroCuentaActual = 0; // al principio, no hay número de cuenta\n pantalla = new Pantalla(); // crea la pantalla\n teclado = new Teclado(); // crea el teclado\n dispensadorEfectivo = new DispensadorEfectivo(); // crea el dispensador de efectivo\n ranuraDeposito = new RanuraDeposito(); // crea la ranura de depósito\n baseDatosBanco = new BaseDatosBanco(); // crea la base de datos de información de cuentas\n }", "private AppAuth() {\n }", "public LibrarianUser() {\n\t\tsuper();\n\t}", "public GlAccountBank () {\n\t\tsuper();\n\t}", "public RDR_RDR() { \r\n this(new DefaultModelClassFactory());\r\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public Payroll()\r\n\t{\r\n\t\t\r\n\t}", "private Account createAccount(byte[] address) {\n return new Account(address);\n }", "public LinkedIntegrationRuntimeRbacAuthorization() {}", "public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }", "public SavingsAccount() {\n\t}", "public VoucherPayment() {\r\n }", "private FundInfo() {\n initFields();\n }", "public Ferrari() {\n this(315);\n }", "private AuthenticationData() {\n\n }", "public ProfileBankAccount() {\r\n }", "private Account createAccount4() {\n Account account = new Account(\"123456004\", \"Chad I. Cobbs\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false,\n new CreditCard(\"1234123412340004\"), new CreditCard(\"4320123412340005\"));\n\n final Percentage percent50 = new Percentage(0.5);\n final Percentage percent25 = new Percentage(0.25);\n account.addBeneficiary(\"Jane\", percent25);\n account.addBeneficiary(\"Amy\", percent25);\n account.addBeneficiary(\"Susan\", percent50);\n return account;\n }", "public Account() {\n dateCreated = new java.util.Date();\n }", "public Account() {\n dateCreated = new java.util.Date();\n }", "public Factory() {\n\t\tsuper();\n\t}", "public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }", "public Account(Holder holder) {\n this(holder, 0);\n }", "public Factory() {\n this(getInternalClient());\n }", "public SignBean() {\n }", "public @NotNull Bidder newBidder();", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public CheckingAccount() {\n super(); \n }", "private static FXForwardSecurity createFxForwardSecurity() {\n\n Currency payCurrency = Currency.GBP;\n Currency recCurrency = Currency.USD;\n\n double payAmount = 1_000_000;\n double recAmount = 1_600_000;\n\n ZonedDateTime forwardDate = DateUtils.getUTCDate(2019, 2, 4);\n\n ExternalId region = ExternalSchemes.currencyRegionId(Currency.GBP);\n\n FXForwardSecurity fxForwardSecurity = new FXForwardSecurity(payCurrency, payAmount, recCurrency, recAmount, forwardDate, region);\n\n return fxForwardSecurity;\n }", "protected Approche() {\n }", "private UserFactory() {\r\n }", "public SocialIdentity create() {\r\n SocialIdentity res = new SocialIdentity();\r\n return res;\r\n }", "public ProfileTokenCredential() {\n super();\n new Random().nextBytes(addr_);\n new Random().nextBytes(mask_);\n }", "public dc_wallet() {}", "public Dealer() {\n this(1);\n }", "protected MoneyFactory() {\n\t}", "public ExternallyOwnedAccount() {}", "public LibrarianUser(String name, String dateOfBirth, String address,\n\t\t\tString email, String phoneNumber, String username,\n\t\t\tString password, int id)\n\t{\n\t\tsuper(name, dateOfBirth, address, email, phoneNumber, username, password, id);\n\t\tthis.checkoutLimit = 50;\n this.accountType = \"Librarian\";\n\t}", "public Account()\n {\n // initialise instance variables\n balance = 0.00;\n remainder = 0;\n }", "@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }", "public interface AccountFactory {\n Account create();\n}", "public FederatedIdentityCredentialInner() {\n }", "public BudgetAccountServiceImpl() {\r\n\t}", "public TAccountTicketFlow(){}", "private QuadradoPerfeito() {\n }", "public AFMV() {\r\n }", "public CuentaDeposito() {\n super();\n }", "public Account(final String localUsername, final String password,\n\t\t\tfinal UserId userId, final Set<DistributionRole> distributionRoles) {\n\t\tsuper();\n\t\tthis.localUsername = localUsername;\n\t\tthis.password = password;\n\t\tthis.userId = userId;\n\t\tthis.distributionRoles = distributionRoles;\n\t}", "public SufficientFundsDaoOjb() {\n }", "protected Settlement() {\n // empty constructor\n }", "public SavingsAccount() {\n super();\n }", "private R() {\n\n }", "public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }", "public AuthorizationRequest() { }", "public User() {\n this.inv = new Inventory();\n this.fl = new FriendList();\n this.tradesList = new TradesList();\n this.tradeCount = 0;\n this.downloadsEnabled = true;\n }", "private void createDriver() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L,\n new Licence(\"Full for over 2 years\", \"YXF87231\",\n LocalDate.parse(\"12/12/2015\", formatter),\n LocalDate.parse(\"12/12/2020\", formatter)));\n }", "public BoletoPaymentRequest() {\n\n }", "Account create(Context context);", "public ArrayList<RaiderFund> getRaiderFunds() {\n\t\tArrayList<RaiderFund> funds = new ArrayList<RaiderFund>();\n\t\t\n\t\tif (!auth.isLoggedIn() || !isLoggedIn())\n\t\t\treturn funds;\n\t\t\n\t\tString html = \"\";\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_HOME);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php, dummy));\n\t\t\thtml = Utility.read(conn);\n\t\t\t//System.out.println(html);\n\t\t\tint index = html.indexOf(\"getOverview\");\n\t\t\tString userID = html.substring(index);\n\t\t\tuserID = userID.substring(userID.indexOf(\"(\") + 2,\n\t\t\t\t\tuserID.indexOf(\")\") - 1);\n\t\t\tString token = \"formToken\\\"\";\n\t\t\tindex = html.indexOf(token);\n\t\t\tindex += token.length() + 1;\n\t\t\tString form = html.substring(index);\n\t\t\tform = form.substring(form.indexOf(\"\\\"\") + 1);\n\t\t\tform = form.substring(0, form.indexOf(\"\\\"\"));\n\n\t\t\tconn = Utility.getPostConn(FUND_OVERVIEW);\n\t\t\tString query = \"userId=\" + userID + \"&formToken=\" + form;\n\t\t\tconn.setRequestProperty(\"Content-Length\", query.length() + \"\");\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Referer\",\n\t\t\t\t\t\"https://get.cbord.com/raidercard/full/funds_home.php\");\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php, dummy));\n\t\t\tDataOutputStream dos = new DataOutputStream(conn.getOutputStream());\n\t\t\tdos.writeBytes(query);\n\t\t\tdos.close();\n\n\t\t\thtml = \"<html><body>\";\n\t\t\thtml += Utility.read(conn);\n\t\t\thtml += \"</body></html>\";\n\t\t\tDocument doc = Jsoup.parse(html);\n\t\t\tfor (Element el : doc.select(\"tbody tr\")) {\n\t\t\t\tRaiderFund fund = new RaiderFund();\n\t\t\t\tfund.setAccountName(el.select(\".account_name\").text());\n\t\t\t\tfund.setAmount(el.select(\".balance\").text());\n\t\t\t\tfunds.add(fund);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundget\", ErrorType.Fatal);\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundgeneral\", ErrorType.Fatal, html);\n\t\t}\n\n\t\treturn funds;\n\t}", "Lehrkraft createLehrkraft();", "public Signo() {\n\n }", "public Aanbieder() {\r\n\t\t}", "public TravelAuthorizationDocument() {\n super();\n }", "public PaymentCard() {\n\t}", "public Dealer()\n {\n\n\n }", "Claim() {\n }", "public PaymentDetails () {\n\t}", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}" ]
[ "0.5641687", "0.55310684", "0.5491269", "0.5473431", "0.5390773", "0.5364602", "0.53568", "0.5330788", "0.5289195", "0.5288613", "0.5264906", "0.526464", "0.5263062", "0.5241669", "0.5239946", "0.521478", "0.5178709", "0.5177451", "0.51773256", "0.51768273", "0.51768273", "0.5139646", "0.5136342", "0.5107059", "0.51053435", "0.50952744", "0.50925374", "0.50804424", "0.50530225", "0.50292146", "0.5021238", "0.5016315", "0.4994331", "0.49903822", "0.49860272", "0.49801114", "0.4952371", "0.49422142", "0.49362117", "0.49305058", "0.49295205", "0.49242386", "0.49205732", "0.4912383", "0.49107733", "0.4901031", "0.48987123", "0.48904547", "0.4888278", "0.48758668", "0.48752588", "0.48752588", "0.4872693", "0.4868875", "0.4867328", "0.48357645", "0.483539", "0.4835171", "0.4826056", "0.48223963", "0.48093316", "0.4807518", "0.48066399", "0.4804686", "0.47968143", "0.4796007", "0.47943035", "0.4785387", "0.4783576", "0.47777873", "0.4775804", "0.47744203", "0.47732553", "0.47729486", "0.47623456", "0.47611874", "0.47514755", "0.47484714", "0.4738217", "0.47381976", "0.47295547", "0.4725769", "0.47204477", "0.47172076", "0.47169346", "0.47159725", "0.47112963", "0.47065425", "0.47048235", "0.47017732", "0.4694295", "0.46941027", "0.46884334", "0.4688416", "0.46883133", "0.46870008", "0.4669145", "0.46677607", "0.4667292", "0.46670368" ]
0.6898992
0
Gets a list of account balances for meal plans.
public ArrayList<RaiderFund> getRaiderFunds() { ArrayList<RaiderFund> funds = new ArrayList<RaiderFund>(); if (!auth.isLoggedIn() || !isLoggedIn()) return funds; String html = ""; try { HttpURLConnection conn = Utility.getGetConn(FUND_HOME); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php, dummy)); html = Utility.read(conn); //System.out.println(html); int index = html.indexOf("getOverview"); String userID = html.substring(index); userID = userID.substring(userID.indexOf("(") + 2, userID.indexOf(")") - 1); String token = "formToken\""; index = html.indexOf(token); index += token.length() + 1; String form = html.substring(index); form = form.substring(form.indexOf("\"") + 1); form = form.substring(0, form.indexOf("\"")); conn = Utility.getPostConn(FUND_OVERVIEW); String query = "userId=" + userID + "&formToken=" + form; conn.setRequestProperty("Content-Length", query.length() + ""); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Referer", "https://get.cbord.com/raidercard/full/funds_home.php"); conn.setRequestProperty("Cookie", Cookie.chain(aws, php, dummy)); DataOutputStream dos = new DataOutputStream(conn.getOutputStream()); dos.writeBytes(query); dos.close(); html = "<html><body>"; html += Utility.read(conn); html += "</body></html>"; Document doc = Jsoup.parse(html); for (Element el : doc.select("tbody tr")) { RaiderFund fund = new RaiderFund(); fund.setAccountName(el.select(".account_name").text()); fund.setAmount(el.select(".balance").text()); funds.add(fund); } } catch (IOException e) { TTUAuth.logError(e, "raiderfundget", ErrorType.Fatal); } catch (Throwable t) { TTUAuth.logError(t, "raiderfundgeneral", ErrorType.Fatal, html); } return funds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}", "@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.getName());\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n return null;\r\n }", "private void listBalances() {\n\t\t\r\n\t}", "@Override\n public long getTotalBalances() {\n return accounts.values().stream().map(Account::getBalance).mapToLong(Long::longValue).sum();\n }", "public java.math.BigDecimal getBalance() {\n return balance;\n }", "public int getBalance() {\n return total_bal;\n }", "public Money getTotalBalance();", "@Override\n public long getTotalBalances() {\n return accountMap.values()\n .stream()\n .map(account -> account.getBalance())\n .reduce(0L, Long::sum);\n }", "public double getBal() {\n\t\t return balance;\r\n\t }", "public BigDecimal getBalance() {\n return balance;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}", "@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }", "public Map<String, Integer> getAccountBalances() throws LedgerException {\n Block lastBlock;\n\n try {\n // Retrieve most recent completed block\n lastBlock = getBlock(blockMap.size());\n } catch (LedgerException e) {\n // Catch exception that 'Block does not exist' and throw a more specific error\n throw new LedgerException(\"get account balances\", \"No blocks have been committed yet.\");\n }\n\n // Get accountBalanceMap from the last committed block\n Map<String, Account> accountMap = lastBlock.getBalanceMap();\n\n // Create new map to store values\n Map<String, Integer> accountBalancesMap = new HashMap<String, Integer>();\n\n // Iterate through accounts to retrieve their current balances.\n for (Map.Entry<String, Account> entry : accountMap.entrySet() ) {\n accountBalancesMap.put(entry.getKey(), entry.getValue().getBalance());\n }\n\n return accountBalancesMap;\n }", "public double getBankAccountBalance() {\r\n\t\t\r\n\t\tdouble balance = 0.0;\r\n\t\t\r\n\t\t\t\tif( customerBankAccountList.contains(this.getCustomer() ) ) \r\n\t\t\t\t{\t\r\n\t\t\t\t\tbalance = this.getCustomer().getBalance();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\treturn balance;\r\n\t\t}", "public List<Balance> getAddBalanceList() {\r\n\t\tList<Balance> balanceList = new ArrayList<Balance>();\r\n\t\tif (selectedItem != null) {\r\n\t\t\tList<Book> bookList = new ArrayList<Book>();\r\n\t\t\tfor (BalanceData b : GlobalBalance.instance().list()) {\r\n\t\t\t\t// Flag no se ha encontrado\r\n\t\t\t\tboolean founded = false;\r\n\t\t\t\t// Recuperar la lista de books a las que pertenece el balance\r\n\t\t\t\tbookList = bookService.getBooksByIdBalance(b.getId());\r\n\t\t\t\tfor (Book book : bookList) {\r\n\t\t\t\t\t// Si el book seleccionado ya pertenece al balance\r\n\t\t\t\t\tif (selectedItem.getId().compareTo(book.getId()) == 0) {\r\n\t\t\t\t\t\t// Flag se ha encontrado\r\n\t\t\t\t\t\tfounded = true;\r\n\t\t\t\t\t\t// Detener el bucle\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Si el balance no ha sido agregado ya al book\r\n\t\t\t\tif (!founded) {\r\n\t\t\t\t\t// Agregarlo a la lista\r\n\t\t\t\t\tbalanceList.add(b.getEntity());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn balanceList;\r\n\t}", "public ArrayList<BankAccount> getAccounts() {\n\t\tString sql = \"SELECT id, name, balance, balance_saving FROM accounts WHERE id > ?\";\n\n\t\tArrayList<BankAccount> bankAccounts = new ArrayList<>();\n\n\t\ttry (PreparedStatement pstmt = dbConnection.prepareStatement(sql)) {\n\t\t\t// set the value\n\t\t\tpstmt.setInt(1, 0);\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t\t// loop through the result set\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tint checking_balance = rs.getInt(\"balance\");\n\t\t\t\tint saving_balance = rs.getInt(\"balance_saving\");\n\n\t\t\t\tBankAccount bankAccount = new BankAccount(id, name, checking_balance, saving_balance);\n\t\t\t\tbankAccounts.add(bankAccount);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\treturn bankAccounts;\n\t}", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[] getBalances(){\n return localBalances;\n }", "public Collection<Integer> getLoanAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"LineOfCreditAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "public BaseJson<BigDecimal> wallet_balance() throws Exception {\n String s = main(\"wallet_balance\",\"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }", "@Test\n public void getBaasPortfolioBalanceUsingGetTest() throws ApiException {\n UUID nucleusPortfolioId = null;\n LocalDate endDate = null;\n LocalDate startDate = null;\n BaasBalanceVO response = api.getBaasPortfolioBalanceUsingGet(nucleusPortfolioId, endDate, startDate);\n\n // TODO: test validations\n }", "public final float getBalance() {\n return balance;\n }", "public List<AmountBalance> findByBpAccount(BpAccount bpAccount) {\r\n\t\treturn this.findByBpAccountId(bpAccount.getId());\r\n\t}", "public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}", "public ArrayList<Billing> getBillings() \n\t{\n\t\treturn billings;\n\t}", "public List<BankAccount> getAllByClient(Client client){\n\t\treturn this.getRepo().getAllByClient(client);\n\t}", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "public List<BudgetPlan> getBudgetPlans() {\n List<BudgetPlan> result = new ArrayList<BudgetPlan>();\n for (Domain domain : domainsEjb.getDomains())\n result.addAll(em.createNamedQuery(\"BudgetPlan.findByDomainId\", BudgetPlan.class).setParameter(\"domainId\", domain.getId()).getResultList());\n return result;\n }", "public String getBalance() {\n return balance;\n }", "double getBalance();", "double getBalance();", "public Integer getBalance() {\n return balance;\n }", "public Integer getBalance() {\n return balance;\n }", "public Collection<Integer> getDepositAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"DepositAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "@Override\n\tpublic List<BillardAccounts> getBilliardAccounts() {\n\t\treturn announceMapper.getBilliardAccounts();\n\t}", "public int getBalance() {\n return balance;\n }", "public int getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "public LoanAccounting getAccounting();", "public int getBalance()\n {\n return balance;\n }", "public long getBalance() {\n\t\n\treturn balance;\n}", "public float getBalance() {\n return balance;\n }", "public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}", "public String getBalance() {\n return this.balance;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<MonthlyBalances> getAccountMonthlyBalance(String accountId, String filter, String fields,\n String expands, String sort) {\n try {\n WebClient wc = getJsonWebClient(URL_BASE_ACCOUNTS + accountId + URL_MOUNTHBALANCE);\n if ( !StringUtils.isEmpty(filter) ) {\n wc.query(FILTER, filter);\n }\n return (List<MonthlyBalances>)wc.getCollection(MonthlyBalances.class);\n } catch (Exception e) {\n throw new RestClientException(\n \"Servicio no disponible - No se han podido cargar la información para la gráfica de depositos Electrónicos, para mayor información comunicate a nuestras líneas BBVA\");\n }\n }", "BigDecimal getClosingDebitBalance();", "public double getBalance(){\n return balance.getBalance();\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public BigDecimal getBalance()\n\t{\n\t\tBigDecimal retValue = Env.ZERO;\n\t//\tlog.config( toString() + \" Balance=\" + retValue);\n\t\treturn retValue;\n\t}", "public List<DietaBalanceada> consultar_dietaBalanceada();", "public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}", "public double getBalance()\n {\n return balance;\n }", "public static BigDecimal getBillingAccountNetBalance(Delegator delegator, String billingAccountId) throws GenericEntityException {\n BigDecimal balance = ZERO;\n\n // search through all PaymentApplications and add the amount that was applied to invoice and subtract the amount applied from payments\n List<GenericValue> paymentAppls = EntityQuery.use(delegator).from(\"PaymentApplication\").where(\"billingAccountId\",\n billingAccountId).queryList();\n for (GenericValue paymentAppl : paymentAppls) {\n BigDecimal amountApplied = paymentAppl.getBigDecimal(\"amountApplied\");\n GenericValue invoice = paymentAppl.getRelatedOne(\"Invoice\", false);\n if (invoice != null) {\n // make sure the invoice has not been canceled and it is not a \"Customer return invoice\"\n if (!\"CUST_RTN_INVOICE\".equals(invoice.getString(\"invoiceTypeId\")) && !\"INVOICE_CANCELLED\".equals(invoice.getString(\"statusId\"))) {\n balance = balance.add(amountApplied);\n }\n } else {\n balance = balance.subtract(amountApplied);\n }\n }\n\n balance = balance.setScale(DECIMALS, ROUNDING);\n return balance;\n }", "public long getBalance() {\n return this.balance;\n }", "public double getBalance()\n \n {\n \n return balance;\n \n }", "@RequestMapping(\"/getbalancepoints\")\n\tpublic List<PayerPoints> getBalancePoints() {\n\t\treturn getPayersPoints();\n\t}", "public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}", "public int getBalance() {\n\t\treturn balance;\n\t}", "public Double getBalance() {\r\n return balance;\r\n }", "public List<Account> getCustomerAccountListDegrade(String id){\n \t Account userDefaultAccount = new Account();\n \t userDefaultAccount.setAccountType(\"CompteCourant\");\n \t userDefaultAccount.setOwner(id);\n \t userDefaultAccount.setStatus(\"*****ServiceDégradé****\");\n \t userDefaultAccount.setBalance(1.00);\n \t return (List<Account>)Arrays.asList(userDefaultAccount);\n \t \n }", "com.google.ads.googleads.v6.resources.AccountBudget getAccountBudget();", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}", "public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT BALANCE FROM ACCOUNTS WHERE ACCOUNT_ID = \" + account_id)) {\n\n if (res.next())\n return res.getInt(\"BALANCE\");\n } catch (SQLException ex) {\n return null;\n }\n\n return null;\n }", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }", "String getAccountList(int accountId);", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "public double getBalance() {\n return this.balance;\n }", "public double getBalance(){\n\t\treturn balance;\n\t}", "@Override\npublic Money getBalance(Enterprise enterprise, Clerk clerk)\n\t\tthrows PermissionsException {\n\treturn balance;\n}", "public java.lang.String getTotalbalance() {\n return totalbalance;\n }", "Balance[] findAllByBankAccount_Id(Long id);", "public static void getAcountsBalance(int value) {\n\t\t\t\n\t\t\taccounts.clear();\n\n\t\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t\t \"from ser322.account,ser322.customer \" + \n\t\t \"WHERE customer.accID = account.accID AND balance =\" + value;\n\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t\t ResultSet rs = stmt.executeQuery(query);\n\t\t while (rs.next()) {\n\t\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t\t \n\t\t }\n\t\t \n\t\t } catch (SQLException e ) {\n\t\t \tSystem.out.println(\"QUERY WRONG - getAcountsBalance\");\n\t\t }\n\t\n\t\t}", "BigDecimal getOpeningDebitBalance();", "BigDecimal getOpeningDebitBalance();", "@Override\n public BigDecimal getBalance(String customerId, EMCUserData userData) {\n BigDecimal outstandingDebit = null;\n\n //Get total outstanding credits for customer, which existed at atDate\n EMCQuery query = new EMCQuery(enumQueryTypes.SELECT, DebtorsOpenTransactions.class);\n query.addFieldAggregateFunction(\"debit\", \"SUM\");\n query.addFieldAggregateFunction(\"debitAmountSettled\", \"SUM\");\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n //Customer is optional.\n if (customerId != null) {\n query.addAnd(\"customerId\", customerId);\n }\n\n query.addAnd(\"transactionDate\", Functions.nowDate(), EMCQueryConditions.LESS_THAN_EQ);\n\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(query, userData);\n\n if (debitTotals != null) {\n BigDecimal totalDebit = debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal totalDebitSettled = debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n BigDecimal totalCredit = debitTotals[2] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[2];\n BigDecimal totalCreditSettled = debitTotals[3] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[3];\n outstandingDebit = totalDebit.subtract(totalDebitSettled);\n totalCredit = totalCredit.subtract(totalCreditSettled);\n outstandingDebit = outstandingDebit.subtract(totalCredit);\n }\n return outstandingDebit;\n }", "double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance()\t{\n\t\treturn balance;\n\t}", "public int getBalance() {\n return this.balance;\n\n }", "public Collection<Payment> getPayments(CustomerItem customerItem);", "public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}", "BigDecimal getClosingCreditBalance();", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<Bill> findAllBill() {\n\treturn iBillRespository.findAll();\n}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public float showBalance() {\n\t\treturn dao.showBalance();\r\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "public ArrayList<Member> getArrears() {\r\n\r\n ArrayList<Member> members = new ArrayList<>();\r\n\r\n for (int i = 0; i<Database.getMembers().size(); i++) {\r\n if (Database.getMembers().get(i).getBalance() < 0) {\r\n members.add(Database.getMembers().get(i));\r\n }\r\n }\r\n\r\n return members;\r\n }" ]
[ "0.66840684", "0.6587914", "0.618012", "0.61458844", "0.5984392", "0.5977992", "0.59709036", "0.59494734", "0.594077", "0.59401876", "0.59401876", "0.5883445", "0.58794564", "0.5870508", "0.58700484", "0.5860351", "0.58126104", "0.57825357", "0.5731831", "0.5686409", "0.56805396", "0.5661402", "0.55857646", "0.55810714", "0.5563484", "0.5560938", "0.55596554", "0.55338645", "0.5529601", "0.5520406", "0.5516655", "0.5497929", "0.5497929", "0.54908925", "0.54908925", "0.548675", "0.5480923", "0.54780954", "0.54780954", "0.5478084", "0.54692715", "0.5459515", "0.5459097", "0.5442474", "0.54424596", "0.54274327", "0.54187536", "0.541805", "0.54152286", "0.5413169", "0.54126877", "0.54126877", "0.54126877", "0.54126877", "0.5407594", "0.5407353", "0.5405416", "0.5399169", "0.5396898", "0.53948486", "0.5393872", "0.5386699", "0.5383138", "0.5381372", "0.5378757", "0.5373455", "0.5371314", "0.53651655", "0.5353609", "0.5353609", "0.5353609", "0.5353609", "0.5353609", "0.534924", "0.5337133", "0.5332785", "0.5321561", "0.5302079", "0.5295465", "0.5292245", "0.52909917", "0.5288834", "0.5286424", "0.5281051", "0.5274855", "0.5265246", "0.5265246", "0.52627337", "0.5244896", "0.52319646", "0.5230715", "0.5216652", "0.5206918", "0.51991814", "0.5173695", "0.51559407", "0.5153453", "0.51476216", "0.51452094", "0.5132297", "0.5132005" ]
0.0
-1
Logs into the meal plan balance checking website.
public LoginResult login() { if (!auth.isLoggedIn()) return LoginResult.MAIN_LOGOUT; try { HttpURLConnection conn = Utility.getGetConn(FUND_INDEX); conn.setInstanceFollowRedirects(false); ArrayList<Cookie> tmpCookies = Cookie.getCookies(conn); aws = Cookie.getCookie(tmpCookies, "AWSELB"); php = Cookie.getCookie(tmpCookies, "PHPSESSID"); conn = Utility.getGetConn(FUND_LOGIN); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); String location = Utility.getLocation(conn); // https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); // TODO: future speed optimization //if (auth.getPHPCookie() == null) { conn.setRequestProperty("Cookie", Cookie.chain(auth.getELCCookie())); Cookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), "PHPSESSID"); // saves time for Blackboard and retrieveProfileImage(). auth.setPHPCookie(phpCookie); conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setRequestProperty("Cookie", Cookie.chain(auth.getERaiderCookies())); conn.setInstanceFollowRedirects(false); location = Utility.getLocation(conn); if (location.startsWith("signin.aspx")) location = "https://eraider.ttu.edu/" + location; conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getERaiderCookies())); // might need to set ESI and ELC here. If other areas are bugged, this is why. /*} else { conn.setRequestProperty("Cookie", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie())); /// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!! throw new NullPointerException("Needs implementation!"); }*/ // https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie())); // https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie())); // https://get.cbord.com/raidercard/full/login.php?ticket=ST-... conn = Utility.getGetConn(Utility.getLocation(conn)); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); // https://get.cbord.com/raidercard/full/funds_home.php location = Utility.getLocation(conn); if (location.startsWith("index.")) { location = "https://get.cbord.com/raidercard/full/" + location; } conn = Utility.getGetConn(location); conn.setInstanceFollowRedirects(false); conn.setRequestProperty("Cookie", Cookie.chain(aws, php)); Utility.readByte(conn); } catch (IOException e) { TTUAuth.logError(e, "raiderfundlogin", ErrorType.Fatal); return LoginResult.OTHER; } catch (Throwable t) { TTUAuth.logError(t, "raiderfundlogingeneral", ErrorType.APIChange); return LoginResult.OTHER; } loggedIn = true; return LoginResult.SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public void sendLoginClickPing() {\n WBMDOmnitureManager.sendModuleAction(new WBMDOmnitureModule(\"reg-login\", ProfessionalOmnitureData.getAppNamePrefix(this), WBMDOmnitureManager.shared.getLastSentPage()));\n }", "protected void login() {\n\t\t\r\n\t}", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public static void login() {\n\t\trender();\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "@Test\t\t\n\tpublic void Login()\t\t\t\t\n\t{\t\t\n\t driver.get(\"https://demo.actitime.com/login.do\");\t\t\t\t\t\n\t driver.findElement(By.id(\"username\")).sendKeys(\"admin\");\t\t\t\t\t\t\t\n\t driver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\t\t\t\t\t\t\t\n\t driver.findElement(By.xpath(\"//div[.='Login ']\")).click();\t\t\n\t driver.close();\n\t}", "public void logInAcceptanceTestFounder() throws Exception {\n String acceptanceTestUserName = \"[email protected]\";\n String acceptanceTestPassword = \"qualityassurance\";\n //Log into Mentor Marketplace as our acceptance test user\n System.out.println(\"Logging in as test user\");\n driver.findElement(By.id(\"registrationButton\")).click();\n driver.findElement(By.id(\"session_key-oauth2SAuthorizeForm\")).sendKeys(acceptanceTestUserName);\n driver.findElement(By.id(\"session_password-oauth2SAuthorizeForm\")).sendKeys(acceptanceTestPassword);\n driver.findElement(By.name(\"authorize\")).click();\n //Set up a wait to use while navigating between pages\n WebDriverWait wait = new WebDriverWait(driver, 10);\n //Wait for the page to load\n WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"founderProfile\")));\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private void login(int selected) {\n ExtendedAccountData data = queriedaccounts.get(selected);\n loginfailed = AltManager.getInstance().setUser(data.user, data.pass);\n if (loginfailed == null) {\n Minecraft.getMinecraft().displayGuiScreen(null);\n ExtendedAccountData current = getCurrentAsEditable();\n current.premium = EnumBool.TRUE;\n current.useCount++;\n current.lastused = JavaTools.getJavaCompat().getDate();\n } else if (loginfailed instanceof AlreadyLoggedInException) {\n getCurrentAsEditable().lastused = JavaTools.getJavaCompat().getDate();\n } else if (HttpTools.ping(\"http://minecraft.net\")) {\n getCurrentAsEditable().premium = EnumBool.FALSE;\n }\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "@Test(dependsOnMethods=\"startapp\")\r\n\tpublic void loginapp() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[1]/input\")).sendKeys(\"[email protected]\");\r\n\t\t//((WebElement) driver.findElements(By.xpath(\"//*[@id=\\\"idSIButton9\\\"]\"))).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[2]/input\")).sendKeys(\"Liverpool1\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/button\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "@Then(\"^click on the Login button user nagivate to the next page$\")\r\n\tpublic void click_on_the_Login_button_user_nagivate_to_the_next_page() throws Throwable {\n\t w.submit();\r\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "public void executeScript() throws Exception {\n\n nav.ChangeCountry(\"India\");\n nav.SearchFor(\"\");\n pdp.AddToBag();\n pdp.EnterBag();\n bag.CheckOut();\n lgn.LoginWith(\"[email protected]\");\n\n\n\n }", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public static void DoLogin(WebDriver driver){\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t \n\t //Launch application\n\t driver.navigate().to(\"http://socialsofttesthb.com/\");\n\t \n\t //Maximize the browser\n\t driver.manage().window().maximize();\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='email']\")).sendKeys(\"[email protected]\");\n\t TestHelper.emailAddress(driver).sendKeys(\"[email protected]\");\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='password']\")).sendKeys(\"Anuj123456\");\n\t TestHelper.password(driver).sendKeys(\"Anuj123456\");\n\t \n\t // Click Calculate Button\n\t driver.findElement(By.xpath(\".//*[@id='login-form']/button\")).click();\n\t \n\t \n\t\t\n\t}", "@When(\"I click on log in\")\n\tpublic void i_click_on_log_in() {\n\t\tlogger.info(\"Clicking on Sign in\");\n\t\thomepage.login.click();\n\t\tBrowserUtilities.waitFor(2);\n\n\t}", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tloginHandler.sendEmptyMessage(1);\n\n\t\t\t\t// Do the log in\n\t\t\t\tMySoup.login(loginURL, usernameString, passwordString);\n\t\t\t\tif (MySoup.isLoggedIn()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tManager.createForum(\"what.cd forum\");\n\t\t\t\t\t\tManager.createSubscriptions(\"subscriptions\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// Start the next activity\n\t\t\t\t\tloginHandler.sendEmptyMessage(2);\n\t\t\t\t} else {\n\t\t\t\t\t// Display the error message\n\t\t\t\t\tloginHandler.sendEmptyMessage(3);\n\t\t\t\t}\n\t\t\t}", "public void loggedInSuccessful() {\n\t\tIntent intent = new Intent(this, MainActivity.class);\n\t\tstartActivity(intent);\n\t\tthis.finish();\n\t}", "@Test\n\tpublic void cricLogin(){\n\t\tdriver.get(\"http://localhost:8080/CricWebApp/login.do\");\n\t\tdriver.manage().window().maximize(); \n\t\ttry {\n\t\t\tThread.sleep(4000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//driver.findElement(By.linkText(\"Sign Up\")).click();\n\t\tdriver.findElement(By.name(\"userName\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.tagName(\"input\")).click();\n\t\tdriver.findElement(By.xpath(\"/html/body/form/div[2]/table/tbody/tr[3]/td/input\")).click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdriver.close();\n\t\t\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "@Test\n\tpublic void TC02_Login() {\n\t\tSystem.out.println(\"TC02 : 1. Click to Login Page\");\n\t\tclickToElemnet(loginLinkX);\n\n\t\t// Verify Navigate to Login Page\n\t\tSystem.out.println(\"TC02 : 2. Login Page Display Status :\" + checkElementDisplayed(loginPageX));\n\n\t\t// Login to Page\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tclickToElemnet(loginBtnX);\n\n\t\t// Verify Login Successfully\n\t\tSystem.out.println(\"TC02 : 3. Login Successfully Status : \" + checkElementDisplayed(myAccountLinkX));\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public void onClick(View arg0) {\n usernametxt = username.getText().toString();\n passwordtxt = password.getText().toString();\n\n // Send data to Parse.com for verification\n ParseUser.logInInBackground(usernametxt, passwordtxt,\n new LogInCallback() {\n public void done(ParseUser user, ParseException e) {\n if (user != null) {\n if (user.getBoolean(\"freeze_account\") != true) {\n // If user exist and authenticated and not frozen, send user to ChallengeActivity.class\n Intent intent = new Intent(rootView.getContext(), ChallengeActivity.class);\n startActivity(intent);\n Toast.makeText(getActivity().getApplicationContext(),\n \"Successfully Logged in\",\n Toast.LENGTH_SHORT).show();\n getActivity().finish();\n } else {\n Toast.makeText(\n getActivity().getApplicationContext(),\n \"Account frozen\",\n Toast.LENGTH_LONG).show();\n }\n\n } else {\n Toast.makeText(\n getActivity().getApplicationContext(),\n \"Username/Password incorrect, you may need to sign up\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }", "public void User_login()\r\n\t{\n\t\tdriver.findElement(FB_Locators.Signin_Email).clear();\r\n\t\tdriver.findElement(FB_Locators.Signin_Email).sendKeys(username);\r\n\t\t\r\n\t\t//Script using element referral..\r\n\t\tWebElement Password_Element=driver.findElement(FB_Locators.Signin_password);\r\n\t\tPassword_Element.clear();\r\n\t\tPassword_Element.sendKeys(password);\r\n\t\t\r\n\t\t//Login button using webelemnet referral\r\n\t\tWebElement Login_btn_Element=driver.findElement(FB_Locators.Signin_btn);\r\n\t\tLogin_btn_Element.click();\r\n\t}", "@Test\n public void logInAcceptanceTestMentor() throws Exception {\n String acceptanceTestUserName = \"[email protected]\";\n String acceptanceTestPassword = \"qualityassurance\";\n //Log into Mentor Marketplace as our acceptance test user\n System.out.println(\"Logging in as test user\");\n driver.findElement(By.id(\"registrationButton\")).click();\n driver.findElement(By.id(\"session_key-oauth2SAuthorizeForm\")).sendKeys(acceptanceTestUserName);\n driver.findElement(By.id(\"session_password-oauth2SAuthorizeForm\")).sendKeys(acceptanceTestPassword);\n driver.findElement(By.name(\"authorize\")).click();\n //Set up a wait to use while navigating between pages\n WebDriverWait wait = new WebDriverWait(driver, 10);\n //Wait for the page to load\n WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"founderProfile\")));\n logOutUser();\n }", "public void CheckLogin()\n\t{\n\t\t\n\t\t\n\t\tinput = new Scanner(System.in);\n\t\tint checkans;\n\t\tSystem.out.println(\"\\t\\t===============================\");\n\t\tSystem.out.println(\"\\n\\t\\t\\tWELCOME BACK\\n\");\n\t\tSystem.out.println(\"\\t\\t===============================\");\n\t\tSystem.out.println(\"***********************************1-PRESS '1' EMPLOYEE\"\n\t\t\t\t+ \"\\n***********************************2-PRESS '2' CUSTOMER\"\n\t\t\t\t+ \"\\n***********************************3-PRESS '3' GO BACK TO THE PAGE \");\n\t\tdo{\tSystem.out.print(\">>>>>\");checkans=input.nextInt();\n\t\t\n\t\tswitch(checkans) {\n\t\tcase 1: EmpCheckLogin();\tbreak;\t\n\t\tcase 2: CustCheckLogin();\tbreak;\t\n\t\tcase 3: ms.pageoneScreen();\tbreak;\t\n\t\tdefault: System.out.println(\"Invalid choice\\n***********************************1-PRESS '1' EMPLOYEE\"\n\t\t\t\t+ \"\\n***********************************2-PRESS '2' CUSTOMER\"\n\t\t\t\t+ \"\\n***********************************3-PRESS '3' GO BACK TO THE PAGE\");}\n\t\t\n\t\t}while(checkans!=1 && checkans!=2&& checkans!=3);\n\t\t\n\t\t\n\t}", "@Test\n\tpublic void portalTestFinishesWhileLoggedInAsRegularUser() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running portalTestFinishesWhileLoggedInAsRegularUser()...\");\n\n\t\t// Log into Portal\n\t\tportal.loginScreen.navigateToPortal();\n\t\tportal.login(portalUser);\n\n\t\tVoodooUtils.voodoo.log.info(\"If this message appears, that means we logged in successfully without error.\");\n\t\tportal.navbar.userAction.assertVisible(true);\n\n\t\tsugar().loginScreen.navigateToSugar();\n\t\tsugar().alerts.waitForLoadingExpiration(30000);\n\t\tsugar().logout();\n\t\tsugar().login(sugar().users.getQAUser());\n\n\t\tVoodooUtils.voodoo.log.info(\"portalTestFinishesWhileLoggedInAsRegularUser() completed.\");\n\t}", "public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }", "@Test(priority = 0, groups = \"test\")\r\n\tpublic void TestLogin()\r\n\t{\r\n\t\t// Step-1] Login using adminX credentials.\r\n\t login.AdminXLogin();\r\n\t extent.log(LogStatus.INFO, \"LoggedIn successfully.\");\r\n\t wait.until(ExpectedConditions.elementToBeClickable(By.linkText(\"PRODUCT\")));\r\n\t // Step-2] Open Add scheme page.\r\n\t Ops.OpenAddScheme();\r\n\t \r\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "public void loginMenu(){\n\t\tstate = ATM_State.LOGINID;\n\t\tgui.setDisplay(\"Enter your account ID: \\n\");\n\t}", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tlogin();\n\t\t\t}", "public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}", "@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }", "public void performLogin(View view) {\r\n // Do something in response to button\r\n\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window\"));\r\n startActivity(myIntent);\r\n }", "public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }", "public void clickOnLogin() {\n\t\tWebElement loginBtn=driver.findElement(loginButton);\n\t\tif(loginBtn.isDisplayed())\n\t\t\tloginBtn.click();\n\t}", "public static void LoginDirector() {\n SuperUI.clearScreen();\n int type = LoginScreen();\n\n try {\n\n Connection conn = ConnectToDatabase();\n if (type == 1) {\n SuperUI.clearScreen();\n Employee.EmployeeLogin();\n// if(employeePosition.equalsIgnoreCase(\"HR Manager\"))\n// {\n// type=4;\n// }\n } else if (type == 2) {\n Customer.CustomerLogin();\n }\n if (type == 3) {\n System.out.println(\"Goodbye\");\n System.exit(0);\n conn.close();\n }\n\n } catch (SQLException excpt) {\n System.out.println(excpt.getMessage());\n\n }\n\n }", "public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}", "public Login() {\n initComponents();\n KiemTraKN();\n }", "void loginDone();", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "public AccountPage Signup_through_loginpage() {\n\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\tjs.executeScript( \"arguments[0].click();\", SignUpButton );\n\tsignupPage.SignUp_Form();\n\treturn new AccountPage();\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\t\tboolean approved = showLoginScreen();\n\t\t\t\tif(approved) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tGUIDriver.goToScreen(\"welcome\");\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectMessage();\n\t\t\t\t}\n\t\t}", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "public void Login()\r\n\t{\r\n\t\t\r\n\t\tString firstName = CommonDriver.getProperties(\"FirstName\");\r\n\t\tString lastName = CommonDriver.getProperties(\"LastName\");\r\n\t\tString mobileNumber = CommonDriver.getProperties(\"MobileNumber\");\r\n\t\tString email = CommonDriver.getProperties(\"Email\");\r\n\t\tString Fpassword = CommonDriver.getProperties(\"Password\");\r\n\t\tString confirmPassword = CommonDriver.getProperties(\"ConfirmPassword\");\r\n\t\tString userName = CommonDriver.getProperties(\"UserName\");\r\n\t\tString logPassword = CommonDriver.getProperties(\"LogPassword\");\r\n\t\t\r\n\t\tUserName.sendKeys(userName);\r\n\t\t\r\n\t\tLogPassword.sendKeys(logPassword);\r\n\t\t\t\t\r\n\t\tLogin.click();\r\n\t\t\r\n\t\t/**\r\n\t\t * Since the application forgets the login credentials in sometime, hence, checking the error msg and signing up again \r\n\t\t * \r\n\t\t */\r\n\t\r\n\t\tboolean present;\r\n\t\ttry {\r\n\t\t driver.findElement(By.xpath(\"//*[@id='loginfrm']/div[1]/div[2]/div\"));\r\n\t\t present = true;\r\n\t\t System.out.println(\"Need to signup first\");\r\n\t\t\t\r\n\t\t\tSignUp.click();\r\n\t\t\t\r\n\t\t\tFirstName.sendKeys(firstName);\r\n\t\t\t\r\n\t\t\tLastName.sendKeys(lastName);\r\n\t\t\t\t\t\r\n\t\t\tMobileNumber.sendKeys(mobileNumber);\r\n\t\t\t\t\t\r\n\t\t\tEmail.sendKeys(email);\r\n\t\t\t\t\t\r\n\t\t\tPassword.sendKeys(Fpassword);\r\n\t\t\t\t\t\r\n\t\t\tConfirmPassword.sendKeys(confirmPassword);\r\n\t\t\t\t\t\r\n\t\t\tSignUpF.click();\r\n\t\t \r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t present = false;\r\n\t\t \r\n\t\t\tSystem.out.println(\"Loggedin Successfully\");\r\n\t\t}\r\n\t}", "@When(\"^To Validathe Retail Login with Valid Credentials$\")\r\n\tpublic void to_Validathe_Retail_Login_with_Valid_Credentials() throws InterruptedException {\n\t\tdriver.findElement(By.className(\"sign-in\")).click();\r\n\t\tdriver.findElement(By.name(\"log\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"admin@123\");\r\n\t\tdriver.findElement(By.name(\"login\")).click();\r\n\t\t Thread.sleep(3000);\r\n\t\t \r\n\t}", "@Given(\"^user launch on dashboard page$\")\r\n\tpublic void user_launch_on_dashboard_page() {\r\n\t\tdashboarpage.validatelandedondashboarpage();\r\n\t}" ]
[ "0.65927225", "0.6552656", "0.6515472", "0.6362661", "0.63263047", "0.629683", "0.62775195", "0.6267267", "0.62532806", "0.62282634", "0.6209135", "0.61935556", "0.61718774", "0.61711055", "0.6153834", "0.61372876", "0.6130363", "0.6106064", "0.6073449", "0.60692996", "0.60539234", "0.60299164", "0.6023079", "0.5966942", "0.5961234", "0.5929488", "0.59205085", "0.59172934", "0.5899815", "0.58878976", "0.5887414", "0.58793366", "0.587653", "0.58645666", "0.5857586", "0.58414394", "0.58259296", "0.58168316", "0.58159035", "0.5813729", "0.58095354", "0.5793754", "0.5789508", "0.5788846", "0.57768774", "0.5765328", "0.57647777", "0.57647306", "0.57616913", "0.5759742", "0.57576245", "0.57568914", "0.5747452", "0.574414", "0.5738542", "0.57351667", "0.57351655", "0.57349366", "0.57311255", "0.573067", "0.5718755", "0.5716061", "0.5713801", "0.57032615", "0.5697912", "0.56879354", "0.56778294", "0.567188", "0.5670343", "0.5668685", "0.5662743", "0.565608", "0.56559944", "0.5634018", "0.56318736", "0.5630931", "0.562842", "0.5626838", "0.5625659", "0.56247455", "0.56234664", "0.5621416", "0.56174386", "0.56148523", "0.56139517", "0.56120926", "0.56021976", "0.560099", "0.56008047", "0.5597709", "0.5590594", "0.5581502", "0.55752516", "0.5569195", "0.5566555", "0.55663276", "0.55596393", "0.5549648", "0.5545407", "0.5545047" ]
0.5592917
90
Created by roman on 19.10.17.
@Singleton @Component( modules = { AppModule.class, ObjectBoxModule.class }) public interface AppComponent { void inject(ToDoListActivity activity); void inject(TaskEditorActivity activity); //void inject(ICommonRepository repository); //ICommonRepository repo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public abstract void mo70713b();", "static void feladat9() {\n\t}", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "public void skystonePos4() {\n }", "@Override\n public void init() {\n\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void einkaufen() {\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}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void getExras() {\n }", "public void m23075a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\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 }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo21779D() {\n }", "public abstract void mo56925d();", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo21878t() {\n }", "static void feladat7() {\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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "public void skystonePos6() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void init() {\n }", "private void m50367F() {\n }", "public void mo21825b() {\n }", "public abstract String mo13682d();", "public abstract String mo118046b();", "@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}", "void mo57277b();", "public abstract void mo27386d();", "static void feladat6() {\n\t}", "public void mo97908d() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo21782G() {\n }", "private void init() {\n\n\n\n }", "public void mo115190b() {\n }" ]
[ "0.5655601", "0.5649269", "0.5644717", "0.5623587", "0.56114465", "0.5602067", "0.555151", "0.5522657", "0.5503791", "0.5501786", "0.54807365", "0.54736894", "0.5438007", "0.5433894", "0.54294956", "0.5416128", "0.54154766", "0.54103076", "0.54103076", "0.53915024", "0.53713745", "0.535946", "0.53540576", "0.5348189", "0.5323775", "0.5322819", "0.5317047", "0.531197", "0.53093916", "0.53093493", "0.5304215", "0.5304215", "0.5304215", "0.5304215", "0.5304215", "0.5300818", "0.52921736", "0.529099", "0.52908874", "0.5252662", "0.52466595", "0.5231902", "0.5228699", "0.52118665", "0.51964456", "0.518773", "0.51876545", "0.5181185", "0.5169553", "0.51421577", "0.51421577", "0.51421577", "0.513881", "0.51361996", "0.51311946", "0.5129605", "0.5126934", "0.5126934", "0.51243824", "0.51243824", "0.51243824", "0.51243824", "0.51243824", "0.51243824", "0.51243824", "0.5120925", "0.5118111", "0.51107854", "0.5108507", "0.5104804", "0.510407", "0.51028764", "0.51028764", "0.51028764", "0.5101711", "0.51002914", "0.50958395", "0.5093069", "0.5091625", "0.5090566", "0.50846684", "0.50801545", "0.507619", "0.5072877", "0.50695705", "0.5065286", "0.5061561", "0.5061561", "0.5061561", "0.5061395", "0.5059209", "0.5058959", "0.50559086", "0.50556517", "0.5052617", "0.5050019", "0.50484973", "0.50484973", "0.50466925", "0.50465727", "0.50454426" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\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 }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_userProfile) { Intent intent = new Intent(this, UserProfile.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_mealPlan) { Intent intent = new Intent(this, UpcomingPlans.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_recipe) { Intent intent = new Intent(this, Recipes.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_pantry) { Intent intent = new Intent(this, Pantry.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_fitnessTracker) { Intent intent = new Intent(this, FitnessTracker.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); return true; } if (id == R.id.action_settings) { /*Intent intent = new Intent(this, Settings.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent);*/ toggleNotifications(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static FindFragment newInstance(String param1, String param2) { FindFragment fragment = new FindFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public WelcomeFragment() {}", "public ProfileFragment(){}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public HeaderFragment() {}", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public PeersFragment() {\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259323", "0.72325355", "0.7113618", "0.699069", "0.69899815", "0.6833516", "0.68299687", "0.6813079", "0.6800701", "0.6800411", "0.6765796", "0.67397755", "0.67397755", "0.67275816", "0.6716515", "0.6706048", "0.6691217", "0.66904765", "0.6688572", "0.66629845", "0.66451705", "0.66414434", "0.6640613", "0.6634166", "0.6618567", "0.66139966", "0.66075873", "0.6605316", "0.65982974", "0.6591943", "0.6591915", "0.6591447", "0.6582179", "0.6579097", "0.65645105", "0.65621173", "0.65577924", "0.65510404", "0.65493095", "0.6543832", "0.65399647", "0.65348274", "0.6533803", "0.6528235", "0.65246284", "0.65242815", "0.65229326", "0.6515168", "0.6505565", "0.6498693", "0.64985", "0.64962065", "0.6493426", "0.64862", "0.6485037", "0.6480159", "0.64788073", "0.6476525", "0.6470913", "0.64660394", "0.64580023", "0.6456585", "0.6453523", "0.6452654", "0.6450429", "0.64494765", "0.6448625", "0.64472264", "0.6443905", "0.6443905", "0.6443905", "0.6441467", "0.6440794", "0.6439393", "0.6438171", "0.6434303", "0.64290327", "0.6428435", "0.64250207", "0.64195585", "0.6418594", "0.64133036", "0.6412074", "0.6403921", "0.6401819", "0.63972855", "0.6396208", "0.6392687", "0.63886577", "0.63823956", "0.63782495", "0.6376538", "0.6376538", "0.6376538", "0.63755065", "0.6365754", "0.63650936", "0.63607186", "0.635468", "0.63526064", "0.635223" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_find, container, false); initView(view); getData(page,userId,token); setLister(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348", "0.66202056", "0.66176945", "0.66094035", "0.65976113", "0.65937936", "0.6585841", "0.6585124", "0.65741223", "0.65721804", "0.65698904", "0.65695107", "0.6569451", "0.6568099", "0.6565633", "0.6554688", "0.65533894", "0.65447044", "0.65432465", "0.6542017", "0.65385425", "0.6537571", "0.65369105", "0.6535379", "0.6533447", "0.6533258", "0.65316767", "0.6529574", "0.6528449", "0.65262675", "0.6525467", "0.6525181", "0.6524235", "0.6523963", "0.65187466", "0.65138274", "0.65137535", "0.6513218", "0.6513202", "0.65115535", "0.651113", "0.6510943", "0.6510124", "0.65094703", "0.65082514", "0.65038425", "0.65023196", "0.6501983", "0.65014684", "0.64982104", "0.64945936", "0.6492533", "0.6491023", "0.6488248", "0.64879525", "0.6487852", "0.6487744", "0.64873713", "0.6487171", "0.64851", "0.6485003", "0.6483167", "0.6482433", "0.64824027", "0.6481711", "0.6480902", "0.64779234", "0.64767206", "0.6476515", "0.6475657", "0.64747864", "0.64715266", "0.64714354", "0.64711314", "0.6470619", "0.6468112", "0.6466466", "0.64631015", "0.646268", "0.6462456", "0.64620507" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\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\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onHiddenChanged(boolean hidden) { super.onHiddenChanged(hidden); if ( !hidden) { mHandler.setHandleMsgListener(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}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void onFragmentInteraction(int position);", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }" ]
[ "0.73250246", "0.7208194", "0.7135128", "0.7124374", "0.7122289", "0.7015256", "0.6976415", "0.6976415", "0.6976415", "0.697415", "0.69679785", "0.69658804", "0.6961106", "0.6953952", "0.6943612", "0.69336414", "0.6929252", "0.69277585", "0.692306", "0.6909864", "0.69028807", "0.6897262", "0.68948984", "0.6882655", "0.68815297", "0.6875588", "0.6864281", "0.68607974", "0.68597907", "0.68587786", "0.6856009", "0.6844289", "0.6839765", "0.6830054", "0.68176347", "0.68169826", "0.6810604", "0.67864025", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67696476", "0.67690516", "0.6766415", "0.6761695", "0.67551124", "0.67533374", "0.6698162", "0.6681282", "0.66737175", "0.6670758", "0.6669734", "0.6661607", "0.66612685", "0.6655428", "0.66521543", "0.6644687", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.664394", "0.6638479", "0.663606", "0.6631513", "0.66253483", "0.66251284", "0.6618284", "0.66096157", "0.66095537", "0.6609517", "0.66047883", "0.65973", "0.6597272", "0.658741", "0.6572349", "0.656913", "0.6560113", "0.6560098", "0.65549636", "0.65490955", "0.65482724", "0.65431726", "0.65389806", "0.6534305", "0.6534305", "0.6534305", "0.6519628", "0.6516709", "0.6516625" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "MyArg(int value){\n this.value = value;\n }", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", "0.59894925", "0.5982372", "0.59784126", "0.5976578", "0.59514225", "0.5946062", "0.5945854", "0.59451884", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.5907128", "0.58901805", "0.58811074", "0.5870056", "0.5866255", "0.5857818", "0.58502215", "0.58372456", "0.58065504", "0.5803388", "0.5794962", "0.57822233", "0.57652336", "0.57551724", "0.5747548", "0.5740826", "0.5729332", "0.57288444", "0.5715425", "0.57104665", "0.5696492", "0.5675817", "0.56724477", "0.5665729", "0.5661573", "0.5659701", "0.5652922", "0.5648713", "0.564161", "0.56359", "0.5633436", "0.56217945", "0.5620876", "0.5615735", "0.5612703", "0.5604706", "0.5604706", "0.56031877", "0.56012666", "0.5597895", "0.5589867", "0.5587258", "0.5582892", "0.5581103", "0.5567564", "0.55617505", "0.55564237", "0.55520123", "0.55498207", "0.5538131", "0.5536699", "0.5526077", "0.55113447", "0.5509267", "0.550175" ]
0.0
-1
Uses JPA Repo and uses a Role with
public interface RoleRepository extends JpaRepository<Role, Long>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Long> {\n\n Role findByName(String name);\n\n}", "public interface RoleRepository {\n public List<UserRole> getAll();\n public UserRole getById(int id);\n public UserRole getByName(String name);\n public void create(UserRole userRole);\n}", "public interface RoleRepository extends CrudRepository<Role, Long> {\n\n Role findByName(String name);\n\n}", "public interface RoleRepository extends CrudRepository<Role, Long> {\n}", "public interface RoleRepository extends CrudRepository<Role, Integer> {\n\n\tIterable<Role> findAll(Sort sort);\n\n\tRole findByRole(String role);\n\n}", "public interface RoleRepository extends CrudRepository<Role, Long>{\n}", "@Repository\r\npublic interface RoleRepository extends JpaRepository<Role, Long> {\r\n // Query per ottenere un ruolo conoscendone il nome.\r\n Optional<Role> findByName(RoleName roleName);\r\n}", "public interface UserRoleRepository extends JpaRepository<UserRoleEntity, Long> {\n\n List<UserRoleEntity> findByUser(UserEntity entity);\n}", "public interface RoleRepository extends CrudRepository<Role, Long> {\n\n List<Role> findAll();\n Role findByName(String name);\n\n}", "public interface IRepositoryRole extends IRepository<Role,UUID> {\n public Role roleByRoleName(String roleName) throws RoleException;\n}", "public interface RolesRepo extends JpaRepository<Roles, Integer> {\n\n\tRoles findByRoleName(String roleName);\n}", "public interface SysRoleRepository {\n\n\n Long save(SysRole role);\n\n void delete(Long roleId);\n\n SysRole get(Long inventorId);\n\n List<SysRole> getAllRoleName();\n\n}", "public interface RolesRepository extends JpaRepository<RolesEntity, Long> {\n}", "@Resource(name = \"roleRepository\")\npublic interface RoleRepository extends BaseRepository<Role, Long> {\n\t\n\t@Query(nativeQuery=true,value=\"select permissions from role_permission where role=?1\")\n\tpublic List findPidByRoleId(Long rid);\n}", "@Repository\npublic interface RoleRepository extends CrudRepository<Role, Long> {\n Role findByRole(String name);\n List<Role> findAll();\n Set<Role> findAllByIdIn(List<Long> id);\n}", "public interface RoleRepository extends BaseRepository<Role, Integer> {\r\n\t\r\n\t@Query(value = \"select * from role where id in (select role_id from user_role where user_id = :userId)\", nativeQuery = true)\r\n\tList<Role> findByUserId(@Param(\"userId\") Integer userId);\r\n\t\r\n\t@Modifying\r\n\t@Query(value = \"update role set locked = :locked where id = :id\", nativeQuery=true)\r\n\tint updateLocked(@Param(\"id\") Integer id, @Param(\"locked\") Boolean locked);\r\n\r\n\tlong countByCode(String name);\r\n\t\r\n\tlong countByName(String name);\r\n}", "public interface RoleRepository extends CrudRepository<Role, Integer> {\n}", "public interface RolesRepository extends JpaRepository<Role, Integer>{\r\n\tOptional<Role> findByRoleName(Roles role);\r\n}", "public interface RoleRepository extends JpaRepository<Role,Long> {\n\n /**\n * Adnotacja Query - Spring Data dzięki adnotacji udostępnia możliwość definiowania zapytania.\n * Dodatkowa metoda findByName - wyszukuje rekord w bazie danych na podstawie nazwy roli.\n */\n @Query(\"SELECT r FROM Role r WHERE r.name = ?1\")\n public Role findByName(String name);\n}", "@Repository\npublic interface UserRoleRepository extends JpaRepository<UserRole, Long> {\n\n @Query(\"SELECT ur FROM UserRole ur WHERE ur.user.id = :userId AND ur.role.id = :roleId\")\n UserRole findByUserIdAndRoleId(@Param(\"userId\") Long userId, @Param(\"roleId\") Long roleId);\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Integer>{\n\n}", "RoleDao getRoleDao();", "public interface RoleService {\n Role selectById(Integer id);\n int insertRole(Role role);\n List<Role> getRolesByUserId(String userId);\n}", "public interface UserRoleRepository extends CrudRepository<UserRole, Integer> {\n}", "@Repository\npublic interface UserRoleRepository extends JpaRepository<UserRole, Long> {\n\n\n public void delete(UserRole userRole);\n\n public UserRole findByUser(User user);\n}", "public interface RoleDao extends Dao<RoleEntity, Long> {\n\n\t\n\t/**\n\t * Get the system-defined roles \n\t * @return List containing the System roles\n\t */\n\tList<RoleEntity> getSystemRoles();\n\t\n\t\n\t/**\n\t * @param roleName\n\t * @return Matching Role entity or NULL if none found\n\t */\n\tRoleEntity findByName(String roleName);\n\n}", "public interface AccountRoleRepository extends CrudRepository<AccountRole, Long> {\n\n List<AccountRole> findByAccountId(Long accountId);\n\n}", "public interface AppRoleRepository {\n //根据角色ID列表获取权限列表\n public List<AppRoleEntity> getRoles(String setIds);\n\n //根据角色ID获取权限列表\n public List<AppRoleEntity> getRoleList(String setId);\n\n //获取权限列表\n public List<AppRoleEntity> roleList();\n\n /**\n * 根据角色ID获取 交付APP 权限列表\n *\n * @param appSetId\n * @return\n */\n List<AppRoleEntity> getRepairAppRoleList(String appSetId);\n\n /**\n * 根据角色ID获取 工程APP 权限列表\n *\n * @param appSetId\n * @return\n */\n List<AppRoleEntity> getEngineeringAppRoleList(String appSetId);\n}", "@DBRepository\npublic interface SysRoleDao {\n\n void save(SysRole sysRole);\n\n void update(SysRole sysRole);\n\n SysRole findById(@Param(\"id\") int id);\n\n List<SysRole> getBySupplierId(@Param(\"supplierId\") int supplierId);\n\n void deleteById(@Param(\"id\") int id);\n}", "public interface RolePageRepository extends PagingAndSortingRepository<Role, Integer> {\n\n// @Query(\"from Role r where r.roleId=:id\")\n// Role findByRoleId(@Param(\"id\") int id);\n\n\n\n}", "@RestResource(path=\"roles\", rel=\"roles\")\npublic interface RoleRepository extends CrudRepository<Role, Long>{\n\n\tList<Permission> findPermissionsByRole(String role);\n}", "public interface RoleRepository extends JpaRepository<Role, Long> {\n Role findByName(String role);\n\n List<Role> findByNameIn(List<String> roles);\n}", "public interface RoleService {\n\n boolean save(Role role);\n\n Page<Role> listOrderByTime(int page, int size);\n\n List<Role> findAll();\n\n boolean editRole(Role oldRole);\n\n Role findOne(Integer id);\n\n boolean delete(Integer id);\n\n}", "@Repository\npublic interface RoleRepo extends JpaRepository<Role, Long>{\n\t\n\tOptional<Role> findByName(ValidRoles name);\n\n}", "Role findById(int id);", "public interface RoleService {\n\n Role getById(Long id);\n\n Role getByName(String name);\n}", "public interface RoleRepository extends GraphRepository<Role> {\n\n}", "public interface AbstractRoleService {\n\n List<Role> findAll();\n\n Role findByName(String type);\n\n Role findById(long id);\n}", "public interface IRoleService {\n Role findFirstByAuthority(String user);\n}", "public interface UserRoleRepository extends GenericRepository<UserRole> {\n\n public List<String> getAllRole();\n\n}", "public interface RoleService extends CrudService<Role> {\n Role findOneByRole(String role);\n}", "public interface RoleService {\n\n Long save(Role role);\n\n void update(Role role);\n\n void delete(Long id);\n\n List<Role> findAll();\n\n Role getById(Long id);\n}", "public interface RoleService {\n\n Role selectById(Long id);\n\n List<Role> selectRoleList();\n\n Set<String> selectRoles(String userName);\n\n}", "public interface RoleService {\n\n /**\n * Returns a persistent Role object identified by the specified id.\n * If no Role with that id exists, null is returned.\n *\n * @param id the Id of the Role to retrieve.\n *\n * @return a persistent Role object identified by the specified id.\n * If no Role with that id exists, null is returned.\n */\n Role findById(int id);\n\n /**\n * Returns a persistent Role object identified by the specified type.\n * If no Role of that type exists, null is returned.\n *\n * @param type The type of the Role to retrieve.\n *\n * @return a persistent Role object identified by the specified type.\n * If no Role of that type exists, null is returned.\n */\n Role findByType(RoleType type);\n\n /**\n * Returns all of the Roles found in the backing store as a List.\n *\n * @return all of the Roles found in the backing store as a List.\n */\n List<Role> findAll();\n\n /**\n * Returns a Set containing the requested Role if it was found. Otherwise\n * and empty set is returned.\n *\n * @param type the Role to get\n *\n * @return a Set containing the requested Role or an empty set if the\n * requested Role doesn't exist.\n */\n Set<Role> getRoleSet(RoleType type);\n}", "@Repository\npublic interface UserRoleDetailDao extends CrudRepository<UserRoleDetail, Integer> {\n}", "public interface RoleDao {\n\n void setSession(Session session);\n void saveRole(Role role) throws CustomException;\n void updateRole(Role role) throws CustomException;\n void deleteRole(Role role) throws CustomException;\n Role getRoleByID(String roleID);\n Role getRoleByName(String roleName);\n List<Role> getAllRoles();\n}", "public interface UserRepository extends CrudRepository<User, Long> {\r\n\t\r\n\tUser findByUsername(String username);\r\n\r\n\tUser findByActivationCode(String code);\r\n\t\r\n\tList<User> findAllByRoles(Role role);\r\n\r\n\tUser findById(long id);\r\n\r\n\r\n\r\n\t\r\n\r\n}", "public interface UserRoleService extends BaseService<UserRole> {\n\n /**\n * 好代码自己会说话\n * param roleId\n * return\n */\n List<Role> findAllByUserId(String userId);\n\n /**\n * Description: 根据用户ID获取所有用户角色映射关系\n * Name:findByUserId\n * Author:Dyenigma\n * Time:2016/4/28 22:13\n * param:[userId]\n * return:java.util.List<com.dyenigma.entity.UserRole>\n */\n List<UserRole> findByUserId(String userId);\n\n /**\n * 保存分配角色权限\n * param roleId 角色id\n * param checkedIds 菜单权限ID集合\n * return\n */\n boolean saveRole(String userId, String checkedIds);\n\n}", "List<Account> findAllByRole(Roles role);", "@Repository\npublic interface UserRolesRepository extends JpaRepository<UserRoles, Integer>, JpaSpecificationExecutor<UserRoles>, QuerydslPredicateExecutor<UserRoles> {\n\n}", "public interface SystemRoleService {\n PageInfo<SystemRole> roleList(String param, Paging page);\n CodeObject addRole(SystemRole systemRole);\n CodeObject delRole(SystemRole systemRole);\n CodeObject updateRole(SystemRole systemRole);\n List<ZtreeSimpleView> getRoleZtreeSimpleData(String sqlParam);\n List<SystemRole> findRoleJumppageByUserId(String userId);\n}", "List<Account> findAccountByRole(UserRole role);", "public interface SysRoleRepository extends WiselyRepository<SysRole,Long> , PagingAndSortingRepository<SysRole,Long>, JpaRepository<SysRole,Long> {\r\n\r\n public SysRole findByName(String name);\r\n\r\n @Query(value = \"select role_permission from sys_role where id in (:roleId)\",nativeQuery = true)\r\n public List<String> findRolePermisssionbyid(@Param(\"roleId\") List<Long> id );\r\n\r\n @Query(value = \"select * from sys_role where id in (:roleId)\",nativeQuery = true)\r\n public List<SysRole> findRoleById(@Param(\"roleId\") List<Long> id );\r\n\r\n @Modifying\r\n @Transactional\r\n @Query(value = \"delete from sys_user_roles where roles_id = ?\",nativeQuery = true)\r\n public Integer deleteUserRole(Long roleId);\r\n\r\n}", "public interface RoleService {\n\n /**\n * Return all available roles in the database.\n * @return\n */\n Collection<Role> getRoles();\n\n /**\n * Insert role into database.\n * @param role\n * @throws DataException\n */\n void insertRole(Role role) throws DataException;\n\n /**\n * Remove Role from database.\n * @param id\n * @throws DataException\n */\n void removeRole(String id) throws DataException;\n\n /**\n * Remove all roles from database.\n * @throws DataException\n */\n void removeAll() throws DataException;\n\n}", "List<AccountDetail> findAllByRole(UserRole role);", "public interface BoRoleService {\n List<BoRole> select() throws Exception;\n void insert(BoRole object) throws Exception;\n void delete(BoRole object) throws Exception;\n void update(BoRole object) throws Exception;\n List<BoRolePermission> selectRolePermission(int roleId) throws Exception;\n void allocatePermission(BoRole object) throws Exception;\n}", "@Repository\npublic interface UserRepository extends CrudRepository<User, Integer>{\n User findByUserName(String userName);\n User findByToken(String token);\n User findByPartnerId(int id);\n User findByStudentId(int id);\n User findByStudentIdAndStatus(int id, String status);\n List<User> findByRole(Role role);\n}", "@Repository\npublic interface PermissionDao {\n Set<Permission> findPermissionsByRoleId(Integer roleId);\n}", "public interface RoleService {\n public List<Role> selectRole() throws Exception;\n public Role addRole(Role role) throws Exception;\n public void deleteRole(Role role) throws Exception;\n public void updateRole(Role role) throws Exception;\n public List<RolePermission> selectRolePermission(int id) throws Exception;\n public void allocatePermission(Role role) throws Exception;\n}", "public interface RoleDao {\r\n\r\n public void save(Role role);\r\n\r\n public List<Role> queryList(String phone);\r\n\r\n\r\n public UserInfo findUser(String phone);\r\n\r\n}", "public interface RoleService {\n /**\n * 取所有角色\n * @return\n */\n public List<RoleBean> findAll();\n\n /**\n * 分页查询角色\n * @param page\n * @return\n */\n public List<RoleBean> pageQuery(Conditions cond,Page page);\n\n /**\n * 根据主键取角色\n * @param id\n * @return\n */\n public RoleBean findByPK(String id);\n\n /**\n * 保存角色\n * @param role\n * @return\n */\n public boolean save(RoleBean role);\n\n /**\n * 批量删除角色\n * @param ids\n * @return\n */\n public boolean deleteByIds(String[] ids);\n\n /**\n * 更新角色\n * @param role\n * @return\n */\n public boolean update(RoleBean role);\n\n /**\n * 检查角色名是否重复\n * @param name\n * @return\n */\n public boolean check(String name);\n\n /**\n * 取权限树\n * @return\n */\n public PermissionTree getRootNode();\n\n /**\n * 取默认角色\n * @return\n */\n public RoleBean getDefaultRole();\n\n /**\n * 取管理员角色\n * @return\n */\n public RoleBean getAdminRole();\n\n /**\n * 取超级管理员角色\n * @return\n */\n public RoleBean getSupermanRole();\n\n /**\n * 取拥有角色的所有用户\n * @return\n */\n public List<UserBean> getUsers(RoleBean role);\n public List<UserBean> getUsers(String roleId);\n}", "@Service\r\npublic interface RoleService {\r\n\t\r\n\t\r\n\t//查询角色信息\r\n\tpublic Role findRoleById(String roleId);\r\n\t\r\n\t//根据角色ID查询角色关联的功能\r\n\tpublic List<Task> findTaskByRole(String roleId);\r\n\t\r\n\t//根据机构查询所有可用的功能\r\n\tpublic List<Task> findTaskByComCode(String comCode);\r\n\t\r\n\t//查询机构下所有可见的角色\r\n\tpublic Page<Role> findRole(String comCode,String name,Pageable pageable);\r\n\r\n\tpublic Page<RoleDesignateInfo> findRoleDesignate(String superComCode ,String comCode,Pageable pageable);\r\n\t\r\n\t//根据用户组ID查询相应的角色\r\n\tpublic List<Role> findRoleByGroupId(String groupId,String comCode);\r\n\t//更新角色\r\n\tpublic void updateRole(String roleid,String comCode,String userCode,String name,String des,String roleTpe,List<String> taskids);\r\n\t\r\n\tpublic void addRole(String comCode,String userCode,String name,String des,String roleTpe,List<String> taskids);\r\n\t\r\n\tpublic void deleteRole(String roleId, String comCode);\r\n\t\r\n\tpublic void designateRole(String roleId, String comCode);\r\n\t\r\n\t//根据机构Id查询角色ID\r\n\tpublic List<String> findRoleIdByComCode(String comCode);\r\n\t\r\n}", "public interface RoleService extends GenericService<Role,Long>{\n\n /**\n * 通过用户id 查询用户 拥有的角色\n *\n * @param userId\n * @return\n */\n List<Role> selectRolesByUserId(Long userId);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProgramRepository extends JpaRepository<Program, Long> {\n\n @Query(\"select program from Program program where program.user.login = ?#{principal.username}\")\n List<Program> findByUserIsCurrentUser();\n\n}", "public interface RoleService {\n List<SysRole> getRoleByUserId(Integer userId);\n}", "public interface UserRoleService {\n public List<UserRole> getAll();\n UserRole getUserRoleById(int userRoleId);\n}", "@PreAuthorize(\"hasRole('ADMIN')\")\npublic interface BindUserRepository extends JpaRepository<BindUser, Long> {\n\n Page<BindUser> findAllByAdminUid(@Param(\"adminUid\") Long uid, Pageable pageable);\n}", "public interface RoleDao extends Dao{\n\n boolean authenticate(String username, String password);\n\n void addUser(Object user);\n\n User findByName(String username);\n\n int count();\n}", "public interface IRoleHandleSvc {\n void save(Role role);\n void deleteById(int id);\n boolean isExist(String value, String property);\n Role findByClerk(int id);\n}", "@Bean\n CommandLineRunner init(RoleRepository roleRepository, UserRepository userRepository) {\n return args -> {\n Role adminRole = roleRepository.findByRole(\"ADMIN\");\n if (adminRole == null) {\n Role newAdminRole = new Role();\n newAdminRole.setRole(\"ADMIN\");\n roleRepository.save(newAdminRole);\n }\n };\n }", "public interface DemoService {\n @RolesAllowed(\"ROLE_ADMIN\")\n List<UserEntity> findByUsername(String name);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TaskRepository extends JpaRepository<Task,Long> {\n\n @Query(\"select task from Task task where task.user.login = ?#{principal.username}\")\n List<Task> findByUserIsCurrentUser();\n\n}", "@Repository\npublic interface UserRepo extends JpaRepository<User, Long> {\n\n public List<User> findByEmail(String email);\n\tpublic List<User> findByRole(String role);\n\t@Query(value=\"SELECT new com.harmeetsingh13.dtos.UserPermissionsDto(user.id, perm.id, user.name, user.email, perm.url, perm.permission) FROM \"\n\t\t\t+ \"UserPermission AS perm RIGHT OUTER JOIN perm.user AS user WHERE user.role = :role\")\n\tpublic List<UserPermissionsDto> findAllUsersPermissionsByRole(@Param(\"role\")String role);\n}", "@Repository\npublic interface UserAuthorityRepository extends CrudRepository<UserAuthority, Long> {\n\tPage<UserAuthority> findAll(Pageable pageable);\n\n\tList<UserAuthority> findByUser(RegisteredUser registeredUser);\n\n\t@Query(value = \"select * from authorities where username = :username\", nativeQuery = true)\n\tList<UserAuthority> findByUsername(@Param(\"username\") String username);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BlogRepository extends JpaRepository<Blog, Long> {\n\n\t@Query(\"select blog from Blog blog where blog.user.login = ?#{principal.username}\")\n\tList<Blog> findByUserIsCurrentUser();\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RecipeSharedRepository extends JpaRepository<RecipeShared, Long>, JpaSpecificationExecutor<RecipeShared> {\n\n @Query(\"select recipeShared from RecipeShared recipeShared where recipeShared.user.login = ?#{principal.username}\")\n List<RecipeShared> findByUserIsCurrentUser();\n}", "public interface RoleService {\n /**\n * Retrieves all the avilable roles.\n *\n * @return a list of RoleDto objects\n */\n List<RoleDto> findAllRoles();\n}", "public RoleEntity(){}", "QuoteRole createQuoteRole();", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PeopleRoleUserMappingRepository extends JpaRepository<PeopleRoleUserMapping,Long> {\n \n}", "@Component(\"JSysUserDAO\")\n@RepositoryDefinition(domainClass = SysUser.class, idClass = Integer.class)\npublic interface SysUserDAO extends JpaRepository<SysUser,Integer> {\n @Query(\"select a from SysUser a where a.name=:name and a.password=:password\")\n// @QueryHints({ @QueryHint(name = \"org.hibernate.cacheable\", value = \"true\") })\n SysUser authentication(@Param(\"name\") String name, @Param(\"password\") String password);\n\n SysUser findByName(String name);\n\n @Query(\"select a from SysUser a left join fetch a.sysRoles where a.name=?1\")\n SysUser fetchRoleByName(String name);\n}", "@Query(\"SELECT userEntity FROM RoleEntity roleEntity JOIN roleEntity.user userEntity WHERE roleEntity.roleValue=:roleValue\")\r\n List<UserEntity> findAllByRole(@Param(\"roleValue\") RoleEntity.Role roleValue);", "public interface UserRepository extends JpaRepository<User, Long>, UserRepositoryCustom {\n\t@Query(\"SELECT u FROM User u LEFT JOIN FETCH u.roles\")\n\tList<User> findAllEager();\n\n\t@Query(\"SELECT u FROM User u LEFT JOIN FETCH u.roles r LEFT JOIN FETCH r.privileges rp WHERE u.id = :id\")\n\tUser findOneEager(@Param(\"id\") Long id);\n\n\t@Query(\"SELECT u FROM User u WHERE u.username = :username\")\n\tUser findByUsername(@Param(\"username\") String username);\n\n\t@Query(\"SELECT u FROM User u LEFT JOIN FETCH u.roles r LEFT JOIN FETCH r.privileges rp WHERE u.username = :username\")\n\tUser findByUsernameEager(@Param(\"username\") String username);\n}", "public interface MovieRepository extends CrudRepository<Movie, Long> {\r\n\r\n\t/**\r\n\t * Get all movies.\r\n\t * \r\n\t * @return List<Movie>\r\n\t */\r\n\t@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\tList<Movie> findAll();\r\n\t\r\n\t/**\r\n\t * Get all movie by genre ID.\r\n\t * \r\n\t * @param genreID\r\n\t * @return List<Movie>\r\n\t */\r\n\t@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\t@Query(\"SELECT m FROM Movie m INNER JOIN m.genres g WHERE g.genreID IN (:genreID)\")\r\n\tList<Movie> findByGenreID(@Param(\"genreID\") Long genreID);\r\n\t\r\n\t/**\r\n\t * Get movie by id.\r\n\t * \r\n\t * @param movieID\r\n\t * @return Movie\r\n\t */\r\n\t@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\tMovie findByMovieID(Long movieID);\r\n\t\r\n}", "public interface RoleServiceI {\n\n\n List<Role> getAllRoles();\n\n List<Role> getRoleByUserId(Integer userId);\n\n\n void updateUserAndRole(Integer uid,int[] rid);\n\n PageInfo<Role> getPageRoles(Integer pageNum);\n\n\n\n\n}", "@RepositoryRestResource\n@PreAuthorize(\"hasRole('ADMIN')\")\npublic interface ServiceRepository extends JpaRepository<Service,String>{\n}", "public Userrole getUserrole() {\n return getEntity();\n }", "public interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n Authority findByName(String name);\n\n}", "public interface UserRoleManager {\n\n Long add(@NotNull UserRequest userRequest) throws BusinessException;\n\n void modify(long id,@NotNull UserModifyRequest userRequest) throws BusinessException;\n\n List<String> findRolesByUserId(@NotNull String roleIds) throws BusinessException;\n}", "@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n}", "public interface RoleConceptService {\n RoleConcept save (RoleConcept roleConcept);\n RoleConcept update (RoleConcept roleConcept);\n RoleConcept findById (Integer idRoleConcept);\n List<RoleConcept> findAll();\n List<RoleConcept> findByIdRoleAndIdTravelType(Integer idRole, Integer idTravelType);\n Boolean delete (RoleConcept roleConcept);\n}", "@Repository\npublic interface FeeBaseService {\n List<FeeBase> selectList(Integer roleId);\n}", "List<Role> findAll();", "@Repository\npublic interface RolesRepository extends MongoRepository<Roles, String> {\n\n\tpublic Optional<Roles> findByIdAndStatus(String id, String status);\n\n\tpublic Optional<Roles> findByName(String name);\n\n}", "@Test\n public void getRole() throws Exception {\n doReturn(role).when(roleRepository).findOne(anyLong());\n\n RoleResponseVO responseVO = roleService.getRole(anyLong());\n\n Assert.assertNotNull(\"Get role failed\", responseVO);\n\n verify(roleRepository).findOne(anyLong());\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ReservationRepository extends JpaRepository<Reservation, Long> {\n @Query(\"select reservation from Reservation reservation where reservation.user.login = ?#{principal.preferredUsername}\")\n List<Reservation> findByUserIsCurrentUser();\n}", "public interface RepositoryUserPermission extends CrudRepository<UserPermission, Long> {\n\n UserPermission findByName(String name);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PendingRepository extends JpaRepository<Pending, Long> {\n\n @Query(\"select pending from Pending pending where pending.user.login = ?#{principal.username}\")\n List<Pending> findByUserIsCurrentUser();\n\n}", "public void run(String... args){\n User user = new User(\"bart\", \"[email protected]\", \"bart\", \"Bart\", \"Simpson\",\n true);\n Role userRole = new Role(\"bart\", \"ROLE_USER\");\n userRepository.save(user);\n roleRepository.save(userRole);\n\n User admin = new User(\"super\", \"[email protected]\", \"super\",\n \"Super\", \"Hero\", true);\n Role adminRole1 = new Role(\"super\", \"ROLE_ADMIN\");\n Role adminRole2 = new Role(\"super\", \"ROLE_USER\");\n userRepository.save(admin);\n roleRepository.save(adminRole1);\n roleRepository.save(adminRole2);\n\n//\n// User admin2 = new User(\"bart\", \"[email protected]\", \"otherBart\",\n// \"Bart\", \"Williams\", true);\n// Role adminRole3 = new Role(\"bart\", \"ROLE_ADMIN\");\n// userRepository.save(admin2);\n// roleRepository.save(adminRole3);\n // preloading departments\n Department mathDepartment = new Department();\n mathDepartment.setName(\"Math\");\n mathDepartment.setBackgroundPhoto(\"/images/badAtMath.jpg\");\n Department histSsDpt = new Department();\n histSsDpt.setName(\"History & Social Sciences\");\n histSsDpt.setBackgroundPhoto(\"/images/historybg.jpg\");\n Department csDpt = new Department();\n csDpt.setName(\"Computer Science\");\n csDpt.setBackgroundPhoto(\"/images/csbg.jpg\");\n Department artDpt = new Department();\n artDpt.setName(\"Art\");\n artDpt.setBackgroundPhoto(\"/images/artbg.jpg\");\n\n departmentRepository.save(mathDepartment);\n departmentRepository.save(histSsDpt);\n departmentRepository.save(csDpt);\n departmentRepository.save(artDpt);\n\n\n\n // adding employees\n Employee employee1 = new Employee();\n employee1.setJobTitle(\"Geometry Instructor\");\n employee1.setName(\"Michael Murray\");\n employee1.setPhoto(\"/images/MichaelMurray.png\");\n employee1.setDepartment(mathDepartment);\n\n Employee employee2 = new Employee();\n employee2.setName(\"Katsuhiro Harada\");\n employee2.setJobTitle(\"Algebra Instructor\");\n employee2.setPhoto(\"/images/Harada.jpg\");\n employee2.setDepartment(mathDepartment);\n\n Employee employee3 = new Employee();\n employee3.setName(\"Dwayne Johnson\");\n employee3.setJobTitle(\"Calculus Instructor\");\n employee3.setPhoto(\"/images/dwayneJohnson.jpg\");\n employee3.setDepartment(mathDepartment);\n\n\n Employee employee4 = new Employee();\n employee4.setName(\"Elizabeth Jennings\");\n employee4.setJobTitle(\"US History Instructor\");\n employee4.setPhoto(\"/images/EJenningsphoto.jpg\");\n employee4.setDepartment(histSsDpt);\n\n Employee employee5 = new Employee();\n employee5.setName(\"Philip Jennings\");\n employee5.setJobTitle(\"World History Instructor\");\n employee5.setPhoto(\"/images/philJenningspic.jpg\");\n employee5.setDepartment(histSsDpt);\n\n Employee employee6 = new Employee();\n employee6.setName(\"Jack Bauer\");\n employee6.setJobTitle(\"Java Instructor\");\n employee6.setPhoto(\"/images/jackBauer1.jpg\");\n employee6.setDepartment(csDpt);\n\n Employee employee7 = new Employee();\n employee7.setName(\"Nina Myers\");\n employee7.setJobTitle(\"CyberSecurity Instructor\");\n employee7.setPhoto(\"/images/NinaMyers1.jpg\");\n employee7.setDepartment(csDpt);\n\n Employee employee8 = new Employee();\n employee8.setName(\"Bob Ross\");\n employee8.setJobTitle(\"Painting Instructor\");\n employee8.setPhoto(\"/images/bobross1.jpg\");\n employee8.setDepartment(artDpt);\n\n Employee employee9 = new Employee();\n employee9.setName(\"Crystal Latimer\");\n employee9.setJobTitle(\"Art History Instructor\");\n employee9.setPhoto(\"/images/crystalLatimer1.jpg\");\n employee9.setDepartment(artDpt);\n\n\n\n\n // saving employee objects\n employeeRepository.save(employee1);\n employeeRepository.save(employee2);\n employeeRepository.save(employee3);\n employeeRepository.save(employee4);\n employeeRepository.save(employee5);\n employeeRepository.save(employee6);\n employeeRepository.save(employee7);\n employeeRepository.save(employee8);\n employeeRepository.save(employee9);\n }" ]
[ "0.72176915", "0.7167156", "0.71609956", "0.7130406", "0.7098338", "0.70870835", "0.7079932", "0.705707", "0.7043104", "0.70421815", "0.70168084", "0.7010657", "0.69937736", "0.69879913", "0.6976173", "0.6961066", "0.6930623", "0.6906886", "0.6903036", "0.6874268", "0.6855857", "0.6846371", "0.67793745", "0.67550683", "0.67536265", "0.6655714", "0.6643609", "0.6624587", "0.66097814", "0.6600936", "0.65883124", "0.65812546", "0.6574052", "0.6547474", "0.6537612", "0.6523438", "0.6517871", "0.65001696", "0.6493708", "0.64841294", "0.6478816", "0.64723754", "0.6457546", "0.6450432", "0.6429568", "0.64107955", "0.6404905", "0.6385225", "0.6380177", "0.6367322", "0.63647866", "0.6351218", "0.6337153", "0.63077074", "0.628591", "0.62849486", "0.62771827", "0.6277122", "0.6268088", "0.62649906", "0.6260295", "0.62595516", "0.6249765", "0.62494135", "0.62474316", "0.6232672", "0.6226949", "0.6226858", "0.61978936", "0.6186489", "0.61837053", "0.6170944", "0.6146496", "0.6138643", "0.612611", "0.61216444", "0.61155194", "0.61107755", "0.6098625", "0.60870636", "0.60796744", "0.60792404", "0.60771185", "0.6076569", "0.60725904", "0.60626626", "0.60566974", "0.60533786", "0.6044716", "0.6030884", "0.6028631", "0.60108227", "0.6006045", "0.5990832", "0.5986419", "0.59842867", "0.59760636", "0.5974343", "0.59649163", "0.59623" ]
0.71176213
4
set default endpoint to DEFAULT if none is given
public static Set<Set<Result>> getResults(String query, Set<String> endpoints) { if(endpoints==null) endpoints = new HashSet<String>(); if(endpoints.isEmpty()) endpoints.add(DEFAULT); //generate output for each endpoint Query sparqlQuery = QueryFactory.create(query); Set<Set<Result>> output = new HashSet<Set<Result>>(); for(String endpoint: endpoints) { QueryEngineHTTP engine = QueryExecutionFactory.createServiceRequest(endpoint, sparqlQuery); ResultSet rs = engine.execSelect(); while(rs.hasNext()) { QuerySolution qs = rs.next(); Set<Result> results = new HashSet<Result>(); List<String> vars = rs.getResultVars(); for(String var: vars) { results.add(new Result(var, qs.get(var).toString(), endpoint)); } output.add(results); } } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDefaultEndpoint(Endpoint defaultEndpoint);", "void setDefaultEndpointUri(String endpointUri);", "Endpoint getDefaultEndpoint();", "public static String getDefaultEndpoint() {\n return WorkflowsStubSettings.getDefaultEndpoint();\n }", "void setEndpoint(String endpoint);", "public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }", "public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}", "void resetToDefaultServerAddress();", "public void setEndpoint(com.quikj.server.app.EndPointInterface endpoint) {\n\t\tthis.endpoint = endpoint;\n\t}", "public void setDefaultPort() {\r\n\t\tsetPort(DEFAULT_PORT);\r\n\t}", "public void setDefaultHost(VirtualHost defaultHost) {\r\n this.defaultHost = defaultHost;\r\n }", "protected abstract String getBaseEndpoint();", "void configureEndpoint(Endpoint endpoint);", "public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }", "public void setEndpoint(org.hl7.fhir.Uri endpoint)\n {\n generatedSetterHelperImpl(endpoint, ENDPOINT$8, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "@Override\r\n\tpublic void init(EndpointConfig arg0) {\n\t\t\r\n\t}", "public String getEndpoint() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "void setEndpointParameter(Endpoint endpoint, String name, Object value) throws RuntimeCamelException;", "private static void setDefaultConfig() {\n AgentConfig agentConfig = HypertraceConfig.get();\n OpenTelemetryConfig.setDefault(OTEL_EXPORTER, \"zipkin\");\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n }", "@Test\n public void testDefaults()\n {\n NearScheme scheme = new NearScheme();\n\n scheme.setBackScheme(new LocalScheme());\n\n assertNotNull(scheme.getServiceBuilder());\n assertEquals(\"auto\", scheme.getInvalidationStrategy(new NullParameterResolver()));\n }", "public void setDefaultUrl(String url) {\n\t\tthis.defaultUrl = url;\n\t}", "public RgwAdminBuilder endpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }", "public void setEndpointInterface(String endpointInterface)\r\n {\r\n this.endpointInterface = endpointInterface;\r\n }", "public void setDefaultProxyConfig(ProxyConfig config);", "@Value(\"#{props.endpoint}\")\n\tpublic void setEndPoint(String val) {\t\t\n\t this.val = val;\n\t}", "public void setDefaultPortConfig(com.vmware.converter.DVPortSetting defaultPortConfig) {\r\n this.defaultPortConfig = defaultPortConfig;\r\n }", "public void init(EndpointConfig arg0) {\n\t\t\n\t}", "public void setNilEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().find_element_user(ENDPOINTS$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().add_element_user(ENDPOINTS$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "void setDefaultClient(String id);", "@Override\n public void setDefaultRoutePortId(String ipAddress, int portId) {\n }", "DaprSubscriptionBuilder setDefaultPath(String path) {\n if (defaultPath != null) {\n if (!defaultPath.equals(path)) {\n throw new RuntimeException(\n String.format(\n \"a default route is already set for topic %s on pubsub %s (current: '%s', supplied: '%s')\",\n this.topic, this.pubsubName, this.defaultPath, path));\n }\n }\n defaultPath = path;\n return this;\n }", "public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }", "private void setDefaultLocalPort() {\n setLocalPort(session.getConfiguration().getServerPort() - 1);// Default\n // L-1\n }", "protected void setToDefault(){\n\n\t}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"publicService\".equals(portName)) {\n setpublicServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public String getDefaultPort() {\n return defaultPort;\n }", "@Deprecated\n public V1IngressBackend getDefaultBackend();", "public void setDefault(String key){\n _default = key;\n }", "public void setDefaultHandler(PacketHandler handler) {\n hDefault=handler;\n }", "protected abstract String getBaseEndpointPath();", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"PublishAPIServiceSoap\".equals(portName)) {\r\n setPublishAPIServiceSoapEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public void setDefault(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "@Override\n\tpublic void setHandler(String defaultHandler, String handlerName) {\n\n\t}", "public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }", "public HttpEndpoint( String theEndpoint ) {\n\t\tthis( theEndpoint, true );\n\t}", "public void setToDefault();", "private static int getDefaultPort(String protocol) {\n String proto = protocol.toLowerCase().trim();\n if (proto.equals(\"http\")) {\n return 80;\n } else if (proto.equals(\"https\")) {\n return 443;\n }\n return -1;\n }", "public void setEndpoints(com.microsoft.schemas.xrm._2014.contracts.EndpointCollection endpoints)\r\n {\r\n generatedSetterHelperImpl(endpoints, ENDPOINTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\r\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UGSRuntimeServiceXfireImplHttpPort\".equals(portName)) {\n setUGSRuntimeServiceXfireImplHttpPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public Builder setServiceEndpoint(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n serviceEndpoint_ = value;\n bitField0_ |= 0x00002000;\n onChanged();\n return this;\n }", "public Builder setApiEndpoint(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n apiEndpoint_ = value;\n bitField0_ |= 0x00080000;\n onChanged();\n return this;\n }", "public void setDefault_price(java.lang.String default_price) {\n this.default_price = default_price;\n }", "public Builder clearEndpoint() {\n if (endpointBuilder_ == null) {\n endpoint_ = null;\n onChanged();\n } else {\n endpoint_ = null;\n endpointBuilder_ = null;\n }\n\n return this;\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"SliderSvcPort\".equals(portName)) {\n setSliderSvcPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setDefault(String defaultValue) {\n this.defaultValue = defaultValue;\n }", "@SuppressWarnings(\"WeakerAccess\")\n public static PilosaClient defaultClient() {\n return PilosaClient.withURI(URI.defaultURI());\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "String endpoint();", "public Builder clearServiceEndpoint() {\n serviceEndpoint_ = getDefaultInstance().getServiceEndpoint();\n bitField0_ = (bitField0_ & ~0x00002000);\n onChanged();\n return this;\n }", "void setDefault(RoutingDomainDTO dto, AsyncCallback<RoutingDomainDTO> callback);", "public void setEndpointId(String endpointId);", "private static void bindDefaultNamespace(FeedReaderPreferences settings, XPath xpath) {\n String defaultNamespace = settings.getDefaultNamespace();\n String defaultNamespacePrefix = settings.getDefaultNamespacePrefix();\n if (!defaultNamespace.isEmpty() && !defaultNamespacePrefix.isEmpty()) {\n SimpleNamespaceContext nsContext = new SimpleNamespaceContext();\n nsContext.bindNamespaceUri(defaultNamespacePrefix, defaultNamespace);\n xpath.setNamespaceContext(nsContext);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CenterServerImplPort\".equals(portName)) {\n setCenterServerImplPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }", "public void setDefaultHandler(ElementHandler handler) {\r\n defaultHandler = handler;\r\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public void initPublicEndpoint() {\n \t//TODO: Register the new Public End Point with in the Content Repository Node\n \tString uniqueId = UUID.randomUUID().toString();\n \t\n \tpublicEndPoint = new JMSEndpoint();\n \tpublicEndPoint.setAddress(uniqueId + \"/public\");\n \t\n \tpublicEndPoint.setProperties(configuration.getBrokerPool().getBroker().getConnections(\"topic\").getParameters());\n \n // save the public endpoint from the registry\n registry.createPublicEndpoint();\n \n publicSender = initPublicSender(new JMSSenderFactory().create(publicEndPoint));\n \t\n \tisPublicEndPointInit = true;\n }", "public void setDefaultTarget(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "public void setEndpointName(String endpointName) {\n this.endpointName = endpointName;\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"WSExtensionService\".equals(portName)) {\n setWSExtensionServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void addEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().add(endpoint);\r\n }", "public boolean hasEndpoint() { return true; }", "String serviceEndpoint();", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"JobSubmission2SOAP11port_http\".equals(portName)) {\n setJobSubmission2SOAP11port_httpEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"PersonController\".equals(portName)) {\n setPersonControllerEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"GarageSeller\".equals(portName)) {\n setGarageSellerEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "private void setEndpoint(Node node, DescriptorEndpointInfo ep) {\n NamedNodeMap map = node.getAttributes();\n\n String epname = map.getNamedItem(\"endpoint-name\").getNodeValue();\n String sername = map.getNamedItem(\"service-name\").getNodeValue();\n String intername = map.getNamedItem(\"interface-name\").getNodeValue();\n ep.setServiceName(new QName(getNamespace(sername), getLocalName(sername)));\n ep.setInterfaceName(new QName(getNamespace(intername), getLocalName(intername)));\n ep.setEndpointName(epname);\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UploaderPort\".equals(portName)) {\n setUploaderPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setDefaultSelector(final String defaultSelector) {\n\t\tthis.defaultSelector = defaultSelector;\n\t}", "public Builder clearEndpoint() {\n if (endpointBuilder_ == null) {\n if (stepInfoCase_ == 8) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 8) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n endpointBuilder_.clear();\n }\n return this;\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"msgserviceHttpSoap11Endpoint\".equals(portName)) {\n setmsgserviceHttpSoap11EndpointEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"WsUserServiceImpl\".equals(portName)) {\r\n setWsUserServiceImplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "public static String getDefaultMtlsEndpoint() {\n return \"biglake.mtls.googleapis.com:443\";\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"FeeCreateSOAP\".equals(portName)) {\n setFeeCreateSOAPEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"dipp\".equals(portName)) {\n setdippEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "public void setEndPoint(EndPoint endPoint) {\r\n\t\tthis.endPoint = endPoint;\r\n\t}", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"RemoteFacadeCfc\".equals(portName)) {\r\n setRemoteFacadeCfcEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public interface RpcURI {\n String rpcproto = \"http\";\n String rpcssl = \"https\";\n String rpchost = \"127.0.0.1\";\n String rpcfile = \"/\";\n\n int RPCPORT_MAINNET = 8332;\n int RPCPORT_TESTNET = 18332;\n int RPCPORT_REGTEST = 18443; // Was same port as TESTNET until Bitcoin Core 0.16.0\n\n URI DEFAULT_MAINNET_URI = rpcURI( rpchost, RPCPORT_MAINNET);\n URI DEFAULT_TESTNET_URI = rpcURI( rpchost, RPCPORT_TESTNET );\n URI DEFAULT_REGTEST_URI = rpcURI( rpchost, RPCPORT_REGTEST);\n\n // TODO: Deprecate?\n URI defaultMainNetURI = DEFAULT_MAINNET_URI;\n URI defaultTestNetURI = DEFAULT_TESTNET_URI;\n URI defaultRegTestURI = DEFAULT_REGTEST_URI;\n\n static URI getDefaultMainNetURI() {\n return DEFAULT_MAINNET_URI;\n }\n\n static URI getDefaultTestNetURI() {\n return DEFAULT_TESTNET_URI;\n }\n\n static URI getDefaultRegTestURI() {\n return DEFAULT_REGTEST_URI;\n }\n\n static URI getDefaultRegTestWalletURI() {\n return getRegTestWalletURI(rpchost);\n }\n\n static URI getRegTestWalletURI(String hostName) {\n return rpcWalletURI(hostName, RPCPORT_REGTEST, BitcoinExtendedClient.REGTEST_WALLET_NAME);\n }\n\n static URI rpcURI(String hostName, int port) {\n return URI.create(rpcproto + \"://\" + hostName + \":\" + port + rpcfile);\n }\n\n static URI rpcWalletURI(String hostName, int port, String walletName) {\n return URI.create(rpcproto + \"://\" + hostName + \":\" + port + \"/wallet/\" + walletName);\n }\n}", "public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"OrderProcessingService\".equals(portName)) {\n setOrderProcessingServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "SearchServiceRestClientImpl setEndpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }", "public void _default(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\n\t}", "public abstract Endpoint createEndpoint(String bindingId, Object implementor);", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"NFEServices\".equals(portName)) {\n setNFEServicesEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public VirtualHost getDefaultHost() {\r\n return this.defaultHost;\r\n }" ]
[ "0.9021079", "0.83034295", "0.82438403", "0.7106995", "0.7073808", "0.65550286", "0.6502338", "0.64436275", "0.64023256", "0.6229131", "0.6212951", "0.6195779", "0.6173245", "0.6148104", "0.6017904", "0.5986969", "0.59658206", "0.59173197", "0.59173197", "0.5901044", "0.5834113", "0.5814796", "0.5785651", "0.57795125", "0.5779041", "0.5765833", "0.57303846", "0.56932324", "0.56755555", "0.56370246", "0.5601579", "0.55733424", "0.5572041", "0.55609405", "0.55580735", "0.5556911", "0.55464214", "0.55243134", "0.5523536", "0.5493964", "0.5493603", "0.5492335", "0.54597235", "0.54535174", "0.54509443", "0.54485303", "0.54440206", "0.54420745", "0.5437061", "0.5428365", "0.5425498", "0.5421768", "0.5391122", "0.5387785", "0.5378842", "0.53756744", "0.5358948", "0.5356581", "0.5338435", "0.5338435", "0.5334411", "0.53069127", "0.5295326", "0.5279181", "0.52742183", "0.5269789", "0.5268605", "0.5266764", "0.52613497", "0.5247042", "0.52420866", "0.52346665", "0.5231454", "0.5228317", "0.5227796", "0.52216494", "0.5221093", "0.5217262", "0.5216601", "0.52122647", "0.5209955", "0.5203645", "0.5203425", "0.5200419", "0.51983666", "0.51934046", "0.5193263", "0.5190153", "0.5175169", "0.51667", "0.5157166", "0.5156", "0.5150008", "0.5147539", "0.5143737", "0.5136198", "0.51256984", "0.5125563", "0.5123469", "0.5117031", "0.51157683" ]
0.0
-1
Written by Bill Checks if locale is manually set or if this is the first startup of the app Post: If locale is set it does nothing If locale is not set it starts the select language activity
public boolean confirmConnection(){ boolean connected = isConnectingToInternet(); if(!connected){ DialogFragment restartQuit = new ConnectionDialogueFragment(); restartQuit.show(_activity.getFragmentManager(), "NoInternetConnection"); } return connected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureLanguageIsDefined() {\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n if (sharedPref.getBoolean(\"app_need_lang_def\", true) == true) {\n startActivity(chooseLanguageIntent);\n }\n }", "protected void launchLocaleSettings() {\r\n\t\tIntent queryIntent = new Intent(Intent.ACTION_MAIN);\r\n\t\tqueryIntent.setClassName(\"com.android.settings\", \"com.android.settings.LanguageSettings\");\r\n\t\tqueryIntent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY|Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tstartActivity(queryIntent);\r\n\t\t\r\n\t}", "public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }", "private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}", "public static void initialSystemLocale(Context context)\n {\n LogpieSystemSetting setting = LogpieSystemSetting.getInstance(context);\n if (setting.getSystemSetting(KEY_LANGUAGE) == null)\n {\n String mLanguage = Locale.getDefault().getLanguage();\n if (mLanguage.equals(Locale.CHINA) || mLanguage.equals(Locale.CHINESE))\n {\n setting.setSystemSetting(KEY_LANGUAGE, CHINESE);\n }\n else\n {\n setting.setSystemSetting(KEY_LANGUAGE, ENGLISH);\n }\n }\n }", "public void loadLocale() {\n\n\t\tSystem.out.println(\"Murtuza_Nalawala\");\n\t\tString langPref = \"Language\";\n\t\tSharedPreferences prefs = getSharedPreferences(\"CommonPrefs\",\n\t\t\t\tActivity.MODE_PRIVATE);\n\t\tString language = prefs.getString(langPref, \"\");\n\t\tSystem.out.println(\"Murtuza_Nalawala_language\" + language);\n\n\t\tchangeLang(language);\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onStart\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }", "private void setLanguageForApp(){\n String lang = sharedPreferences.getString(EXTRA_PREF_LANG,\"en\");\n\n Locale locale = new Locale(lang);\n Resources resources = getResources();\n Configuration configuration = resources.getConfiguration();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n configuration.setLocale(locale);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n getApplicationContext().createConfigurationContext(configuration);\n } else {\n resources.updateConfiguration(configuration,displayMetrics);\n }\n getApplicationContext().getResources().updateConfiguration(configuration, getApplicationContext().getResources().getDisplayMetrics());\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int pos, long id) {\n String selectedItem = (String) adapterView.getItemAtPosition(pos);\n mLanguageCode = getString(R.string.language_code_english);\n\n if (selectedItem.equals(getString(R.string.language_selection_english))) {\n mLanguageCode = getString(R.string.language_code_english);\n }\n else if (selectedItem.equals(getString(R.string.language_selection_hebrew))) {\n mLanguageCode = getString(R.string.language_code_hebrew);\n }\n\n //Creating an alert dialog to make sure the user wants to change the language\n AlertDialog alertDialog = new AlertDialog.Builder(SignInActivity.this).create();\n alertDialog.setMessage(getString(R.string.sure_to_change_app_language));\n\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getString(R.string.yes), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n Utilities.setAppPreferenceLanguage(getApplicationContext(), mLanguageCode);\n Context context = LocaleHelper.setLocale(getApplicationContext(), mLanguageCode);\n\n //Relaunching the app\n Utilities.restartApplication(SignInActivity.this);\n }\n });\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getString(R.string.no), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n alertDialog.show();\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onResume\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\n\t}", "private void initLanguage() {\n try {\n Resources resources = getApplicationContext().getResources();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n Configuration configuration = resources.getConfiguration();\n Locale locale = new Locale(\"es\", \"ES\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n configuration.setLocale(locale);\n } else {\n //noinspection deprecation\n configuration.locale = locale;\n }\n resources.updateConfiguration(configuration, displayMetrics);\n } catch (Throwable throwable) {\n Log.d(TAG, \"Couldn't apply ES language.\", throwable);\n }\n }", "public void setPreferredLocale(Locale locale);", "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onPause\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\n\t}", "public void showLanguage(String which){\n switch (which) {\n case \"en\":\n locale = new Locale(\"en\");\n config.locale = locale;\n //MainActivity.language = 0;\n languageToLoadWizard=\"en\";\n break;\n case \"sw\":\n locale = new Locale(\"sw\");\n config.locale = locale;\n //MainActivity.language = 1;\n languageToLoadWizard=\"sw\";\n break;\n case \"es\":\n locale = new Locale(\"es\");\n config.locale = locale;\n languageToLoadWizard=\"es\";\n break;\n }\n getResources().updateConfiguration(config, null);\n Intent refresh = new Intent(Language.this, Wizard.class);\n startActivity(refresh);\n finish();\n }", "public void changeLanguage(View view) {\n\n // Create Dialog\n final Dialog dialog = new Dialog(this);\n\n dialog.setTitle(R.string.language);// Doesn't work\n dialog.setContentView(R.layout.fragment_language_fragment);\n\n // Gets RadioGroup ID from dialog which contains the layout that hold the RadioGroup\n RadioGroup rg = dialog.findViewById(R.id.radiogroup);\n rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n switch (checkedId){\n case R.id.en: {// English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n case R.id.es: { // Spanish\n String languageToLoad = \"es\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\n }\n break;\n case R.id.ja: {// Japanese\n String languageToLoad = \"ja\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n default: {// In case check id gives weired int, set to English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n }\n // Refreshes Activity\n Intent intent = new Intent(getBaseContext(),WelcomePage.class);\n finish();\n startActivity(intent);\n }\n });\n\n //Show the dialog\n dialog.show();\n }", "private void setLocale() {\n\t\tLocale locale = new Locale(this.getString(R.string.default_map_locale));\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\t}", "@Override\n\tpublic void onRestart() {\n\t\tsuper.onRestart();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onRestart\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "public void onActionLocaleChanged() {\n Log.d(this.TAG, \"onActionLocaleChanged: no change\");\n }", "protected void localeChanged() {\n\t}", "void onLanguageSelected();", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void setLanguage() {\n if (Value.language_flag == 0) {\n title.setText(title_text);\n back.setText(\"back\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 1) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 2) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.english:\n Log.i(\"LANGUAGE SELECTION\", \"english\");\n setLocale(\"en\");\n return true;\n case R.id.finnish:\n Log.i(\"LANGUAGE SELECTION\", \"finnish\");\n setLocale(\"fi\");\n return true;\n case R.id.swedish:\n Log.i(\"LANGUAGE SELECTION\", \"swedish\");\n setLocale(\"sv\");\n return true;\n case R.id.hungarian:\n Log.i(\"LANGUAGE SELECTION\", \"hungarian\");\n setLocale(\"hu\");\n return true;\n case R.id.nepali:\n Log.i(\"LANGUAGE SELECTION\", \"nepali\");\n setLocale(\"ne\");\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void updateLocale() {\r\n\t\tsuper.updateLocale();\r\n\t}", "void changeLanguage() {\n\n this.currentLocaleIndex++;\n if(this.currentLocaleIndex > this.locales.size() - 1) this.currentLocaleIndex = 0;\n this.updateBundle();\n }", "public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }", "public void setLocale(Locale locale) {\n fLocale = locale;\n }", "@Test\n\t@PerfTest(invocations = 10)\n\tpublic void defLang() {\n\t\tl.setLocale(l.getLocale().getDefault());\n\t\tassertEquals(\"Register\", Internationalization.resourceBundle.getString(\"btnRegister\"));\n\t}", "@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onStop\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "public void onResume() {\n super.onResume();\n UpdateLang();\n }", "public void onInit(int code) {\n\t\t if (code==TextToSpeech.SUCCESS) {\n\t\t \t com.example.main_project.MainActivity.tts.setLanguage(Locale.getDefault());\n\n\n\t\t \t } else {\n\t\t \t com.example.main_project.MainActivity.tts = null;\n\t\t \t Toast.makeText(this, \"Failed to initialize TTS engine.\",\n\t\t \t Toast.LENGTH_SHORT).show();\n\t\t \t }\t\t\n\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n this.languageSelected = getIntent().getStringExtra(LANGUAGE_KEY);\n\n this.setContentView(R.layout.lesson_activity);\n }", "public void setLocale(Locale locale) {\n\n\t}", "public void setApplicationLanguage() {\n\t\tinitializeMixerLocalization();\n\t\tinitializeRecorderLocalization();\n\t\tinitializeMenuBarLocalization();\n\t\tsetLocalizedLanguageMenuItems();\n\t\tboardController.setLocalization(bundle);\n\t\tboardController.refreshSoundboard();\n\t}", "@SuppressWarnings(\"deprecation\")\r\n public void setLanguage(String langTo) {\n Locale locale = new Locale(langTo);\r\n Locale.setDefault(locale);\r\n\r\n Configuration config = new Configuration();\r\n\r\n config.setLocale(locale);//config.locale = locale;\r\n\r\n if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {\r\n createConfigurationContext(config);\r\n } else {\r\n getResources().updateConfiguration(config, getResources().getDisplayMetrics());\r\n }\r\n\r\n //createConfigurationContext(config);\r\n getResources().updateConfiguration(config, getApplicationContext().getResources().getDisplayMetrics());//cannot resolve yet\r\n //write into settings\r\n SharedPreferences.Editor editor = mSettings.edit();\r\n editor.putString(APP_PREFERENCES_LANGUAGE, langTo);\r\n editor.apply();\r\n //get appTitle\r\n if(getSupportActionBar()!=null){\r\n getSupportActionBar().setTitle(R.string.app_name);\r\n }\r\n\r\n }", "protected void setLocale(Locale locale) {\n this.locale = locale;\n }", "private void setDefaultLanguage() {\n this.setLanguage(Locale.getDefault().getDisplayLanguage());\n }", "@Override\n public void onInit(int i) {\n if(i!=TextToSpeech.ERROR){\n // To Choose language of speech\n textToSpeech.setLanguage(getResources().getConfiguration().locale);\n }\n }", "public void setFallbackLocale(Locale locale) { this.fallbackLocale = locale; }", "private void changeLanguage(String newLanguage){\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"1\");\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"2\");\n\t}\n\t\n\t/*\n\tprefLanguage = ((GameActivity) activity).getPreference(\"language\", \"1\");\n\tif (prefLanguage.contentEquals(\"1\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t} else if (prefLanguage.contentEquals(\"2\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t}\n\t*/\n\t\n\t\n\t\n\t/*\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t\tlocalLanguage=0;\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t\tlocalLanguage=1;\n\t}\n\t*/\n\t\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetLocale(\"en\");\n\t\t\t}", "public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }", "public void prepareLang(){\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // first time in this page, no settings yet.\n if(!sharedPreferences.contains(studySetId+\":front:\"+studySetSupportedLanguages[0])){\n lang1 = studySetSupportedLanguages[0];\n lang2 = studySetSupportedLanguages[1];\n return ;\n }\n\n // 2nd time+\n for(String lang :studySetSupportedLanguages){\n if(sharedPreferences.getBoolean(studySetId+\":front:\"+lang, false)) lang1 = lang;\n if(sharedPreferences.getBoolean(studySetId+\":back:\"+lang, false)) lang2 = lang;\n }\n }", "private void setLocale( String localeName )\r\n\t{\r\n\t\tConfiguration conf = getResources().getConfiguration();\r\n\t\tconf.locale = new Locale( localeName );\r\n\t\t\r\n\t\tsetCurrentLanguage( conf.locale.getLanguage() );\r\n\r\n\t\tDisplayMetrics metrics = new DisplayMetrics();\r\n\t\tgetWindowManager().getDefaultDisplay().getMetrics( metrics );\r\n\t\t\r\n\t\t// the next line just changes the application's locale. It changes this\r\n\t\t// globally and not just in the newly created resource\r\n\t\tResources res = new Resources( getAssets(), metrics, conf );\r\n\t\t// since we don't need the resource, just allow it to be garbage collected.\r\n\t\tres = null;\r\n\r\n\t\tLog.d( TAG, \"setLocale: locale set to \" + localeName );\r\n\t}", "private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString text = \"\";\n\t\t\t\tif(cb_VN.isChecked()) {\n\t\t\t\t\ttext = \"vn\";\n\t\t\t\t} else {\n\t\t\t\t\ttext = \"en\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsettings = getSharedPreferences(\"language\", MODE_WORLD_WRITEABLE);\n\t\t\t\teditor = settings.edit();\n\t\t\t\teditor.putString(\"language\", text);\n\t\t\t\teditor.commit();\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(Activity_ChangeLanguage.this, TabpageActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t\tonBackPressed();\n\t\t\t}", "public void setRequestedLocale(final Locale val) {\n requestedLocale = val;\n }", "public void setLocale (\r\n String strLocale) throws java.io.IOException, com.linar.jintegra.AutomationException;", "static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}", "public static void forceLocale(Context context) {\r\n\t\tfinal String language = getSavedLanguage(context);\r\n\t\t\r\n\t\tif (language == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tDebug.logE(\"force locale\", \"language \" + language);\r\n\t\t\r\n\t\tResources res = context.getResources();\r\n\r\n\t\tConfiguration config = res.getConfiguration();\r\n\t\ttry {\r\n\t\t\tconfig.locale = new Locale(language);\r\n\t\t} catch(Throwable e) {\r\n\t\t\t;\r\n\t\t}\r\n\t res.updateConfiguration(config, context.getResources().getDisplayMetrics());\r\n\t}", "public final void setLocale( Locale locale )\n {\n }", "private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }", "Locale getDefaultLocale();", "Locale getDefaultLocale();", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Intent intent = getIntent();\n id = intent.getIntExtra(\"id\", 9999);\n\n Log.d(\"ss\", Locale.getDefault().getLanguage());\n\n if( Locale.getDefault().getLanguage().equals(\"iw\")||Locale.getDefault().getLanguage().equals(\"he\")){\n getMenuInflater().inflate(R.menu.menu_main_rtl, menu);}\n else\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n if(id!=9999)\n getMenuInflater().inflate(R.menu.menu_main_update, menu);\n\n return true;\n }", "private void setLanguage(String currentLang) {\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE, currentLang);\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE_CODE, String.valueOf(languageCode));\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n switch (currentLang) {\n case Constants.AppConstant.CHINES_TRAD:\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.CHINES_SIMPLE:\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.MALAYALAM:\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.HINDI:\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.ARABIC:\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n default:\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n }\n }", "private Locale getBotLocale( HttpServletRequest request )\r\n {\r\n String strLanguage = request.getParameter( PARAMETER_LANGUAGE );\r\n\r\n if ( strLanguage != null )\r\n {\r\n return new Locale( strLanguage );\r\n }\r\n\r\n return LocaleService.getDefault( );\r\n }", "public void setLocale(Locale locale)\n {\n this.locale = locale;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_Learn) {\n //No Need To Add Learn\n } else if (id == R.id.nav_Direction) {\n Intent dirIntent = new Intent(this, Location.class);\n //Prevent Stacking\n dirIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(dirIntent);\n\n } else if (id == R.id.nav_Help) {\n\n } else if (id == R.id.nav_Preferences) {\n\n AlertDialog.Builder mBuilder = new AlertDialog.Builder(LearnClass.this);\n View mView = getLayoutInflater().inflate(R.layout.language_spinner, null);\n mBuilder.setTitle(\"Select Your Preferred Language\");\n final Spinner mSpinner = (Spinner) mView.findViewById(R.id.spinnerLanguage);\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(LearnClass.this,\n android.R.layout.simple_spinner_item, getResources().getStringArray(R.array.languageList));\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mSpinner.setAdapter(adapter);\n\n mBuilder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (!mSpinner.getSelectedItem().toString().equalsIgnoreCase(\"Select Your Preferred Language\")) {\n Toast.makeText(LearnClass.this, mSpinner.getSelectedItem().toString(), Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n });\n\n mBuilder.setNegativeButton(\"Dismiss\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n mBuilder.setView(mView);\n AlertDialog dialog = mBuilder.create();\n dialog.show();\n } else if (id == R.id.nav_aboutWayFinder) {\n\n } else if (id == R.id.nav_Home){\n Intent homeIntent = new Intent(this, MainActivity.class);\n //Prevent Stacking\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(homeIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "Language(Locale locale) {\n this.locale = locale;\n }", "@Override\n public void setLocale(Locale arg0) {\n\n }", "public static final void setLocaleFromPreferences(Context ctx) {\n String firstLocale = ctx.getResources().getConfiguration().locale.toString().substring(0, 2);\n String currentLocale = PreferenceManager.getDefaultSharedPreferences(ctx).getString(\"locale\", firstLocale);\n /**\n * Locale locale = new Locale((String) currentLocale); config.locale =\n * locale; Locale.setDefault(locale);\n */\n setLocale(ctx, currentLocale);\n }", "public void setLocale(Locale locale) {\r\n this.locale = locale;\r\n }", "@Override\n public void setLanguage(String lang) {\n }", "@FXML\n private void btnNederlandsOnAction(ActionEvent event) {\n \n locale = new Locale(\"\");\n \n }", "public static void changeAppLocale(Context ctx, String lang) {\n Locale locale = new Locale(lang);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n ctx.getResources().updateConfiguration(config, ctx.getResources().getDisplayMetrics());\n }", "private void setLanguage() {\n ResourceBundle labels = ResourceBundle.getBundle\n (\"contactmanager.Contactmanager\", Locale.getDefault()); \n this.setTitle(labels.getString(\"title\"));\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.app_bar_China){\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"myPrefs\",MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putString(\"isChinese\",\"cn\");\n editor.commit();\n defaultLanguage = \"cn\";\n //Toast.makeText(getActivity(), \"Language switched to Chinese\", Toast.LENGTH_LONG).show();\n changeLabelToChinese();\n\n }\n\n if(id == R.id.app_bar_australia){\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"myPrefs\",MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putString(\"isChinese\",\"au\");\n editor.commit();\n defaultLanguage = \"au\";\n //Toast.makeText(getActivity(), \"Language switched to English\", Toast.LENGTH_LONG).show();\n changeLabelToEnglish();\n\n }\n\n if(id == android.R.id.home){\n BottomNavigationView bottomNavigationView = getActivity().findViewById(R.id.bottom_navigationid);\n bottomNavigationView.setSelectedItemId(R.id.nav_landingPage);\n getActivity().getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container, new LandingPageFragment())\n .commit();\n\n }\n\n return super.onOptionsItemSelected(item);\n\n }", "public void setLocale(Locale locale) {\n this.locale = locale;\n }", "public void setLocale(Locale locale) {\n this.locale = locale;\n }", "public void setLocale (Locale locale) {\n _locale = locale;\n _cache.clear();\n _global = getBundle(_globalName);\n }", "public boolean enableLocaleOverride( ) {\n\t\ttry {\n\t\t\tURIBuilder builder = new URIBuilder( I18N_URL );\n\t\t\tbuilder.addParameter( \"locale\", \"en_US\" );\n\t\t\tHttpGet get = new HttpGet( builder.build( ).toURL( ).toString( ) );\n\t\t\tString result = EntityUtils.toString( this.httpClient( ).execute( get ).getEntity( ) ).trim( );\n\t\t\treturn result.contains(\"Succeeded\" );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new FitbitExecutionException( e );\n\t\t}\n\t}", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "private void init() {\n\t\t\n\t\tPropertiesManager propertiesManager = PropertiesManager.getInstance();\n\t\tFile localeDirectory = new File(propertiesManager.getProperty(\"locale.directory\", LOCALE_DIRECTORY));\n\n\t\tlocales = new ArrayList<Locale>();\n\n\t\ttry {\n\t\t\t\n\t\t\tClassUtils.addClassPathFile(localeDirectory);\n\t\t\t\n\t\t\t// Находим все доступные локали\n\t\t\tlocales = findAvailableLocales(localeDirectory);\n\n\t\t} catch(Exception ignore) {}\n\n\t\tfallbackLocale = Locale.ENGLISH;\n\t\tcontrol = new Control();\n\n\t\tif(!locales.contains(Locale.ENGLISH)) {\n\t\t\tlocales.add(0, fallbackLocale);\n\t\t}\n\n\t\tdefaultLocale = locales.get(locales.indexOf(Locale.ENGLISH));\n\t\t\n\t\tString language = propertiesManager.getProperty(\"locale.language\", \"\");\n\t\tString country = propertiesManager.getProperty(\"locale.country\", \"\");\n\t\tString variant = propertiesManager.getProperty(\"locale.variant\", \"\");\n\t\t\n\t\tLocale locale = new Locale(language, country, variant);\n\t\t\n\t\tif(locales.contains(locale)) {\n\t\t\tlocale = locales.get(locales.indexOf(locale));\n\t\t} else {\n\t\t\tlocale = defaultLocale;\n\t\t}\n\n\t\tsetLocale(locale);\n\t\t\n\t\tif(FontEditor.DEBUG) {\n\t\t\t\n\t\t\tfor(Locale l : locales) {\n\t\t\t\tSystem.out.println(\"locale found -> \" + l.getDisplayLanguage(Locale.ENGLISH));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Total locale(s) found: \" + locales.size());\n\t\t\tSystem.out.println();\n\t\t}\n//System.out.println(\">>> \" + getValue(\"shitd\"));\n\t}", "protected void setLocale(Locale locale) {\n this.locale = locale;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tconfig.locale = Locale.US;\n\t\t\t\tresources.updateConfiguration(config, dm);\n\t\t\t\tonCreate(null);\n\t\t\t}", "public static void setApplicationLanguage(Context context, String code) {\n\t\tResources res = context.getResources();\n\t\tConfiguration androidConfiguration = res.getConfiguration();\n\t\t\n\t\tandroidConfiguration.locale = new Locale(code);\n\t\tres.updateConfiguration(androidConfiguration, res.getDisplayMetrics());\n\t}", "private void initLocale(String language, String country, String variant) {\n boolean gotLanguage = !RDCUtils.isStringEmpty(language);\n boolean gotCountry = !RDCUtils.isStringEmpty(country);\n boolean gotVariant = !RDCUtils.isStringEmpty(variant);\n if (!gotLanguage) {\n return;\n } else {\n if (gotCountry) {\n if (gotVariant) {\n rdcLocale = new Locale(language, country, variant);\n } else {\n rdcLocale = new Locale(language, country);\n }\n } else {\n rdcLocale = new Locale(language);\n }\n }\n if (rdcLocale != null) {\n StringBuffer buf = new StringBuffer(language);\n if (!RDCUtils.isStringEmpty(country)) {\n buf.append('-').append(country);\n if (!RDCUtils.isStringEmpty(variant)) {\n buf.append('-').append(variant);\n }\n }\n locale = buf.toString();\n }\n }", "@Override\n\tpublic void setLocale(Locale loc) {\n\t}", "private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n if (item.getTitle().equals(getResources().getText(R.string.nav_change_language))) {\n new AlertDialog.Builder(this)\n .setTitle(getResources().getText(R.string.title_reset_confirm))\n .setMessage(getResources().getText(R.string.body_reset_confirm))\n .setNegativeButton(android.R.string.no, null) // Do nothing\n .setPositiveButton(R.string.generic_okay, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface arg0, int arg1) {\n menuViewModel.deleteAllPhrases();\n\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n editor = sharedPref.edit();\n\n editor.remove(\"user_native_language\");\n editor.remove(\"user_learn_language\");\n editor.remove(\"app_need_lang_def\");\n editor.apply();\n\n startActivity(chooseLanguageIntent);\n }\n }).create().show();\n }\n if (item.getTitle().equals(\"About\")) {\n Intent aboutIntent = new Intent(this, AboutActivity.class);\n startActivity(aboutIntent);\n }\n return true;\n }", "public void setDefaultLocale(Locale defaultLocale) {\n this.defaultLocale = defaultLocale;\n }", "public static void setDefaultLanguage(Context context, String lang) {\n Locale locale = new Locale(lang);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n context.getResources().updateConfiguration(config,\n context.getResources().getDisplayMetrics());\n }", "public void setLocale(Locale l) {\n if (!initialized)\n super.setLocale(l);\n else {\n locale = l;\n initNames();\n }\n }", "public static boolean reinit() {\n\t\tif (rb != null\n\t\t\t\t&& Config.getInstance().getLocale().equals(rb.getLocale()))\n\t\t\treturn false;\n\n\t\tif (Config.getInstance().isFileLocalized()) {\n\t\t\ttry {\n\t\t\t\tClassLoader cl = URLClassLoader\n\t\t\t\t\t\t.newInstance(new URL[] { PathManager.getInstance()\n\t\t\t\t\t\t\t\t.getLocalePath().toURI().toURL() });\n\t\t\t\trb = ResourceBundle.getBundle(\"lang\", Config.getInstance()\n\t\t\t\t\t\t.getLocale(), cl);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.severe(e.toString());\n\t\t\t}\n\n\t\t} else {\n\t\t\trb = ResourceBundle.getBundle(\"genlib.locales.lang\", Config\n\t\t\t\t\t.getInstance().getLocale());\n\t\t}\n\n\t\tLOG.log(Level.INFO, String.format(PermMessages._loc_changed, Config\n\t\t\t\t.getInstance().getLocale()));\n\t\treturn true;\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tif(ActivityLanguage.lang.equals(\"English\"))\n\t\t{\n\t\t\tgetCitizenCharterEnglish();\n\t\t}else{\n\t\t\tgetCitizenCharter();\n\t\t}\n\t\t\n\t}", "public void setLanguage(String language);", "public void localize(){\n String file=System.getProperty(\"user.home\")+ File.separator + \"rex.properties\";\n Properties rexProp = new Properties();\n try{\n\n rexProp.load(new FileInputStream(new File(file)));\n \n }catch(Exception e){\n S.out(\"Error reading rex.properties file\"); \n }\n strLanguage= rexProp.getProperty(\"Language\");\n \n if (strLanguage!=\"\"){\n Locale oLang= new Locale(strLanguage);\n I18n.setCurrentLocale(oLang);\n }\n else{\n I18n.setCurrentLocale(Locale.getDefault()); //set default locale\n }\n\n }", "public BroadcastReceiver setupLangReceiver(){\n\n if(mLangReceiver == null) {\n p(\"Opretter sproglytter\");\n mLangReceiver = new BroadcastReceiver() {\n\n @Override\n public void onReceive(Context context, Intent intent) {\n p(\"Sprog ændret til: \"+ Locale.getDefault().getLanguage());\n a.lytter.givBesked(K.SPROG_ÆNDRET, \"Sproglytter\");\n }\n\n };\n\n IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);\n registerReceiver(mLangReceiver, filter);\n p(\"Sproglytter oprettet\");\n }\n\n return mLangReceiver;\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onDestroy\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "private void changeLocateAndRestart(String lCode) {\n\t\t\n\t\t\n\t\t Locale locale = new Locale(lCode);\n\t Locale.setDefault(locale);\n\t Configuration config = new Configuration();\n\t config.locale = locale;\n\t con.getApplicationContext().getResources().updateConfiguration(config, null);\n\n\t \n\t PersistData.setStringData(con, \"LNG\", lCode);\n\t \n\t Log.e(\"Storing language code \", lCode);\n\t \n\t \n\t \n\t /*\n\t * most important, can create bug. Rememer the sequence, otherwise it won't work.\n\t */\n\t \n\t \n\t /*\n\t * Call finish method first\n\t * \n\t */\n\t MainActivity.this.finish();\n\t \n\t /*\n\t * then call same activity to restart.\n\t */\n\t \n\t Intent i=new Intent(con, MainActivity.class);\n\t\t \n\t\t startActivity(i);\n\n\t\t\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t //init\n\n Constants.SMS_INTERCEPTOR_IS_ACTIVE = true;\n \n\t requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t sp = getSharedPreferences(\"S.PRE\", 0);\n\t editor = sp.edit();\n\t \n\t String cityName = sp.getString(\"S.PRE_CITY_NAME\", \"NOT_SPECIFIED\");\n\t \n\t //set the sender num, if never set, set to null\n\t if( cityName.equalsIgnoreCase(\"waterloo\") ) { \n\t Constants.SENDER_NUM = Constants.WATERLOO_NUMBER;\n\t } else if( cityName.equalsIgnoreCase(\"toronto\") ) {\n\t \tConstants.SENDER_NUM = Constants.TORONTO_NUMBER;\n\t } else {\n\t \tConstants.SENDER_NUM = null;\n\t }\n\t \n if( sp.getBoolean(\"S.PRE_FIRST_LAUNCH\", true) ) {\n \t setContentView(R.layout.firstlunch);\n \t englishButton = (Button)findViewById(R.id.englishButton);\n \t //english.setMinimumWidth(200);\n \t englishButton.setOnClickListener( new Button.OnClickListener() { \n \t \tpublic void onClick(View v) {\n \t \t\teditor.putBoolean(\"S.PRE_CHINESE\", false);\n \t \t\teditor.putBoolean(\"S.PRE_FIRST_LAUNCH\", false);\n \t \t\teditor.commit();\n \t\t\tIntent start = new Intent();\n \t\t\tstart.setClass( AppStartConfig.this, AppStartConfig.class );\n \t\t\tstartActivity(start);\n \t\t\tAppStartConfig.this.finish();\n \t \t}\n \t });\n \t \n \t chineseButton = (Button)findViewById(R.id.chineseButton);\n \t //english.setMinimumWidth(200);\n \t \n \t chineseButton.setOnClickListener( new Button.OnClickListener() { \n \t \tpublic void onClick(View v) {\n \t \t\teditor.putBoolean(\"S.PRE_CHINESE\", true);\n \t \t\teditor.putBoolean(\"S.PRE_FIRST_LAUNCH\", false);\n \t \t\teditor.commit();\n \t\t\tIntent start = new Intent();\n \t\t\tstart.setClass( AppStartConfig.this, AppStartConfig.class );\n \t\t\tstartActivity(start);\n \t\t\tAppStartConfig.this.finish();\n \t \t}\n \t });\n } else {\n \tif( sp.getBoolean(\"S.PRE_CHINESE\", false) ) {\n\t \t Locale locale = Locale.SIMPLIFIED_CHINESE;\n\t \t Locale.setDefault(locale);\n\t \t \n\t \t Configuration config = new Configuration();\n\t \t config.locale = locale;\n\t \t getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n \t} else {\n\t \t Locale locale = Locale.ENGLISH;\n\t \t Locale.setDefault(locale);\n\t \t \n\t \t Resources resources = getBaseContext().getResources();\n\t \t Configuration config = resources.getConfiguration();\n\t \t DisplayMetrics dm = resources .getDisplayMetrics(); \n\t \t config.locale = locale;\n\t \t resources.updateConfiguration(config, dm);\n \t}\n \t\t\tIntent start = new Intent();\n \t\t\tstart.setClass( AppStartConfig.this, ShowMainMenu.class );\n\t \t\tstartActivity(start);\n\t \t\tAppStartConfig.this.finish();\n }\n\t}", "public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }", "public void onInit(int arg0) {\n\t\t if (arg0 == TextToSpeech.SUCCESS) {\r\n\t\t\t \r\n\t int result = texttospeech.setLanguage(Locale.US);\r\n\t \r\n\t if (result == TextToSpeech.LANG_MISSING_DATA\r\n\t || result == TextToSpeech.LANG_NOT_SUPPORTED) {\r\n\t Log.e(\"TTS\", \"This Language is not supported\");\r\n\t } \r\n\t else \r\n\t {\r\n\t speakOut(src, dest);\r\n\t }\r\n\t \r\n\t } \r\n\t else \r\n\t {\r\n\t Log.e(\"text to speech\", \"failed\");\r\n\t }\r\n\t\t\r\n\t}", "public static void setLanguage(Context context, String language) {\r\n\t\tputString(context, \"app-language\", language, false);\r\n\t\tputString(context, \"old-app-language\", language, true);\r\n\t\tforceLocale(context);\r\n\t}", "public static void setLocale(Locale locale) {\n// Recarga las entradas de la tabla con la nueva localizacion \n RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n}", "public void temp() {\n\t\t\n\t\tString language = locale.getLanguage();\n\t\tSystem.out.println(language);\n\t\t\n\t\tif(language.equals(\"ru\")) {\n\t\t\tsetLocale(new Locale(\"en\", \"US\"));\n\t\t} else {\n\t\t\tsetLocale(new Locale(\"ru\", \"UA\"));\n\t\t}\n\t}", "public void updateLanguage() {\n try {\n getUserTicket().setLanguage(EJBLookup.getLanguageEngine().load(updateLanguageId));\n } catch (FxApplicationException e) {\n new FxFacesMsgErr(e).addToContext();\n }\n }", "@Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n int result = tts.setLanguage(Locale.US);\n if (result == TextToSpeech.LANG_MISSING_DATA ||\n result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Log.e(\"error\", \"This Language is not supported\");\n } else {\n ConvertTextToSpeech(\"\");\n\n }\n } else\n Log.e(\"error\", \"Initilization Failed!\");\n\n\n }", "private void init(Bundle savedInstanceState) {\n selectedOption = SelectedOption.getInstance();\r\n }", "private void hitChangeLanguageApi(final String selectedLang) {\n progressBar.setVisibility(View.VISIBLE);\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = AppUtils.getInstance().getUserMap(this);\n params.put(Constants.NetworkConstant.PARAM_USER_ID, AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_USER_LANGUAGE, String.valueOf(languageCode));\n Call<ResponseBody> call = apiInterface.hitEditProfileDataApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(this, call, new NetworkListener() {\n\n @Override\n public void onSuccess(int responseCode, String response, int requestCode) {\n progressBar.setVisibility(View.GONE);\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n switch (responseCode) {\n case Constants.NetworkConstant.SUCCESS_CODE:\n setLanguage(selectedLang);\n// Locale locale = new Locale(language);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n AppUtils.getInstance().openNewActivity(ChangeLanguageActivity.this, new Intent(ChangeLanguageActivity.this, HomeActivity.class));\n break;\n }\n }\n\n\n @Override\n public void onError(String response, int requestCode) {\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n progressBar.setVisibility(View.GONE);\n }\n\n\n @Override\n public void onFailure() {\n progressBar.setVisibility(View.GONE);\n }\n }, 1);\n }" ]
[ "0.7154431", "0.713708", "0.69009155", "0.687247", "0.686078", "0.6656142", "0.6628607", "0.6559079", "0.64968413", "0.6406941", "0.6397528", "0.62992084", "0.6240161", "0.6237088", "0.62093836", "0.61912066", "0.61895853", "0.6152643", "0.61379063", "0.61344564", "0.61196613", "0.6059652", "0.6023905", "0.59470487", "0.5880996", "0.5871448", "0.586104", "0.58461815", "0.5819742", "0.581877", "0.5801085", "0.58007026", "0.57945263", "0.5793198", "0.57908463", "0.5774601", "0.57736", "0.57726467", "0.5770885", "0.57636523", "0.5754936", "0.5749977", "0.5708987", "0.570448", "0.56991166", "0.56944466", "0.5690766", "0.5685579", "0.5668102", "0.56463337", "0.564532", "0.56294364", "0.56292075", "0.56292075", "0.55991167", "0.5580361", "0.5576387", "0.55693483", "0.5555883", "0.5552213", "0.552631", "0.55120504", "0.55056584", "0.55023277", "0.54985386", "0.54687905", "0.54322386", "0.5431808", "0.5430867", "0.5430867", "0.5430348", "0.542995", "0.541736", "0.5416943", "0.5414936", "0.5413703", "0.54118705", "0.53978485", "0.5394542", "0.53798485", "0.53766084", "0.53692716", "0.5368847", "0.53516114", "0.5350776", "0.5345633", "0.53366727", "0.53332657", "0.53245944", "0.53223175", "0.53081083", "0.5296131", "0.52914697", "0.52906567", "0.5284903", "0.52799004", "0.527704", "0.5276767", "0.527484", "0.52722865", "0.5262029" ]
0.0
-1
A method that tries to connect again
public void retry(){ _activity.finish(); Intent i = _activity.getBaseContext().getPackageManager() .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName()); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); _activity.startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attemptReconnect() {\n\t\tConnection.this.reliabilityManager.attemptConnect();\n\t}", "@Override\n\tpublic void reconnect() {\n\n\t}", "@Override\r\n public boolean reconnect()\r\n {\n return state.isConnected();\r\n }", "public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}", "public void reconnected() { }", "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n getPassword() == null || getResource() == null)\n \n ||\n \n // Already logged in.\n getConnection() != null && getConnection().isAuthenticated()) {\n \n return;\n }\n \n try {\n if (getConnectionConfiguration() == null) {\n setConnectionConfiguration(new ConnectionConfiguration(\n getServerHostname(), getServerPort(), getServiceName()));\n }\n\n connect();\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}", "private int reconnect() {\n if (!isClosed) {\n try {\n if (bootstrap != null) {\n bootstrap.config().group().shutdownGracefully();\n }\n } finally {\n bootstrap = null;\n }\n initBootstrap();\n\n return connectServer();\n }\n return ServiceConstant.CONNECT_STATE_FAILURE;\n }", "private synchronized void reconnectIfNecessary() {\n if (DEBUG) {\n Log.d(LOG_TAG, \"Reconnect if necessary called...\");\n }\n if (mStarted && mClient == null) {\n connect(mIpAdress, mPort);\n }\n }", "private void reConnect(ConnectConfig connectConfig) {\n\t\tif (connectConfig.isAutoReConnect()) {\r\n\t\t\tconnectConfig.reset();\r\n\t\t\treConnectThread.add(connectConfig, method, 5000);\r\n\t\t}\r\n\t}", "@Override\n \tpublic void reconnectionSuccessful() {\n \t}", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "public native final void reconnect() throws IOException;", "protected void reconnect()\n {\n if (isReconnect())\n {\n if (!isLooping)\n {\n isLooping = true;\n executor.execute(new Runnable()\n {\n @Override\n public void run()\n {\n Log.e(\"Dudu_SDK\", sleepTime + \"\");\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n connectMS(msServer.getIp(), msServer.getPort());\n }\n });\n }\n }\n else\n {\n Log.e(\"Dudu_SDK\", \"不自动重连\");\n }\n }", "private void connectGoogleApiAgain(){\n if (!mGoogleApiClient.isConnected()) {\n ConnectionResult connectionResult =\n mGoogleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n Log.e(TAG, \"DataLayerListenerService failed to connect to GoogleApiClient, \"\n + \"error code: \" + connectionResult.getErrorCode());\n }\n }\n }", "public void resetConnectBackoff() {\n try {\n synchronized (this.lock) {\n if (this.state.getState() != ConnectivityState.TRANSIENT_FAILURE) {\n this.syncContext.drain();\n return;\n }\n cancelReconnectTask();\n this.channelLogger.log(ChannelLogger.ChannelLogLevel.INFO, \"CONNECTING; backoff interrupted\");\n gotoNonErrorState(ConnectivityState.CONNECTING);\n startNewTransport();\n this.syncContext.drain();\n }\n } catch (Throwable th) {\n this.syncContext.drain();\n throw th;\n }\n }", "public native int reEstablishConn() throws IOException,IllegalArgumentException;", "public void reconnect() throws IOException {\n if (!this.isConnected()) {\n this.connect();\n } else {\n this.disconnect();\n this.connect();\n }\n }", "public void resetConnection() {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tDriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch(Exception Ex) {\n\t\t\tSystem.out.println(\"Error connecting to database. Machine Error: \" + Ex.toString());\n\t\t\tEx.printStackTrace();\n\t\t\tSystem.out.println(\"\\nCONNECTION IS REQUIRED: EXITING\");\n\t\t\tSystem.exit(0); // No need to make sure connection is closed since it wasn't made\n\t\t}\n\t}", "void connectFailed();", "private static void checkConn() {\n try {\n if (conns.isClosed()) conns = Connect.getConnect();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void retryOnline() {\n setContentView(R.layout.activity_retry);\n Button retryButton = this.findViewById(R.id.retryButton);\n\n retryButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (isOnline()) {\n recreate();\n }\n }\n });\n }", "public void connect() {\n if (isShutdown)\n return;\n\n setNewConnection(reconnectInternal());\n }", "@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }", "@Override\n \tpublic void reconnectingIn(int arg0) {\n \t}", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "void disconnect() throws Exception;", "protected void connect() throws UnknownHostException, IOException {\n int tries = 0;\n edu.hkust.clap.monitor.Monitor.loopBegin(751);\nwhile (_socket == null) { \nedu.hkust.clap.monitor.Monitor.loopInc(751);\n{\n try {\n _socket = new Socket(_host_name, _port);\n _in = _socket.getInputStream();\n _out = _socket.getOutputStream();\n } catch (ConnectException e) {\n System.err.println(\"Failed to connect to \" + _host_name + \" on port \" + _port + \": \" + e.getMessage());\n if (++tries > MAX_TRIES) {\n throw new ConnectException(\"Failed to connect to \" + _host_name + \" on port \" + _port + \" after \" + MAX_TRIES + \" attempts:\\n\" + e);\n }\n System.err.println(\"Retrying....\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException ex) {\n }\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(751);\n\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "void connect() throws Exception;", "public void connectCallAppAbilityFail() {\n if (needTryAgain()) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: retry.\", new Object[0]);\n if (this.mHandler == null) {\n this.mHandler = createHandler();\n }\n if (this.mHandler != null) {\n try {\n this.mHandler.sendEvent(InnerEvent.get(1000, 0, null), DELAYED_TIME_RETRY_CONNECT_INCALL_ABILITY, EventHandler.Priority.IMMEDIATE);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: got IllegalArgumentException.\", new Object[0]);\n }\n }\n } else {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: reached max retry counts.\", new Object[0]);\n disconnectLiveCalls();\n this.mRetryConnectCallAppAbilityCount = 0;\n releaseResource();\n }\n }", "public void disconnect()\n {\n isConnected = false;\n }", "private void reconnectSupplier() {\n try {\n Registry registry = LocateRegistry.getRegistry(host, port);\n supplier = (SupplierInterface) registry.lookup(remoteName);\n connected = true;\n System.out.println(\"Connected to \"+supplierName);\n } catch (NotBoundException | RemoteException e) {\n e.printStackTrace();\n }\n }", "public void reconnectServer() throws RemoteException {\r\n server.reConnect(this.agentID, this);\r\n }", "protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}", "protected void connect() {\n for (int attempts = 3; attempts > 0; attempts--) {\n try {\n Socket socket = new Socket(\"localhost\", serverPort);\n attempts = 0;\n\n handleConnection(socket);\n }\n catch (ConnectException e) {\n // Ignore the 'connection refused' message and try again.\n // There may be other relevant exception messages that need adding here.\n if (e.getMessage().equals(\"Connection refused (Connection refused)\")) {\n if (attempts - 1 > 0) {\n // Print the number of attempts remaining after this one.\n logger.warning(\"Connection failed (\" + name + \"). \" + \n (attempts - 1) + \" attempts remaining.\");\n }\n else {\n logger.severe(\"Connection failed (\" + name + \"). \");\n }\n }\n else {\n logger.severe(e.toString());\n break;\n }\n }\n catch (Exception e) {\n logger.severe(\"Socket on module '\" + name + \"': \" + e.toString());\n }\n }\n }", "private void connectionLost() {\n// mConnectionLostCount++;\n// if (mConnectionLostCount < 3) {\n// \t// Send a reconnect message back to the Activity\n//\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n//\t Bundle bundle = new Bundle();\n//\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost. Reconnecting...\");\n//\t msg.setData(bundle);\n//\t mHandler.sendMessage(msg);\n//\t \n// \tconnect(mSavedDevice); \t\n// } else {\n \tsetState(STATE_LISTEN);\n\t // Send a failure message back to the Activity\n\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n\t Bundle bundle = new Bundle();\n\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost\");\n\t msg.setData(bundle);\n\t mHandler.sendMessage(msg);\n// }\n }", "void tryConnection(String mac)\n {\n if (outstanding_connect != null || open_connection != null) {\n return;\n }\n \n Log.d(Constants.LOG_TAG, \"Attempting to connect to \" + mac);\n \n BluetoothDevice dev = bt_adapter.getRemoteDevice(mac);\n outstanding_connect = new ConnectThread(dev, handler);\n outstanding_connect.start();\n \n }", "public void manualConnectionRetry()\r\n {\r\n if ( statusObj.value != STATUS_CANDIDATE_BUSY &&\r\n statusObj.value != STATUS_CANDIDATE_CONNECTION_FAILED &&\r\n statusObj.value != STATUS_CANDIDATE_RANGE_UNAVAILABLE &&\r\n statusObj.value != STATUS_CANDIDATE_BAD &&\r\n statusObj.value != STATUS_CANDIDATE_IGNORED )\r\n {\r\n return;\r\n }\r\n setStatus( STATUS_CANDIDATE_WAITING );\r\n SwarmingManager.getInstance().notifyWaitingWorkers();\r\n }", "public boolean checkConnected() {\n boolean isClosed = true;\n boolean isValid = false;\n boolean exists = (connection != null);\n\n // If we're waiting for server to recover then leave early\n if (nextReconnectTimestamp > 0 && nextReconnectTimestamp > System.nanoTime()) {\n return false;\n }\n\n if (exists) {\n try {\n isClosed = connection.isClosed();\n }\n catch (SQLException e) {\n isClosed = true;\n e.printStackTrace();\n printErrors(e);\n }\n\n if (!isClosed) {\n try {\n isValid = connection.isValid(VALID_TIMEOUT);\n }\n catch (SQLException e) {\n // Don't print stack trace because it's valid to lose idle connections to the server and have to restart them.\n isValid = false;\n }\n }\n }\n\n // Leave if all ok\n if (exists && !isClosed && isValid) {\n // Housekeeping\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n\n // Cleanup after ourselves for GC and MySQL's sake\n if (exists && !isClosed) {\n try {\n connection.close();\n }\n catch (SQLException ex) {\n // This is a housekeeping exercise, ignore errors\n }\n }\n\n // Try to connect again\n connect();\n\n // Leave if connection is good\n try {\n if (connection != null && !connection.isClosed()) {\n // Schedule a database save if we really had an outage\n if (reconnectAttempt > 1) {\n new SQLReconnectTask().runTaskLater(Assassin.p, 5);\n }\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n }\n catch (SQLException e) {\n // Failed to check isClosed, so presume connection is bad and attempt later\n e.printStackTrace();\n printErrors(e);\n }\n\n reconnectAttempt++;\n nextReconnectTimestamp = (long) (System.nanoTime() + Math.min(MAX_WAIT, (reconnectAttempt * SCALING_FACTOR * MIN_WAIT)));\n return false;\n }", "private void reconnect(MicroConnection c) {\n if (isCloseRequested() || c.isCloseRequested()) {\n log.info(\"reconnect() stop {}\", this);\n close();\n return;\n }\n\n establish(c);\n }", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "public void reconnectState(boolean b);", "public void resetConnection() {\n connected = new ArrayList<>(50);\n }", "void onConnectToNetByIPFailure();", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n // Decide what to do based on the original request code\n switch (requestCode) {\n case CONNECTION_FAILURE_RESOLUTION_REQUEST :\n /*\n * If the result code is Activity.RESULT_OK, try\n * to connect again\n */\n switch (resultCode) {\n case Activity.RESULT_OK :\n /*\n * Try the request again?\n */\n\n break;\n }\n }\n }", "public boolean isConnectable(){\n\t\tif((System.currentTimeMillis() - this.lastTry) > retryBackoff){\n\t\t\tthis.lastTry = System.currentTimeMillis();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tSC.say(\"服务器连接已中断,请重新登录!\");\n\t\t\t}", "public void connectionFailed() {\n\t\tlogin.setEnabled(true);\n\t\t// logout.setEnabled(false);\n\t\t// label.setText(\"Enter your username below\");\n\t\tun.setText(\"Anonymous\");\n\t\t// reset port number and host name as a construction time\n\t\ttfPort.setText(\"\" + defaultPort);\n\t\ttfServer.setText(defaultHost);\n\t\t// let the user change them\n\t\ttfServer.setEditable(false);\n\t\ttfPort.setEditable(false);\n\t\t// don't react to a <CR> after the username\n\t\tun.removeActionListener(this);\n\t\tconnected = false;\n\t}", "private void reEstablishConnections() {\n// System.out.println(\"Impossible to create overlay, starting over...\");\n for (NodeRecord node : registeredNodes.values()) {\n node.getNodesToConnectToList().clear();\n node.resetNumberOfConnections();\n }\n createOverlay();\n }", "public void connect(boolean autoRetry) throws MqttException {\n\t\tif(autoRetry == false) {\n\t\t\tconnect(0);\n\t\t} else {\n\t\t\tconnect(Integer.MAX_VALUE);\n\t\t}\n\t}", "private void disConnect() {\n Auth.GoogleSignInApi.revokeAccess(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n m_tvStatus.setText(R.string.status_notconnected);\n m_tvEmail.setText(\"\");\n m_tvDispName.setText(\"\");\n }\n });\n }", "private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }", "private void reconnect(final Client client, final ConnectionStateListener connectionStateListener, final int i) {\n if (i != 60 && !connect(client, connectionStateListener)) {\n disconnect();\n this.reconnectHandler_.postDelayed(new Runnable() { // from class: com.yandex.runtime.rpc.ConnectionImpl.3\n @Override // java.lang.Runnable\n public void run() {\n ConnectionImpl.this.reconnect(client, connectionStateListener, i + 1);\n }\n }, 5000);\n }\n }", "private void connectionFailed() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Unable to connect device\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n\n // Start the service over to restart listening mode\n // BluetoothSerialServer.this.start();\n }", "public void restart() {\n try {\n getXMPPServer().restart();\n }\n catch (Exception e) {\n Log.error(e.getMessage(), e);\n }\n sleep();\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n switch (requestCode) {\r\n case REQUEST_CODE_RESOLUTION:\r\n retryConnecting();\r\n break;\r\n }\r\n }", "public static void reconnect(Session session){\n Session current = (Session)_sessionRef.get();\n if(current != null){\n if(current.equals(session)){\n if(!current.isConnected())current.reconnect();\n }\n else{\n throw new IllegalStateException(\"Thread already registered with \" +\n \"another session; call unregister() or disconnect() prior to \" +\n \"calling this method\");\n }\n }\n else{\n if(!session.isConnected()){\n session.reconnect();\n _sessionRef.set(session);\n }\n else{\n _sessionRef.set(session);\n }\n }\n }", "void onDisconnectFailure();", "public void connectWiFi() {\n\n // Agrego la red para poder conectarme\n conf.networkId = wifi.addNetwork(conf);\n if (conf.networkId == -1) {\n Log.i(\"#FSEM# SERVICE\", \"Fallo addNetwork\");\n return;\n }\n\n // Receiver para cambio de estado de WIFI\n IntentFilter intentFilter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n\n context.registerReceiver(this, intentFilter);\n\n // Mientras haya otra conexión con algun semaforo, espero a que se termine.\n while (SemComunication.staticState == StaticState.CONECTADO) {\n Log.i(\"#FSEM# SERVICE\", \"Me quiero conectar a \" + this.conf.SSID\n + \", pero sigue conectado a otro semaforo: \" + SemComunication.currentSSID);\n // Obligo a desconectarse.\n wifi.disconnect();\n SystemClock.sleep(1000);\n }\n\n // Me conecto con la red que quiero, y cuando lo logre\n // se ejecuta el receiver anterior\n wifi.disconnect();\n Log.i(\"#FSEM# SERVICE\", \"Me intento conectar con \" + (this.SSID));\n wifi.enableNetwork(this.conf.networkId, true);\n wifi.reconnect();\n SemComunication.staticState = StaticState.CONECTADO;\n SemComunication.networkId = this.conf.networkId;\n SemComunication.currentSSID = this.SSID;\n }", "private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConnectionManager.closeSocket();\n }\n }", "public void connecting() {\n\n }", "private void signalError() {\n Connection connection = connectionRef.get();\n if (connection != null && connection.isDefunct()) {\n Host host = cluster.metadata.getHost(connection.address);\n // Host might be null in the case the host has been removed, but it means this has\n // been reported already so it's fine.\n if (host != null) {\n cluster.signalConnectionFailure(host, connection.lastException());\n return;\n }\n }\n\n // If the connection is not defunct, or the host has left, just reconnect manually\n reconnect();\n }", "@Override\n public void run() {\n boolean isOk = mBluetoothLeService.connect(getDeviceName());// 根据地址通过后台services去连接BLE蓝牙\n L.d(reTryCount+\" -----connect ok ? >\"+ isOk);\n if(!isOk) {\n reTryConected();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case REQUEST_CODE_RESOLUTION:\n retryConnecting();\n break;\n }\n }", "public void recycle(SnRpcConnection connection) throws Throwable {\n\t\tif (null != connection) {\n\t\t\tpool.returnObject(connection);\n\t\t}\n\t}", "public boolean isFirstToConnect() throws IOException;", "private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WARNING, \"Found VC connection dropped; reconnecting\");\n return connect();\n }\n return success;\n }", "@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }", "public abstract void connect() throws UnknownHostException, IOException;", "public void disconnect() {}", "protected void handleConnect()\n throws ConnectionFailedException\n { \n int registryPort = getRegistryPort(locator);\n Home home = null;\n Exception savedException = null;\n Iterator it = getConnectHomes().iterator();\n \n while (it.hasNext())\n {\n //TODO: -TME Need to figure this out a little better as am now dealing with\n // with 2 ports, the rmi server and the registry.\n try\n {\n home = (Home) it.next();\n String host = home.host;\n final int port = home.port;\n locator.setHomeInUse(home);\n storeLocalConfig(configuration);\n log.debug(this + \" looking up registry: \" + host + \",\" + port);\n final Registry registry = LocateRegistry.getRegistry(host, registryPort);\n log.debug(this + \" trying to connect to: \" + home);\n Remote remoteObj = lookup(registry, \"remoting/RMIServerInvoker/\" + port);\n log.debug(\"Remote RMI Stub: \" + remoteObj);\n setServerStub((RMIServerInvokerInf) remoteObj);\n connected = true;\n break;\n }\n catch(Exception e)\n {\n savedException = e;\n connected = false;\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n log.trace(\"Unable to connect RMI invoker client to \" + home, e);\n\n }\n }\n\n if (server == null)\n {\n String message = this + \" unable to connect RMI invoker client\";\n log.debug(message);\n throw new CannotConnectException(message, savedException);\n }\n }", "@Override\r\n protected void onActivityResult(\r\n int requestCode, int resultCode, Intent data) {\r\n // Decide what to do based on the original request code\r\n switch (requestCode) {\r\n\r\n case CONNECTION_FAILURE_RESOLUTION_REQUEST:\r\n /*\r\n * If the result code is Activity.RESULT_OK, try\r\n * to connect again\r\n */\r\n switch (resultCode) {\r\n case Activity.RESULT_OK:\r\n mLocationClient.connect();\r\n break;\r\n }\r\n\r\n }\r\n }", "@Override\n public void doConnect() throws IOException {\n if (!sc.finishConnect()) {\n return; // the selector gave a bad hint\n }\n\n // Sending login private\n var bb = ByteBuffer.allocate(1 + Long.BYTES);\n bb.put((byte) 9).putLong(connectId);\n queueMessage(bb.flip());\n\n updateInterestOps();\n }", "protected void doDisconnect() throws Exception {\n/* 696 */ if (!this.metadata.hasDisconnect()) {\n/* 697 */ doClose();\n/* */ }\n/* */ }", "public final boolean connect() {\n if(this.connected) return true;\n if(this.connectThread == null || !this.connectThread.isAlive()){\n this.connectThread = new MdsConnect();\n this.connectThread.start();\n }\n this.connectThread.retry();\n if(!Thread.currentThread().getName().startsWith(\"AWT-EventQueue-\")) this.waitTried();\n if(this.connected) try{\n this.setup();\n }catch(final MdsException e){\n e.printStackTrace();\n this.close();\n }\n return this.connected;\n }", "public void connect() {}", "public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }", "public Store attemptConnectionMailServer(String sslConnection) {\r\n\r\n\t\t// if connection failure try to connect 3 times\r\n\t\tint count = 0;\r\n\t\tboolean isConnected = false;\r\n\r\n\t\tif (store == null || !store.isConnected()) {\r\n\t\t\tThrowable throwable = null;\r\n\t\t\twhile (!isConnected && count < 3) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstore = connectMailServer(sslConnection);\r\n\t\t\t\t\tisConnected = store.isConnected();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrowable = e;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t// wait 1 sec\r\n\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t} catch (InterruptedException e1) {\r\n\t\t\t\t\t\tthrow new IQserRuntimeException(e1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count == 3 && !isConnected) {\r\n\t\t\t\tthrowable.printStackTrace();\r\n\t\t\t\tthrow new IQserRuntimeException(throwable);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn store;\r\n\t}", "private void reconnectKnownPlayer(String nickname, VirtualView vv) {\n gameManager.getLobbyManager().reconnectPlayer(nickname, vv);\n }", "private void rebind() {\n\t\tnotaryServers = Client.locateNotaries();\n\t\tconnectToUsers();\n\t\t//lookUpUsers();\n\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n // Decide what to do based on the original request code\n switch (requestCode) {\n case CONNECTION_FAILURE_RESOLUTION_REQUEST:\n // If the result code is OK, try to connect again\n log(\"Resolution result code is: \" + resultCode);\n switch (resultCode) {\n case Activity.RESULT_OK:\n // Try to connect again here\n mGoogleApiClient.connect();\n break;\n }\n break;\n }\n }", "@Override\n public void onConnect() {\n connected.complete(null);\n }", "public void tryLogin() {\n\t\tcontroller.setupClient(txtNickname.getText());\n\t\tString cardDesign = comboBoxCardDesign.getSelectionModel()\n\t\t\t\t.getSelectedItem();\n\t\tConfiguration.chooseCardDesign(cardDesign);\n\t\tConfiguration.chooseMeepleDesign(cardDesign);\n\t}", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "void disconnect();", "void disconnect();", "public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }", "private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }", "@Override\n\t\t\t\t\tpublic void onConnectionFailed(Robot arg0) {\n\n\t\t\t\t\t}", "boolean hasDisconnect();", "public void reconnect(String name)\n {\n if(alias.containsKey(name))\n {\n name = alias.get(name);\n }\n Context ctx = context.remove(name);\n try\n {\n ctx.close();\n }\n catch(NamingException e)\n {\n // swallow exception\n }\n }", "@Override\n public void connectionLost() {\n }", "private String retryDbConnection(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tString dbInstanceIdentifier = null;\n\t\tint counter = testStepRunner.getTestSuiteRunner().getDbConnCounter();\n\t\tif (counter == 0) {\n\t\t\tLOGGER.info(\"Open new DB connection.\");\n\t\t\tdbInstanceIdentifier = openDBConnection(testStepRunner,\n\t\t\t\t\ttestStepRunner.getTestSuiteRunner().getDbConnIdentifier(),\n\t\t\t\t\ttestStepRunner.getTestSuiteRunner().getDbParameterLst());\n\t\t\tcounter++;\n\t\t\ttestStepRunner.getTestSuiteRunner().setDbConnCounter(counter);\n\t\t} else {\n\t\t\tlogException(testStepRunner);\n\t\t}\n\n\t\treturn dbInstanceIdentifier;\n\t}", "public void disconnect();" ]
[ "0.74064136", "0.71340233", "0.7086453", "0.7077955", "0.7010218", "0.6921219", "0.68905795", "0.6878785", "0.68588144", "0.6811222", "0.6801947", "0.6784604", "0.67444867", "0.67079914", "0.6640545", "0.65810585", "0.65646803", "0.6543517", "0.6532101", "0.65193814", "0.6515355", "0.6471475", "0.64268625", "0.6381535", "0.6371403", "0.6361291", "0.63545275", "0.6299696", "0.6292266", "0.62842137", "0.6270142", "0.62597746", "0.6230106", "0.6210226", "0.6195499", "0.6186722", "0.61664987", "0.6159425", "0.61354715", "0.6132265", "0.6122608", "0.61211365", "0.6102876", "0.6100599", "0.6085513", "0.60800546", "0.604746", "0.6039956", "0.6038528", "0.6037937", "0.60340744", "0.60209846", "0.6012077", "0.60089934", "0.59990925", "0.598629", "0.5975685", "0.59577847", "0.59472334", "0.59424156", "0.5936825", "0.5923137", "0.5917775", "0.5895992", "0.5890478", "0.58855444", "0.5883941", "0.58811265", "0.5872512", "0.58696514", "0.58600014", "0.5858626", "0.58479744", "0.583329", "0.5830908", "0.5829712", "0.582095", "0.5817756", "0.5805856", "0.58050376", "0.5798139", "0.5798007", "0.5796383", "0.5790566", "0.57888645", "0.5778578", "0.5766898", "0.5757175", "0.5753347", "0.5745511", "0.57427543", "0.5737766", "0.5737766", "0.5734998", "0.57333684", "0.57305974", "0.5712101", "0.57115203", "0.5709982", "0.5705139", "0.5703423" ]
0.0
-1
Created by XuJinghui on 2019/11/5.
@Mapper public interface RecruitMapper { @Insert("insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})") int insertRecruitSend(SendRecruit sendRecruit); @Select("select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC") List<Map<String,Object>> getAllSendRecruits(int status); @Select("select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}") Map<String,Object> getSendRecruitById(int id); @Select("select * from fe_recruit where user_id=#{uid} and status=#{status}") List<Map<String,Object>> getRecruitByUidAndStatus(@Param("uid") String uid, @Param("status") int status); @Select("select * from fe_recruit where user_id=#{uid}") List<SendRecruit> getRecruitByUid(String uid); @Update("update fe_recruit set status=#{status} where id=#{id}") int updateStatusById(@Param("id") int id, @Param("status") int status); @Delete("delete from fe_recruit where id=#{id}") int deleteById(int id); @Update("update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}") int updateSendTimeById(@Param("id") int id, @Param("send_time") Date send_time); @Select("select * from fe_recruit where id=#{id}") SendRecruit getRecruitById(int id); @Update("update fe_recruit (#{recruit}) where id=#{id}") @Lang(SimpleUpdateExtendedLanguageDriver.class) int updateRecruit(SendRecruit recruit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\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}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo4359a() {\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 protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\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 }", "Petunia() {\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n void init() {\n }", "public void mo6081a() {\n }", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {\n }", "public void mo55254a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "private UsineJoueur() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "private void init() {\n\n\t}", "private TMCourse() {\n\t}", "Constructor() {\r\n\t\t \r\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 settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void initialize() {\n \n }", "public contrustor(){\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void mo12930a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo9848a() {\n }", "private Singletion3() {}", "@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\tprotected void initialize() {\n\n\t}" ]
[ "0.60649425", "0.6020451", "0.57494795", "0.57494795", "0.571991", "0.57168835", "0.5698954", "0.56624675", "0.5660715", "0.5645718", "0.5625002", "0.5601632", "0.55958825", "0.5583718", "0.5579844", "0.55597246", "0.55591196", "0.55566937", "0.5553991", "0.5538323", "0.5524534", "0.5524534", "0.5503097", "0.54984164", "0.5488931", "0.5482083", "0.5482083", "0.5482083", "0.5482083", "0.5482083", "0.5482083", "0.5482083", "0.5471099", "0.5464518", "0.5462416", "0.5454742", "0.54293805", "0.5428462", "0.54221904", "0.5421116", "0.5372941", "0.5372941", "0.5372941", "0.5372941", "0.5372941", "0.5372941", "0.53692865", "0.5364357", "0.53631043", "0.534629", "0.5344188", "0.53441817", "0.5341445", "0.5312867", "0.5308505", "0.5298719", "0.52955526", "0.5283468", "0.52782243", "0.52782243", "0.52782243", "0.52782243", "0.52782243", "0.5272584", "0.52611685", "0.52611685", "0.5260938", "0.5259131", "0.5258274", "0.5251863", "0.52381825", "0.52381825", "0.52381825", "0.5233666", "0.5233434", "0.52309155", "0.52278095", "0.5219319", "0.5214642", "0.52139044", "0.52139044", "0.52139044", "0.5211911", "0.52113163", "0.52077174", "0.5195549", "0.51924336", "0.5191292", "0.51896095", "0.51896095", "0.51895297", "0.51887274", "0.5188169", "0.5186943", "0.51855755", "0.51826876", "0.5177342", "0.51723677", "0.51723677", "0.51723677", "0.51692253" ]
0.0
-1
the left polygon of this arc
public int getIndex() { return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Shape rotateLeft() \n\t{\n\t\tif (detailShape == Tetromino.SQUARE)\n\t\t{\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tvar result = new Shape();\n\t\tresult.detailShape = detailShape;\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tresult.setX(i, y(i));\n\t\t\tresult.setY(i, -x(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public org.drip.exposure.regression.PillarVertex leftPillar()\n\t{\n\t\treturn _leftPillar;\n\t}", "Point3D getLeftUpperBackCorner();", "public double getBoundingBoxLeft() {\n return boundingBoxLeft;\n }", "public LeftWallToRightScaleArc() {\n\t\tsuper();\n\t\tthis.highGear = true;\n\t\tcenterProfile = new SrxMotionProfile(centerPoints.length, centerPoints);\n\t}", "public Direction toLeft()\n {\n return new Direction(dirInDegrees - (FULL_CIRCLE / 4));\n }", "public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }", "public Line getLeftLine() {\n\n return new Line(this.getUpperLeft(), this.getdownLeft());\n }", "public int getLeftEdge() {\n return leftEdge;\n }", "Point3D getRightLowerFrontCorner();", "private Location[] overrunLeft () {\n Location nextLocation;\n Location nextCenter;\n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(0, getY());\n nextCenter = new Location(myCanvasBounds.getWidth(), getY());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading() - ONE_QUARTER_TURN_DEGREES;\n if (getHeading() > HALF_TURN_DEGREES) {\n angle = -(THREE_QUARTER_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(0, getY() + getX() / Math.tan(angle));\n nextCenter = new Location(myCanvasBounds.getWidth(), getY() + getX() /\n Math.tan(angle));\n \n return new Location[] { nextLocation, nextCenter };\n }", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public Polygon getLine() {\n float[] vertices;\n if (modo == 1) {\n\n vertices = new float[]{\n getX(), getY(),\n getX() + (getWidth()*0.2f), getY() + getHeight()-getHeight()*0.2f,\n getX() + getWidth(), getY() + getHeight()};\n } else if (modo == 2) {\n\n vertices = new float[]{\n getX() + getWidth()- getWidth()*0.2f , getY() + getHeight() - getHeight()*0.2f,\n getX() + getWidth(), getY(),\n getX() , getY() + getHeight(),\n\n };\n\n } else if (modo == 3) {\n vertices = new float[]{\n getX(), getY(),\n getX() + getWidth() *0.8f, getY() + getHeight() *0.2f,\n getX() + getWidth(), getY() + getHeight()\n };\n } else {\n vertices = new float[]{\n getX(), getY() + getHeight(),\n getX() + getWidth()*0.2f, getY() + getHeight()*0.2f,\n getX() + getWidth(), getY()\n };\n }\n\n polygon.setVertices(vertices);\n return polygon;\n }", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "@Override\r\n\tpublic void BuildLegLeft() {\n\t\tg.drawLine(60, 100, 45, 150);\r\n\t}", "@Override\n\tpublic void buildLegLeft() {\n\t\tg.drawLine(60, 100, 40, 140);\n\t}", "EObject getLeft();", "public double getInteriorAngle() {\n\t\tdouble angle = 180 * (numberOfSides - 2) / numberOfSides;\n\t\treturn angle;\n\t}", "public double getStartAngle();", "public double getLeft(double min) {\n return Math.min(min, min + (this.length * Math.sin(Math.toRadians(this.theta)))\n ); \n }", "protected int getGraphLeft() {\r\n\t\treturn leftEdge;\r\n\t}", "private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }", "protected Polygon getPolygon() throws NoninvertibleTransformException {\n ArrayList closedPoints = new ArrayList(getCoordinates());\n\n if (!closedPoints.get(0).equals(closedPoints.get(closedPoints.size() - 1))) {\n closedPoints.add(new Coordinate((Coordinate) closedPoints.get(0)));\n }\n\n return new GeometryFactory().createPolygon(\n new GeometryFactory().createLinearRing(toArray(closedPoints)),\n null);\n }", "protected final IntervalNode getLeft() {\n\treturn(this.left);\n }", "public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }", "public void drawPolygon (int xC, int yC, int xP, int yP,int ribs, Graphics g){\r\n \r\n \tint n = ribs; \r\n \t//delta keep the the original delta , this size of delta will increase in delta size each time.\r\n \tdouble delta = (2* Math.PI)/ n;\r\n \tdouble deltaTemp = delta;\r\n \t//List of Points that I keep during n rotation.\r\n \tList <Point> points; \r\n \tfloat x,y,newX,newY;\r\n \t//First Sliding\r\n \tx = xP - xC;\r\n \ty = yP - yC;\r\n \tnewX = x; \t\r\n \tnewY = y; \t\r\n \tList <Point> vertexs = new ArrayList();\r\n \t//Follow delta angle rotation n times and write a list of vertices to vertexs list.\r\n \tfor (int i = 0; i < n ; i++)\r\n \t{\r\n \t\tnewX = (int) ((x*Math.cos(delta) - y*Math.sin(delta)));\r\n \t\tnewY = (int) ((x*Math.sin(delta) + y*Math.cos(delta))); \r\n \t\tvertexs.add(new Point(Math.round(newX),Math.round(newY))); \t\r\n \t\tSystem.out.println(vertexs.get(i).x+\",\"+vertexs.get(i).y);\r\n \t\tdelta = delta + deltaTemp;\r\n \t}\r\n \t//Sliding back\r\n \tfor (int i = 0; i < vertexs.size(); i++ ){\r\n \t\tvertexs.get(i).x = (int) (vertexs.get(i).getX() + xC);\r\n \t\tvertexs.get(i).y = (int) (vertexs.get(i).getY() + yC);\r\n \t\tg.drawRect(vertexs.get(i).x, vertexs.get(i).y ,1,1);\r\n \t}\r\n \t//draw line between the list of the points we got.\r\n \tfor (int z = 0 ; z < vertexs.size(); z++){\r\n \t\tif (z == vertexs.size()-1)\r\n \t\t\tdrawLine((int) Math.round(vertexs.get(z).getX()), (int)(vertexs.get(z).getY()),(int)(vertexs.get(0).getX()), (int)(vertexs.get(0).getY()),g);\r\n \t\telse\r\n \t\t\tdrawLine((int)(vertexs.get(z).getX()), (int)(vertexs.get(z).getY()),(int)(vertexs.get(z+1).getX()), (int)(vertexs.get(z+1).getY()),g);\r\n\r\n \t\t}\r\n \t\r\n }", "private Point2D.Double leftSensorLocation() {\n double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4);\n double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4);\n return new Point2D.Double(getX() + dx * 2, getY() + dy * 2);\n }", "@Override\r\n\tpublic void BuildArmLeft() {\n\t\tg.drawLine(60, 50, 40, 100);\r\n\t}", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "@Override\n\tpublic void buildArmLeft() {\n\t\tg.drawLine(60, 50, 30, 80);\n\t}", "public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }", "IShape getStartShape();", "public float getLeftRectF () { return atomSpriteBoundary.left; }", "public Shape getAreaColision();", "public Location getLeftArmEnd() {\r\n\t\tfinal Location l1 = GeneralMethods.getLeftSide(this.player.getLocation(), 2).add(0, 1.5, 0);\r\n\t\treturn l1.clone().add(this.player.getLocation().getDirection().normalize().multiply(this.initLength));\r\n\t}", "public Bearing leftFrom() {\n return this.get(((this.bearing - 2) + 8) % 8);\n }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "void rotatePolygon() {\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].rotate();\n\t}", "public Ellipse getLeftButton() {\n return leftButton;\n }", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public FallingPiece rotateLeft(){\r\n return new FallingPiece(coord, innerPiece.rotateLeft());\r\n }", "LogicExpression getLeft();", "public IAVLNode getLeft() {\n\t\t\treturn this.left; // to be replaced by student code\n\t\t}", "public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }", "public Line getLeftParallel(final double distance){\n\n Vector2d left = this.getOrthogonalLine().direction;\n left.normalize();\n\n // make sure its on the left side\n Point2d pPlusLeft = new Point2d(this.point);\n pPlusLeft.add(left);\n if( !isPointOnTheLeft( pPlusLeft ))\n {\n left.scale(-1);\n }\n\n // go distance further\n left.scale(distance);\n\n // add to point\n pPlusLeft.x = point.x; pPlusLeft.y = point.y;\n pPlusLeft.add(left);\n\n // make new Line\n Line parallel = new Line(pPlusLeft, direction);\n return parallel;\n }", "public FPointType calculateUpperLeft() {\n fRectBound = getBounds2D();\n FPointType fptUpperLeft = new FPointType(fRectBound.x, fRectBound.y);\n calculate(fptUpperLeft);\n \n rotateRadian = 0.0f;\n \n return fptUpperLeft;\n }", "@Override\r\n\tpublic Trajectory getLeftTrajectory() {\n\t\treturn left;\r\n\t}", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public ArrayList<Point> getLeftZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xLeftCentroid = 0;\n int yLeftCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = 0; x <= divider.x; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\tSystem.out.print(\"0\");\n } else {\n\n //\t\tSystem.out.print(\"1\");\n }\n\n }\n //\tSystem.out.println(\"\");\n }\n //\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n double d_yLeftCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xLeftCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yLeftCentroid = (int) Math.round(new Double(d_yLeftCentroid));\n xLeftCentroid = (int) Math.round(new Double(d_xLeftCentroid));\n\n\n point3 = new Point(xLeftCentroid, yLeftCentroid);\n\n Point begin = new Point(0, 0);\n Point end = new Point(divider.x, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xLeftCentroid;//�\n begin.y = 0;\n\n end.x = divider.x;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n return points;\n }", "public Lane getLeft() {\r\n\t\treturn left;\r\n\t}", "public double getLeft() {\n return this.xL;\n }", "public Point getLeft(BufferedImage dest_image, Point centroid, Point begin, Point end) {\n\n\n int xc = centroid.x;\n\n int x = begin.x;\n int y = begin.y;\n\n int x_sumL = 0;\n int y_sumL = 0;\n\n int countL = 0;\n for (y = begin.y; y < end.y; y++) {\n for (x = begin.x; x <= xc; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n x_sumL += x;\n y_sumL += y;\n countL++;\n //\t\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n }\n//\t\tSystem.out.println(\"xsumL : \"+x_sumL);\n//\t\tSystem.out.println(\"ysumL : \"+y_sumL);\n//\t\tSystem.out.println(\"CountL :\"+countL);\n int x_left = 0;\n int y_left = 0;\n if (countL == 0) {\n //JOptionPane.showMessageDialog(null, \"Kiri count 0 \"+fname );\n x_left = 0;\n y_left = 0;\n } else {\n double d_yLeft = Double.valueOf(df.format(new Double(y_sumL).doubleValue() / new Double(countL).doubleValue()));\n double d_xLeft = Double.valueOf(df.format(new Double(x_sumL).doubleValue() / new Double(countL).doubleValue()));\n y_left = (int) Math.round(new Double(d_yLeft));\n x_left = (int) Math.round(new Double(d_xLeft));\n\n//\t\t\tx_left = (int)Math.round(new Double(x_sumL)/new Double(countL));\n//\t\t\ty_left = (int)Math.round(new Double(y_sumL)/new Double(countL));\n }\n return new Point(x_left, y_left);\n\n }", "public Location getLeft()\n\t{\n\t\tif(checkLeft())\n\t\t{\n\t\t\treturn new Location(row,col-1);\n\t\t}\n\t\treturn this;\n\t}", "public Piece[] getLeftLine() {\n Piece[] leftLine = new Piece[3];\n for (int i = 0; i < this._board.length; i += 1) {\n leftLine[i] = _board[0][2 - i];\n }\n return leftLine;\n }", "public CellIDExpression getLeftCell() {\n\t\treturn leftCell;\n\t}", "public void setBoundingBoxLeft(double value) {\n this.boundingBoxLeft = value;\n }", "@Override\r\n\tpublic String moveLeft() {\n\r\n\t\tif((0<x && x<=50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((40<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public Direction left() {\n\t\treturn left;\n\t}", "public MovingPolygon() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}", "public Polygon getArea() {\n\t\treturn area;\n\t}", "public int[] angleMarker()\n {\n int[] coord = {(int)X(),(int)Y()};\n if (leftNeighbour == null || rightNeighbour == null) return coord;\n double middleAngle = getMiddleDirection();\n coord[0] = (int)(X() + Math.cos(middleAngle) * 32);\n coord[1] = (int)(Y() + Math.sin(middleAngle) * 32);\n return coord;\n }", "public Shape getClip()\r\n\t{\r\n\t\treturn _g2.getClip();\r\n\t}", "public Location left() {\n return new Location(row, column - 1);\n }", "@Override\r\n\tpublic SymbolicPolynomial getXCondition() {\r\n\t\t// x0 = (xA - xS)*cos(alpha) - (yA - yS)*sin(alpha) + xS\r\n\t\t// x0 - (xA - xS)*cos(alpha) + (yA - yS)*sin(alpha) - xS = 0\r\n\t\tSymbolicPolynomial xConditionForRotatedPoint = new SymbolicPolynomial();\r\n\t\tSymbolicVariable x0 = new SymbolicVariable(Variable.VAR_TYPE_SYMB_X, M0Label);\r\n\t\tSymbolicVariable xA = new SymbolicVariable(Variable.VAR_TYPE_SYMB_X, ALabel);\r\n\t\tSymbolicVariable yA = new SymbolicVariable(Variable.VAR_TYPE_SYMB_Y, ALabel);\r\n\t\tSymbolicVariable xS = new SymbolicVariable(Variable.VAR_TYPE_SYMB_X, SLabel);\r\n\t\tSymbolicVariable yS = new SymbolicVariable(Variable.VAR_TYPE_SYMB_Y, SLabel);\r\n\t\t\r\n\t\tSymbolicPolynomial m0Part = new SymbolicPolynomial();\r\n\t\tSymbolicPolynomial xPart = new SymbolicPolynomial();\r\n\t\tSymbolicPolynomial yPart = new SymbolicPolynomial();\r\n\t\tSymbolicPolynomial zPart = new SymbolicPolynomial();\r\n\t\tSymbolicTerm tempTerm = null;\r\n\t\t\r\n\t\ttempTerm = new SymbolicTerm(1);\r\n\t\ttempTerm.addPower(new Power(x0, 1));\r\n\t\tm0Part.addTerm(tempTerm);\r\n\t\t\r\n\t\ttempTerm = new SymbolicTerm(1);\r\n\t\ttempTerm.addPower(new Power(xA, 1));\r\n\t\txPart.addTerm(tempTerm);\r\n\t\ttempTerm = new SymbolicTerm(-1);\r\n\t\ttempTerm.addPower(new Power(xS, 1));\r\n\t\txPart.addTerm(tempTerm);\r\n\t\txPart.multiplyByRealConstant(Math.cos(this.radAngleMeasure));\r\n\t\t\r\n\t\ttempTerm = new SymbolicTerm(1);\r\n\t\ttempTerm.addPower(new Power(yA, 1));\r\n\t\tyPart.addTerm(tempTerm);\r\n\t\ttempTerm = new SymbolicTerm(-1);\r\n\t\ttempTerm.addPower(new Power(yS, 1));\r\n\t\tyPart.addTerm(tempTerm);\r\n\t\tyPart.multiplyByRealConstant(Math.sin(this.radAngleMeasure));\r\n\t\t\r\n\t\ttempTerm = new SymbolicTerm(1);\r\n\t\ttempTerm.addPower(new Power(xS, 1));\r\n\t\tzPart.addTerm(tempTerm);\r\n\t\t\r\n\t\txConditionForRotatedPoint.addPolynomial(m0Part);\r\n\t\txConditionForRotatedPoint.subtractPolynomial(xPart);\r\n\t\txConditionForRotatedPoint.addPolynomial(yPart);\r\n\t\txConditionForRotatedPoint.subtractPolynomial(zPart);\r\n\t\t\r\n\t\treturn xConditionForRotatedPoint;\r\n\t}", "public Point getCorner() {\n\t\treturn corner;\n\t}", "public Direction left() {\r\n\t\tint newDir = this.index - 1;\r\n\r\n\t\tnewDir = (newDir == 0) ? 4 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}", "public AVLNode<E> getLeft() {\r\n\t\treturn left;\r\n\t}", "public Vertex moveLeft() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x - 1, e);\n }\n return current;\n }", "public Rectangle2D getBoundary()\n {\n \tRectangle2D shape = new Rectangle2D.Float();\n shape.setFrame(location.getX(),location.getY(),12,length);\n return shape;\n }", "public Direction left() {\r\n\t\tif (this.direction == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tthis.direction = Direction.WEST;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tthis.direction = Direction.SOUTH;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tthis.direction = Direction.EAST;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tthis.direction = Direction.NORTH;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn this.direction;\r\n\t}", "synchronized public Polygon getPerimeter() {\n \t\tif (null == p || p[0].length < 2) return new Polygon();\n \n \t\t// local pointers, since they may be transformed\n \t\tint n_points = this.n_points;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Object[] ob = getTransformedData();\n \t\t\tp = (double[][])ob[0];\n \t\t\tn_points = p[0].length;\n \t\t}\n \t\tint[] x = new int[n_points];\n \t\tint[] y = new int[n_points];\n \t\tfor (int i=0; i<n_points; i++) {\n \t\t\tx[i] = (int)p[0][i];\n \t\t\ty[i] = (int)p[1][i];\n \t\t}\n \t\treturn new Polygon(x, y, n_points);\n \t}", "private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }", "private void leftLeftCase(NodeRB<K, V> x) {\n\t\t// Swap colors of g and p\n\t\tboolean aux = x.parent.color;\n\t\tx.parent.color = x.getGrandParent().color;\n\t\tx.getGrandParent().color = aux;\n\n\t\t// Right Rotate g\n\t\tNodeRB<K, V> g = x.getGrandParent();\n\t\tif (g.parent == null) {\n\t\t\troot = rotateRight(g);\n\t\t} else {\n\t\t\trotateRight(g);\n\t\t}\n\t}", "public String getLeftRoadId() {\n return leftRoadId;\n }", "public double getCornering() {\r\n return cornering;\r\n }", "public Point getdownLeft() {\n Point downLeft = new Point(this.upperLeft.getX(), this.upperLeft.getY() + this.getHeight());\n return downLeft;\n }", "public GPoint midpoint() {\n return(new GPoint((point1.getFirst()+point2.getFirst())/2.0,\n (point1.getSecond()+point2.getSecond())/2.0));\n }", "public double getLeftTrigger() {\n\t\treturn getRawAxis(LEFT_TRIGGER);\n\t}", "public double getLeftXAxis() {\n\t\treturn getRawAxis(Axis_LeftX);\n\t}", "@Override\n\tpublic Polygon getCollisionShape() {\n\t\treturn null;\n\t}", "public double Left(){\n\t\treturn (x);\n\t}", "@JSProperty(\"left\")\n @Nullable\n Chart3dFrameLeftOptions getLeft();", "public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }", "public void drawLeftTriangle(){\n\t //This loop draws the left triangle. It also decrements the width to make the triangle more distinct.\n\t for(int j = 0; j < height; j++)\n\t {\n\t \tfor(int k = 0; k < width; k++)\n\t \t{\n\t\t\t System.out.print(appearance);\n\t\t\t \n\t\t\t System.out.print(\"\");\n\t\t\t}\n\t\t\twidth--;//Decreases width.\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t System.out.println(\"\");\n\t}", "public abstract Polygon4D project();", "public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }", "public BeaconColor getStateLeft() {\n return left;\n }", "public MutableImage rotateLeft() {\n return rotate(-90);\n }", "public int getPolyA() { \n\t\treturn( getEndOfBEDentry( getBEDentry().getBlockAtRelativePosition(-1)));\n\t}", "public Expr left() {\n\treturn this.left;\n }", "public MigAcceptancePolicy getLeftComponent() {\n return leftComponent;\n }", "public LeftSwitchToFirstCubePt2Arc() {\n\t\tsuper();\n\t\tthis.highGear = true;\n\t\tcenterProfile = new SrxMotionProfile(centerPoints.length, centerPoints);\n\t}", "public MeasurementCSSImpl getLeft()\n\t{\n\t\treturn left;\n\t}", "@Override\n double areaFigure() {\n if (!isRealFigure()) {\n return -1;\n }\n //When the triangular prism is real\n double faceArea = (getA() + getB() + getC()) * getD();\n return faceArea + 2 * super.areaFigure();\n }", "public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }", "public float getLeftX() {\n\t\treturn leftX;\n\t}", "@Override\n protected void buildGraphics() {\n GArc rightWing = new GArc(100, 100, -60, 120);\n rightWing.setColor(Color.magenta);\n rightWing.setFilled(true);\n rightWing.setFillColor(Color.magenta);\n // position in format (cx - r, cy - r) for arc\n getGraphics().add(rightWing, (-15 - 50), (0 - 50));\n\n GArc leftWing = new GArc(100, 100, 120, 120);\n leftWing.setColor(Color.magenta);\n leftWing.setFilled(true);\n leftWing.setFillColor(Color.magenta);\n getGraphics().add(leftWing, (-15 - 50), (0 - 50));\n\n GOval rightWingDot = new GOval(-3, -15, 30, 30);\n rightWingDot.setColor(Color.blue);\n rightWingDot.setFilled(true);\n rightWingDot.setFillColor(Color.blue);\n getGraphics().add(rightWingDot);\n\n GOval rightWingDot2 = new GOval(7, -5, 10, 10);\n rightWingDot2.setColor(Color.cyan);\n rightWingDot2.setFilled(true);\n rightWingDot2.setFillColor(Color.cyan);\n getGraphics().add(rightWingDot2);\n\n GLine rightWingLine = new GLine(-15, 0, 35, 0);\n rightWingLine.setColor(Color.green);\n getGraphics().add(rightWingLine);\n\n GOval leftWingDot = new GOval(-57, -15, 30, 30);\n leftWingDot.setColor(Color.blue);\n leftWingDot.setFilled(true);\n leftWingDot.setFillColor(Color.blue);\n getGraphics().add(leftWingDot);\n\n GOval leftWingDot2 = new GOval(-47, -5, 10, 10);\n leftWingDot2.setColor(Color.cyan);\n leftWingDot2.setFilled(true);\n leftWingDot2.setFillColor(Color.cyan);\n getGraphics().add(leftWingDot2);\n\n GLine leftWingLine = new GLine(-15, 0, -65, 0);\n leftWingLine.setColor(Color.green);\n getGraphics().add(leftWingLine);\n\n GOval body = new GOval(-20, -30, 10, 60);\n body.setColor(Color.black);\n body.setFilled(true);\n body.setFillColor(Color.black);\n getGraphics().add(body);\n\n GOval head = new GOval(-23, -43, 16, 16);\n head.setColor(Color.black);\n head.setFilled(true);\n head.setFillColor(Color.black);\n getGraphics().add(head);\n }", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public int getXLeft() {\n return xLeft;\n }", "Binarbre<E> getLeft();" ]
[ "0.65929276", "0.61452514", "0.6095586", "0.608517", "0.60809934", "0.6062857", "0.5986248", "0.5975387", "0.5973962", "0.59600466", "0.5951286", "0.5921792", "0.5892439", "0.5876438", "0.58725727", "0.58702415", "0.5842911", "0.584157", "0.5826013", "0.58118016", "0.58017594", "0.5793095", "0.5792275", "0.5755611", "0.57506925", "0.5712639", "0.57071316", "0.567944", "0.56777394", "0.5672907", "0.56605786", "0.56432104", "0.56329495", "0.56288284", "0.562625", "0.56223845", "0.5605482", "0.5567524", "0.55671823", "0.55594134", "0.55474645", "0.5543872", "0.55288196", "0.5514908", "0.5506867", "0.55035734", "0.5476132", "0.54635245", "0.5448508", "0.5436093", "0.5435747", "0.5413118", "0.54112023", "0.540442", "0.53980327", "0.53879905", "0.538539", "0.53788626", "0.5377359", "0.5369965", "0.53629196", "0.53557", "0.5344555", "0.53367317", "0.5332456", "0.53284335", "0.53260535", "0.5325381", "0.5323832", "0.5313945", "0.5308077", "0.5275709", "0.52741283", "0.5274055", "0.52690315", "0.5265086", "0.52622104", "0.5256225", "0.5248681", "0.5235789", "0.52339655", "0.522527", "0.5217581", "0.52161145", "0.5214643", "0.5206377", "0.5204921", "0.5202767", "0.5201727", "0.5199477", "0.5199388", "0.51855487", "0.5182137", "0.5179671", "0.51782644", "0.5174041", "0.51670784", "0.516539", "0.5160147", "0.51579624", "0.5148428" ]
0.0
-1
the constructor of Line with dots
Line(Dot StartDot,Dot EndDot,int index){ this.StartDot = StartDot; this.EndDot = EndDot; this.sx = StartDot.getX(); this.sy = StartDot.getY(); this.ex = EndDot.getX(); this.ey = EndDot.getY(); this.Angle = Math.atan2((ey - sy),(ex - sx)); // if((ey - sy) > 0 && (ex - sx) < 0) Angle += Math.PI; // if((ey - sy) < 0 && (ex - sx) < 0) Angle += Math.PI; // if((ey - sy) < 0 && (ex - sx) > 0) Angle += Math.PI * 2; // if((ex-sx) < 0) Angle += Math.PI; // if((ex - sx) > 0 && (ey - sy) < 0) Angle += Math.PI * 2; if(Angle < 0) Angle += Math.PI * 2; this.rightPoly = null; this.leftPoly = null; this.index = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Line(){\n\t\t\n\t}", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "Line createLine();", "public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }", "public Lines(int rows, int columns, Dot[][] dots) {\n\n for (int row = 0; row <= rows; ++row) {\n for (int column = 0; column <= columns; ++column) {\n if (column != columns) {\n lines.add(new Line(dots[row][column], dots[row][column + 1]));\n }\n if (row != rows) {\n lines.add(new Line(dots[row][column], dots[row + 1][column]));\n }\n }\n }\n }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public DerivationLine()\n {\n super();\n this.clauses = new ArrayList<>();\n }", "public Line(final Pos first, final Pos second) {\n this(first, second, new Black());\n }", "public Line(double x1, double y1, double x2, double y2) {\r\n this(new Point(x1, y1), new Point(x2, y2));\r\n }", "public Line (double x0, double y0, double x1, double y1) {\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n }", "public LineData()\n\t{\n\t}", "public Line() {\n\t\t\n\t\tthis.point1 = null;\n\t\tthis.point2 = null;\n\t\tthis.distance = 0;\n\t}", "public Line(TwoDPoint p1, TwoDPoint p2) throws Exception\n {\n this(p1.x, p1.y, p2.x, p2.y);\n }", "public OMAbstractLine() {\n super();\n }", "public Line(float dT)\n\t{\n\t\tthis(dT, 1.0f, 0.0f);\n\t}", "public Dot() {\n super(SOME, NONE); // a deliberate lie\n }", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "public EPILine(int[][] pixels, int line, Position position)\r\n\t{\r\n\t\t_position=position;\r\n\t\t_line=line;\r\n\t\t_pixels=pixels;\r\n\t\t\r\n\t}", "public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}", "public\nBLine2D(double x2, double y2)\n{\n\tsuper (0.0, 0.0, x2, y2);\n}", "public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public BSPLine() {\n super();\n }", "public LineShape() {\n sc=new ShapeComponent[4];\n sc[0]=new ShapeComponent(0,0);\n sc[1]=new ShapeComponent(0,5);\n sc[2]=new ShapeComponent(0,10);\n sc[3]=new ShapeComponent(0,15);\n size=5;\n }", "public OpenPolyLine(List<Point> points) \n\t{\n\t\tsuper(points);\n\t}", "public Dot(int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public static Line CreateLine(String id) { return new MyLine(id); }", "public static void main(String[] args) {\n\r\n Line l1 = new Line(1,2,3,4);\r\n System.out.println(l1); // line toString\r\n // line[begin=(1,2),end=(3,4)]\r\n Line l2 = new Line(new Point(5,6), new Point(7,8)); // anypoymous point's intstances\r\n\r\n System.out.println(l2); // line's toString()\r\n // line[begin=(5,6),end=(7,8)]\r\n\r\n // test setters and getters\r\n l1.setBegin(new Point(11,12));\r\n l1.setEnd(new Point(13,14));\r\n System.out.println(l1);\r\n // line [begin =(11,12),end=(13,14)]\r\n System.out.println(\"begin is\"+l1.getBegin()); // point tostring\r\n// begin is:(11,12)\r\n System.out.println(\"end is:\"+ l1.getEnd()); // point's toString()\r\n// end is:(13,14)\r\n\r\n l1.setBeginX(21);\r\n l1.setBeginY(22);\r\n l1.setEndX(23);\r\n l1.setEndY(24);\r\n System.out.println(l1);\r\n // line[begin=(21,22) end=(23,24)]\r\n System.out.println(\"begin's x is\" + l1.getBeginX());\r\n // begin's x is: 21\r\n System.out.println(\"end x is\" + l1.getEndX());\r\n// end x is 23\r\n System.out.println(\"end y is\" + l1.getEndY());\r\n// end y is 24\r\n l1.setBeginXY(31,32);\r\n l1.setEndXY(33,34);\r\n System.out.println(l1); // line toSTRING()\r\n // LINE[begin = (31,32),end= ()33,34]\r\n System.out.println(\"begin x and y are\" + Arrays.toString(l1.getBeginXY()));\r\n// begin is [31,32]\r\n System.out.println(\"end x and y are\" + Arrays.toString(l1.getEndXY()));\r\n// end is [31,32]\r\n\r\n // test getlength()\r\n System.out.printf(\"length is: %.2f%n\", l1.getLength());\r\n// length is:2.83\r\n\r\n\r\n }", "public ChartPointLin(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }", "public LineXY( final PointXY p1, final PointXY p2 ) {\n\t\tthis.p1 = p1;\n\t\tthis.p2\t= p2;\n\t}", "public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }", "public LinesDimension1() {\n \n }", "public LineView(Element elem) {\n super(elem);\n }", "public Linea2D(Punto a, Punto b)\n {\n this.a=a;\n this.b=b;\n }", "public LineXY( final double x1,\n\t\t\t\t final double y1,\n\t\t\t\t final double x2,\n\t\t\t\t final double y2 ) {\n\t\tthis.p1 = new PointXY( x1, y1 ); \n\t\tthis.p2 = new PointXY( x2, y2 );\n\t}", "public FieldLineNode(){\n\t\tthis(1, new Vector3f(0,1,0));\n\t}", "KochLine(Point start, Point end){\n\t\tsuper(start,end);\n\t\tthis.p1=this.getStart();\n\t\tthis.p5=this.getEnd();\n\t\t\n\t}", "public OrderLine() {\n }", "public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }", "public PhysicsLine(PointF start, PointF end) {\n setEndPoints(start, end);\n }", "public Line(int left, int top, int right, int bottom) throws Exception\n {\n // each of these validates its argument - see below.\n setLeft(left);\n setTop(top);\n setRight(right);\n setBottom(bottom);\n }", "public String toString() {\n\t\treturn \"LINE:(\"+startPoint.getX()+\"-\"+startPoint.getY() + \")->(\" + endPoint.getX()+\"-\"+endPoint.getY()+\")->\"+getColor().toString();\n\t}", "public Lines(CharSequence text) {\n Parameters.notNull(\"text\", text);\n this.text = text;\n initLines();\n }", "public LineElement(\n final double firstPointX, final double firstPointY,\n final double secondPointX, final double secondPointY,\n final double width, final Color color) {\n this.firstPointX = firstPointX;\n this.firstPointY = firstPointY;\n this.secondPointX = secondPointX;\n this.secondPointY = secondPointY;\n this.width = width;\n this.color = color;\n }", "public Way(ArrayList<Dot> inputDots) {\n points = inputDots;\n enterd = false;\n distance = 9999999.9;\n }", "public LineChart() {\n init();\n }", "public Line(Point start, Point end) {\r\n this.start = new Point(start.getX(), start.getY());\r\n this.end = new Point(end.getX(), end.getY());\r\n if (this.start.getX() > this.end.getX()) {\r\n // swap points because end is left then start\r\n Point temp = this.start;\r\n this.start = this.end;\r\n this.end = temp;\r\n }\r\n }", "public SmoothLine(Point2D[] points){ \n this.points = points; \n }", "public AddDeadlineCommand(String line) {\n this.line = line;\n }", "protected LineaAbstract(Point2D p1,Point2D p2){\n super(p1,p2);\n this.ColorRelleno=Color.BLACK;\n ColorRelleno=null;\n this.width=1.0F;\n isRelleno=false;\n isContinuo=true;\n isGradiente=false;\n }", "public Log nuevaLinea() {\n cadenas.add(\"\\n\");\n return this;\n }", "public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);", "public Line (String name, int x1, int y1, int x2, int y2, Color color, GeometricalObjectListener[] listeners) {\n\t\tif (name == null || color == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.name = name;\n\t\tthis.x1 = x1;\n\t\tthis.x2 = x2;\n\t\tthis.y1 = y1;\n\t\tthis.y2 = y2;\n\t\tthis.color = color;\n\t\tif (listeners != null) {\n\t\t\tthis.listeners = new LinkedList<>(Arrays.asList(listeners));\n\t\t}\n\t}", "public LineSymbolizer(final StyleFactory<R> factory) {\n super(factory);\n }", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "public TextLine(String text) {\n\t\tthis.text = text.toString();\n\t}", "public CustMnjOntSoObinSizline_LineEOImpl() {\n }", "@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \n \t\t\t\t}", "@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }", "private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }", "public CrnLineContainer() {\n }", "private LineStyleUtils() {\n\n }", "public static Line fromText(String data) {\n\t\tif (data == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tString[] dats = data.trim().split(\" \");\n\t\tif (dats.length != 7) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\ttry {\n\t\t\tint x1 = Integer.parseInt(dats[0].trim());\n\t\t\tint y1 = Integer.parseInt(dats[1].trim());\n\t\t\tint x2 = Integer.parseInt(dats[2].trim());\n\t\t\tint y2 = Integer.parseInt(dats[3].trim());\n\t\t\tint r = Integer.parseInt(dats[4].trim());\n\t\t\tint g = Integer.parseInt(dats[5].trim());\n\t\t\tint b = Integer.parseInt(dats[6].trim());\n\t\t\treturn new Line(\"Line\", x1, y1, x2, y2, new Color(r, g, b), null);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}", "public final native Line x(double d) /*-{\r\n\t\treturn this.x(d);\r\n }-*/;", "public NoNum(String line) {\n this.line = line;\n }", "public Line(final int fx, final int fy, final int sx, final int sy) {\n this(new PosOf(fx, fy), new PosOf(sx, sy));\n }", "public Dot(int iniX, int iniY) {\n // initialise instance variables\n x = iniX;\n y = iniY;\n exists = true;\n \n }", "public BSPLine(float x1, float y1, float x2, float y2) {\n setLine(x1, y1, x2, y2);\n }", "public LineDash getLineDash(\n )\n {return lineDash;}", "public String toString() {\r\n\tStringBuffer gline = new StringBuffer();\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(\"line\");\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co1.x);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co1.y);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co2.x);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co2.y);\r\n\treturn gline.toString();\r\n }", "public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }", "private Line(String inLine) {\n // Save the input line.\n this.lineText = inLine;\n // Get the number of fields in the line.\n int nFields = labels.length;\n // Normally, this will work.\n this.fields = TabbedLineReader.this.splitLine(inLine);\n // If the number of fields is wrong, we have to adjust.\n if (this.fields.length != nFields) {\n // Copy the old array and create a new one of the proper length.\n String[] buffer = this.fields;\n this.fields = new String[nFields];\n // Transfer the strings one by one, padding if necessary.\n for (int i = 0; i < nFields; i++) {\n if (i < buffer.length) {\n this.fields[i] = buffer[i];\n } else {\n this.fields[i] = \"\";\n }\n }\n }\n }", "public Tuple(String textLine) {\n this(textLine, defaultDelimiter);\n }", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "@Override\n public Line getLine() {\n return line;\n }", "public FileLines() {\r\n\t}", "public GeoLine(GeoPoint start, Color color, GeoPoint end ){\n super(start,color);\n this.setEnd(end);\n this.setEdgeColor(color);\n }", "public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }", "static Line pointsToLine(PointDouble p1, PointDouble p2) {\n Line line = new Line();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.a = 1.0; line.b = 0.0; line.c = -p1.x;\n } else {\n // Non-vertical Line through the points.\n // Since the Line eq. is homogeneous we fix the scaling by setting b = 1.0.\n line.a = -(p1.y - p2.y) / (p1.x - p2.x);\n line.b = 1.0;\n line.c = -(line.a * p1.x) - p1.y;\n }\n return line;\n }", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public SignLine(final String type) {\n\t\tthis.type = type;\n\t\tthis.signers = new ArrayList<SignLineElement>();\n\t}", "public SeirpinskiLine() {\n this.depth = DEFAULT_DEPTH;\n this.scale = DEFAULT_SCALE;\n this.mode = DEFAULT_MODE;\n\n setUpGUI();\n repaint();\n }", "public DotChart(Lattice<Token> input, Grammar grammar, Chart chart) {\n\n this.dotChart = chart;\n this.pGrammar = grammar;\n this.input = input;\n this.sentLen = input.size();\n this.dotcells = new ChartSpan<DotCell>(sentLen, null);\n\n seed();\n }", "public LineaAbstract() {\n super();\n this.ColorRelleno=Color.BLACK;\n ColorRelleno=null;\n this.width=1.0F;\n isRelleno=false;\n isContinuo=true;\n isGradiente=false;\n }", "public GLineGroup() {\n\t\t// empty\n\t}", "public Address line1(String line1) {\n this.line1 = line1;\n return this;\n }", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "public Line copy() {\r\n Line l = new Line();\r\n l.line = new ArrayList < Point > (this.line);\r\n l.direction = this.direction;\r\n l.clickedPoint = this.clickedPoint;\r\n return l;\r\n }", "public Line(float dT, float beginningAmplitude)\n\t{\n\t\tthis(dT, beginningAmplitude, 0.0f);\n\t}", "public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}", "public void addLine(Line l) {\n\t\tlines.add(l);\n\t\t// vypocitaj bounding rect\n\t\tfloat x, y, w, h;\n\t\tif (l.getX1() < l.getX2()) {\n\t\t\tx = l.getX1();\n\t\t\tw = l.getX2() - l.getX1();\n\t\t} else {\n\t\t\tx = l.getX2();\n\t\t\tw = l.getX1() - l.getX2();\n\t\t}\n\t\tif (l.getY1() < l.getY2()) {\n\t\t\ty = l.getY1();\n\t\t\th = l.getY2() - l.getY1();\n\t\t} else {\n\t\t\ty = l.getY2();\n\t\t\th = l.getY1() - l.getY2();\n\t\t}\n\t\tif (boundingRect==null) {\n\t\t\tboundingRect = new Rectangle(x, y, w, h);\n\t\t} else {\n\t\t\tif (x < boundingRect.getX()) {\n\t\t\t\tboundingRect.setX(x);\n\t\t\t}\n\t\t\tif (y < boundingRect.getY()) {\n\t\t\t\tboundingRect.setY(y);\n\t\t\t}\n\t\t\tif (w > boundingRect.getW()) {\n\t\t\t\tboundingRect.setW(w);\n\t\t\t}\n\t\t\tif (h > boundingRect.getH()) {\n\t\t\t\tboundingRect.setH(h);\n\t\t\t}\n\t\t}\n\t}", "public Polygon getLine() {\n float[] vertices;\n if (modo == 1) {\n\n vertices = new float[]{\n getX(), getY(),\n getX() + (getWidth()*0.2f), getY() + getHeight()-getHeight()*0.2f,\n getX() + getWidth(), getY() + getHeight()};\n } else if (modo == 2) {\n\n vertices = new float[]{\n getX() + getWidth()- getWidth()*0.2f , getY() + getHeight() - getHeight()*0.2f,\n getX() + getWidth(), getY(),\n getX() , getY() + getHeight(),\n\n };\n\n } else if (modo == 3) {\n vertices = new float[]{\n getX(), getY(),\n getX() + getWidth() *0.8f, getY() + getHeight() *0.2f,\n getX() + getWidth(), getY() + getHeight()\n };\n } else {\n vertices = new float[]{\n getX(), getY() + getHeight(),\n getX() + getWidth()*0.2f, getY() + getHeight()*0.2f,\n getX() + getWidth(), getY()\n };\n }\n\n polygon.setVertices(vertices);\n return polygon;\n }", "public Line(org.dom4j.Element el) throws Exception {\n this();\n readXML(el);\n }", "public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void setLine (int Line);", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "public BSPLine(BSPPolygon poly) {\n setTo(poly);\n }", "public void setLine ( String value )\n {\n line = value;\n }" ]
[ "0.76066893", "0.7354298", "0.69679046", "0.6952482", "0.68827856", "0.6849597", "0.68250865", "0.68232423", "0.67006975", "0.6604176", "0.6558051", "0.65390366", "0.65367436", "0.6484524", "0.6460215", "0.6394005", "0.6393339", "0.63298166", "0.63157284", "0.63106155", "0.62974393", "0.6292896", "0.6214699", "0.61923087", "0.61873627", "0.6180043", "0.61507803", "0.61198366", "0.6111362", "0.6096152", "0.60948944", "0.6082547", "0.60639966", "0.6061265", "0.60495085", "0.60306287", "0.6000793", "0.5991528", "0.5990503", "0.5970314", "0.59132767", "0.58834517", "0.58751976", "0.58397245", "0.57769567", "0.57731795", "0.5754001", "0.574721", "0.57339025", "0.56821555", "0.56784296", "0.5677303", "0.56764555", "0.56750876", "0.5673391", "0.5668413", "0.566103", "0.5658977", "0.56578755", "0.5655593", "0.56455845", "0.5634229", "0.5632555", "0.56272554", "0.56168646", "0.5611319", "0.5603061", "0.5601717", "0.55894727", "0.55889565", "0.55764824", "0.55725527", "0.5567815", "0.55578953", "0.5550899", "0.5543523", "0.55410016", "0.5538812", "0.553401", "0.5529828", "0.5529289", "0.5526727", "0.5516001", "0.55011415", "0.547422", "0.54741347", "0.5472849", "0.54685384", "0.54566365", "0.54507256", "0.5428128", "0.5427735", "0.542408", "0.54236907", "0.54163444", "0.54145044", "0.54082876", "0.540456", "0.54022473", "0.54003525" ]
0.69582355
3
TODO Autogenerated method stub
public boolean equals(Line other) { if(this.getStartDot().equals(other.getStartDot()) && this.getEndDot().equals(other.getEndDot())) return true; else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Return a metadata collection sorted by id, to make output canonical.
public static <T extends SymbolWithId> List<T> getSortedBySymbolId(Set<T> set) { List<T> ret = new ArrayList<>(set); ret.sort(Comparator.comparing(SymbolWithId::getSymbolId)); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Collection<Symptom> getSortedSymptoms(Long id) {\n\t\tDisease d = diseaseRepository.getOne(id);\n\t\tArrayList<Symptom> symptoms = new ArrayList<>(d.getSymptoms());\n\t\tCollections.sort(symptoms, new Comparator<Symptom>() {\n\t\t\tpublic int compare(Symptom s1, Symptom s2) {\n\t\t\t\treturn s1.getSymptomType().compareTo(s2.getSymptomType());\n\t\t\t}\n\t\t});\n\t\treturn symptoms;\n\t}", "@Override\n public List<Client> sortByNameAndID(){\n return null;\n }", "public CollectionMetadata metadata() {\n return metadata;\n }", "public static ArrayList<Metadata> getMetadata() {\n\t\tmetadata.add(new Metadata(\"id\", \"Numero identificativo del lavoro\", \"long\"));\n\t\tmetadata.add(new Metadata(\"role\", \"Ruolo lavorativo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"cname\", \"Nome dell'azienda\", \"String\"));\n\t\tmetadata.add(new Metadata(\"etype\", \"Tipo di impiego\", \"String\"));\n\t\tmetadata.add(new Metadata(\"location\", \"Luogo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"remote\", \"Lavoro a distanza\", \"Bool\"));\n\t\t\n\n\t\treturn metadata;\n\t}", "public List<News> getNewsList(Integer id) {\n List<News> newsList = newsMapper.selectByAuthorId(id);\n newsList.sort((dt1,dt2) -> {\n if (dt1.getPubdate().getTime() < dt2.getPubdate().getTime()) {\n return 1;\n } else if (dt1.getPubdate().getTime() > dt2.getPubdate().getTime()) {\n return -1;\n } else {\n return 0;\n }\n });\n return newsList;\n }", "@Override\n public ImmutableList<Id> topsortIdList() {\n return idDag.topsortIdList();\n }", "public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}", "Map<String, Object> getAllMetadata();", "public void sort() {\n documents.sort();\n }", "public static Collection transform(Collection source) {\n Collection target = new Collection(MetadataFormat.DC);\n if (source.getFormat() == MetadataFormat.MARC) {\n for (Record record : source.getRecords()) {\n target.add(transform(record));\n }\n } else {\n System.err.println(\"Cannot transform non-MARC collection\");\n }\n return target;\n }", "public List<Object[]> getAllMusicSortedByPrice(String id) {\r\n\r\n\t\t List<Object[]> allMusicSortedByPrice = musicRepository.getAllMusicSortedByPrice(id);\r\n\t\t\r\n\t\tSystem.out.println(\"allMusicSortedByPrice**\"+allMusicSortedByPrice.toString());\r\n\t\t\r\n\t\treturn allMusicSortedByPrice;\r\n\r\n\t}", "Set<String> getMetadataKeys();", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public DataSet<T> sort() {\n return toDS(this.getDataStream().sorted());\n }", "private DBObject buildSortSpec(final GetObjectInformationParameters params) {\n\t\tfinal DBObject sort = new BasicDBObject();\n\t\tif (params.isObjectIDFiltersOnly()) {\n\t\t\tsort.put(Fields.VER_WS_ID, 1);\n\t\t\tsort.put(Fields.VER_ID, 1);\n\t\t\tsort.put(Fields.VER_VER, -1);\n\t\t}\n\t\treturn sort;\n\t}", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public List<MetaDataAndDomainData> getMetadataForCollection(final String irodsAbsolutePath) throws IdropException {\n if (irodsAbsolutePath == null || irodsAbsolutePath.isEmpty()) {\n throw new IdropException(\"null or empty irodsAbsolutePath\");\n }\n\n log.info(\"getting metadata for collection:{}\", irodsAbsolutePath);\n\n try {\n final CollectionAO collectionAO = irodsFileSystem.getIRODSAccessObjectFactory().getCollectionAO(\n irodsAccount);\n return collectionAO.findMetadataValuesForCollection(irodsAbsolutePath, 0);\n } catch (Exception ex) {\n Logger.getLogger(IRODSFileService.class.getName()).log(Level.SEVERE, null, ex);\n throw new IdropException(\"exception processing rule\", ex);\n } finally {\n try {\n irodsFileSystem.close(irodsAccount);\n } catch (JargonException ex) {\n Logger.getLogger(IRODSFileService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "List<MediaMetadata> getAll();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "public int getResourceSort(@Param(\"id\") String id);", "private Map<Long, List<ApiArtworkDTO>> getArtworkForMetadata(MetaDataType type, Long id, String artworkSortDir) {\n Set<String> artworkRequired = new HashSet<>();\n for (ArtworkType at : ArtworkType.values()) {\n artworkRequired.add(at.toString());\n }\n // remove the unknown type\n artworkRequired.remove(ArtworkType.UNKNOWN.toString());\n\n return getArtworkForMetadata(type, id, artworkRequired, artworkSortDir);\n }", "public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(author);\r\n }\r\n\r\n Collections.sort(authorList, new Comparator<String>() {\r\n public int compare(String author1, String author2) {\r\n return author1.compareToIgnoreCase(author2);\r\n }\r\n });\r\n\r\n return authorList;\r\n }", "public List<Identification> getSortedIdentifications() {\n updateIdentificationComparator();\n return identificationRepository.getByStatus(IdentificationStatus.NEW).stream()\n .sorted(identificationComparator).map(identificationEntity -> conversionService.convert(identificationEntity))\n .collect(Collectors.toList());\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_RATINGS, key=\"{#type, #id}\")\n public List<ApiRatingDTO> getRatingsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.rating.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "private static void sort(MongoCollection mongoCollection) {\n mongoCollection.find().sort(eq(\"name\", 1)).forEach(new Block<Document>() {\n public void apply(Document document) {\n System.out.println(document.toJson());\n }\n });\n }", "String getCollection();", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_GENRES, key=\"{#type, #id}\")\n public List<ApiGenreDTO> getGenresForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.genre.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "@NotNull\n EntityIterable asSortResult();", "@SuppressWarnings(\"unused\")\n // Possible external use\n Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );", "public Collection<Integer> obterCategorias(Integer idConsumoTarifa) throws ErroRepositorioException;", "public Collection getSortedEntries(final PropertyAccessor sortProperty, boolean descending) {\n \t\tIEntryQueries queries = (IEntryQueries)getSession().getAdapter(IEntryQueries.class);\n \tif (queries != null) {\n \t\treturn queries.getSortedEntries(this, sortProperty, descending);\n \t} else {\n \t\t// IEntryQueries has not been implemented in the datastore.\n \t\t// We must therefore provide our own implementation.\n \t\t\n \t\tList sortedEntries = new LinkedList();\n \t\t\n \t\tIterator it = entries.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tsortedEntries.add(it.next());\n \t\t}\n \t\t\n \t\tComparator entryComparator;\n \t\tif (sortProperty.getPropertySet() == EntryInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == TransactionInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == AccountInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else {\n \t\t\tthrow new RuntimeException(\"given property cannot be used for entry sorting\");\n \t\t}\n \t\t\n \t\tif (descending) {\n \t\t\tfinal Comparator ascendingComparator = entryComparator;\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\treturn ascendingComparator.compare(b, a);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tCollections.sort(sortedEntries, entryComparator);\n \t\t\n \t\treturn sortedEntries;\n \t}\n \t}", "public java.util.List<MetadataEntry> getMetadataList() {\n return metadata_;\n }", "public Aluguel read(int id) {\n MongoCursor<Document> cursor = collection.find().iterator();\r\n Aluguel aluguel = null;\r\n List<Aluguel> alugueis = new ArrayList<>();\r\n if (cursor.hasNext()) {\r\n aluguel = new Aluguel().fromDocument(cursor.next());\r\n alugueis.add(aluguel);\r\n }\r\n alugueis.forEach(a -> System.out.println(a.getId()));\r\n return aluguel;\r\n }", "public MetadataGroup getMetadataGroup(String collectionId, String groupId, String id) {\r\n MetadataGroup toReturn = new MetadataGroup(id);\r\n if (null == collectionId || null == groupId || null == id || 0 == collectionId.length() || 0 == groupId.length()\r\n || 0 == id.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"group_id\", \"id\", \"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"get_metadata_grp\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"group_id\", groupId);\r\n request.setValue(\"id\", id);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0601\", \"failed in getting a metadata group item: coll_id=\" + collectionId + \"/group_id=\" + groupId\r\n + \"/id=\" + id);\r\n } else {\r\n wrapError(\"APIL_0601\", \"failed in getting a metadata group item: coll_id=\" + collectionId + \"/group_id=\"\r\n + groupId + \"/id=\" + id);\r\n }\r\n } else {\r\n String date = response.getValue(\"date\");\r\n toReturn = new MetadataGroup(id, date);\r\n\r\n String fieldsString = Tools.padEmptyItem(response.getValue(\"fields\"), ITEM_DELIMITER);\r\n String valuesString = Tools.padEmptyItem(response.getValue(\"values\"), ITEM_DELIMITER);\r\n\r\n String[] fields = StringTool.stringToArray(fieldsString, ITEM_DELIMITER);\r\n String[] values = StringTool.stringToArray(valuesString, ITEM_DELIMITER);\r\n\r\n if (fields.length != values.length) {\r\n setError(\"APIL_0602\", \"failed in parsing message in metadata group item retrieval: coll_id=\" + collectionId\r\n + \"/group_id=\" + groupId + \"/id=\" + id);\r\n return toReturn;\r\n }\r\n\r\n for (int i = 0; i < fields.length; i++) {\r\n if (\" \".equals(fields[i]))\r\n continue;\r\n else if (\" \".equals(values[i]))\r\n toReturn.setValue(fields[i], \"\");\r\n else\r\n toReturn.setValue(fields[i], values[i]);\r\n }\r\n }\r\n return toReturn;\r\n }", "java.lang.String getCollection();", "RecordDataSchema getCollectionCustomMetadataSchema();", "@View(name = \"all\", map = \"function(doc) { if (doc.metadata && doc.signingKey && doc.encryptionKey \"\n + \"&& (doc.appliesTo==null || doc.appliesTo=='CAS' || doc.appliesTo=='')) { emit(doc._id, doc) } }\")\n public CouchDbSamlIdPMetadataDocument getForAll() {\n val view = createQuery(\"all\").limit(1);\n return db.queryView(view, CouchDbSamlIdPMetadataDocument.class).stream().findFirst().orElse(null);\n }", "public String sortBy();", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_CERTIFICATIONS, key=\"{#type, #id}\")\n public List<ApiCertificationDTO> getCertificationsForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.certification.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "@Query(\"SELECT p FROM Person p ORDER BY p.id\")\nList<Person> findAllSortById();", "private Map<Long, List<ApiArtworkDTO>> getArtworkForMetadata(MetaDataType type, Object id, Set<String> artworkRequired, String artworkSortDir) {\n LOG.trace(\"Artwork required for {} ID {} is {}\", type, id, artworkRequired);\n\n StringBuilder sbSQL = new StringBuilder();\n sbSQL.append(\"SELECT '\").append(type.toString()).append(\"' AS source,\");\n sbSQL.append(\" v.id AS id, a.id AS artworkId, al.id AS locatedId, ag.id AS generatedId,\");\n sbSQL.append(\" a.artwork_type AS artworkType, ag.cache_dir AS cacheDir, ag.cache_filename AS cacheFilename \");\n if (type == MOVIE) {\n sbSQL.append(\"FROM videodata v \");\n } else if (type == SERIES) {\n sbSQL.append(\"FROM series v \");\n } else if (type == SEASON) {\n sbSQL.append(\"FROM season v \");\n } else if (type == PERSON) {\n sbSQL.append(\"FROM person v\");\n } else if (type == BOXSET) {\n sbSQL.append(\"FROM boxed_set v\");\n }\n sbSQL.append(\", artwork a\"); // artwork must be last for the LEFT JOIN\n sbSQL.append(SQL_LEFT_JOIN_ARTWORK_LOCATED);\n sbSQL.append(SQL_LEFT_JOIN_ARTWORK_GENERATED);\n if (type == MOVIE) {\n sbSQL.append(\" WHERE v.id=a.videodata_id\");\n sbSQL.append(\" AND v.episode<0\");\n } else if (type == SERIES) {\n sbSQL.append(\" WHERE v.id=a.series_id\");\n } else if (type == SEASON) {\n sbSQL.append(\" WHERE v.id=a.season_id\");\n } else if (type == PERSON) {\n sbSQL.append(\" WHERE v.id=a.person_id\");\n } else if (type == BOXSET) {\n sbSQL.append(\" WHERE v.id=a.boxedset_id\");\n }\n sbSQL.append(\" AND al.id is not null\");\n sbSQL.append(\" AND v.id IN (:id)\");\n sbSQL.append(SQL_ARTWORK_TYPE_IN_ARTWORKLIST);\n if (\"DESC\".equalsIgnoreCase(artworkSortDir)) {\n sbSQL.append(\" ORDER BY al.create_timestamp DESC\");\n } else {\n sbSQL.append(\" ORDER BY al.create_timestamp ASC\");\n }\n \n SqlScalars sqlScalars = new SqlScalars(sbSQL);\n LOG.trace(\"Artwork SQL: {}\", sqlScalars.getSql());\n\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SOURCE, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_ARTWORK_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_LOCATED_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_GENERATED_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_ARTWORK_TYPE, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_CACHE_DIR, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_CACHE_FILENAME, StringType.INSTANCE);\n\n sqlScalars.addParameter(LITERAL_ID, id);\n sqlScalars.addParameter(\"artworklist\", artworkRequired);\n\n List<ApiArtworkDTO> results = executeQueryWithTransform(ApiArtworkDTO.class, sqlScalars);\n return generateIdMapList(results);\n }", "public long getAuthorsInCollection()\n\tthrows DataAccessException;", "default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }", "private Collection<Object> getOrderedTestNamesByOrderingFacility(String labCLIAid)\n{\n ArrayList<Object> dtList = null;\n if(cachedFacilityList != null)\n dtList = (ArrayList<Object> )cachedFacilityList.get(labCLIAid);\n return dtList;\n\n }", "private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public <T> IndexedCollection<T> collection() {\n return (IndexedCollection<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ApiFileDTO> getFilesForMetadata(MetaDataType type, Long id) {\n // Build the SQL statement\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT mf.id as id, mf.extra as extra, mf.part as part, mf.part_title as partTitle, mf.movie_version as version, \");\n sql.append(\"mf.container as container, mf.codec as codec, mf.codec_format as codecFormat, mf.codec_profile as codecProfile, \");\n sql.append(\"mf.bitrate as bitrate, mf.overall_bitrate as overallBitrate, mf.fps as fps, \");\n sql.append(\"mf.width as width, mf.height as height, mf.aspect_ratio as aspectRatio, mf.runtime as runtime, mf.video_source as videoSource, \");\n sql.append(\"sf.id as fileId, sf.full_path as fileName, sf.file_date as fileDate, sf.file_size as fileSize, sf.file_type as fileType, \");\n\n if (type == MOVIE) {\n sql.append(\"null as season, null as episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf \");\n sql.append(\"WHERE mv.videodata_id=:id \");\n } else if (type == SERIES) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.series_id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == SEASON) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE sea.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n } else if (type == EPISODE) {\n sql.append(\"sea.season, vd.episode \");\n sql.append(\"FROM mediafile_videodata mv, mediafile mf, stage_file sf, season sea, videodata vd \");\n sql.append(\"WHERE vd.id=:id and vd.season_id=sea.id and mv.videodata_id=vd.id \");\n }\n\n sql.append(\"and mv.mediafile_id=mf.id and sf.mediafile_id=mf.id \");\n sql.append(\"and sf.file_type\");\n sql.append(SQL_SELECTABLE_VIDEOS);\n sql.append(\"and sf.status\");\n sql.append(SQL_IGNORE_STATUS_SET);\n\n if (type == SERIES || type == SEASON) {\n sql.append(\"ORDER BY sea.season ASC, vd.episode ASC\");\n }\n\n SqlScalars sqlScalars = new SqlScalars(sql);\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EXTRA, BooleanType.INSTANCE);\n sqlScalars.addScalar(\"part\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"partTitle\", StringType.INSTANCE);\n sqlScalars.addScalar(\"version\", StringType.INSTANCE);\n sqlScalars.addScalar(\"container\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codec\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecFormat\", StringType.INSTANCE);\n sqlScalars.addScalar(\"codecProfile\", StringType.INSTANCE);\n sqlScalars.addScalar(\"bitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"overallBitrate\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"fps\", FloatType.INSTANCE);\n sqlScalars.addScalar(\"width\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"height\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"aspectRatio\", StringType.INSTANCE);\n sqlScalars.addScalar(\"runtime\", IntegerType.INSTANCE);\n sqlScalars.addScalar(\"videoSource\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileId\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileName\", StringType.INSTANCE);\n sqlScalars.addScalar(\"fileDate\", TimestampType.INSTANCE);\n sqlScalars.addScalar(\"fileSize\", LongType.INSTANCE);\n sqlScalars.addScalar(\"fileType\", StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_SEASON, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_EPISODE, LongType.INSTANCE);\n sqlScalars.addParameter(LITERAL_ID, id);\n\n List<ApiFileDTO> results = executeQueryWithTransform(ApiFileDTO.class, sqlScalars);\n for (ApiFileDTO file : results) {\n \t\tfile.setAudioCodecs(currentSession().getNamedQuery(AudioCodec.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n file.setSubtitles(currentSession().getNamedQuery(Subtitle.QUERY_METADATA).setParameter(LITERAL_ID, file.getId()).list());\n }\n return results;\n }", "@Override\n public List<Client> clientsSortedAlphabetically(){\n log.trace(\"clientsSortedAlphabetically -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).sorted(Comparator.comparing(Client::getName)).collect(Collectors.toList());\n log.trace(\"clientsSortedAlphabetically: result={}\", result);\n return result;\n\n }", "public static JwComparator<AcUspsInternationalClaim> getIdComparator()\n {\n return AcUspsInternationalClaimTools.instance.getIdComparator();\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_EXTERNAL_IDS, key=\"{#type, #id}\")\n public List<ApiExternalIdDTO> getExternalIdsForMetadata(MetaDataType type, Long id) {\n final MetaDataType fixedType = EPISODE == type ? MOVIE : type; \n return currentSession().getNamedQuery(\"metadata.externalid.\"+fixedType.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public List<Map<String, Object>> getOrder(String id);", "public abstract List<ColumnSpecification> metadata();", "Collect selectByPrimaryKey(Integer id);", "List<Integer> getSortedList() {\n Set<Map.Entry<Integer, Integer>> setOfMovieIDPopularityPairs = mostPopularMoviesByID.entrySet();\n // Then, it is converted into a list (for sorting)\n List<Map.Entry<Integer, Integer>> listOfMovieIDPopularityPairs = new ArrayList<>(setOfMovieIDPopularityPairs);\n // A comparator is created that can be used to \"instruct\" sorting by values (popularity)\n Comparator<Map.Entry<Integer, Integer>> popularityComparator = Map.Entry.comparingByValue();\n // Last step - sort in descending order by popularity\n listOfMovieIDPopularityPairs.sort(popularityComparator.reversed());\n\n // Eventually, movieIDs are extracted from the sorted list movieID-Popularity pairs\n List<Integer> listOfMostPopularMoviesByID = new ArrayList<>(listOfMovieIDPopularityPairs.size());\n for (Map.Entry<Integer, Integer> movieIDPopularityPair : listOfMovieIDPopularityPairs) {\n listOfMostPopularMoviesByID.add(movieIDPopularityPair.getKey());\n }\n return listOfMostPopularMoviesByID;\n }", "public List<Collect> select(Integer id) {\n\t\treturn dao.select(id);\r\n\t}", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "public String getMetadataHandle(String collectionSetSpec) throws Exception;", "public Vector getListSpecializations(){\n Vector listQualifications = new Vector();\n try{\n String sqlGet = \"SELECT * FROM qualification ORDER BY qualification_name\";\n\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(rsGet.getInt(\"qualification_id\"));\n dataSet.add(rsGet.getString(\"qualification_name\"));\n\n listQualifications.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listQualifications;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_LIBRARIES, key=\"{#type, #id}\")\n public List<Library> getLibrariesForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.library.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public List<MetaData> getMetaData(boolean unfold) {\n\t\tList<MetaData> results = new LinkedList<MetaData>();\n\t\tfor (InputPort port : getManagedPorts()) {\n\t\t\tMetaData data = port.getMetaData();\n\t\t\tif (data != null) {\n\t\t\t\tif (unfold && data instanceof CollectionMetaData) {\n\t\t\t\t\tresults.add(((CollectionMetaData) data).getElementMetaDataRecursive());\n\t\t\t\t} else {\n\t\t\t\t\tresults.add(data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "@GET\n @Path(\"/conciliacion/{id}\")\n @Produces({MediaType.APPLICATION_JSON})\n public List<EscenarioDTO> getByConciliacion(@PathParam(\"id\") int id) {\n logger.log(Level.INFO, \"id:{0}\", id);\n List<EscenarioDTO> lstDTO;\n List<Escenario> lst;\n lst = managerDAO.findByConciliacion(id);\n lstDTO = lst.stream().map(item -> item.toDTO()).distinct().sorted(comparing(EscenarioDTO::getId)).collect(toList());\n List<EscenarioDTO> lstFinal = (List<EscenarioDTO>) (List<?>) lstDTO;\n return lstFinal;\n }", "public ArrayList<String> processQueryAggregatedObject(String id) {\n final MongoCondition condition = MongoCondition.idCondition(id);\n LOGGER.debug(\"The JSON condition is: {}\", condition);\n ArrayList<String> response = mongoDBHandler.find(aggregationDataBaseName,\n aggregationCollectionName,\n condition);\n return response;\n }", "public List<AbstractMetadata> getMetadata() {\n\t\treturn Collections.unmodifiableList(this.metadata);\n\t}", "public ArrayList<String> getFieldComments(String id) {\n\n ArrayList<String> collection = new ArrayList<String>();\n\n // Plonk them all in to our bookkeeping. private HashMap<String, ArrayList<String>>\n // collected_comments = new HashMap<String, ArrayList<String>>();\n if (collected_comments.containsKey(id)) {\n collection = collected_comments.get(id);\n }\n\n return collection;\n }", "public List<Pattern> getPatternsAuthorSorted() {\n List<Pattern> copy = new LinkedList<Pattern>(patterns);\r\n // inplace method to allow comparison to be done by author name\r\n Collections.sort(copy, byAuthorThenName);\r\n return copy;\r\n }", "Collection<Book> getAll();", "public static JwComparator<AcWebServiceRequestData> getIdComparator()\n {\n return AcWebServiceRequestDataTools.instance.getIdComparator();\n }", "public static Collection<SortBy> values() {\n\t\treturn values(SortBy.class);\n\t}", "protected Collection<ArticleMetadata> modifyAMList(SourceXmlSchemaHelper helper,\n CachedUrl datasetCu, List<ArticleMetadata> allAMs) {\n\n Matcher mat = TOP_METADATA_PATTERN.matcher(datasetCu.getUrl());\n Pattern ARTICLE_METADATA_PATTERN = null;\n if (mat.matches()) {\n // must create this here because it is specific to this tar set\n String pattern_string = \"^\" + mat.group(1) + mat.group(2) + \"[A-Z]\\\\.tar!/\" + mat.group(2) + \"/.*/main\\\\.xml$\";\n log.debug3(\"Iterate and find the pattern: \" + pattern_string);\n ARTICLE_METADATA_PATTERN = Pattern.compile(pattern_string, Pattern.CASE_INSENSITIVE);\n\n // Limit the scope of the iteration to only those TAR archives that share this tar number\n List<String> rootList = createRootList(datasetCu, mat);\n // Now create the map of files to the tarfile they're in\n ArchivalUnit au = datasetCu.getArchivalUnit();\n SubTreeArticleIteratorBuilder articlebuilder = new SubTreeArticleIteratorBuilder(au);\n SubTreeArticleIterator.Spec artSpec = articlebuilder.newSpec();\n // Limit it just to this group of tar files\n artSpec.setRoots(rootList); \n artSpec.setPattern(ARTICLE_METADATA_PATTERN); // look for url-ending \"main.xml\" files\n artSpec.setExcludeSubTreePattern(NESTED_ARCHIVE_PATTERN); //but do not descend in to any underlying archives\n artSpec.setVisitArchiveMembers(true);\n articlebuilder.setSpec(artSpec);\n articlebuilder.addAspect(MAIN_XML_PATTERN,\n XML_REPLACEMENT,\n ArticleFiles.ROLE_ARTICLE_METADATA);\n\n for (SubTreeArticleIterator art_iterator = articlebuilder.getSubTreeArticleIterator();\n art_iterator.hasNext(); ) {\n // because we haven't set any roles, the AF will be what the iterator matched\n String article_xml_url = art_iterator.next().getFullTextCu().getUrl();\n log.debug3(\"tar map iterator found: \" + article_xml_url);\n int tarspot = StringUtil.indexOfIgnoreCase(article_xml_url, \".tar!/\");\n int dividespot = StringUtil.indexOfIgnoreCase(article_xml_url, \"/\", tarspot+6);\n TarContentsMap.put(article_xml_url.substring(dividespot + 1), article_xml_url);\n log.debug3(\"TarContentsMap add key: \" + article_xml_url.substring(dividespot + 1));\n }\n } else {\n log.warning(\"ElsevierDTD5: Unable to create article-level map for \" + datasetCu.getUrl() + \" - metadata will not include article titles or useful access.urls\");\n }\n return allAMs;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_STUDIOS, key=\"{#type, #id}\")\n public List<Studio> getStudiosForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.studio.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "protected abstract Collection createCollection();", "public static JwComparator<AcUspsInternationalClaim> getItemIdComparator()\n {\n return AcUspsInternationalClaimTools.instance.getItemIdComparator();\n }", "static public List<InlineResponse2002> articlesFeedIdGet(String id)\n {\n ArrayList<InlineResponse2002> l = new ArrayList<>();\n\n for (int i = 0; i < 512; i += (i % 2 == 0) ? 3 : 7)\n {\n InlineResponse2002 a = new InlineResponse2002();\n\n a.setId(i);\n a.setTitle(\"Some random [\" + i + \"] article\");\n l.add(a);\n }\n return l;\n }", "public List<Metadata> getMetadata()\n\t{\n\t\treturn mMetadata;\n\t}", "@Override\n public List<RevisionMetadata> getRevisionHistoryMetadata(Object id) {\n return null;\n }", "Collections() { return; }", "@Override\n\tpublic List<MedioPago> getallbyid(List<?> lst) {\n\t\treturn null;\n\t}", "public List<Song> songsSortByStyleName() {\r\n return disc.getDisc().stream()\r\n .sorted(Comparator.comparing(Song::getStyle))\r\n .collect(Collectors.toList());\r\n }", "public ArrayList<IdentityItem> loadIdentityDetail() {\n\t\tArrayList<IdentityItem> list = new ArrayList<IdentityItem>();\n\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(\"s\" + encryptedIdName);\n\t\t\tProperties properties = new Properties();\n\t\t\tproperties.load(fis);\n\t\t\tfis.close();\n\n\t\t\tnumberOfId = Integer.parseInt(properties.getProperty(\"n\"));\n\n\t\t\tfor (int i = 1; i <= numberOfId; i++) {\n\t\t\t\tIdentityItem idItem = new IdentityItem();\n\n\t\t\t\tString idString = properties.getProperty(\"i\" + i);\n\t\t\t\tif (idString != null) {\n\t\t\t\t\tidString = StaticBox.keyCrypto.decrypt(idString);\n\t\t\t\t\tidItem.setName(idString);\n\t\t\t\t\tidItem.setEncryptedName(StaticBox.keyCrypto.encrypt(idString));\n\t\t\t\t\tidItem.setId(i);\n\n\t\t\t\t\tidString = properties.getProperty(\"t\" + i);\n\t\t\t\t\tif (idString != null) {\n\t\t\t\t\t\tidString = StaticBox.keyCrypto.decrypt(idString);\n\t\t\t\t\t\tidItem.setTagList(\"Tag: \" + idString);\n\t\t\t\t\t}\n\n\t\t\t\t\tidString = properties.getProperty(\"w\" + i);\n\t\t\t\t\tif (idString != null) {\n\t\t\t\t\t\tidString = StaticBox.keyCrypto.decrypt(idString);\n\t\t\t\t\t\tidItem.setWorkspaceList(\"Workspace: \" + idString);\n\t\t\t\t\t}\n\t\t\t\t\tlist.add(idItem);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "LinkedHashSet<String> getOrderedBeanIds();", "Collect getColl();", "Set<Art> getAllArt();", "public List<ObjectContent> getAllObjects(String id)\n {\n List<ObjectContent> objectContentList = new ArrayList<ObjectContent>();\n try\n {\n ObjectListing objectListing = s3.listObjects(new ListObjectsRequest().withBucketName(bucketName).withPrefix(id));\n List<S3ObjectSummary> s3ObjectSummary = objectListing.getObjectSummaries();\n for (S3ObjectSummary summary : s3ObjectSummary)\n {\n objectContentList.add(getObject(summary.getKey()));\n }\n return objectContentList;\n }\n catch (AmazonS3Exception e)\n {\n logger.error(e.getMessage());\n return objectContentList;\n }\n }", "@Override\n @EntityGraph(Item.GRAPH_CATEGORY)\n List<Item> findAll(Sort sort);", "public ArrayList<Movie> getSorted() {\n\t\tHashSet<Movie> hashSet = new HashSet<Movie>(this);\n\t\tArrayList<Movie> newArrayListMovies = new ArrayList<Movie>(hashSet);\n\t\treturn newArrayListMovies;\n\t}", "public TreeMap<Object, Metadata> metadata_reader(String filepath) throws Exception {\r\n String lang = Globals.CURRENT_LOCALE.getLanguage();\r\n TreeMap<Object, Metadata> metadatas = new TreeMap<Object, Metadata>();\r\n\r\n //Hash dei MIDs dei nodi obbligatori\r\n TreeMap forceAddMID = new TreeMap();\r\n forceAddMID.put(\"98\", 1);\r\n forceAddMID.put(\"14\", 1);\r\n forceAddMID.put(\"15\", 1);\r\n forceAddMID.put(\"64\", 1);\r\n forceAddMID.put(\"65\", 1);\r\n forceAddMID.put(\"122\", 1);\r\n forceAddMID.put(\"105\", 1);\r\n forceAddMID.put(\"23\", 1); //format\r\n forceAddMID.put(\"24\", 1); //location\r\n forceAddMID.put(\"25\", 1); //filesize\r\n forceAddMID.put(\"17\", 1); //technical\r\n forceAddMID.put(\"22\", 1); //Classification\r\n forceAddMID.put(\"45\", 1); //Taxonpath\r\n forceAddMID.put(\"46\", 1); //Source\r\n forceAddMID.put(\"47\", 1); //Taxon\r\n forceAddMID.put(\"82\", 1); //Kontextuelle Angaben\r\n forceAddMID.put(\"89\", 1); //REFERENZ\r\n forceAddMID.put(\"94\", 1); //Referenz\r\n forceAddMID.put(\"95\", 1); //Referenznummer\r\n forceAddMID.put(\"137\", 1); //Referenznummer\r\n forceAddMID.put(\"123\", 1); //identifiers\r\n forceAddMID.put(\"124\", 1); //identifiers\r\n forceAddMID.put(\"125\", 1); //identifiers\r\n forceAddMID.put(\"5\", 1); //keywords\r\n\tforceAddMID.put(\"96\", 1); // GPS\r\n forceAddMID.put(\"6\", 1); // Copertura\r\n forceAddMID.put(\"84\", 1); // Dimensioni\r\n forceAddMID.put(\"83\", 1); // Descrizione\r\n forceAddMID.put(\"93\", 1); // Tipo Materiale\r\n forceAddMID.put(\"88\", 1); // Unita di misura\r\n forceAddMID.put(\"85\", 1); // Lunghezza\r\n forceAddMID.put(\"86\", 1); // Larghezza\r\n forceAddMID.put(\"87\", 1); // Altezza\r\n forceAddMID.put(\"92\", 1); // Diametro\r\n \r\n forceAddMID.put(\"11\", 1); // Contributo\r\n forceAddMID.put(\"12\", 1); // Ruolo\r\n //forceAddMID.put(\"126\", 1); // Altro Ruolo\r\n forceAddMID.put(\"13\", 1); // Dati Personali\r\n forceAddMID.put(\"14\", 1); // Nome\r\n forceAddMID.put(\"15\", 1); // Cognome \r\n forceAddMID.put(\"63\", 1); // Ente\r\n forceAddMID.put(\"64\", 1); // Titolo\r\n forceAddMID.put(\"65\", 1); // Titolo\r\n //forceAddMID.put(\"66\", 1); // Tipo\r\n forceAddMID.put(\"148\", 1); // Numero Matricola\r\n \r\n /*forceAddMID.put(\"115\", 1); // Provenienza\r\n forceAddMID.put(\"114\", 1); // Provenienza - info\r\n forceAddMID.put(\"121\", 1); // Provenienza - tipo materiale\r\n forceAddMID.put(\"119\", 1); // Provenienza - note\r\n forceAddMID.put(\"107\", 1); // Provenienza - ruolo\r\n forceAddMID.put(\"106\", 1); // Provenienza - dati personali\r\n forceAddMID.put(\"108\", 1); // Provenienza - Nome\r\n forceAddMID.put(\"109\", 1); // Provenienza - Cognome\r\n forceAddMID.put(\"113\", 1); // Provenienza - Ente\r\n forceAddMID.put(\"110\", 1); // Provenienza - Titolo uno\r\n forceAddMID.put(\"111\", 1); // Provenienza - Titolo due\r\n forceAddMID.put(\"112\", 1); // Provenienza - tipo\r\n forceAddMID.put(\"117\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"118\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"116\", 1); // Provenienza - contributo\r\n forceAddMID.put(\"120\", 1); // Provenienza - contributo*/\r\n \r\n try {\r\n //selectedClassificationList = new TreeMap<String, String>();\r\n \r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc;\r\n \r\n File urlf = new File(filepath);\r\n doc = dBuilder.parse(urlf);\r\n\r\n Node n = doc.getFirstChild();\r\n\r\n if (n.getNodeType() == Node.ELEMENT_NODE) {\r\n Element iENode = (Element) n;\r\n metadata_reader_metadatas(iENode, metadatas, false, forceAddMID, lang);\r\n }\r\n } catch (Exception ex) {\r\n throw ex;\r\n }\r\n\r\n return metadatas;\r\n }", "@Override\n\tprotected List<Entry> doRetrieveCollections()\n\t{\n\t\tif ( mScholar == null ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn mScholar.getCollectionsBySection( mSection );\n\t}", "@Override\n\tpublic List<Listing> findAllSortedByTime() {\n\t\treturn theListingRepo.findAll(Sort.by(Direction.DESC, \"dateUploaded\"));\n\t}", "@SuppressWarnings(\"unused\")\r\n private void beforeMarshal (Marshaller m)\r\n {\r\n // Convert sections -> ids\r\n if (sets != null) {\r\n descSets = new ArrayList<>();\r\n\r\n for (Collection<Section> set : sets) {\r\n SectionDescSet descSet = new SectionDescSet();\r\n\r\n for (Section section : set) {\r\n descSet.sections.add(\r\n new SectionDesc(\r\n section.getId(),\r\n section.getOrientation()));\r\n }\r\n\r\n descSets.add(descSet);\r\n }\r\n }\r\n }", "public List<DatasetItem> getDatasetsExternal() {\n List sortedList = new ArrayList(getDatasets());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "Collection<?> idValues();", "@DISPID(1610940447) //= 0x6005001f. The runtime will prefer the VTID if present\n @VTID(53)\n OrderedGeometricalSets orderedGeometricalSets();", "public DataSet<T> sortByScoreDesc() {\n return toDS(this.getDataStream().sorted());\n }", "public Collection<GlobalIdEntry> getAllEntries();", "public Collection<T> mo29734a() {\n return new ArrayList();\n }" ]
[ "0.54806453", "0.5340102", "0.5315127", "0.5174633", "0.5166462", "0.51355404", "0.5116236", "0.50680435", "0.5065536", "0.50382453", "0.5035961", "0.5033012", "0.49854207", "0.4977494", "0.49656948", "0.4940419", "0.49301726", "0.4924159", "0.4924159", "0.49214745", "0.49211565", "0.49211565", "0.49211565", "0.49211565", "0.49211565", "0.4904809", "0.48835576", "0.48831755", "0.48695457", "0.48657408", "0.48594207", "0.48516098", "0.48235005", "0.479721", "0.47743422", "0.47693664", "0.47657448", "0.47608563", "0.47410253", "0.4737047", "0.4730868", "0.4701884", "0.4690843", "0.4685419", "0.46580142", "0.46492848", "0.4632537", "0.4628682", "0.4625956", "0.4616886", "0.46049845", "0.4601967", "0.45995495", "0.45960623", "0.45950708", "0.45853847", "0.45798805", "0.45745108", "0.45699477", "0.4560099", "0.45411542", "0.45391414", "0.45356232", "0.45312494", "0.45303735", "0.4521672", "0.45183903", "0.45134446", "0.45106655", "0.45080173", "0.45073536", "0.4500627", "0.45004672", "0.44949085", "0.4486931", "0.44815215", "0.4478421", "0.44707775", "0.44706064", "0.44706056", "0.4470282", "0.44672093", "0.4466154", "0.4462461", "0.44581547", "0.445538", "0.4447587", "0.4442931", "0.44412723", "0.44403225", "0.44358572", "0.44283065", "0.44271654", "0.4420072", "0.44186765", "0.441792", "0.4412435", "0.44114316", "0.4406869", "0.44037855", "0.44016576" ]
0.0
-1
Create a JVM metadata object from a map representation for JSON data.
@SuppressWarnings("unchecked") public static JvmMetadata fromMap(Map<String, Object> map) { JvmMetadata metadata = new JvmMetadata(); Metadata.fillFromMap(metadata, map); metadata.jvmClasses.addAll((List<JvmClass>) map.get(JvmClass.class.getSimpleName())); metadata.jvmFields.addAll((List<JvmField>) map.get(JvmField.class.getSimpleName())); metadata.jvmMethods.addAll((List<JvmMethod>) map.get(JvmMethod.class.getSimpleName())); metadata.jvmVariables.addAll((List<JvmVariable>) map.get(JvmVariable.class.getSimpleName())); metadata.jvmInvocations.addAll((List<JvmMethodInvocation>) map.get(JvmMethodInvocation.class.getSimpleName())); metadata.jvmHeapAllocations.addAll((List<JvmHeapAllocation>) map.get(JvmHeapAllocation.class.getSimpleName())); metadata.usages.addAll((List<Usage>) map.get(Usage.class.getSimpleName())); metadata.jvmStringConstants.addAll((List<JvmStringConstant>) map.get(JvmStringConstant.class.getSimpleName())); metadata.aliases.addAll((List<SymbolAlias>) map.get(SymbolAlias.class.getSimpleName())); return metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "@NonNull\n JsonMap getMetadata();", "public Map<String, Variant<?>> GetMetadata();", "@Nullable\n @Generated\n @Selector(\"metadata\")\n public native NSDictionary<?, ?> metadata();", "public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);", "protected MMap readMap(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readMap json = \" + json);\n\n\t// Read the size\n\tint mapSize = json.getInt(\"size\");\n\n\t// Read the key type\n String keyTypeStr = json.getString(\"keyType\");\n\tProbeAttributeType keyType = decodeType(keyTypeStr);\n\n\t// Read the value type\n String valueTypeStr = json.getString(\"valueType\");\n\tProbeAttributeType valueType = decodeType(valueTypeStr);\n\n // Allocate a map of the right type\n\tMMap map = new DefaultMMap(keyType, valueType);\n\n JSONArray array = json.getJSONArray(\"map\");\n\n\t// now add all the values to the map\n\tfor (int e=0; e < mapSize; e++) {\n JSONObject mapping = array.getJSONObject(e);\n \n\t // decode a key\n\t Object key = decodeValue(keyType, mapping.get(\"key\"));\n\t // decode a value, \n\t Object value = decodeValue(valueType, mapping.get(\"value\"));\n\n map.put(key, value);\n\t}\n\n\treturn map;\n\n\n\n }", "String parseMapToJson(Map<String, Object> data);", "public abstract T parseFSMeta(T river, Map<String, Object> content);", "public static Object fromMap(Class clazz, Map map) {\n try {\n \tObject bean = JSONDeserializer.read(clazz, map);\n \treturn bean;\n } catch (Exception e) {\n throw new RuntimeException(\"Unable to populate \" + clazz.getName() + \" from \" + map, e);\n }\n\t\t\n\t}", "public abstract Map<String, Serializable> toMap();", "public void setMetadata(Map<String, String> metadata) {\n this.metadata = metadata;\n }", "Map<String, String> getCustomMetadata();", "public void setMetaData(HashMap pMetaData) ;", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "public Map<String, Object> map() {\n Map<String, Object> tomcatInstanceMap = new HashMap<>();\n tomcatInstanceMap.put(\"instanceUUID\", tomcatInstanceUUID);\n tomcatInstanceMap.put(\"instanceName\", instanceName);\n tomcatInstanceMap.put(\"environmentName\", environmentName);\n tomcatInstanceMap.put(\"tomcatVersion\", tomcatVersion);\n tomcatInstanceMap.put(\"destinationFolder\", destinationFolder.getAbsolutePath());\n tomcatInstanceMap.put(\"compressed\", compressed);\n tomcatInstanceMap.put(\"primaryPort\", primaryPort);\n tomcatInstanceMap.put(\"protocolPrimaryPort\", protocolPrimaryPort);\n tomcatInstanceMap.put(\"shutdownPort\", shutdownPort);\n tomcatInstanceMap.put(\"ajpPort\", ajpPort);\n tomcatInstanceMap.put(\"secureInstance\", secureInstance);\n tomcatInstanceMap.put(\"securePort\", securePort);\n tomcatInstanceMap.put(\"protocolSecurePort\", protocolSecurePort);\n tomcatInstanceMap.put(\"keystoreSourceFilename\", keystoreSourceFilename);\n tomcatInstanceMap.put(\"keystoreCredentials\", keystoreCredentials);\n tomcatInstanceMap.put(\"jvmOptionXms\", jvmOptionXms);\n tomcatInstanceMap.put(\"jvmOptionXmx\", jvmOptionXmx);\n tomcatInstanceMap.put(\"jvmOptionXss\", jvmOptionXss);\n tomcatInstanceMap.put(\"jvmOptionXXMaxMetaspaceSize\", jvmOptionXXMaxMetaspaceSize);\n tomcatInstanceMap.put(\"jvmOptions\", jvmOptions);\n tomcatInstanceMap.put(\"instanceManagement\", instanceManagement);\n /**\n * Serialize our Instance Management Properties\n */\n List<Map<String,String>> instanceManagementPropertiesMapList =\n new ArrayList<>(instanceManagementProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceManagementProperties) {\n instanceManagementPropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceManagementProperties\", instanceManagementPropertiesMapList);\n /**\n * Serialize our Instance Properties\n */\n List<Map<String,String>> instancePropertiesMapList =\n new ArrayList<>(instanceProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceProperties) {\n instancePropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceProperties\", instancePropertiesMapList);\n /**\n * Return the Map for Persisting as YAML.\n */\n return tomcatInstanceMap;\n }", "protected abstract IItemMetadata newItemMetadata(Map<String, String> metadata);", "public Map instantiateBackingMap(String sName);", "public Map<String, Variant<?>> GetMetadata(int position);", "public static void transferMapMeta(MapMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta2json)\r\n \t\t{\r\n \t\t\tif (!meta.isScaling()) return;\r\n \t\t\tjson.addProperty(MAP_SCALING, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tJsonElement element = json.get(MAP_SCALING);\r\n \t\t\tif (element == null) return;\r\n \r\n \t\t\tmeta.setScaling(element.getAsBoolean());\r\n \t\t}\r\n \t}", "protected void setMetdata(HashMap<PageMetadataEnum,String> m ){\r\n\t\tthis.metadata = m; \r\n\t}", "public static void main(final String[] args) throws IOException {\n\n Map<String, Object> map = new HashMap<>();\n Map<String, String> smsGateway = new HashMap<>();\n smsGateway.put(\"username\", \"foo\");\n smsGateway.put(\"password\", \"bar\");\n map.put(\"smsGateway\", smsGateway);\n map.put(\"key2\", \"value2\");\n\n ObjectMapper objectMapper = new ObjectMapper();\n StringWriter stringWriter = new StringWriter();\n\n objectMapper.writeValue(stringWriter, map);\n\n System.out.println(stringWriter.toString()); //CSOFF\n\n Map<String, Object> mapFromString =\n objectMapper.readValue(\n \"{\\\"smsGateway\\\":{\\\"type\\\":\\\"sms.sluzba.cz\\\",\\\"username\\\":\\\"foo\\\",\\\"password\\\":\\\"bar\\\"}}\",\n new TypeReference<HashMap<String, Object>>() { });\n\n System.out.println(mapFromString); //CSOFF\n }", "protected abstract T parseMap(Map<String, Object> values);", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "@POST( CONTROLLER + METADATA_PATH )\n VersionedObjectKey createMetadataObject( @Body CreateMetadataObjectRequest request );", "public AgentBuilderDictionary(Map m) {\n\t\tsuper(m);\n\t}", "protected JvmOSMeta createJvmOSMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 217 */ return new JvmOSMeta(this, this.objectserver);\n/* */ }", "Object getMetadata(String key);", "public abstract T toObject(String uuid, Map<String, Object> data);", "protected JvmRuntimeMeta createJvmRuntimeMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 379 */ return new JvmRuntimeMeta(this, this.objectserver);\n/* */ }", "public static void init(Map<String, String> customMetadataMap, Map<String, String> systemMetadataMap) {\n // Init ThreadLocal.\n MetadataContextHolder.remove();\n MetadataContext metadataContext = MetadataContextHolder.get();\n\n // Save to ThreadLocal.\n if (!CollectionUtils.isEmpty(customMetadataMap)) {\n metadataContext.putAllTransitiveCustomMetadata(customMetadataMap);\n }\n if (!CollectionUtils.isEmpty(systemMetadataMap)) {\n metadataContext.putAllSystemMetadata(systemMetadataMap);\n }\n MetadataContextHolder.set(metadataContext);\n }", "public Builder setMetadataJsonBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n metadataJson_ = value;\n onChanged();\n return this;\n }", "public abstract mapnik.Map createMap(Object recycleTag);", "public static Map<String,Object> processJSON(String jsontoMap)\n\t{\n\t\tString[] splitkeyval=null;\n\t\tMap<String,Object> mapConvert=new HashMap();\n\t\tString[] splitjson=jsontoMap.replace(\"\\\"\",\"\").split(\",\");\n\t\tfor(int i=0;i<splitjson.length;i++)\n\t\t{\n\t\t\tif(splitjson[i].contains(\"iss\"))\n\t\t\t{\n\t\t\t\tint col=splitjson[i].indexOf(\":\");\n\t\t\t\tsplitjson[i] = splitjson[i].substring(0,col) +\"=\"\n\t\t\t + splitjson[i].substring(col + 1);\n\t\t\t\tsplitkeyval=splitjson[i].split(\"=\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t splitkeyval=splitjson[i].split(\":\");\n\t\t\t}\n\t\t\tmapConvert.put(splitkeyval[0], splitkeyval[1]);\n\t\t}\n\t\treturn mapConvert;\n\t}", "public static<K, V> Map<K, V> createMapFromJSON(final JSONObject mapJson) throws JSONException {\n\t\tfinal Map<K, V> result = new HashMap<K, V>();\n\n\t\tfinal JSONArray entriesJson = (JSONArray) mapJson.get(\"map\");\n\t\tfor(int i=0; i < entriesJson.length(); i++){\n\t\t\tfinal JSONObject entryJson = entriesJson.getJSONObject(i);\n\t\t\tfinal K key = Helper.createObjectFromJSON(entryJson.getJSONObject(\"key\"));\n\t\t\tfinal V value = Helper.createObjectFromJSON(entryJson.getJSONObject(\"value\"));\n\t\t\tresult.put(key, value);\n\t\t}\n\n\t\treturn result;\n\t}", "public abstract Object getMetadata(String key);", "java.lang.String getMetadataJson();", "protected JvmClassLoadingMeta createJvmClassLoadingMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 622 */ return new JvmClassLoadingMeta(this, this.objectserver);\n/* */ }", "Map<String, Object> parseToMap(String json);", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "ProcessOperation<Map<String, Object>> map();", "public void setMetaReadMap(Map<String, Runnable> map) {\n this.metaRead = map;\n }", "public static DOECodeMetadata parseJson(Reader reader) throws IOException {\r\n return mapper.readValue(reader, DOECodeMetadata.class);\r\n }", "public PorqueBoxMetaData(Map<String, Object> data) {\n this.data = normalizeSectionNames( data );\n }", "private static void m4071a(JsonReader jsonReader, Map<String, C0983c> map) {\n jsonReader.beginObject();\n while (jsonReader.hasNext()) {\n String nextName = jsonReader.nextName();\n Object obj = -1;\n if (nextName.hashCode() == 3322014) {\n if (nextName.equals(\"list\")) {\n obj = null;\n }\n }\n if (obj != null) {\n jsonReader.skipValue();\n } else {\n jsonReader.beginArray();\n while (jsonReader.hasNext()) {\n C0983c a = C0936k.m4047a(jsonReader);\n map.put(a.m4241b(), a);\n }\n jsonReader.endArray();\n }\n }\n jsonReader.endObject();\n }", "public abstract TypeInformation<T> createTypeInfo(\n Type t, Map<String, TypeInformation<?>> genericParameters);", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }", "public Metadata(String key, String value) {\n mJSONObject = new JSONObject();\n insert(key, value);\n }", "<K, V> List<IsmRecord<WindowedValue<V>>> forMapMetadata(\n Coder<K> keyCoder, Collection<K> keys, BoundedWindow window) throws Exception {\n\n List<IsmRecord<WindowedValue<V>>> rval = new ArrayList<>();\n // Add the size metadata record\n rval.add(\n IsmRecord.<WindowedValue<V>>meta(\n ImmutableList.of(IsmFormat.getMetadataKey(), window, 0L),\n CoderUtils.encodeToByteArray(VarLongCoder.of(), (long) keys.size())));\n\n // Add the positional entries for each key\n long i = 1L;\n for (K key : keys) {\n rval.add(\n IsmRecord.<WindowedValue<V>>meta(\n ImmutableList.of(IsmFormat.getMetadataKey(), window, i),\n CoderUtils.encodeToByteArray(keyCoder, key)));\n i += 1L;\n }\n return rval;\n }", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "Map<String, Object> getPropertiesAsMap();", "public interface PCSMetadata {\n\n /* Met Fields */\n String APPLICATION_SUCCESS_FLAG = \"ApplicationSuccessFlag\";\n\n String ON_DISK = \"OnDisk\";\n\n String TAPE_LOCATION = \"TapeLocation\";\n\n String PRODUCTION_LOCATION = \"ProductionLocation\";\n\n String PRODUCTION_LOCATION_CODE = \"ProductionLocationCode\";\n\n String DATA_VERSION = \"DataVersion\";\n\n String DATA_PROVIDER = \"DataProvider\";\n\n String COLLECTION_LABEL = \"CollectionLabel\";\n\n String COMMENTS = \"Comments\";\n\n String EXECUTABLE_PATHNAMES = \"ExecutablePathnames\";\n\n String EXECUTABLE_VERSIONS = \"ExecutableVersions\";\n\n String PROCESSING_LEVEL = \"ProcessingLevel\";\n\n String JOB_ID = \"JobId\";\n\n String TASK_ID = \"TaskId\";\n\n String PRODUCTION_DATE_TIME = \"ProductionDateTime\";\n\n String INPUT_FILES = \"InputFiles\";\n\n String PGE_NAME = \"PGEName\";\n\n String OUTPUT_FILES = \"OutputFiles\";\n \n String TEST_TAG = \"TestTag\";\n\n String SUB_TEST_TAG = \"SubTestTag\";\n\n String TEST_LOCATION = \"TestLocation\";\n\n String TEST_COUNTER = \"TestCounter\";\n\n String TEST_DATE = \"TestDate\";\n \n String START_DATE_TIME = \"StartDateTime\";\n\n String END_DATE_TIME = \"EndDateTime\";\n\n}", "public HashMap getMetaData() ;", "Map<Integer, String> getMetaLocal();", "private static JSONObject mapFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONObject json = new JSONObject();\n\t\t//System.out.println(\"From map!\");\n\t\tint length = bytes.getInt();\n\t\t//System.out.println(\"Length \" + Integer.toString(length));\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//String key =(String) valueFromBytes(bytes);\n\t\t\t\n\t\t\t//Get Key\n\t\t\tbyte type = bytes.get();\n\t\t\t//assert(type == STRING_INDICATOR);\n\t\t\tint lengthKey = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[lengthKey];\n\t\t\tbytes.get(stringBytes, 0, lengthKey);\n\t\t\tString key = new String(stringBytes);\n\t\t\t//System.out.println(\"From map: \" + new Integer(type).toString());\n\t\t\t//Get value\n\t\t\ttype = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(key, mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(key, arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tstringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(key,new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(key,bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}", "public Map<String, Object> getInfo();", "protected static MetaData createMetaDataFromObject(Object o) {\n MetaData metaData = new MetaData(); \r\n \tString className = o.getClass().getName();\r\n \tif(className.indexOf(\"ChestOpen\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestOpen\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"ChestCreated\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestCreate\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"ChestClosed\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestClosed\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"HealingScript\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"HealingScript\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \treturn metaData;\r\n } if(className.indexOf(\"AddEffectScript\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"AddEffectScript\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Effect\", \"Poison\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"TargetProperty\", \"Target\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Chance\", new Integer(100),null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n/*\tTO DO: modify to current version\r\n \r\n \tif(className.indexOf(\"Effect\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"TemporaryEffect\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Time\", new Integer(2000), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Modifier\", Modifier.simple(\"dummy\",-1), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Stat\", \"MoveSpeed\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Bonus\", new Integer(2000), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Multiplier\", new Integer(100), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\tmetaData.add(\"TargetProperty\", \"Target\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Chance\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}*/\r\n \tif(className.indexOf(\"Modifier\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"SimpleModifier\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Stat\", new String(), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Bonus\", new Integer(0), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Multiplier\", new Integer(0), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"Personality\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"Personality\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Type\", new Integer(0), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"SubType\", new Integer(0), new Integer[]{new Integer(0), new Integer(1), new Integer(2), new Integer(3), new Integer(4), new Integer(5), new Integer(6), new Integer(7), new Integer(8)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"State\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \treturn null;\r\n }", "public PSMatrixFilesMeta(int matrixId, Map<Integer, MatrixPartitionMeta> partMetas) {\r\n this.matrixId = matrixId;\r\n this.partMetas = partMetas;\r\n }", "public Builder setMetadataJson(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n metadataJson_ = value;\n onChanged();\n return this;\n }", "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 Map fromJson(String source) {\n\t\ttry {\n\t\t\treturn (Map) JSONDeserializer.read(source);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Exception deserializing \" + source, e);\n\t\t}\n\t}", "public Metadata(String[] key, String[] value) {\n mJSONObject = new JSONObject();\n\n if (key.length != value.length) {\n LOGGER.warning(\"The JSON Object was created, but you gave me two arrays of \"\n + \"different sizes!\");\n \n if (key.length > value.length) {\n LOGGER.warning(\"The JSON Object created has null values.\");\n }\n else {\n LOGGER.warning(\"The JSON Object created has lost values.\");\n }\n }\n\n for (int i = 0; i < key.length; i++) {\n insert(key[i], value[i]);\n }\n }", "void writeObject(Map<Object, Object> map);", "private JsonObject convertMapToJson(Map<String,String> entry){\r\n\t\tJsonObject jsonObj = new JsonObject();\r\n\t\tSet<String> keySet = entry.keySet();\r\n\t\t\r\n\t\tfor(String key : keySet){\r\n\t\t\tjsonObj.addProperty(key, entry.get(key));\r\n\t\t}\r\n\t\treturn jsonObj;\r\n\t}", "java.util.Map<java.lang.Long, org.tensorflow.proto.profiler.XStatMetadata>\n getStatMetadataMap();", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "public abstract Map<String, Object> toMap(T object);", "public abstract void createMap();", "private Map<String,CertificateMetadata> buildCertificates(Map<String,Object> certObjMap)\r\n {\r\n Map<String,CertificateMetadata> certMap = new HashMap<>();\r\n for(Map.Entry<String,Object> certEntry : certObjMap.entrySet())\r\n {\r\n Map<String,Object> propertiesMap = null;\r\n try {\r\n propertiesMap = (Map<String, Object>) certEntry.getValue();\r\n } catch (ClassCastException e) {\r\n throw new MetadataException(\"Certificate metadata is incorrectly formatted\");\r\n }\r\n \r\n String name = certEntry.getKey();\r\n CertificateMetadata cm = new CertificateMetadata();\r\n cm.setName(name);\r\n cm.setFilename((String) propertiesMap.get(\"filename\"));\r\n cm.setFormat((String) propertiesMap.get(\"format\"));\r\n cm.setPromptText((String) propertiesMap.get(\"prompt-text\"));\r\n \r\n certMap.put(name, cm);\r\n }\r\n return certMap;\r\n }", "Map<String, String> asMap();", "Map<String, Object> getAllMetadata();", "private Object deserializeMap(Object datum, Schema fileSchema, Schema mapSchema, MapTypeInfo columnType)\n throws AvroSerdeException {\n Map<String, Object> map = new HashMap<String, Object>();\n Map<CharSequence, Object> mapDatum = (Map)datum;\n Schema valueSchema = mapSchema.getValueType();\n TypeInfo valueTypeInfo = columnType.getMapValueTypeInfo();\n for (CharSequence key : mapDatum.keySet()) {\n Object value = mapDatum.get(key);\n map.put(key.toString(), worker(value, fileSchema == null ? null : fileSchema.getValueType(),\n valueSchema, valueTypeInfo));\n }\n\n return map;\n }", "protected JvmMemoryMeta createJvmMemoryMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 541 */ return new JvmMemoryMeta(this, this.objectserver);\n/* */ }", "public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }", "public JsonQMetadataPayload(File file, Map<String, String> info) {\n this.info = info;\n info.put(\"uri\", file.getAbsolutePath());\n setId(file.getName() + \".properties\");\n setLabel(\"File State Metadata\");\n setContentType(\"text/plain\");\n setType(PayloadType.Annotation);\n }", "public static <V extends Parcelable> Map<String, V> readMap(Parcel in,\n Class<? extends V> type) {\n\n Map<String, V> map = new HashMap<String, V>();\n if (in != null) {\n String[] keys = in.createStringArray();\n Bundle bundle = in.readBundle(type.getClassLoader());\n for (String key : keys)\n map.put(key, type.cast(bundle.getParcelable(key)));\n }\n return map;\n }", "public static<K, V> JSONObject createMapJSONObject(final Map<K, V> map) throws JSONException {\n\t\tfinal JSONObject json = new JSONObject();\n\n\t\tfinal Collection<JSONObject> entriesJson = new LinkedList<JSONObject>();\n\t\tif(map!=null){\n\t\t\tfor(final Entry<K, V> entry: map.entrySet()){\n\t\t\t\tfinal JSONObject entryJson = new JSONObject();\n\t\t\t\tentryJson.put(\"key\", Helper.createJSONObject(entry.getKey()));\n\t\t\t\tentryJson.put(\"value\", Helper.createJSONObject(entry.getValue()));\n\t\t\t\tentriesJson.add(entryJson);\n\t\t\t}\n\t\t}\n\n\t\tjson.put(\"map\", entriesJson);\n\n\t\treturn json;\n\t}", "public PropertyMap createPCDATAMap()\n {\n checkState();\n return super.createPCDATAMap();\n }", "protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }", "public Response(JSONObject<String, Object> map) {\n objectMap = map;\n }", "@SuppressWarnings(\"unchecked\")\n <HK, HV> Map<HK, HV> deserializeHashMap(Map<byte[], byte[]> entries) {\n if (entries == null) {\n return null;\n }\n\n Map<HK, HV> map = new HashMap<HK, HV>(entries.size());\n\n for (Map.Entry<byte[], byte[]> entry : entries.entrySet()) {\n map.put((HK) deserializeHashKey(entry.getKey()), (HV) deserializeHashValue(entry.getValue()));\n }\n\n return map;\n }", "public void addProductInspect(String accessKey, Map<String,String> dataMap) throws org.apache.thrift.TException;", "private static void createTypeMap() {\n\n }", "@Override\n public ExplainCommand fromMap(Map<String, Object> m) {\n super.fromMap(m);\n setCommand((Map<String, Object>) m.get(getCommandName()));\n return this;\n }", "<E extends CtElement> E putMetadata(String key, Object val);", "Object instantiate(Map<String, Object> arguments);", "com.appscode.api.kubernetes.v1beta2.Meta getMeta();", "void setContent(Map<String, Object> content);", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"FileName\", this.FileName);\n this.setParamSimple(map, prefix + \"FilePath\", this.FilePath);\n this.setParamSimple(map, prefix + \"VirusName\", this.VirusName);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"ModifyTime\", this.ModifyTime);\n this.setParamSimple(map, prefix + \"ContainerName\", this.ContainerName);\n this.setParamSimple(map, prefix + \"ContainerId\", this.ContainerId);\n this.setParamSimple(map, prefix + \"ContainerStatus\", this.ContainerStatus);\n this.setParamSimple(map, prefix + \"ImageName\", this.ImageName);\n this.setParamSimple(map, prefix + \"ImageId\", this.ImageId);\n this.setParamSimple(map, prefix + \"Status\", this.Status);\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"HarmDescribe\", this.HarmDescribe);\n this.setParamSimple(map, prefix + \"SuggestScheme\", this.SuggestScheme);\n this.setParamSimple(map, prefix + \"SubStatus\", this.SubStatus);\n this.setParamSimple(map, prefix + \"ContainerNetStatus\", this.ContainerNetStatus);\n this.setParamSimple(map, prefix + \"ContainerNetSubStatus\", this.ContainerNetSubStatus);\n this.setParamSimple(map, prefix + \"ContainerIsolateOperationSrc\", this.ContainerIsolateOperationSrc);\n this.setParamSimple(map, prefix + \"MD5\", this.MD5);\n this.setParamSimple(map, prefix + \"RiskLevel\", this.RiskLevel);\n this.setParamArraySimple(map, prefix + \"CheckPlatform.\", this.CheckPlatform);\n this.setParamSimple(map, prefix + \"NodeID\", this.NodeID);\n this.setParamSimple(map, prefix + \"NodeName\", this.NodeName);\n this.setParamSimple(map, prefix + \"PodIP\", this.PodIP);\n this.setParamSimple(map, prefix + \"PodName\", this.PodName);\n this.setParamSimple(map, prefix + \"ClusterID\", this.ClusterID);\n this.setParamSimple(map, prefix + \"NodeType\", this.NodeType);\n this.setParamSimple(map, prefix + \"PublicIP\", this.PublicIP);\n this.setParamSimple(map, prefix + \"InnerIP\", this.InnerIP);\n this.setParamSimple(map, prefix + \"NodeUniqueID\", this.NodeUniqueID);\n this.setParamSimple(map, prefix + \"HostID\", this.HostID);\n this.setParamSimple(map, prefix + \"ClusterName\", this.ClusterName);\n\n }", "protected JvmCompilationMeta createJvmCompilationMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 298 */ return new JvmCompilationMeta(this, this.objectserver);\n/* */ }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Cluster\", this.Cluster);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Runtime\", this.Runtime);\n this.setParamSimple(map, prefix + \"ModelUri\", this.ModelUri);\n this.setParamSimple(map, prefix + \"Cpu\", this.Cpu);\n this.setParamSimple(map, prefix + \"Memory\", this.Memory);\n this.setParamSimple(map, prefix + \"Gpu\", this.Gpu);\n this.setParamSimple(map, prefix + \"GpuMemory\", this.GpuMemory);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"ScaleMode\", this.ScaleMode);\n this.setParamObj(map, prefix + \"Scaler.\", this.Scaler);\n this.setParamObj(map, prefix + \"Status.\", this.Status);\n this.setParamSimple(map, prefix + \"AccessToken\", this.AccessToken);\n this.setParamSimple(map, prefix + \"ConfigId\", this.ConfigId);\n this.setParamSimple(map, prefix + \"ConfigName\", this.ConfigName);\n this.setParamSimple(map, prefix + \"ServeSeconds\", this.ServeSeconds);\n this.setParamSimple(map, prefix + \"ConfigVersion\", this.ConfigVersion);\n this.setParamSimple(map, prefix + \"ResourceGroupId\", this.ResourceGroupId);\n this.setParamArrayObj(map, prefix + \"Exposes.\", this.Exposes);\n this.setParamSimple(map, prefix + \"Region\", this.Region);\n this.setParamSimple(map, prefix + \"ResourceGroupName\", this.ResourceGroupName);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"GpuType\", this.GpuType);\n this.setParamSimple(map, prefix + \"LogTopicId\", this.LogTopicId);\n\n }", "private Map<String, Object> readMap(String json) {\n if (StringUtils.isBlank(json)) {\n return new HashMap<>();\n }\n try {\n return new ObjectMapper().readValue(json, HashMap.class);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "protected Map<String, String> deserialize(String data)\n {\n Map<String, String> map = new HashMap<String, String>();\n if (!StringUtils.isEmpty(data)) {\n JavaScriptObject jsObject = JavaScriptObject.fromJson(data);\n JsArrayString keys = jsObject.getKeys();\n for (int i = 0; i < keys.length(); i++) {\n String key = keys.get(i);\n Object value = jsObject.get(key);\n if (value != null) {\n map.put(key, String.valueOf(value));\n }\n }\n }\n return map;\n }", "@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }", "java.util.Map<java.lang.Long, org.tensorflow.proto.profiler.XEventMetadata>\n getEventMetadataMap();", "public JSONNode() {\n map = new HashMap<>();\n }", "public Map getMetadata() {\n return metadata;\n }" ]
[ "0.54837495", "0.54837495", "0.5459905", "0.5413081", "0.54089594", "0.53068537", "0.52804357", "0.52533436", "0.5013977", "0.50075746", "0.4998473", "0.4970195", "0.49701256", "0.49314559", "0.4916874", "0.4916874", "0.48958975", "0.48941576", "0.48330724", "0.48290482", "0.48184943", "0.48170483", "0.48036242", "0.47988087", "0.4762912", "0.47327656", "0.47181836", "0.47110724", "0.47079718", "0.46859705", "0.46798486", "0.46771243", "0.4672614", "0.46618596", "0.4657723", "0.4650442", "0.4642702", "0.46307737", "0.46229064", "0.46137723", "0.46129894", "0.4584784", "0.45831424", "0.45763624", "0.45525584", "0.4552028", "0.45473555", "0.4546178", "0.45455047", "0.45452413", "0.45405746", "0.45382822", "0.45185244", "0.4510508", "0.45092148", "0.4502156", "0.44965547", "0.4490842", "0.448757", "0.44854704", "0.44753554", "0.44738203", "0.44721514", "0.44687414", "0.44644868", "0.4464475", "0.4453958", "0.4450529", "0.44456035", "0.44436064", "0.4442695", "0.44401947", "0.44383317", "0.44315144", "0.4430725", "0.44238466", "0.44225585", "0.44225082", "0.44160286", "0.44158134", "0.44155675", "0.4413545", "0.44132274", "0.44123736", "0.43982652", "0.43943933", "0.43916187", "0.43811816", "0.43763304", "0.4368404", "0.43668458", "0.43615675", "0.43602523", "0.4355877", "0.43502226", "0.43501994", "0.43484768", "0.4335057", "0.43330148", "0.4328723" ]
0.74340105
0
Prints a metadata report in the standard output.
@Override public void printReportStats(Printer printer) { super.printReportStats(printer); printer.println("Classes: " + jvmClasses.size()); printer.println("Fields: " + jvmFields.size()); printer.println("Methods: " + jvmMethods.size()); printer.println("Variables: " + jvmVariables.size()); printer.println("HeapAllocations: " + jvmHeapAllocations.size()); printer.println("MethodInvocations: " + jvmInvocations.size()); printer.println("Usages: " + usages.size()); printer.println("Aliases: " + aliases.size()); printer.println("StringConstants: " + jvmStringConstants.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n\tpublic void print() {\r\n\t\tSystem.out.println(\"** Metadata **\");\r\n\t\tfor (final Map<String, Object> m : _data) {\r\n\t\t\tSystem.out.println(\" + ALBUM\");\r\n\t\t\tfor (final String key : m.keySet()) {\r\n\t\t\t\tfinal Object o = m.get(key);\r\n\r\n\t\t\t\t// Most stuff is string, we can just dump that out.\r\n\t\t\t\tif (o instanceof String) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \": \" + (String) o);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (o instanceof ArrayList) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \":\");\r\n\t\t\t\t\tfor (final Object oo : (ArrayList<GracenoteMetadataOET>) o) {\r\n\t\t\t\t\t\tif (oo instanceof GracenoteMetadataOET) {\r\n\t\t\t\t\t\t\tfinal GracenoteMetadataOET oet = (GracenoteMetadataOET) oo;\r\n\t\t\t\t\t\t\toet.print();\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}", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "public void showMetadata() {\n String title;\n String description;\n if (fileHandler.metaTitle.equals(\"\")) {\n title = \"No title\";\n } else {\n title = fileHandler.metaTitle;\n }\n if (fileHandler.metaData.equals(\"\")) {\n description = \"No description available. Try loading an RLE-file!\";\n } else {\n description = fileHandler.metaData;\n }\n PopUpAlerts.metaData(title, description);\n }", "private void printXml(PrintWriter writer, String sMetadata)\r\n throws SearchException, SchemaException {\r\n MetadataDocument document = new MetadataDocument();\r\n String sXml = document.prepareForFullViewing(sMetadata);\r\n writer.write(sXml);\r\n}", "public void dumpMetaInfo(final LtMetaInfo metaInfo, final Writer writer) {\n\t\tPrintWriter pr = new PrintWriter(writer);\n\n\t\tURL url = getClass().getProtectionDomain().getCodeSource().getLocation();\n\t\tif (url.getPath().endsWith(\".jar\")) {\n\t\t\ttry {\n\t\t\t\tJarFile jarFile = new JarFile(toFile(url));\n\t\t\t\tManifest mf = jarFile.getManifest();\n\t\t\t\tAttributes attr = mf.getMainAttributes();\n\t\t\t\tpr.printf(\"perfload.implementation.version=%s\", attr.getValue(\"Implementation-Version\"));\n\t\t\t\tpr.println();\n\t\t\t\tpr.printf(\"perfload.implementation.date=%s\", attr.getValue(\"Implementation-Date\"));\n\t\t\t\tpr.println();\n\t\t\t\tpr.printf(\"perfload.implementation.revision=%s\", attr.getValue(\"Implementation-Revision\"));\n\t\t\t\tpr.println();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t}\n\t\t}\n\n\t\tpr.printf(\"test.file=%s\", metaInfo.getTestplanFileName());\n\t\tpr.println();\n\n\t\tpr.printf(\"test.start=%s\", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(metaInfo.getStartTimestamp()));\n\t\tpr.println();\n\t\tpr.printf(\"test.finish=%s\", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(metaInfo.getFinishTimestamp()));\n\t\tpr.println();\n\n\t\tList<Daemon> daemonList = metaInfo.getDaemons();\n\t\tCollections.sort(daemonList);\n\n\t\tfor (Daemon daemon : daemonList) {\n\t\t\tpr.printf(\"daemon.%d=%s:%d\", daemon.getId(), daemon.getHost(), daemon.getPort());\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<String> lpTargets = metaInfo.getLpTargets();\n\t\tif (!lpTargets.isEmpty()) {\n\t\t\tCollections.sort(lpTargets);\n\t\t\tpr.printf(\"targets=%s\", on(',').join(lpTargets));\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<String> lpOperations = metaInfo.getLpOperations();\n\t\tif (!lpOperations.isEmpty()) {\n\t\t\tCollections.sort(lpOperations);\n\t\t\tpr.printf(\"operations=%s\", on(',').join(lpOperations));\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<Executions> executionsList = metaInfo.getExecutionsList();\n\t\tCollections.sort(executionsList);\n\t\tfor (Executions executions : executionsList) {\n\t\t\tpr.printf(\"executions.%s.%s=%d\", executions.operation, executions.target, executions.executions);\n\t\t\tpr.println();\n\t\t}\n\t}", "public void printReport() {\n System.out.println(\"=== Product Report ===\");\n productNames.keySet().forEach(k -> {\n System.out.println(\"Name: \" + k + \"\\t\\tCount: \" + productCountMap.get(productNames.get(k)));\n });\n\n }", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}", "public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void printToScreen(ResultSetMetaData metaData, ResultSet results) throws SQLException {\n results.last();\n int numberOfRows = results.getRow();\n int numberOfColumns = metaData.getColumnCount();\n\n //store column names\n String[] columnNames = new String[numberOfColumns];\n for (int i = 1; i <= numberOfColumns; i++) {\n String columnName = metaData.getColumnName(i);\n columnNames[i - 1] = columnName;\n }\n\n //print results\n results.first();\n for (int i = 0; i < numberOfRows; i++) {\n\n String columnName = \"\";\n for (int c = 0; c < numberOfColumns; c++) {\n columnName = columnNames[c];\n String value;\n if (columnName.equals(\"population\")) {\n value = String.valueOf(results.getInt(columnName));\n } else {\n value = results.getString(columnName);\n }\n System.out.print(columnName + \"= \" + value + \" \");\n }\n System.out.println();\n results.next();\n }\n }", "public ShowTableMetadataResponse showTableMetadata(ShowTableMetadataRequest request) throws GPUdbException {\n ShowTableMetadataResponse actualResponse_ = new ShowTableMetadataResponse();\n submitRequest(\"/show/table/metadata\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\r\n\tpublic void print() {\n\t\tsuper.print();\r\n\t\tSystem.out.println(\"album=\" + album + \", year=\" + year);\r\n\t}", "private static void printDocumentation() {\n\t\tSystem.out\n\t\t\t\t.println(\"********************************************************************\");\n\t\tSystem.out.println(\"*** Wikidata Toolkit: Dump Processing Example\");\n\t\tSystem.out.println(\"*** \");\n\t\tSystem.out\n\t\t\t\t.println(\"*** This program will download and process dumps from Wikidata.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** It will print progress information and some simple statistics.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** Downloading may take some time initially. After that, files\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** are stored on disk and are used until newer dumps are available.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** You can delete files manually when no longer needed (see \");\n\t\tSystem.out\n\t\t\t\t.println(\"*** message below for the directory where files are found).\");\n\t\tSystem.out\n\t\t\t\t.println(\"********************************************************************\");\n\t}", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "void printReport();", "abstract public void printInfo();", "private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}", "public void printReport(){\n StdOut.println(name);\n double total = cash;\n for (int i=0; i<n; i++){\n int amount = shares[i];\n double price = StockQuote.priceOf(stocks[i]);\n total+= amount*price;\n StdOut.printf(\"%4d %5s \", amount, stocks[i]);\n StdOut.printf(\"%9.2f %11.2f\\n\", price, amount*price);\n }\n StdOut.printf(\"%21s %10.2f\\n\", \"Cash: \", cash);\n StdOut.printf(\"%21s %10.2f\\n\", \"Total: \", total);\n }", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}", "void printInfo();", "private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }", "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }", "public void printDetails() {\n PrintFormatter pf = new PrintFormatter();\n\n String first = \"############# Armor Details #############\";\n System.out.println(first);\n pf.formatText(first.length(), \"# Items stats for: \" + name);\n pf.formatText(first.length(), \"# Armor Type: \" + itemsType);\n pf.formatText(first.length(), \"# Slot: \" + slot);\n pf.formatText(first.length(), \"# Armor level: \" + level);\n\n if (baseStats.getHealth() > 0)\n pf.formatText(first.length(), \"# Bonus HP: \" + baseStats.getHealth());\n\n if (baseStats.getStrength() > 0)\n pf.formatText(first.length(), \"# Bonus Str: \" + baseStats.getStrength());\n\n if (baseStats.getDexterity() > 0)\n pf.formatText(first.length(), \"# Bonus Dex: \" + baseStats.getDexterity());\n\n if (baseStats.getIntelligence() > 0)\n pf.formatText(first.length(), \"# Bonus Int: \" + baseStats.getIntelligence());\n\n System.out.println(\"########################################\");\n\n }", "public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }", "public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}", "public static void main(String[] args) { \n processDataFile();\n realtorLogImpl.traverseDisplay();\n System.out.println();\n propertyLogImpl.traverseDisplay();\n System.out.println();\n generateReport();\n }", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "@Override\n public void print(PrintWriter printWriter, Format format, boolean isZip) {\n final String[] descriptorKeys = slingRepository.getDescriptorKeys();\n for (final String key : descriptorKeys) {\n printWriter.printf(\"%s = %s%n\", key, slingRepository.getDescriptor(key));\n }\n }", "public void printInfo() throws IOException {\n System.out.println();\n System.out.println(\"* Current books in the database.\\n\");\n for(Book book :bookdatabase){\n System.out.println(book.getTitle());\n }\n System.out.println();\n System.out.println(\"* Current students in the database.\\n\");\n for(Student student :studentdatabase){\n System.out.println(student.getUsername());\n }\n System.out.println();\n System.out.println(\"* Current librarians in the database.\\n\");\n for(Librarian l :lib_db){\n System.out.println(l.getUsername());\n }\n\n\n\n }", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "void displayMetadata(Node node, int level) {\n indent(level);\n if(level == 1)metadata +=\" \";\n else if(level == 2){\n metadata +=\" \";\n metadata +=\" \";\n }else if(level == 3){\n metadata +=\" \";\n metadata +=\" \";\n metadata +=\" \";\n }else if(level == 4){\n metadata +=\" \";\n metadata +=\" \";\n metadata +=\" \";\n metadata +=\" \";\n }\n metadata +=\" \";\n\n String nume1 = node.getNodeName();\n if(nume1.equals(\"markerSequence\")||nume1.equals(\"Palette\") || nume1.equals(\"PLTE\")){\n return;\n }\n System.out.print(\"\" + nume1);\n metadata +=\"\" + nume1;\n\n\n NamedNodeMap map = node.getAttributes();\n if (map != null) {\n\n // print attribute values\n int length = map.getLength();\n for (int i = 0; i < length; i++) {\n Node attr = map.item(i);\n String nume= attr.getNodeName();\n if(nume.endsWith(\"Entry\")){\n\n }else{\n System.out.print(\"\" + attr.getNodeName() +\n \"=\\\"\" + attr.getNodeValue() + \"\\\"\");\n \n metadata +=\" \" + attr.getNodeName() +\n \"=\\\"\" + attr.getNodeValue() + \"\\\"\";\n\n\n }\n }\n }\n\n Node child = node.getFirstChild();\n if (child == null) {\n // no children, so close element and return\n System.out.println(\"\");\n metadata +=\"\\n\";\n return;\n }\n\n // children, so close current tag\n System.out.println(\"\");\n metadata +=\"\\n\";\n\n if((child.getNodeName().equals(\"ColorTableEntry\") == false) && (child.getNodeName().equals(\"markerSequence\") == false) )\n while (child != null) {\n \n //if(child.equals(\"LocalColorTable\")){\n // child = null;\n //}\n // print children recursively\n displayMetadata(child, level + 1);\n child = child.getNextSibling();\n }\n\n // print close tag of element\n indent(level);\n //metadata +=\" \";\n //System.out.println(\"\" + node.getNodeName() + \"\");\n System.out.println(\"\");\n metadata +=\"\\n\";\n }", "public void showName() {\n\t\tSystem.out.println(\"Object id: \" + id + \", \" + description + \": \" + name);\n\t\t//System.out.println(description);\n\t}", "public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}", "public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "@Override\r\n public void display(PrintWriter out) {\r\n if (this.nrBasic > 0) {\r\n out.println(\"Basic\");\r\n } else {\r\n super.display(out);\r\n }\r\n }", "public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }", "public static void outputRecord() {\r\n System.out.println(\"First Name: Len\");\r\n System.out.println(\"Last Name: Payne\");\r\n System.out.println(\"College: Lambton College\");\r\n }", "public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }", "private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}", "public String printInfo() {\n\t\treturn \"\\n=====================================================================\"+\r\n\t\t\t\t\"\\n Gaming Center Information\"+\r\n\t\t\t\t\"\\n=====================================================================\"+\r\n\t\t\t\t\"\\n Gaming center Name \\t= \" + centerName +\r\n\t\t\t\t\"\\n Location \\t\\t= \" + location + \r\n\t\t\t\t\"\\n Contact Number \\t= \" + contact+\r\n\t\t\t\t\"\\n Operating hour \\t= \"+ operatingHour+\r\n\t\t\t\t\"\\n Number of Employee \\t= \"+ noOfEmployee+ \" pax\";\r\n\t}", "public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }", "private static void printDetail() {\n System.out.println(\"Welcome to LockedMe.com\");\n System.out.println(\"Version: 1.0\");\n System.out.println(\"Developer: Sherman Xu\");\n System.out.println(\"[email protected]\");\n }", "private void addMetaData() {\r\n\t\tdocument.open();\r\n\t\tdocument.addTitle(\"My first PDF\");\r\n\t\tdocument.addSubject(\"Using iText\");\r\n\t\tdocument.addKeywords(\"Java, PDF, iText\");\r\n\t\tdocument.addAuthor(\"Lars Vogel\");\r\n\t\tdocument.addCreator(\"Lars Vogel\");\r\n\t\tdocument.close();\r\n\t}", "public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }", "public static void printInfo(){\n }", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "public void summary (java.io.PrintStream out) { throw new RuntimeException(); }", "public void printAll() {\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"################\");\r\n\t\tSystem.out.println(\"Filename:\" +getFileName());\r\n\t\tSystem.out.println(\"Creation Date:\" +getCreationDate());\r\n\t\tSystem.out.println(\"Genre:\" +getGenre());\r\n\t\tSystem.out.println(\"Month:\" +getMonth());\r\n\t\tSystem.out.println(\"Plot:\" +getPlot());\r\n\t\tSystem.out.println(\"New Folder Name:\" + getNewFolder());\r\n\t\tSystem.out.println(\"New Thumbnail File Name:\" +getNewThumbnailName());\r\n\t\tSystem.out.println(\"New File Name:\" +getNewFilename());\r\n\t\tSystem.out.println(\"Season:\" +getSeason());\r\n\t\tSystem.out.println(\"Episode:\" +getEpisode());\r\n\t\tSystem.out.println(\"Selected:\" +getSelectEdit());\r\n\t\tSystem.out.println(\"Title:\" +getTitle());\r\n\t\tSystem.out.println(\"Year:\" +getYear());\r\n\t\tSystem.out.println(\"Remarks:\" +getRemarks());\r\n\t\tSystem.out.println(\"################\");\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 printDebugHistograms() {\n if (graphHaplotypeHistogramPath != null) {\n\n try (final PrintStream histogramWriter = new PrintStream(graphHaplotypeHistogramPath)) {\n histogramWriter.println(\"Histogram over the number of haplotypes recovered per active region:\");\n histogramWriter.println(haplotypeHistogram.toString());\n\n histogramWriter.println(\"\\nHistogram over the average kmer size used for assembly:\");\n histogramWriter.println(kmersUsedHistogram.toString());\n\n } catch (IOException e) {\n throw new UserException.CouldNotCreateOutputFile(graphHaplotypeHistogramPath, e);\n }\n }\n }", "public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}", "public void renderDetails(Output out, Link link) throws IOException;", "public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}", "public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}", "public void statsOut(PrintWriter out) throws IOException {\n\t\t\n\t\tanalyze(); //see the above method\n\t\tint i;\n\t\t\n\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\") || bundle.getString(\"groupsToggle\").equals(\"true\") \n\t\t\t\t|| bundle.getString(\"percentToggle\").equals(\"true\") || bundle.getString(\"diffToggle\").equals(\"true\")) {\n\t\t\t\n\t\t\tSystem.out.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t\tout.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t}\n\t\t\n\t\tif (lowestRating == 2) { //implies no data was ever given since no rating will ever be above 1, let alone at 2\n\t\t\tSystem.out.println(\"Nothing here to give statistics on \\n\");\n\t\t\tout.println(\"Nothing here to give statistics on \\n\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\")) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Relevant Segment of Revision History: \" + then + \" to \" + now + \" \\n\");\n\t\t\t\tout.println(\"Relevant Segment of Revision History: \" + then + \" to \" + now + \" \\n\");\n\t\t\t\tSystem.out.println(\"Total Number of Relevant Revisions: \" + revisionTotal);\n\t\t\t\tout.println(\"Total Number of Relevant Revisions: \" + revisionTotal);\n\t\t\t\tSystem.out.println(\"\\t Average Number of relevant files per revision: \" + Math.round(relevantAverage) + \"\\n\");\n\t\t\t\tout.println(\"\\t Average Number of relevant files per revision: \" + Math.round(relevantAverage) + \"\\n\");\n\t\t\t\t\n\t\t\t\tfor (i = 0; i < args.length; i++) {\n\t\t\t\t\tSystem.out.println(\"\\t Number of Revisions Changing \" + (i + 1) + \" of the Relevant Files: \" + relevantPresent[i]);\n\t\t\t\t\tout.println(\"\\t Number of Revisions Changing \" + (i + 1) + \" of the Relevant Files: \" + relevantPresent[i]);\n\t\t\t\t\tSystem.out.println(\"\\t\\t Number of these revisions with under \" + (10 * (i + 1)) + \" irrelevant extra files: \" + irrelevantPresent[i] + \"\\n\");\n\t\t\t\t\tout.println(\"\\t\\t Number of these revisions with under \" + (10 * (i + 1)) + \" irrelevant extra files: \" + irrelevantPresent[i] + \"\\n\");\n\t\t\t\t}\n\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tout.println();\n\t\t\t\t\n\t\t\t\ttimeStats(\"Average\", timeDiffAverage, \"\", out);\n\t\t\t\ttimeStats(\"\\t Lowest\", timeDiffLow, revisionReference[5], out);\n\t\t\t\ttimeStats(\"\\t Highest\", timeDiffHigh, revisionReference[4], out);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nAverage Rating: \" + ratingAverage);\n\t\t\t\tout.println(\"\\nAverage Rating: \" + ratingAverage);\n\t\t\t\tSystem.out.println(\"\\t Lowest Rating: \" + lowestRating + \" for Revision \" + revisionReference[1]);\n\t\t\t\tout.println(\"\\t Lowest Rating: \" + lowestRating + \" for Revision \" + revisionReference[1]);\n\t\t\t\tSystem.out.println(\"\\t Highest Rating: \" + highestRating + \" for Revision \" + revisionReference[0] + \"\\n\");\n\t\t\t\tout.println(\"\\t Highest Rating: \" + highestRating + \" for Revision \" + revisionReference[0] + \"\\n\");\n\t\t\n\t\t\t\tSystem.out.println(\"Average Number of Changed files: \" + nFilesAverage);\n\t\t\t\tout.println(\"Average Number of Changed files: \" + nFilesAverage);\n\t\t\t\tSystem.out.println(\"\\t Lowest Number of Changed Files: \" + lowestFileNumber + \" changed at Revision \" + revisionReference[3]);\n\t\t\t\tout.println(\"\\t Lowest Number of Changed Files: \" + lowestFileNumber + \" changed at Revision \" + revisionReference[3]);\n\t\t\t\tSystem.out.println(\"\\t Highest Number of Changed Files: \" + highestFileNumber + \" changed at Revision \" + revisionReference[2] + \"\\n\");\n\t\t\t\tout.println(\"\\t Highest Number of Changed Files: \" + highestFileNumber + \" changed at Revision \" + revisionReference[2] + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"groupsToggle\").equals(\"true\")) {\n\t\t\t\tgrouping.currentOutput(out);\n\t\t\t}\n\t\t\t\n\t\t\tif (args.length > 1) {\n\t\t\t\t\n\t\t\t\tif (bundle.getString(\"percentToggle\").equals(\"true\")) {\n\t\t\t\t\tpercentages(args, out);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"CSVToggle\").equals(\"true\")) {\n\t\t\t\tcsv();\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"diffToggle\").equals(\"true\") && revisionTotal > 1) {\t\t\n\t\t\t\tdiff(out);\n\t\t\t}\n\t\t\t\n\t\t\tif (bundle.getString(\"commentToggle\").equals(\"true\")) {\n\t\t\t\tSystem.out.println(\"\\nRevision Comments (IMPORTANT DISCLAIMER: all commas have been replaced with semi-colons to allow insertion into a csv file): \\n\");\n\t\t\t\tout.println(\"Revision Comments (IMPORTANT DISCLAIMER: all commas have been replaced with semi-colons to allow insertion into a csv file): \\n\");\n\t\t\t\t\n\t\t\t\tfor (i = 0; i < commenting.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"\\t\" + revisions[i] + \":\");\n\t\t\t\t\tout.println(\"\\t\" + revisions[i] + \":\");\n\t\t\t\t\tSystem.out.println(commenting.get(i) + \"\\n\");\n\t\t\t\t\tout.println(commenting.get(i) + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif (bundle.getString(\"otherStatsToggle\").equals(\"true\") || bundle.getString(\"groupsToggle\").equals(\"true\") || \n\t\t\t\tbundle.getString(\"percentToggle\").equals(\"true\") || bundle.getString(\"diffToggle\").equals(\"true\")) {\n\t\t\t\n\t\t\tSystem.out.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t\tout.println(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| \\n\");\n\t\t}\n\n\t}", "void printSpecification(PrintStream ps);", "private void printInfo() {\n System.out.println(\"\\nThis program reads the file lab4.dat and \" +\n \"inserts the elements into a linked list in non descending \"\n + \"order.\\n\" + \"The contents of the linked list are then \" +\n \"displayed to the user in column form.\\n\");\n }", "@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }", "public void dumpMyData() {\n\t PrintStream output=null;\n\t try{\n\t\t output=new PrintStream(new FileOutputStream(\"/Users/saigeetha/Documents/School Documents/Fall 2016/Assignments/CSCI_572_HW2/CrawlReport.txt\"));\n\t\t System.setOut(output);\n\t\t System.out.println(\"Name: Sai Geetha Kandepalli Cherukuru\");\n\t\t System.out.println(\"USC ID : 7283210853\");\n\t\t System.out.println(\"News site crawled: nytimes.com\");\n\t\t System.out.println();\n\t\t System.out.println(\"Fetch Statistics\");\n\t\t System.out.println(\"================\");\n\t\t System.out.println(\"# fetches attempted: \"+fetchesAttempted);\n\t\t System.out.println(\"# fetches succeeded: \"+fetchesSucceeded);\n\t\t System.out.println(\"# fetches aborted: \"+fetchesAborted);\n\t\t System.out.println(\"# fetches failed: \"+fetchesFailed);\n\t\t System.out.println();\n\t\t System.out.println(\"Outgoing URLs:\");\n\t\t System.out.println(\"================\");\n\t\t System.out.println(\"Total URLs extracted:\"+urlsExtracted);\n\t\t System.out.println(\"# unique URLs extracted: \"+uniqueUrlsExtracted.size());\n\t\t System.out.println(\"# unique URLs within News Site: \"+uniqueUrlsWithinNews.size());\n\t\t System.out.println(\"# unique URLs outside News Site: \"+uniqueUrlsOutsideNews.size());\n\t\t System.out.println();\n\t\t System.out.println(\"Status Codes:\");\n\t\t System.out.println(\"================\");\n\t\t \n\t\t for(Integer k: statusCodes.keySet()) {\n\t\t\t Integer value=statusCodes.get(k);\n\t\t\t System.out.println(k+\": \"+value);\n\t\t }\n\t\t \n\t\t System.out.println();\n\t\t System.out.println(\"File Sizes:\");\n\t\t System.out.println(\"================\");\n\t\t \n\t\t for(String k: fileSizes.keySet()) {\n\t\t\t Integer value=fileSizes.get(k);\n\t\t\t System.out.println(k+\": \"+value);\n\t\t }\n\t\t \n\t\t System.out.println();\n\t\t System.out.println(\"Content Types:\");\n\t\t System.out.println(\"================\");\n\t\t \n\t\t for(String k: contentTypes.keySet()) {\n\t\t\t Integer value=contentTypes.get(k);\n\t\t\t System.out.println(k+\": \"+value);\n\t\t }\n\t\t \n\t } catch(FileNotFoundException e) {\n\t\t e.printStackTrace();\n\t }\n }", "private void printHeading()\n {\n System.out.println(\"==============================================\");\n System.out.println(\" Stock Management Application \");\n System.out.println(\" App05: by Haroon Sadiq \");\n System.out.println(\"==============================================\");\n }", "@Override\r\n public void info() {\n System.out.println(\"开始介绍\");\r\n }", "private static void help() {\n\t\tSystem.out.println(\"\\n----------------------------------\");\n\t\tSystem.out.println(\"---Regatta Calculator Commands----\");\n\t\tSystem.out.println(\"----------------------------------\");\n\t\tSystem.out.println(\"addtype -- Adds a boat type and handicap to file. Format: name:lowHandicap:highHandicap\");\n\t\tSystem.out.println(\"format -- Provides a sample format for how input files should be arranged.\");\n\t\tSystem.out.println(\"help -- Lists every command that can be used to process regattas.\");\n\t\tSystem.out.println(\"podium -- Lists the results of the regatta, assuming one has been processed.\");\n\t\tSystem.out.println(\"regatta [inputfile] -- Accepts an input file as a parameter, this processes the regatta results outlined in the file.\");\n\t\tSystem.out.println(\"types -- lists every available boat type.\");\n\t\tSystem.out.println(\"write [outputfile] -- Takes the results of the regatta and writes them to the file passed as a parameter.\");\n\t\tSystem.out.println(\"----------------------------------\\n\");\n\t}", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "public void printMetrics() {\n System.out.println(\"\\nPROG_SIZE = \" + Metrics.getProgSize() + '\\n' + \"EXEC_TIME = \" + Metrics.getExecTime() + \" ms\" + '\\n' + \"EXEC_MOVE = \" + Metrics.getExecMove() + '\\n' + \"DATA_MOVE = \" + Metrics.getDataMove() + '\\n' + \"DATA_READ = \" + Metrics.getDataRead() + '\\n' + \"DATA_WRITE = \" + Metrics.getDataWrite() + '\\n');\n }", "void printStats();", "private void printStatistics() throws IOException {\n\n\t\tSystem.out.println(\"*********************** \" + analyzer\n\t\t\t\t+ \" *********************************\");\n\n\t\tidxReader = DirectoryReader\n\t\t\t\t.open(FSDirectory.open(Paths.get(indexPath)));\n\n\t\tSystem.out.println(\"Total no. of document in the corpus: \"\n\t\t\t\t+ idxReader.maxDoc());\n\n\t\tTerms vocabulary = MultiFields.getTerms(idxReader, \"TEXT\");\n\n\t\tSystem.out.println(\"Number of terms in dictionary for TEXT field:\"\n\t\t\t\t+ vocabulary.size());\n\n\t\tSystem.out.println(\"Number of tokens for TEXT field:\"\n\t\t\t\t+ vocabulary.getSumTotalTermFreq());\n\n\t\tidxReader.close();\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(name);\n\t}", "public static void main(String[] args) throws IOException {\n\n new ReportGenerator(new InMemoryPersonProvider(\"src/main/resources/domain/people.txt\"))\n .generateReport(\"PersonsComposition\");\n\n }", "public void info()\n {\n System.out.println(toString());\n }", "public void setMetadata(PDMetadata meta) {\n/* 557 */ this.stream.setItem(COSName.METADATA, meta);\n/* */ }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "private static void printUsage() throws Exception {\n\t\tSystem.out.println(new ResourceGetter(\"uk/ac/cam/ch/wwmm/oscar3/resources/\").getString(\"usage.txt\"));\n\t}", "void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}", "public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }", "@Override\n\tpublic void printToFile() {\n\t\t\n\t}", "@Override\n\tpublic void print() {\n\t\tSystem.out.println(\"Avaliable Media items are\");\n\t\t\n\t\tSystem.out.println(\"Identification Number number of copies title of item\");\n\n\t\t\t\tfor(int i =0; i<getTitle().length; i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(getIdentificatioNumber()[i]+\" \"\n\t\t\t\t\t+getNumberOfCopies()[i]+\" \"+getTitle()[i]);\n\t\t\t\t}\n\t\t\t}", "public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}", "public void printUsage() {\n printUsage(System.out);\n }", "public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Name: \" + name + \", Short name: \" + shortName + \", WKN: \" + wkn);\r\n\t\tif(share == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Entry has no data yet. If you want to update the data use the 'IMPORT' function\\n\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\tshare.print();\r\n\t\t}\r\n\t}", "@Override\r\n public String print() {\r\n String attribute = \"Title of resource:\\t\" + getTitle() + \"\\n\" + \"url of resource:\\t\" + url;\r\n System.out.println(attribute);\r\n return attribute;\r\n }", "public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }", "@Override\n public void showInfo() {\n System.out.println(\"Garage {\");\n System.out.println(\"\\tGarage is \" + (isBig ? \"big\" : \"small\"));\n int i = 0;\n for (T car : carsInGarage) {\n System.out.println(\"\\tCar №\" + i + \": \" + car.getShortInfo());\n i++;\n }\n System.out.println(\"}\");\n }", "public void display()\n\t{\n\t\tmediaType = \"Picture\";\n\t\t\n\t\tSystem.out.println(mediaType + \": \" + name + \", \" + resolution + \" dpi, is rated \" + rating + \" stars.\" );\n\t}", "public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }", "void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}", "public void printInfo() {\n System.out.println(\"\\n\" + name + \"#\" + id);\n System.out.println(\"Wall clock time: \" + endWallClockTime + \" ms ~ \" + convertFromMillisToSec(endWallClockTime) + \" sec\");\n System.out.println(\"User time: \" + endUserTimeNano + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano) + \" sec\");\n System.out.println(\"System time: \" + endSystemTimeNano + \" ns ~ \" + convertFromNanoToSec(endSystemTimeNano) + \" sec\");\n System.out.println(\"CPU time: \" + (endUserTimeNano + endSystemTimeNano) + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano + endSystemTimeNano) + \" sec\\n\");\n }", "@Override\n\t\tpublic void print() {\n\n\t\t}", "public static void printConsumerRecordMetaData(ConsumerRecord record) {\n log.info(\"Topic {}\", record.topic());\n log.info(\"Key: {}\", record.key());\n log.info(\"Value: {}\", record.value());\n log.info(\"Partition:{}\", record.partition());\n log.info(\"Offset: {}\", record.offset()\n + \"\\n-----------------------------\");\n }", "public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "public void showInfo() {\n System.out.println(\"Showtime ID \" + showtimeID + \", Movie title: \" + movieTitle + \", Datetime: \" + dateTime.get(Calendar.YEAR) + \" \" + (dateTime.get(Calendar.MONTH) + 1) + \" \" + dateTime.get(Calendar.DATE) + \" \" + dateTime.get(Calendar.HOUR_OF_DAY) + \" \" + dateTime.get(Calendar.MINUTE));\n }", "private static void addMetaData(Document document) {\n document.addTitle(\"Report\");\n //document.addSubject(\"Using iText\");\n //document.addKeywords(\"Java, PDF, iText\");\n document.addAuthor(\"Illya Barziy\");\n //document.addCreator(\"Lars Vogel\");\n }", "public void print()\n {\n System.out.println(\"Course: \" + title + \" \" + codeNumber);\n \n module1.print();\n module2.print();\n module3.print();\n module4.print();\n \n System.out.println(\"Final mark: \" + finalMark + \".\");\n }", "public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }", "public void printResults(Map<String, String> endnoteExport){\n\tfor(Map.Entry<String,String> item : endnoteExport.entrySet()){\n\t\t\tSystem.out.println(item.getKey() + \" - \" + item.getValue());\n\t} \n }", "private void dumpMeta(TableName tableName) throws IOException {\n List<byte[]> metaRows = TEST_UTIL.getMetaTableRows(tableName);\n for (byte[] row : metaRows) {\n LOG.info(Bytes.toString(row));\n }\n }" ]
[ "0.6204247", "0.61063755", "0.6080776", "0.60644007", "0.5956335", "0.58354396", "0.58137816", "0.5805095", "0.5717435", "0.5702705", "0.56605333", "0.5644746", "0.5633161", "0.56004506", "0.5593034", "0.5593034", "0.5588158", "0.55815023", "0.5551916", "0.55513954", "0.5533541", "0.55319756", "0.54939955", "0.54665834", "0.5458174", "0.5454859", "0.54459834", "0.54314625", "0.5423042", "0.54120094", "0.5401868", "0.5401739", "0.5393", "0.5374774", "0.5374764", "0.5371473", "0.5355694", "0.53519034", "0.53504604", "0.533451", "0.53211814", "0.5317185", "0.53142565", "0.53126025", "0.5306453", "0.53047377", "0.52991486", "0.52951604", "0.5283859", "0.5280878", "0.52434975", "0.52422434", "0.5241463", "0.52410203", "0.523471", "0.52337706", "0.5226596", "0.5225775", "0.52249515", "0.52236843", "0.52215064", "0.52165717", "0.52164996", "0.5210223", "0.5210065", "0.52027875", "0.5195036", "0.51801366", "0.5177676", "0.5176417", "0.51762563", "0.51723325", "0.51664793", "0.5161282", "0.51587343", "0.51515335", "0.51424444", "0.5141617", "0.514056", "0.51402605", "0.51388717", "0.5133307", "0.51199156", "0.5117695", "0.51139563", "0.5113686", "0.51113135", "0.511084", "0.51107097", "0.5105864", "0.51040316", "0.50993645", "0.509711", "0.50932324", "0.5091111", "0.508993", "0.5081569", "0.5080105", "0.50785416", "0.5075533", "0.5074142" ]
0.0
-1
parses the given string for the args given to jgrep invokes all other methods
public void parse(String userInput) { String[] args = toStringArray(userInput, ' '); String key = ""; ArrayList<String> filePaths = new ArrayList<String>(); boolean caseSensitive = true; boolean fileName = false; // resolves the given args for (int i = 0; i < args.length; i++) { if (args[i].equals("-i")) { caseSensitive = false; } else if (args[i].equals("-l")) { fileName = true; } else if (args[i].contains(".")) { filePaths.add(args[i]); } else { key = args[i]; } } // in the case of multiple files to parse this repeats until all files // have been searched for (String path : filePaths) { this.document = readFile(path); findMatches(key, path, caseSensitive, fileName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void grep(String[] args) {\n\t\t//Boolean to skip the first term in args which is the search term\n\t\tBoolean searchTerm = false;\n\t for (String i : args) {\n\t \t if (searchTerm==false) {\n\t \t\t searchTerm = true;\n\t \t\t continue;\n\t \t }\n\t \t //Print the current directory\n\t \t System.out.println(i);\n\t \t Pattern pat = null; \n\t \t //Make a pattern with the search term\n\t\t try {\n\t\t pat = Pattern.compile(args[0]);\n\t\t } catch (PatternSyntaxException e) {\n\t\t System.err.println(\"Invalid RE syntax: \" + e.getDescription());\n\t\t System.exit(1);\n\t\t }\n\t\t //Open the file\n\t\t BufferedReader in = null;\n\t\t try {\n\t\t in = new BufferedReader(new InputStreamReader(\n\t\t new FileInputStream(i)));\n\t\t } catch (FileNotFoundException e) {\n\t\t System.err.println(\"Unable to open file \" +\n\t\t i + \": \" + e.getMessage());\n\t\t System.exit(1);\n\t\t }\n\n\t\t //Search the file for the search term and also record and print the line numbers with the found lines\n\t\t try {\n\t\t String s;\n\t\t int line = 0;\n\t\t while ((s = in.readLine()) != null) {\n\t\t \tline++;\n\t\t Matcher m = pat.matcher(s);\n\t\t if (m.find())\n\t\t System.out.println(line + \": \" + s);\n\t\t }\n\t\t } catch (Exception e) {\n\t\t System.err.println(\"Error reading line: \" + e.getMessage());\n\t\t System.exit(1);\n\t\t }\n\t } \n\t }", "@Override\n public void execute(ArrayList<String> commandLineArgs, InputStream input, OutputStream output) throws IOException {\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, Jsh.encoding));\n if (commandLineArgs.size() > 1) {\n Path[] filePathArray = getPathArray(commandLineArgs.subList(1, commandLineArgs.size()));\n Pattern grepPattern = Pattern.compile(commandLineArgs.get(0));\n checkForPattern(grepPattern, filePathArray, writer);\n } else if (commandLineArgs.size() == 1 && input != null) {\n Pattern grepPattern = Pattern.compile(commandLineArgs.get(0));\n BufferedReader reader = new BufferedReader(new InputStreamReader(input, Jsh.encoding));\n outputMatchedLines(grepPattern, reader, writer);\n } else {\n throw new RuntimeException(\"grep: wrong number of arguments\");\n }\n }", "public static void main(String[] args)\n {\n try\n {\n System.out.println(\"Regular expression [\"+args[0]+\"]\");\n NameParser parser = new NameParser();\n StringMatcher matcher = parser.parse(args[0]);\n for (int index = 1; index < args.length; index++)\n {\n String string = args[index];\n System.out.print(\"String [\"+string+\"]\");\n System.out.println(\" -> match = \"+matcher.matches(args[index]));\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) {\n String pattern = \"orl\";\n String text = \"Hello World in Java\";\n\n searchPatternInText(pattern, text);\n\n //pattern = \"xyz\";\n //searchPatternInText(pattern, text);\n }", "public static void main(String[] args) {\n\t\tString string = new String(\"阿是跨境电商的.txt,asda.java,新建.docx\");\n\t\tSystem.out.println(\"字符串:\"+string);\n\t\tString[] s=string.split(\",\");\n\t\tfindJava(s);\n\t\twjm(s);\n\t\t\n\t}", "public static void main(String args[]) \n\t{ \n String txt = \"ABABDABACDABABCABAB\"; \n String pat = \"ABABCABAB\"; \n\t\tnew KMP().KMPSearch(pat, txt); \n\t}", "public static void main(String[] args) {\n\t\tParser p = new Parser();\n\t\t//p.keyword = \"035420\";\n\t\tu = new UI();\n\t\t\n\t\t//p.goodSearch();\n\t}", "private void processArgs(String[] args)\n\t{\n\t\tboolean verbose = _verbose.getMatched();\n\n\t\t// disable console echo\n\t\t_writer.println(\"@echo off\");\n\n\t\tfor(int i = 0; i < args.length; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// try and expand any wildcards not handled by DOS/Windows\n\t\t\t\tString[] xargs = expandArg(args[i]);\n\n\t\t\t\tfor(int j = 0; j < xargs.length; ++j)\n\t\t\t\t{\n\t\t\t\t\tif(verbose)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(Strings.format(\"fProcessArg\", new Object[] { xargs[j] }));\n\t\t\t\t\t}\n\n\t\t\t\t\tFile pc = new File(xargs[j]);\n\t\t\t\t\t_writer.print(\"set CLASSPATH=%CLASSPATH%;\");\n\t\t\t\t\t_writer.println(pc.getCanonicalPath());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(Strings.format(\"fGeneralError\", new Object[] { e.getMessage() }));\n\t\t\t\t\n\t\t\t\tif(verbose)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tString pattern = \"pattern\";\r\n\t\tString string = \"String used to search for patterns\";\r\n\t\tint sub = bruteForce(string, pattern);\r\n\t\tif (sub > -1) {\r\n\t\t\tSystem.out.println(\"Pattern found at index \" + sub + \": \" + string.substring(sub, sub + pattern.length()));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(pattern + \" not found in \" + string);\r\n\t\t}\r\n\t\tsub = -1;\r\n\t\tsub = KMPSearch(string, pattern);\r\n\t\tif (sub > -1) {\r\n\t\t\tSystem.out.println(\"Pattern found at index \" + sub + \": \" + string.substring(sub, sub + pattern.length()));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(pattern + \" not found in \\\"\" + string + \"\\\"\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n String pat = args[0];\n String txt = args[1];\n char[] pattern = pat.toCharArray();\n char[] text = txt.toCharArray();\n\n KMP kmp1 = new KMP(pat);\n int offset1 = kmp1.search(txt);\n\n KMP kmp2 = new KMP(pattern, 256);\n int offset2 = kmp2.search(text);\n\n // print results\n StdOut.println(\"text: \" + txt);\n\n StdOut.print(\"pattern: \");\n for (int i = 0; i < offset1; i++)\n StdOut.print(\" \");\n StdOut.println(pat);\n\n StdOut.print(\"pattern: \");\n for (int i = 0; i < offset2; i++)\n StdOut.print(\" \");\n StdOut.println(pat);\n }", "public static void grepMultiThread(String[] args) {\n\t\t\t\tBoolean searchTerm = false;\n\t\t\t\tString pattern = null;\n\t\t\t for (String i : args) {\n\t\t\t \t if (searchTerm==false) {\n\t\t\t \t\t pattern = i;\n\t\t\t \t\t searchTerm = true;\n\t\t\t \t\t continue;\n\t\t\t \t }\n\t\t\t \t//Print the current directory\n\t\t\t \t System.out.println(i);\n\t\t\t \t int lines = lines(i);\n\t\t\t \t int startEnd = (lines/2);\n\t\t\t \t \n\t\t\t \t //Create an executor and 2 workers\n\t\t\t \t ExecutorService executor = Executors.newFixedThreadPool(2);\n\t\t\t \t \n\t\t\t \t //One workers holds the info for the first half of the file,\n\t\t\t \t //the other worker holds the info for the second half of the file\n\t\t\t \t Callable<ArrayList<String>> worker = new MyCallable(i, pattern, 0, startEnd);\n\t\t\t \t Callable<ArrayList<String>> worker2 = new MyCallable(i, pattern, startEnd, lines);\n\t\t\t \t \n\t\t\t \t \n\t\t\t \t //Run the workers and store the results in Futures\n\t\t\t \t Future <ArrayList<String>> future = executor.submit(worker);\n\t\t\t \t Future <ArrayList<String>> future2 = executor.submit(worker2);\n\t\t\t \t \n\t\t\t \t //Shutdown when complete\n\t\t\t \t executor.shutdown();\n\t\t\t \t\twhile (!executor.isTerminated()) {\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\t//Now get the results from the futures and store them into Arraylists\n\t\t\t \t\t//Then print those Arraylists in the correct order, first half then second half\n\t\t\t \t\ttry {\n\t\t\t\t\t\tArrayList<String> results = future.get();\n\t\t\t\t\t\tfor (String s: results) {\n\t\t\t\t \t\t\tSystem.out.println(s);\n\t\t\t\t \t\t}\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t \t\t\n\t\t\t \t\ttry {\n\t\t\t\t\t\tArrayList<String> results2 = future2.get();\n\t\t\t\t\t\tfor (String s: results2) {\n\t\t\t\t \t\t\tSystem.out.println(s);\n\t\t\t\t \t\t}\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t \t\t\n\t\t\t \t\t\n\t\t\t }\n\t}", "public interface Analyzer {\n\n Map<String, List<Integer>> search(StringBuffer text, String... pattern);\n}", "void parse(String[] args);", "private void invoke(String searchStr) {\n String userInput = concatWithNewLineFeed(searchStr,replacementStr,srcFile.getAbsolutePath(),destFile.getAbsolutePath());\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n FindAndReplace.main(null);\n }", "public static void main (String ... args) {\n\n String titulo = \"simple\";\n String pattern = \"abc\";\n String source = \"avsfvasdfabcwefewafabc\";\n find(titulo, pattern, source);\n\n ////////////////////////\n titulo = \"Digitos...\";\n pattern = \"\\\\d\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"NO Digitos...\";\n pattern = \"\\\\D\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"\";\n pattern = \"a?\";\n source = \"aba\";\n find(titulo, pattern, source);\n\n titulo = \"dot methacharacter\";\n pattern = \"a.c\";\n source = \"ac abc a c\";\n find(titulo, pattern, source);\n\n titulo =\"Operator ^ carat\";\n pattern = \"proj1([^,])*\";\n source = \"proj3.txt,proj1sched.pdf,proj1,prof2,proj1.java\";\n find(titulo, pattern, source);\n\n }", "public GrepMain Grep (List<String> commandline) {\n if (commandline.size()>3 || commandline.size() < 2){\n System.out.println(\"what input in commandline don not obey format, check it please\");\n }\n // save information from commandline to command, word, fileNames\n String command = (commandline.size() == 2)? \"\":commandline.get(0);\n String word = (commandline.size() == 2)? commandline.get(0):commandline.get(1);\n String fileNames = (commandline.size() == 2)? commandline.get(1):commandline.get(2);\n try {\n //open file if fail print file not found\n BufferedReader readerTxt = new BufferedReader(new InputStreamReader(\n new FileInputStream(fileNames)));\n //[-v] [-i] [-r]\n for (String line = readerTxt.readLine(); line != null; line = readerTxt.readLine()) {\n if (command.contains(\"[-v]\")){\n if (command.contains(\"[-r]\")){\n if (command.contains(\"[-i]\")){\n if (!checkReg(word.toLowerCase(),line.toLowerCase())){\n System.out.println(line);\n }\n }else {\n if (!checkReg(word,line)){\n System.out.println(line);\n }\n }\n }else {\n if (command.contains(\"[-i]\")){\n if (!checkWord(word.toLowerCase(),line.toLowerCase())){\n System.out.println(line);\n }\n }else {\n if (!checkWord(word,line)){\n System.out.println(line);\n }\n }\n }\n }else {\n if (command.contains(\"[-r]\")){\n if (command.contains(\"[-i]\")){\n if (checkReg(word.toLowerCase(),line.toLowerCase())){\n System.out.println(line);\n }\n }else {\n if (checkReg(word,line)){\n System.out.println(line);\n }\n }\n }else {\n if (command.contains(\"[-i]\")){\n if (checkWord(word.toLowerCase(),line.toLowerCase())){\n System.out.println(line);\n }\n }else {\n if (checkWord(word,line)){\n System.out.println(line);\n }\n }\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"file not found\");\n }\n return null;\n }", "public static void main(String[] args) {\n\t\tString[] words = {\"at\",\"\",\"\",\"\",\"ball\",\"\",\"\",\"\",\"car\",\"\",\"\",\"\"};\n\t\tString searchWord = \"at\";\n\n\t\tsearch(words,searchWord,0,words.length-1);\n\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'a': ucscGeneTableFileAll = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'g': ucscGeneTableFileSelect = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'b': barDirectory = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'r': rApp = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 's': threshold = Float.parseFloat(args[i+1]); i++; break;\n\t\t\t\t\tcase 'e': extension = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'f': extensionToSegment = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'x': bpPositionOffSetBar = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'y': bpPositionOffSetRegion = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nError: unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//parse text\n\t\tselectName = Misc.removeExtension(ucscGeneTableFileSelect.getName());\n\n\t}", "public static void main(String[] args) {\n\t\tlinearsearch oo=new linearsearch();\n\t\too.search();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}", "public static void main(String[] args) {\n\n\t\tSolution49 s49 = new Solution49();\n\t\tint result=s49.strstr1(\"bcabc\", \"ab\");\n\t\tSystem.out.println(result);\n\t\tresult=s49.strstr2(\"bcabc\", \"aab\");\n\t\tSystem.out.println(result);\n\t\treturn;\n\t}", "public static void main(String [] args)\n{\n\n DylockPatternAnalyzer dpa = new DylockPatternAnalyzer(args);\n dpa.process();\n}", "public static void main(String[] args) {\n String pattern = \"aabe\";\n String text = \"aabaacdeaaabe\";\n\n List<Integer> foundIndexes = KnuthMorrisPrattPatternSearch.performKMPSearch(text, pattern);\n\n if (foundIndexes.isEmpty()) {\n System.out.println(\"Pattern not found in the given text String\");\n } else {\n System.out.println(\"Pattern found in the given text String at positions: \"+\n foundIndexes.stream().map(Object::toString).collect(Collectors.joining(\", \")));\n }\n }", "public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}", "public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tString original=\"Java is Programming Language Java asdf Java ghjhfj\";\r\n\t\tString occurence=\"Java\";\r\n\t\t\r\n\t\tint count=0;\r\n\t\tint fromIndex=0;\r\n\t\t\r\n\t\twhile ((fromIndex = original.indexOf(occurence, fromIndex)) != -1 )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Fount at index: \"+fromIndex);\r\n\t\t\tcount++;\r\n\t\t\tfromIndex++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurence of Java: \"+count);\r\n\t}", "public static void main(String[] args) throws Exception {\n Map<String, Object> settings = Grep.parseCommandLineArguments(args); \n if ((Boolean)settings.get(\"printUsage\")) {\n System.out.println((String)settings.get(\"errorMessage\"));\n System.out.println(Grep.printUsage());\n System.exit(-1);\n }\n\n // Derive tmp dir for job output\n settings.put(\"tempDir\", new Path(\"rucio-grep-\"+Integer.toString(new Random().nextInt(Integer.MAX_VALUE))));\n System.out.println(Grep.printJobSummary(settings));\n\n // Execute MR job\n try {\n if (!Grep.runJob(settings)) {\n System.out.println(\"Something went wrong :-(\");\n System.out.println(\"Hints: (1) do not redirect stderr to /dev/null (2) consider setting -excludeTmpFiles in case of IOExceptions\");\n }\n } catch(Grep.NoInputFilesFound e) {\n System.out.println(e);\n System.exit(1);\n }\n try {\n System.out.println(Grep.getResults(settings));\n } catch(Exception e) {\n System.out.println(\"No job output found in \" + settings.get(\"tempDir\").toString());\n System.out.println(e);\n }\n System.exit(0);\n }", "public static void main(String[] args) {\r\n\r\n\t\tSystem.out.println(\"string=\\\"ppqp\\\", pattern=\\\"pq\\\" output:[1,2] got : \" + findStringAnagrams(\"ppqp\", \"pq\"));\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"string=\\\"abbcabc\\\", pattern=\\\"abc\\\" output:[2,3,4] got : \" + findStringAnagrams(\"abbcabc\", \"abc\"));\r\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'r': bedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'c': haploArgs = args[++i]; break;\n\t\t\t\t\tcase 't': numberConcurrentThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check save dir\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: cannot find your save directory!\\n\"+saveDirectory);\n\t\tsaveDirectory.mkdirs();\n\t\tif (saveDirectory.isDirectory() == false) Misc.printErrAndExit(\"\\nError: your save directory does not appear to be a directory?\\n\");\n\n\t\t//check bed\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printErrAndExit(\"\\nError: cannot find your bed file of regions to interrogate?\\n\"+bedFile);\n\t\t\n\t\t//check args\n\t\tif (haploArgs == null) Misc.printErrAndExit(\"\\nError: please provide a gatk haplotype caller launch cmd similar to the following where you \"\n\t\t\t\t+ \"replace the $xxx with the correct path to these resources on your system:\\n'java -Xmx4G -jar $GenomeAnalysisTK.jar -T \"\n\t\t\t\t+ \"HaplotypeCaller -stand_call_conf 5 -stand_emit_conf 5 --min_mapping_quality_score 13 -R $fasta --dbsnp $dbsnp -I $bam'\\n\");\n\t\tif (haploArgs.contains(\"~\") || haploArgs.contains(\"./\")) Misc.printErrAndExit(\"\\nError: full paths in the GATK command.\\n\"+haploArgs);\n\t\tif (haploArgs.contains(\"-o\") || haploArgs.contains(\"-L\")) Misc.printErrAndExit(\"\\nError: please don't provide a -o or -L argument to the cmd.\\n\"+haploArgs);\t\n\t\n\t\t//determine number of threads\n\t\tdouble gigaBytesAvailable = ((double)Runtime.getRuntime().maxMemory())/ 1073741824.0;\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n\t \n\t System.out.println(\"Q3) a) The pattern 'BCD' found in text 'ABCADCBABABCDABCD' on index : \"+ search2(\"BCD\".toCharArray(),\"ABCADCBABABCDABCD\".toCharArray()));\n\t \n\t }", "public SimpleGrep(ShellEnvironment env, String[] args) {\n\n super(env, args);\n if (args.length >2) {\n System.err.println(\"Can read only one file\");\n }else if (args.length<2){\n System.err.println(\"Need 2 arguments\");\n }\n\n\n File input = env.makeFile(args[1]);\n try {\n this.current = new BufferedReader(new FileReader(input));\n } catch (FileNotFoundException e) {\n caughtFatalException(\"Could not open file!\", e);\n }\n\n this.rawPattern=this.getRawPattern(args[0]);\n\n }", "public static void main(String arg[])\r\n {\r\n try\r\n {\r\n FuzzySearch fuzzy= new FuzzySearch();\r\n ArrayList words= null;\r\n String line;\r\n HashSet catalog= new HashSet();\r\n BufferedReader bufferedReader = new BufferedReader(new FileReader(arg[0]));\r\n // build a catalog of possible words\r\n //\r\n while ((line = bufferedReader.readLine()) !=null)\r\n {\r\n catalog.add(\" \"+line.trim()+\" \");\r\n }\r\n fuzzy.setCatalog(catalog);\r\n\r\n String search = arg[1];\r\n\r\n words = fuzzy.find(search, 40 /* 0-100% */);\r\n Iterator iter = words.iterator();\r\n while(iter.hasNext())\r\n {\r\n Keyword key= (Keyword)iter.next();\r\n System.out.println(\"Matching word: [\"+key.m_keyword+ \"] \"+key.m_percentage+\"%\");\r\n }\r\n }\r\n catch( Exception exc)\r\n {\r\n System.err.println(exc);\r\n }\r\n }", "public static void main(String[] args) {\n\n\t\t// File file=new File(\"./testClasses/binarysearch.java\");\n\t\tCharStream input = null;\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(args[0]);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(\"./testFiles/factorial.java\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tMiniJavaLexer lexer = new MiniJavaLexer(input);\n\t\tMiniJavaParser parser = new MiniJavaParser(new BufferedTokenStream(\n\t\t\t\tlexer));\n\t\tParseTree tree = parser.program();\n\t\tTrees.inspect(tree, parser);\n\n\t\t// ---------PrintVisitor-------------\n\t\tPrintVisitor pv = new PrintVisitor();\n\t\tpv.visitMiniJava(tree);\n\n\t\t// --------SymbolTableVisitor--------\n\t\tSymbolTableVisitor symbolTableVisitor = new SymbolTableVisitor();\n\t\tSymbolTable visitedST = (SymbolTable) symbolTableVisitor.visit(tree);\n\t\tif (symbolTableVisitor.getErrorFlag()) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(BGSTYLE\n\t\t\t\t\t\t\t+ RED\n\t\t\t\t\t\t\t+ \"THE PROGRAM COTAINS ERRORS! \\n CHECK CONSOLE AND PARSE TREE WINDOW FOR MORE INFO!\");\n\t\t} else {\n\t\t\tvisitedST.printTable();\n\t\t\tvisitedST.resetTable();\n\n\t\t\t// ------TypeCheckVisitor\n\t\t\tTypeCheckVisitor tcv = new TypeCheckVisitor(visitedST);\n\t\t\ttcv.visit(tree);\n\t\t\tif (tcv.getErrorCount() > 0) {\n\t\t\t\tSystem.err.println(\"The Program contains \"\n\t\t\t\t\t\t+ tcv.getErrorCount() + \" Type Errors!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"TypeChecking Done With No Errors!\");\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n\t\tString str=\"javs\";\n\t\tint index=0;\n\t\tindex=str.indexOf(\"v\");\n\t\t\n\t\tSystem.out.println(index);\n\t}", "public static void main(String[] args) {\r\n\t\tTaskResultAnalysis analysis = extractArguments(args);\r\n\t\tif (analysis == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// determine tool mode, invoke proper action\r\n\t\tif (analysis.directory != null)\r\n\t\t\tsearch(analysis);\r\n\t\telse analyze(analysis);\r\n\t}", "public static void main(String[] args) {\n\n String haystack = \"abc\";\n String needle = \"c\";\n\n\n int idx = strStr(haystack, needle);\n System.out.println(idx);\n }", "public RegexGrep(ShellEnvironment env, String[] args) {\n super(env, args);\n this.regex = Pattern.compile(args[0]);\n }", "void parse(String[] args) throws Exception;", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'b': bedFile = new File (args[i+1]); i++; break;\n\t\t\t\t\tcase 'm': minNumExons = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'a': requiredAnnoType = args[i+1]; i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printExit(\"\\nError: cannot find your bed file!\\n\");\t\n\t}", "public static void main(String[] args) {\n\t\tString [] plop = {\"Hello\", \"Alaska\", \"Dad\", \"Peace\"};\r\n\t\tArrayList<String> tj = findWords(plop);\r\n\t\tSystem.out.println(\"bouh\");\r\n\r\n\t}", "public static void main (String[] args){\n System.out.println(StringMatching.match(args[0],args[1]));\n System.out.print(StringMatching.matchKMP(args[0],args[1])+ \"\\n\");\n }", "DoSearch extension(String... extensions);", "public static void main(String[] args) throws IOException {\n\t\tGenomindex index = new Genomindex(Files.readAllLines(FileSystems.getDefault().getPath(args[0]), StandardCharsets.UTF_8));\n\t\tSystem.out.println(index.search(Integer.parseInt(args[1]), Integer.parseInt(args[2]), Arrays.asList(args).subList(3, args.length)));\n\t}", "public static void main(String[] args) {\n\t\tRepeatedStringMatch result = new RepeatedStringMatch();\n\t\tSystem.out.println(result.repeatedStringMatch(\"abcd\", \"cdabcdab\"));\n\t\tSystem.out.println(result.repeatedStringMatch(\"a\", \"aa\"));\n\t}", "public static void main(String[] args) {\n splitRegex();\n\n }", "public static void main(String[] args) {\n\n String firstString = \"this is what I'm searching in\";\n String secondString = \"I\";\n\n System.out.println(subStringIn(firstString, secondString));\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s=\"Jesus is blessing my family\";\n\t\tfindVowelsAndConsonants(s);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString str= \"Welcome to JLC ,Java Trainintg Center,No 1 in Java Training and placement\";\r\n\t\tSystem.out.println(str.indexOf('J'));\r\n\t\tSystem.out.println(str.indexOf('J', 12));\r\n\r\n\t}", "public static void main(String[] args)\r\n\t{\n\t\tSystem.out.print(\"enter string - \");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString whole = input.next();\r\n\t\tSystem.out.print(\"enter sub-string to be searched - \");\r\n\t\tString part = input.next();\r\n\t\tinput.close();\r\n\t\tImplementStrStr sample = new ImplementStrStr();\r\n\t\tString result = sample.findSubString(whole, part);\r\n\t\tif(result==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString not present\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString is present - \"+result);\r\n\t\t}\r\n\t}", "private void search(String[] searchItem)\n {\n }", "public static void main(String[] args) {\n\t\tString haystack = \"dhiraj\";\n\t\tString needle = \"raj\";\n\t\tSystem.out.println(strStr(haystack, needle));\n\t}", "public static void main(String[] args) {\n RegExp_final_version obj=new RegExp_final_version();\n BufferedReader br = null;\n\n\t\ttry {\n\n\t\t\tString sCurrentLine;\n \n\t\t\tbr = new BufferedReader(new FileReader(\"E:\\\\NetBeans Project workspace\\\\RegExp_final_version\\\\src\\\\regexp_final_version\\\\Inputs\"));\n\n System.out.println(\"Reading of Regular Exps: \");\n \n String [] exps=new String[Integer.parseInt(br.readLine())];\n for(int c1=0;c1<exps.length;c1++){\n System.out.println(exps[c1]=br.readLine());\n }\n System.out.println(\"\\n\\nReading The test Strings: \");\n String [] strs=new String[Integer.parseInt(br.readLine())];\n for(int c1=0;c1<strs.length;c1++){\n System.out.println(strs[c1]=br.readLine());\n }\n for (int i = 0; i < strs.length; i++) {\n for (int j = 0; j < exps.length; j++) {\n try{\n// System.out.println(\"CHECKER: i: \"+i+\": \"+exps[j]+\" , j: \"+j+\": \"+strs[i] );\n System.out.println(\"\\n-----------------------\"\n + \"\\n RESULTS: \"+\"i=\"+i+\" , j=\"+j+\"\\n ||\"\n + obj.supports(exps[j], strs[i])\n +\"||\\n---------------------\");\n\n }\n catch(Exception e){\n System.out.println(\"\\n_-___----__-\\nEXCEPTION: i: \"+i+\": \"+exps[i]+\" , j: \"+j+\": \"+strs[j] );\n// e.printStackTrace();\n }\n }\n }\n \n//\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t obj.fullCode=obj.fullCode+sCurrentLine;\n// System.out.println(sCurrentLine);\n//\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n \n }", "public void doSearch(String searchText){\n }", "public static void main(String args[]) throws IOException\n\t{\n\t\tif (args.length == 0) {\n\t\t\tregress();\n\t\t}\n\n\t\tString\t pattern = args[0];\n\n\t\tBufferedReader stdin = new BufferedReader(\n\t\t\tnew InputStreamReader(System.in));\n\n\t\tString line;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"Enter text: \");\n\t\t\tif ((line = stdin.readLine()) == null)\n\t\t\t\tSystem.exit(0);\n\t\t\tif (line.length() == 0)\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(wildmat(line, pattern)?\"match\":\"no match\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(search(ar, 0, num, 90));\n\t}", "public static void main(String[] args) {\n\t\tfindCaps(\"Hello\");\r\n\t\tfindCaps(\"hello\");\r\n\t\treplaceCaps(\"HeLlO\");\r\n\t\tadd10(\"10\");\r\n\t}", "public static void main(String[] args) {\n\t\tLength test = new Length();\n\t\ttest.search();\n\t}", "public static void main(String[] args) {\n\t\tString str = args[0];\n\t\tString out = args[1].endsWith(\"/\")?args[1]:args[1]+\"/\";\n\t\tFetcher2 f2 = new Fetcher2(str, out);\n\t\tf2.run();\n\t}", "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t// get URL string from command line or use default\n\t\t\tString urlString;\n\t\t\tif(args.length>0) urlString=args[0];\n\t\t\telse urlString=\"https://www.oracle.com/technetwork/java/index.html\";\n\t\t\t// open reader for URL\n\t\t\tInputStreamReader in=new InputStreamReader(new URL(urlString).openStream());\n\t\t\t// read contents into string builder\n\t\t\tStringBuilder input=new StringBuilder();\n\t\t\tint ch;\n\t\t\twhile((ch=in.read())!=-1) {\n\t\t\t\tinput.append((char)ch);\n\t\t\t}\n\t\t\t// search for all occurrences of pattern\n\t\t\tString patternString=\"<a\\\\s+href\\\\s*=\\\\s*(\\\"[^\\\"]*\\\"|[^\\\\s>]*)\\\\s*>\";\n\t\t\tPattern pattern=Pattern.compile(patternString,Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher matcher=pattern.matcher(input);\n\t\t\twhile(matcher.find()) {\n\t\t\t\tint start=matcher.start();\n\t\t\t\tint end=matcher.end();\n\t\t\t\tString match=input.substring(start-end);\n\t\t\t\tSystem.out.println(match);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}catch (PatternSyntaxException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString s = \"abc\";\r\n\t\tString p = \".*\";\r\n\t\tSystem.out.println(isMatch(s, p));\r\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String URL = \"\";\n URL = bufferedReader.readLine();\n\n if (URL.isEmpty() || URL.indexOf(\"?\") == -1 || URL.indexOf(\"?\") == URL.length()-1)\n return;\n\n ArrayList<String> params = getParams(URL);\n\n if (params == null)\n return;\n\n printParams(params);\n processObj(params);\n// for (String s : params)\n// if (s.contains(\"obj=\")) {\n// callAlert(params);\n// break;\n// }\n }", "private void checkForPattern(Pattern grepPattern, Path[] filePathArray, BufferedWriter writer) {\n for (int j = 0; j < filePathArray.length; j++) {\n try (BufferedReader reader = Files.newBufferedReader(filePathArray[j], Jsh.encoding)) {\n outputMatchedLines(grepPattern, reader, writer);\n } catch (IOException e) {\n throw new RuntimeException(\"grep: cannot open \" + filePathArray[j].getFileName());\n }\n }\n }", "public static void main (String[] args) {\r\n\t\tfindWords(sentence);\r\n\t}", "private static void loadPattern(String[] args) throws Exception {\n\t\t\n\t\tpattern = args[0];\n\t\t\n\t\tif (pattern.equals(\"\")) {\n\t\t\tthrow new EmptyStringException(\"Please provide a non-empty string to be searched.\");\n\t\t}\n\t\t\n\t\tif(pattern.matches(\"\\\\A\\\\p{ASCII}*\\\\z\") == false) {\n\t\t\tthrow new NonASCIIPattern(\"Please give an ASCII string to be searched.\") ;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tWordPattern mySol = new WordPattern();\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog cat cat dog\"));\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog cat cat fish\"));\n\t\tSystem.out.println(mySol.wordPattern(\"aaaa\", \"dog cat cat dog\"));\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog dog dog dog\"));\n\t\t\n\t}", "public static void main(String[] args)\n {\n ScanReplace scanRep;\n String configFile = \"\";\n String startDir = \"\";\n\n if (args.length > 1)\n {\n configFile = args[0];\n startDir = args[1];\n\n if (args.length > 2 && !args[2].contains(\">\"))\n {\n if (args[2].equalsIgnoreCase(\"replace\"))\n {\n doReplace = true;\n }\n }\n }\n else\n {\n System.out.println(\"Syntax: java -jar CodeScanner.jar <config file> <start dir> [replace] [> <outputfile.csv>]\");\n }\n\n scanRep = new ScanReplace(configFile,startDir);\n }", "public ArrayList<String> call() {\n\t\t\treturn grepMultiThreadExecute(file, pattern, start, end);\n\t\t}", "public StringSearch(String pattern, String target) {\n/* 190 */ super(null, null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n\t badArgs();\n }\n else badArgs();\n }\n}", "public static ArrayList<String> grepMultiThreadExecute (String file, String pattern, int begin, int end) {\n\t\tArrayList<String> results = new ArrayList<String>(); \n\t\tPattern pat = null; \n \t //Make a pattern with the search term\n\t try {\n\t pat = Pattern.compile(pattern);\n\t } catch (PatternSyntaxException e) {\n\t System.err.println(\"Invalid RE syntax: \" + e.getDescription());\n\t System.exit(1);\n\t }\n\t //Open the file\n\t BufferedReader in = null;\n\t try {\n\t in = new BufferedReader(new InputStreamReader(\n\t new FileInputStream(file)));\n\t } catch (FileNotFoundException e) {\n\t System.err.println(\"Unable to open file \" +\n\t file + \": \" + e.getMessage());\n\t System.exit(1);\n\t }\n\n\t //Search the file for the search term and also record and print the line numbers with the found lines\n\t try {\n\t String s;\n\t String res = null;\n\t int line = 0;\n\t \n\t while ((s = in.readLine()) != null) {\n\t \tif (line<begin) {\n\t \t\tline++;\n\t \t\tcontinue;\n\t \t}\n\t \tline++;\n\t Matcher m = pat.matcher(s);\n\t if (m.find()) {\n\t \tres = (line + \": \" + s);\n\t \tresults.add(res);\n\t }\n\t if (line==end) {\n\t \tbreak;\n\t }\n\t }\n\t } catch (Exception e) {\n\t System.err.println(\"Error reading line: \" + e.getMessage());\n\t System.exit(1);\n\t }\n\t //Return the results\n\t\t\treturn results;\n }", "public static void main(String[] args) {\n\t\tHomeLoan homeLoan = new HomeLoan();\n\t\thomeLoan.applyForLoan();\n\t\thomeLoan.emi();\n\t\t\n\t\t/*Naukri obj = new Naukri();\n\t\tobj.search(\"Java\");\n\t\tobj.search(\"Java\",\"Noida\");\n\t\tobj.search(\"Java\",0);\n\t\tobj.search(\"Java\",\"Noida\",0);*/\n\n\t}", "public SearchCommand(String[] args) {\n super(args);\n\n try{\n pathToDir = validatePathToDir(args[1]);\n maxFileSize = validateMaxFileSize(args[2]);\n keywords = validateKeywords(args);\n }\n catch (IndexOutOfBoundsException e){\n isValid = false;\n invalidReasonString = \"The search command didn`t contain enough arguments\";\n } catch (Exception nfe){\n isValid = false;\n invalidReasonString = nfe.getMessage();\n }\n }", "public static void main(String[] args) {\n\t googleSearch();\r\n }", "public static void main(String[] args) {\n\t\ttestJacksonString();\r\n//\t\tgetFlightSearchData();\r\n\t}", "public static void main(String[] args) throws Exception \n\t{\n\t\tSystem.out.println(\"Please give the correct path of the text file:\");\n\t\tString fileName=AlgorithmUtility.getString();\n\t\t File file = new File(fileName);\n\t\t BufferedReader br = new BufferedReader(new FileReader(file));\n\t\t String st;\n\t\t String[] tmpstr;\n\t\t List<String> str= new ArrayList<>();\n\t\t while ((st = br.readLine()) != null)\n\t\t {\n\t\t\t tmpstr=st.split(\",\");\n\t\t\t for(int i=0;i<tmpstr.length;i++)\n\t\t\t str.add(tmpstr[i]);\n\t\t }\n\t\t str=AlgorithmUtility.bubbleSortForString(str, str.size());\n\t\t System.out.println(\"Enter key string for searching\");\n\t\t String key=AlgorithmUtility.getString();\n if(AlgorithmUtility.binarySearchForString(str, key, str.size()))\n \t System.out.println(\"String Found\");\n else\n \t System.out.println(\"Not found\");\n\t}", "public static void main(String[] args) {\n\t\tLocale.setDefault(Locale.FRENCH);\n\t\tClassPathParser parser = new ClassPathParser();\n\t\tClassPath result = parser.parse(args[0]);\n\t\tSystem.out.println(result.toString());\n\t}", "public static void main(String[] args) {\n\t\tloopThroughListOfStrings(Arrays.asList(\"appl\",\"apple\", \"mango-apple\",\"grapes\",\"watermelon\",\"pine-apple\",\"banana\"));\n\t\t\n\n\t}", "@Override\n\tpublic Map<File, List<String>> grep(File directory, String fileSelectionPattern, String substringSelectionPattern,\n\t\t\tboolean recursive) {\n\t\tFile[] fileList=directory(directory,recursive,fileSelectionPattern);\n\t\t//Map<File, List<String>> grepped=new HashMap<File, List<String>>();\n\t\treturn PatternMatcher(fileList,Pattern.compile(substringSelectionPattern));\n\t}", "public static void main(String[] args) {\n //Instantiate a new instance of the Queries class called query\n Queries query = new Queries();\n //Instantiate empty strings called search, queryTerm, and cache\n String search = \"\";\n String queryTerm = \"\";\n String cache = \"\";\n\n //For each item in the arguments array\n for (int i = 0; i < args.length; i++) {\n //If the item is --search, run the following\n if (args[i].equals(\"--search\")) {\n //If --search is the last argument, set the search string to null\n if (i == args.length - 1) {\n search = null;\n }\n //Otherwise set the search string to the next argument\n else {\n search = args[i + 1];\n }\n }\n //If the item is --query run the following\n if (args[i].equals(\"--query\")) {\n //If --query is the last argument, set the queryTerm string to null\n if (i == args.length - 1) {\n queryTerm = null;\n }\n else {\n //Add the next item to the query string\n queryTerm = args[i + 1];\n //Instantiate an integer called j as i+1\n int j = i + 1;\n //While j is less than the number of arguments -1, and the argument\n //after j isn't --search or --cache and queryTerm isn't --search or --cache, add the j+1 argument to the queryTerm string\n while (j < args.length - 1 && !args[j + 1].equals(\"--search\") && !args[j + 1].equals(\"--cache\") && !queryTerm.equals(\"--search\") && !queryTerm.equals(\"--cache\")) {\n queryTerm += \" \" + args[j + 1];\n j++;\n }\n }\n }\n //If the item is --cache, run the following\n if (args[i].equals(\"--cache\")) {\n //If --cache is the last argument, set the cache string to null\n if (i == args.length - 1) {\n cache = null;\n }\n //Otherwise, set the cache string to the next argument\n else {\n cache = args[i + 1];\n }\n }\n }\n //Create a new file object from the cache\n File folder = new File(cache);\n //Instantiate a boolean variable called noErrors to true\n Boolean noErrors = true;\n //If the queryTerm string is null, --cache, or --search (indicating a missing argument), print\n //the appropriate error message and set noErrors to false\n if (queryTerm == null || queryTerm.equals(\"--cache\") || queryTerm.equals(\"--search\")) {\n System.out.println(\"Missing value for --query\\n\"\n + \"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the search string is null, --cache, or --query (indicating a missing argument), print\n //the appropriate error message and set noErrors to false\n else if (search == null || search.equals(\"--cache\") || search.equals(\"--query\")) {\n System.out.println(\"Missing value for --search\\n\"\n + \"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the search string isn't any of the valid search options, print the appropriate error messages and set noErrors to false\n else if (!search.equals(\"author\") && !search.equals(\"publication\") && !search.equals(\"venue\")) {\n System.out.println(\"Invalid value for --search: \" + search);\n System.out.println(\"Malformed command line arguments.\");\n noErrors = false;\n }\n //If the folder created from the cache string isn't a directory, print the appropriate error messages and set noErrors to false\n else if (!folder.isDirectory()) {\n System.out.println(\"Cache directory doesn't exist: \" + cache);\n noErrors = false;\n }\n //If noErrors is true, call the appropriate query with the queryTerm string and folder as parameters\n if (noErrors) {\n if (search.equals(\"author\")) {\n query.authorSearch(queryTerm, folder);\n }\n else if (search.equals(\"venue\")) {\n query.venueSearch(queryTerm, folder);\n }\n else if (search.equals(\"publication\")) {\n query.publicationSearch(queryTerm, folder);\n }\n }\n\n }", "void searchProbed (Search search);", "public static void main(String[] args) {\n System.out.println(indexOf(\"Devxschoooool\", 'o'));\n //substring(1, 2)\n }", "public static void main(String[] args) {\n\t\tint[] nums = {5,1,3};\n\t\tSystem.out.println(search(nums, 5));\n\t}", "String processing();", "String printListSearch(String searchString);", "public static void main(String args[]){\n\t\tString uri;\r\n\t\ttry{\r\n\t\t\turi = args[0];\r\n\t\t\tSystem.out.print(\"LOADING....\");\r\n\t\t\tPhase2Search search = new Phase2Search(uri);\r\n\t\t\tSystem.out.println(\"COMPLETED\\n\");\r\n\t\t\t\r\n\t\t\tString query;\r\n\t\t\tboolean flag = false;\r\n\t\t\tdo{\r\n\t\t\t in = new Scanner(System.in);\r\n\t\t\t System.out.print(\"ENTER QUERY : \");\r\n\t\t\t query = in.nextLine();\r\n\t\t\t//query = \"roann indiana\";\r\n\t\t\t//query = \"imdb\";\r\n\t\t\t //query = \"aalburg\";\r\n\t\t\t System.out.println(\"QUERY: \" + query);\r\n\t\t\tdouble startTime = System.currentTimeMillis();\r\n\t\t\t\tsearch.searchFunc(query);\r\n\t\t\tdouble endTime = System.currentTimeMillis();\r\n\t\t\tdouble totalTime = endTime - startTime;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ totalTime/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want another Query (1 for YES) : \");\r\n\t\t\t if(!(in.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = true;\r\n\t\t\t }\r\n\t\t\t}while(flag == false);\r\n//\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Command Line Arguments are Missing.\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"EXCEPTION : Exception Occur.\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n List<String> functionArgumentOfA = new ArrayList<>();\n functionArgumentOfA.add(\"Boolean\");\n functionArgumentOfA.add(\"Integer\");\n functionArgumentOfA.add(\"Integer\");\n\n Function functionA = new Function(\"A\", false, functionArgumentOfA);\n\n\n List<String> functionArgumentOfB = new ArrayList<>();\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n\n Function functionB = new Function(\"B\", false, functionArgumentOfB);\n\n List<String> functionArgumentOfC = new ArrayList<>();\n functionArgumentOfC.add(\"Integer\");\n\n Function functionC = new Function(\"C\", true, functionArgumentOfC);\n\n FunctionSearchPlugin searchPlugin = new FunctionSearchPlugin();\n\n List<Function> functions = new ArrayList<>();\n\n functions.add(functionA);\n functions.add(functionB);\n functions.add(functionC);\n\n searchPlugin.register(functions);\n //Search for functions now\n //Integer, Integer, Integer should return B and C\n\n List<String> firstSearch = new ArrayList<>();\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n\n List<Function> searchResponse = searchPlugin.searchFunctions(firstSearch);\n System.out.format(\"Query: %s\", String.join(\", \", firstSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n\n List<String> secondSearch = new ArrayList<>();\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n\n searchResponse = searchPlugin.searchFunctions(secondSearch);\n System.out.format(\"Query: %s\", String.join(\", \", secondSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n }", "public static void main(String[] args) {\n stringhandler obj=new stringhandler();\r\n obj.transform(\"Greety\");\r\n }", "public SearchResult search(String text, String subText);", "public static void main(String[] args) {\n\t\tStringExample examples = new StringExample();\n\t\texamples.firstCharacter();\n\n\t\texamples.startCharacter();\n\n\t\texamples.endCharacter();\n\n\t\texamples.subCharacter();\n\n\t\texamples.containsString();\n\n\t\texamples.indexString();\n\n\t\texamples.splitString();\n\n\t\texamples.upperString();\n\t}", "public static void main(String args[])\n {\n String[] param = {\"out.println(666)\"};\n launch(param);\n //Analyzing Java APIs using logogram end\n }", "public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }", "public static void main(String[] args) {\n String words[] = {\"a\",\"apple\",\"argument\",\"aptitude\", \"ball\", \"bat\"};\r\n Trie trie = new Trie(Arrays.asList(words));\r\n \r\n try\r\n {\r\n \twhile(true)\r\n \t{\r\n \t\tSystem.out.println(\"Word to lookup\");\r\n \t\tString word = br.readLine().trim();\r\n \t\tif( word.isEmpty())\r\n \t\t\tbreak;\r\n \t\tif( trie.containsWord(word))\r\n \t\t\tSystem.out.println(word + \" found\");\r\n \t\telse if( trie.containsPrefix(word))\r\n \t\t{\t\r\n \t\t\tif( confirm(word + \"is a prifix add as a word?\"))\r\n \t\t\t\ttrie.addWord(word);\r\n \t\t}else\r\n \t\t{\r\n \t\t if( confirm(\"Add \" + word + \"?\" ))\r\n \t\t \ttrie.addWord(word);\r\n \t\t}\r\n \t}\r\n }catch(IOException e)\r\n {\r\n \te.printStackTrace();\r\n }\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString names[]={\"Java\",\"JavaScript\",\"Ruby\",\"C\",\"Python\",\"Java\",\"Ruby\"};\n\t\t\n\t\tfun1(names);\n\t\tfun2(names);\n\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tString dmelCountString = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': drssFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dmelCountString = args[++i]; break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check\n\t\tif (drssFile == null || drssFile.exists() == false) Misc.printErrAndExit(\"\\nFailed to find your drss file!\");\n\t\tif (dmelCountString == null) Misc.printErrAndExit(\"\\nFailed to find your treatment control count string!\");\n\t\tint[] dmel = Num.parseInts(dmelCountString, Misc.COMMA);\n\t\ttreatmentCounts = dmel[0];\n\t\tcontrolCounts = dmel[1];\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tScanner io=new Scanner(System.in);\r\n\t\tString s=io.nextLine();\r\n\t\t\r\n\t\tint result=match(s.toCharArray(),s.length());\r\n\t\tSystem.out.println(result);\r\n\t}", "@In String search();", "public static void main(String[] args) {\n\n IndexProgram indexProgram = new IndexProgram();\n String text = indexProgram.input();\n\n String word = \"November\";\n\n List<Integer> list = indexProgram.wordFinder(text, word);\n\n indexProgram.output(list, word);\n\n\n word = \"Dickens\";\n\n list = indexProgram.wordFinder(text, word);\n\n indexProgram.output(list, word);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScan sc = new Scan();\n\t\twhile(!sc.getRule().isEmpty()) {\n\t\t\tAtom a = sc.scanThis(sc.getRule(),\"\");\n\t\t\tSystem.out.println(a.toString());\n\t\t}\n\n\t}" ]
[ "0.6664063", "0.6332018", "0.6066922", "0.60625684", "0.59233236", "0.59052813", "0.57642174", "0.5736587", "0.5698763", "0.56893253", "0.5677587", "0.5672882", "0.5633925", "0.5611511", "0.5587754", "0.55482256", "0.55422133", "0.55190206", "0.54821783", "0.5427811", "0.5418634", "0.54089403", "0.5397899", "0.5395837", "0.53875333", "0.5373888", "0.5358714", "0.53438115", "0.53409046", "0.53390664", "0.5330006", "0.53296727", "0.53240424", "0.5280628", "0.5274834", "0.5270421", "0.5257615", "0.5252369", "0.52404666", "0.5233778", "0.52218354", "0.52004844", "0.5198795", "0.51689035", "0.51603395", "0.5149307", "0.51413023", "0.51203537", "0.5116548", "0.5115358", "0.5112829", "0.5112728", "0.509487", "0.5076696", "0.5074887", "0.5058832", "0.5058578", "0.5053619", "0.5050407", "0.5049677", "0.5040286", "0.50391823", "0.5033004", "0.50289536", "0.50236696", "0.5022587", "0.5016336", "0.50096744", "0.4978054", "0.49707144", "0.49672237", "0.49619597", "0.49536568", "0.49310854", "0.4928512", "0.4926769", "0.4921525", "0.49208504", "0.49187076", "0.4914552", "0.49047947", "0.4900518", "0.48946723", "0.48918772", "0.48844126", "0.48837927", "0.48837414", "0.4880053", "0.4875686", "0.48752856", "0.48745942", "0.4873395", "0.48700544", "0.48687592", "0.48619127", "0.48607686", "0.4857925", "0.4857762", "0.48576587", "0.48518112" ]
0.503988
61
fins the matches of the given key inside the document then echos the line containing the key a line is determined by a "." char
private void findMatches(String key, String path, boolean caseSensitive, boolean fileName) { for (String word : document) { if (contains(key, word, caseSensitive)) { if (fileName) { System.out.println(path); break; } else { System.out.println(word); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws FileNotFoundException {\n String paragraphs[]=parser(\"tomSawyer.txt\");\r\n\r\n //creates ID for each paragraph\r\n String[] ID=new String[paragraphs.length];\r\n for(int i=0;i<paragraphs.length;i++)\r\n {\r\n ID[i]=\"\"+(i);\r\n paragraphs[i]=paragraphs[i].trim();\r\n }\r\n\r\n //read ID from user\r\n System.out.println(\"Enter the ID of the paragraph you want <eg. 3> :\");\r\n Scanner scan=new Scanner(System.in);\r\n String key=scan.next();\r\n int flag=0;\r\n int pos=-1;\r\n\r\n //search ID\r\n for(int i=1;i<ID.length;i++)\r\n {\r\n if(ID[i].equalsIgnoreCase(key))\r\n {\r\n flag=1;\r\n pos=i;\r\n break;\r\n }\r\n }\r\n\r\n //if match, display corresponding para\r\n if(flag==1)\r\n {\r\n System.out.println(paragraphs[pos]);\r\n }\r\n\r\n //else error\r\n else\r\n {\r\n System.out.println(\"No such ID exists\");\r\n }\r\n}", "private String DoFindReplace(String line)\n {\n String newLine = line;\n\n for (String findKey : lineFindReplace.keySet())\n {\n String repValue = lineFindReplace.get(findKey).toString();\n\n Pattern findPattern = Pattern.compile(findKey);\n Matcher repMatcher = findPattern.matcher(newLine);\n\n newLine = repMatcher.replaceAll(repValue);\n }\n return(newLine);\n }", "String getMyNoteTextByKey(Key verse);", "public String get(String key) {\n\t\t//get this file's text\n\t\tString text = FileIO.read(this.getPath());\n\t\tString value = null;\n\t\ttry {\n\t\t\t//try matching the pattern: key : value\\n \n\t\t\tPattern pattern = Pattern.compile(key+\" : (.*?)\\n\");\n\t\t\t\n\t\t\tMatcher matcher = pattern.matcher(text);\n\t\t\tmatcher.find();\n\t\t\t\n\t\t\t//get the value\n\t\t\tvalue = matcher.group(1);\n\t\t\t\n\t\t}catch(Exception e) {/*do nothing*/}\n\t\t\n\t\treturn value;\n\t}", "private static void grep(File f, CharBuffer cb) {\r\n\t\tMatcher lm = linePattern.matcher(cb); // Line matcher\r\n\t\tMatcher pm = null; // Pattern matcher\r\n\t\tint lines = 0;\r\n\t\twhile (lm.find()) {\r\n\t\t\tlines++;\r\n\t\t\tCharSequence cs = lm.group(); // The current line\r\n\t\t\tif (pm == null)\r\n\t\t\t\tpm = pattern.matcher(cs);\r\n\t\t\telse\r\n\t\t\t\tpm.reset(cs);\r\n\t\t\tif (pm.find())\r\n\t\t\t\tSystem.out.print(f + \":\" + lines + \":\" + cs);\r\n\t\t\tif (lm.end() == cb.limit())\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void findWord(File sourceFile, int fileNumber, Matcher match, String str)\r\n\t\t\tthrows FileNotFoundException, ArrayIndexOutOfBoundsException \r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tint i = 0;\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(sourceFile));\r\n\t\t\tString line = null;\r\n\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null) \r\n\t\t\t{\r\n\t\t\t\tmatch.reset(line);\r\n\t\t\t\twhile (match.find()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkey.add(match.group());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbufferedReader.close();\r\n\t\t\tfor (int p = 0; p < key.size(); p++) \r\n\t\t\t{\r\n\t\t\t\tnumbers.put(key.get(p), editDistance(str.toLowerCase(), key.get(p).toLowerCase()));\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception:\" + e);\r\n\t\t}\r\n\t}", "public boolean isMatchFilterKey(String key) {\n boolean match = false;\n\n // Validate the title contains the key\n if (title.contains(key)) {\n System.out.println(String.format(\"Title for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Title for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the Name contains the key\n if (name.contains(key)) {\n System.out.println(String.format(\"Name for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Name for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the overview contains the key\n if (overview.contains(key)) {\n System.out.println(String.format(\"Overview for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Overview for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the skills contains the key\n if (skills.contains(key)) {\n System.out.println(String.format(\"Skills for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Skills for Talent %s dose not contains the search key %s \", name, key));\n\n return match;\n }", "public void printFilesIn(String word){\n System.out.println(\"\\nThe word \" + word + \" is in the following files: \");\n for (String s : hashWords.keySet()){\n if (s.equals(word)){\n ArrayList wordAndFiles = hashWords.get(s);\n for (int i=0; i< wordAndFiles.size(); i++){\n System.out.println(wordAndFiles.get(i));\n }\n }\n }\n }", "public String getFoundKey(){\n return _key + \"Found?\";\n }", "private double calIDF(String key) throws IOException {\n\t\tList<String> in = FileHelper.readFile(Constants.inputpath);\r\n\t\tint doccount=0;\r\n\t\tfor(String line:in){\r\n\t\t\tString[] l = line.split(\" \");\r\n\t\t\tfor(String word:l){\r\n\t\t\t\tif (word.equals(key)){\r\n\t\t\t\t\tdoccount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble idf=Math.log((double)in.size()/doccount);\r\n\t\treturn idf;\r\n\t}", "public static void experiment2() {\n\t\tList<String> lines = FileUtil.loadFrom(\"docs/corpus-search-results-new-408.txt\");\n\t\tString cipher = Ciphers.cipher[1].cipher;\n\t\tString plain = Ciphers.cipher[1].solution;\n\t\tfor (String line : lines) {\n\t\t\tint pos = plain.indexOf(line.toLowerCase());\n\t\t\tif (pos < 0) System.out.println(\"Could not find \" + line + \" in plaintext\");\n\t\t\telse {\n\t\t\t\tString sub = cipher.substring(pos, pos+line.length());\n\t\t\t\tInfo info = new Info(sub, 0);\n\t\t\t\tSystem.out.println(line + \", \" + sub + \", \" + info.probability);\n\t\t\t}\n\t\t}\n\t}", "public static void printFindList(ArrayList<Task> tasks, String Key) {\n \n if (tasks.isEmpty()) {\n System.out.println(\" No matching tasks in your list (search: \" + Key + \")\");\n return;\n }\n printLine();\n System.out.println(\" Here are the matching tasks in your list (search: \" + Key + \"):\");\n int i = 0;\n for (Task t : tasks) {\n System.out.println((i + 1) + \".\" + tasks.get(i).toFindString());\n i++;\n }\n printLine();\n }", "private String splitAndGetField(String line, String key) {\r\n\t\tString[] tmps = line.substring(line.indexOf(key) + key.length()).split(\r\n\t\t\t\t\" \");\r\n\t\treturn (tmps[0]);\r\n\t}", "public void search(File file) throws IOException {\n Scanner in = new Scanner(new FileInputStream(file));\n int lineNumber = 0;\n while(in.hasNextLine()){\n lineNumber++;\n String line = in.nextLine();\n if(line.contains(keyword)){\n System.out.printf(\"%s [line: %d]: %s%n\", file.getPath(), lineNumber, line);\n }\n }\n in.close();\n }", "public void findAWriter(String line)\r\n\t{\n\r\n\t\tString[] nameKeySeperator = line.split(\"\\\\|\");\t\t//Important\r\n\t\tString hiddenName = nameKeySeperator[0];\r\n\t\tString keyList = nameKeySeperator[1];\r\n\t\t\r\n\t\t//out.println(\"hiddenName :\" + hiddenName);\r\n\t\t//out.println(\"keyList :\" + keyList);\r\n\r\n\t\tchar[] writerNameChars = hiddenName.toCharArray();\r\n\t\t//out.println(\"writerNameChars len: \" + writerNameChars.length);\r\n\t\t\r\n\t\tfor(int i = 0; i < writerNameChars.length; i++)\r\n\t\t{\r\n\t\t\t//out.println(writerNameChars[i]);\r\n\t\t}\r\n\t\t\r\n\t\tString[] keyChars = keyList.split(\" \");\r\n\t\t//out.println(\"keyChars len: \" + keyChars.length);\r\n\t\t\r\n\t\tfor(int i = 0; i < keyChars.length; i++)\r\n\t\t{\r\n\t\t\tkeyChars[i] = keyChars[i].trim();\r\n\t\t\t//out.println(keyChars[i]);\r\n\t\t}\r\n\r\n\t\tint[] keys = new int[keyChars.length];\r\n\t\tfor(int i = 0; i < keys.length; i++)\r\n\t\t{\r\n\t\t\tif(!keyChars[i].equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tkeys[i] = Integer.parseInt(keyChars[i]);\r\n\t\t\t\t//out.println(keys[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//out.println(\"keys len: \" + keys.length);\r\n\t\t\r\n\t\tint tempKey = 0;\r\n\t\tfor(int x = 0; x < keys.length; x++)\r\n\t\t{\r\n\t\t\tif(keys[x] > 0)\r\n\t\t\t{\r\n\t\t\t\ttempKey = keys[x] - 1;\r\n\t\t\t\tout.print(writerNameChars[tempKey]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tout.println();\r\n\t}", "protected void loadKeys() {\n\t\tArrayList<String> lines = ContentLoader.getAllLinesOptList(this.keyfile);\n\t\tfor (String line : lines) {\n\t\t\tString[] parts = line.split(\"=\");\n\t\t\ttry {\n\t\t\t\tint fileID = Integer.parseInt(parts[0].trim());\n\t\t\t\tString restLine = parts[1].trim();\n\t\t\t\tString ccMethodName = restLine;\n\t\t\t\tif (restLine.indexOf('/') > 0) {\n\t\t\t\t\tint leftHashIndex = restLine.indexOf('/');\n\t\t\t\t\tccMethodName = restLine.substring(0, leftHashIndex).trim();\n\t\t\t\t}\n\t\t\t\t// String key = parts[0] + \".java\";\n\t\t\t\tkeyMap.put(fileID, ccMethodName);\n\t\t\t} catch (Exception exc) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t}\n\t}", "public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}", "public String getMode(StringBuffer Bufkey) throws JsonParseException, IOException\r\n\t{\r\n\t\tint startPos=0,endPos=0;\r\n\t\tint length=Bufkey.length();\r\n\t\tLinkedList<contentAttrs> conAttrs= new LinkedList<contentAttrs>(); \r\n\t\t//\r\n\t\twhile(startPos<length)\r\n\t\t{\r\n\t\t\tendPos=startPos+1;\r\n\t\t\twhile(endPos<=length)\r\n\t\t\t{\r\n\t\t\t\tString curStr=Bufkey.substring(startPos, endPos);\r\n\t\t\t\tString index=getIndex(curStr);\r\n\t\t\t\tif(index!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Bufkey=Bufkey.substring(0, startPos)+key.substring(endPos,length);\r\n\t\t\t\t\tBufkey.replace(startPos, endPos, \"\");\r\n/*\t\t\t\t\tSystem.out.println(index);\r\n\t\t\t\t\tSystem.out.println(Bufkey);\r\n\t\t\t\t\tSystem.out.println(\"--------------------\");*/\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//do something with contentfile\r\n\t\t\t\t\tString contentFilePath=filePath+index+\"/content.json\";\r\n\t\t\t\t\tcontentfacttory = new JsonFactory();\r\n\t\t\t\t\tconPar=contentfacttory.createJsonParser(new File(contentFilePath));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//LinkedList<contentAttrs> conAttrs= new LinkedList<contentAttrs>(); \r\n\t\t\t\t\tReadContentInMem(conPar,conAttrs);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint startP=0,endP=0;\r\n\t\t\t\t\tint attrKeyLength=Bufkey.length();\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile(startP<=attrKeyLength)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tendP=startP+1;\r\n\t\t\t\t\t\twhile(endP<=attrKeyLength)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString attrCurStr=Bufkey.substring(startP, endP);\r\n\t\t\t\t\t\t\tcontentAttrs conRes=getAttr(conAttrs,attrCurStr);\r\n\t\t\t\t\t\t\tif(conRes!=null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//Bufkey=Bufkey.substring(0, startP)+Bufkey.substring(endP,attrKeyLength);\r\n\t\t\t\t\t\t\t\tBufkey.replace(startP, endP, \"\");\r\n\t\t\t\t\t\t\t\t//StringBuffer keyBuf=new StringBuffer(key);\r\n\t\t\t\t\t\t\t\tString mode_op=modeFromAttr(conRes.operator,Bufkey);\r\n\t\t\t\t\t\t\t\tif(Bufkey.length()==0){\r\n\t\t\t\t\t\t\t\t\treturn mode_op;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(mode_op!=null){\r\n\t\t\t\t\t\t\t\t\t\treturn mode_op+\"+\"+getMode(Bufkey);}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\treturn getMode(Bufkey);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tendP++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstartP++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t/*\t\t\t\tBufkey.delete(0, Bufkey.length());\r\n\t\t\t\t\treturn null;*/\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//�ҵ�Ԫ�� û�ҵ����� ��Ӹ�Ԫ���µ�����mode\r\n\t\t\t\t\tif(index!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(contentAttrs cA:conAttrs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(HashMap<String,String> op:cA.operator)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tthis.queryFailed.add(op.get(\"ModeID\"));\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\treturn getMode(Bufkey);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tendPos++;\r\n\t\t\t}\r\n\t\t\tstartPos++;\r\n\t\t}\r\n\t\t\r\n\t\tBufkey.delete(0, Bufkey.length());\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn \"\";\r\n\t}", "private String getContent(File file) {\n String output = \"\";\n String[] content;\n content = ((File) file).getContent().split(\"\\\\r?\\\\n\");\n for (String line : content) {\n if (line.contains(this.search)) {\n output += line + \"\\n\";\n }\n }\n if (!(output.equals(\"\"))) {\n output = Pwd.returnPathFromRoot(file) + \":\\n\" + output + \"\\n\";\n }\n return output;\n }", "private String findLine(String line, String search){\n List<String> lines = line.lines().collect(Collectors.toList());\n for (String l: lines) {\n if(l.contains(search)){\n return l;\n }\n }\n return \"\";\n }", "private void processFileLine(String line, RevisionInfo revInfo, Map<String, List<RevisionInfo>> result) {\r\n if (line.matches(FILE_LINE_REGEX)) {\r\n String[] segs = line.split(TAB);\r\n List<RevisionInfo> list = result.get(segs[2]);\r\n if (list == null) {\r\n list = new ArrayList<RevisionInfo>();\r\n result.put(segs[2], list);\r\n }\r\n list.add(new RevisionInfo(revInfo.getAuthor(), revInfo.getDate(), revInfo.getComment(), Integer\r\n .parseInt(segs[0])));\r\n }\r\n }", "public void displayWithKeyword()\r\n {\r\n System.out.print(\"[Key]: \" + keyword + \"\\n[Events]: \");\r\n displayWithKeyword(head);\r\n System.out.println(\"\\n-----------------------\");\r\n }", "public void searchWordToGroup(String title, String word, String groupIns) throws IOException {\r\n\t\tString line;\r\n\t\tBufferedReader in;\r\n\t\tint paragraphs = 1;\r\n\t\tint sentences = 1;\r\n\t\tfound = 0;\r\n\t\ttry {\r\n\t\t\tstatementP = SqlCon.getConnection().prepareStatement(SqlCon.PATH_ACORDING_TITLE);\r\n\t\t\tstatementP.setString(1, title);\r\n\t\t\trs = statementP.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString path = rs.getString(\"filePath\");\r\n\t\t\t\tin = new BufferedReader(new FileReader(path));\r\n\t\t\t\tline = in.readLine();\r\n\t\t\t\twhile (line != null) {\r\n\t\t\t\t\tif (line.equals(\"\")) {\r\n\t\t\t\t\t\tparagraphs++;\r\n\t\t\t\t\t\tsentences = 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString[] sentenceList = line.split(\"[!?.:]+\");\r\n\t\t\t\t\t\tfor (int i = 0; i < sentenceList.length; i++) {\r\n\t\t\t\t\t\t\tif (sentenceList[i].contains(word)) {\r\n\t\t\t\t\t\t\t\tint p = paragraphs;\r\n\t\t\t\t\t\t\t\tint s = sentences;\r\n\t\t\t\t\t\t\t\tint is =0;\r\n\t\t\t\t\t\t\t\tinsertTable.insertwordFunc(groupIns, word, title, p, s, is);\r\n\t\t\t\t\t\t\t\tfound = 1;\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\tsentences++;\r\n\t\t\t\t\tline = in.readLine();\r\n\t\t\t\t}\r\n\t\t\t\tparagraphs = 1;\r\n\t\t\t\tsentences = 1;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@SuppressWarnings ({\"ConstantConditions\"})\n private int getKeyword(String line, String key) {\n boolean inq1 = false;\n boolean inq2 = false;\n boolean invar = false;\n int keylen = key.length();\n int endch = line.length() - keylen;\n\n for (int i = _endChar; i < endch; i++) {\n char ch = line.charAt(i);\n\n if (ch == _constants.SINGLE_QUOTE_CHAR && !inq2 && !invar) {\n inq1 = !inq1;\n } else if (ch == _constants.DOUBLE_QUOTE_CHAR && !inq1 && !invar) {\n inq2 = !inq2;\n } else if (ch == _constants.USERVAR_CHAR && !inq1 && !inq2) {\n invar = !invar;\n } else if (ch == ' ' && !inq1 && !inq2 && !invar) {\n if (line.startsWith(key, i + 1)) {\n if (line.charAt(i + 1 + keylen) == ' ') {\n return i + 1; // Found it!\n }\n }\n }\n }\n\n return -1; // Nope, not there\n }", "private void writePresentFilesKey() {\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"present:\");\n }", "Text getKey() throws IOException;", "@Override\n\tpublic List<Contacts> searchByKey(String key) {\n\n\t\tTransaction tx=null;\n\t\t\n\t\t\tSession session=MyHibernateSessionFactory.getsessionFactory().getCurrentSession();\n\t\t\ttx=session.beginTransaction();\n\t\t\t\n\t\t\tCriteria crit = session.createCriteria(entity.Contacts.class).add( Restrictions.like(\"name\", \"%\"+key+\"%\") );\n\t\t\tcrit.setMaxResults(50);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Contacts> person = crit.list();\n\t\t\tfor(int i=0;i<person.size();i++) {\n\t\t\t\tSystem.out.println(person.get(i).toString());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\t\t\t\n\t\t\treturn person;\t\n\t}", "private static void process(Scanner fileScanner) {\n\t\tPrintStream outFile;\n\t\ttry {\n\t\t\tfileScanner = new Scanner(new File (RNATablePathway));\n\t\t\toutFile = new PrintStream(new File (RNAOutPathway));\n\t\t\twhile(fileScanner.hasNext()){\n\t\t\t\tRNATable.put(fileScanner.next(),fileScanner.next()); //Loading table.\n\t\t\t}\n\t\t\tfileScanner = new Scanner(new File(RNAStrandPathway));\n\t\t\tstrand = fileScanner.next(); //Loading RNA strand.\n\t\t\tfileScanner.close();\n\t\t\tSystem.out.print(\"Loading\");\n\t\t\tfor(int i = 0; i<strand.length(); i+=3){ //Searching table for RNA strand substrings.\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t\tString section = strand.substring(i, i+3);\n\t\t\t\tif(section.equals(\"UGA\")||section.equals(\"UAA\")||section.equals(\"UAG\")){ //Catching the stop marker so it doesn't end up as part of the output.\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"complete.\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tresult = result + RNATable.get(section); //Adding the decrypted characters together to form output.\n\t\t\t\t}\n\t\t\t}\n\t\t\toutFile.println(result);//Writing to output file.\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found! Please check pathway and try again.\");\n\t\t}\n\t\t\n\t}", "@Override\n\t\tpublic void map(Text key, Text value,\n\t\t\t\tOutputCollector<Text, Text> output, Reporter reporter)\n\t\t\t\tthrows IOException {\n\t\t\tfor (String word : words) {\n\t\t\t\tif (key.toString().equals(word)) {\n\t\t\t\t\tString[] outVals = parseOutValue(value.toString(), filemap)\n\t\t\t\t\t\t\t.split(\"\\n\");\n\t\t\t\t\tfor (String val : outVals) {\n\t\t\t\t\t\tString outkey = val.substring(0, val.indexOf('['));\n\t\t\t\t\t\tString outval = word + \"::\"\n\t\t\t\t\t\t\t\t+ val.substring(val.indexOf(':') + 1);\n\t\t\t\t\t\toutput.collect(new Text(outkey), new Text(outval));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void outputMatchedLines(Pattern grepPattern, BufferedReader reader, BufferedWriter writer) throws IOException {\n String line = null;\n while ((line = reader.readLine()) != null) {\n Matcher matcher = grepPattern.matcher(line);\n if (matcher.find()) {\n writer.write(line);\n writer.write(System.getProperty(\"line.separator\"));\n writer.flush();\n }\n }\n }", "public String toString()\n\t{\n\t\tString line=\"\";\n\t\tIterator<Integer> keySetIterator = recordMap.keySet().iterator(); \n\t\tInteger key;\n\t\twhile(keySetIterator.hasNext())\n\t\t{ \n\t\t\tkey = keySetIterator.next(); \n\t\t\tif (key == 0) line+=recordMap.get(key);\n\t\t\telse line+=DELIMITER+recordMap.get(key); \n\t\t}\n\t\treturn line;\n\t}", "protected static void searchForSentence(String searchedUserInput,\n HashMap<String, HashMap<String, LinkedList<Integer>>> contentOfFiles) {\n wordsOfSearchedSentence = Util.createWords(searchedUserInput);\n short percentage;\n for(String fileName : contentOfFiles.keySet()) {\n HashMap<String, LinkedList<Integer>> fileContent = contentOfFiles.get(fileName);\n percentage = getPercentage(fileContent);\n System.out.println(fileName + \":%\" + percentage);\n }\n }", "public static void main(String[] args) {\n MapDictionary<String> dictionary = new MapDictionary<String>();\r\n dictionary.addEntry(new DictionaryEntry<String>(\"50 Cent\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"XYZ120 DVD Player\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"cent\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"dvd player\",\"\"));\r\n\r\n // build the dictionary-chunker:\r\n // dictionary, tokenizer factory, flag1, flag2\r\n // tokenizer will ignore thre blank space in the matching process\r\n // all matches flag:\r\n // sensitive flag: when case sensitivity is enabled, \r\n ExactDictionaryChunker dictionaryChunkerTT\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n true,true);\r\n\r\n ExactDictionaryChunker dictionaryChunkerTF\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n true,false);\r\n\r\n ExactDictionaryChunker dictionaryChunkerFT\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n false,true);\r\n\r\n ExactDictionaryChunker dictionaryChunkerFF\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n false,false);\r\n\r\n\r\n\r\n System.out.println(\"\\nDICTIONARY\\n\" + dictionary);\r\n \r\n String text = \"50 Cent is hard to distinguish from 50 cent and just plain cent without case.\";\r\n System.out.println(\"TEXT=\" + text);\r\n chunk(dictionaryChunkerFF,text);\r\n \r\n text = \"The product xyz120 DVD player won't match unless it's exact like XYZ120 DVD Player.\";\r\n System.out.println(\"TEXT=\" + text);\r\n chunk(dictionaryChunkerFF,text);\r\n\r\n }", "protected static void searchByKeysHashID(String keys, String myId) {\n String[] splitWords = new String[keys.split(\"[ ]+\").length];\n splitWords = keys.split(\"[ ]+\");\n System.out.println(splitWords[0]);\n for (String keyWord : splitWords) {\n keyWord = keyWord.toLowerCase();\n if (map.get(keyWord) != null) {\n ArrayList<Integer> allInstancesofWord = (ArrayList<Integer>) map.get(keyWord);\n {\n for (int i = 0; i < allInstancesofWord.size(); i++) {\n\n Product e = productList.get(allInstancesofWord.get(i));\n if (e.productIdMatch(myId)) // if an element has the desired id and it has the correct key terms. it is printed.\n {\n System.out.println(\"I hope this Worksid\");\n System.out.println(productList.get(allInstancesofWord.get(i)));\n ProductGUI.Display(e.toString() + \"\\n\");\n }\n }\n }\n }\n if (map.get(keyWord) == null) {\n System.out.println(\"The products you are searching for were not found\");\n }\n }\n }", "@Override\r\n public void processKeyEvent(KeyEvent ev) {\r\n Character c = ev.getKeyChar();\r\n final int ENTER_KECODE = 10;\r\n if (!(Character.isDigit(c) || c == KeyEvent.VK_BACK_SPACE || c == KeyEvent.VK_DELETE || c.equals('.')\r\n || c == ENTER_KECODE)) {\r\n ev.consume();\r\n } else {\r\n if (c.equals('.') && this.getText().contains(\".\")) {\r\n /** There can only be one dot */\r\n ev.consume();\r\n }\r\n super.processKeyEvent(ev);\r\n ev.consume();\r\n }\r\n return;\r\n }", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "@Override\r\npublic void keyPressed(KeyEvent e) {\n\r\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(false);\r\n\t\t//----Grab the quotes from the textArea\r\n\t\tString qoute=input.getText();\r\n\t\tinput.setText(\"\");\r\n\t\taddText(\"---> You:\\t\" + qoute);\r\n\t\tqoute=qoute.trim();\r\n\t\twhile(qoute.charAt(qoute.length()-1)== '!' ||\r\n\t\t\t\tqoute.charAt(qoute.length()-1)== '.' ||\r\n\t\t\t\tqoute.charAt(qoute.length()-1)== '?' \r\n\t\t\t\t) {\r\n\t\t\tqoute=qoute.substring(0,qoute.length()-1);\r\n\t\t}\r\n\t\tqoute=qoute.trim();\r\n\t\tbyte response=0;\r\n\t\t/*\r\n\t\t 0:we are searching through chatBot[][] for matches.\r\n\t\t 1: we didnt find anything chatBot [][]\r\n\t\t 2:we did find somethng in chtBot[]\t[]\r\n\t\t \t \t */\r\n\t\t//---Check for matches---\r\n\t\tint j=0; // which group we're searching\r\n\t\twhile(response==0) {\r\n\t\t\tif(inArray(qoute.toLowerCase(),chatBot[j*2])) {\r\n\t\t\t\tresponse=2;\r\n\t\t\t\tint r=(int)Math.floor(Math.random()*chatBot[(j*2)+1].length);\r\n\t\t\t\taddText(\"\\n-->Simanga\\t\"+chatBot[(j*2)+1][r]);\r\n\t\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tif(j*2==chatBot.length-1 && response==0) {\r\n\t\t\t\tresponse=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//---default\r\n\t\tif(response==1) {\r\n\t\t\tint r=(int)Math.floor(Math.random()*chatBot[chatBot.length-1].length);\r\n\t\t\taddText(\"\\n-->Simanga\\t\"+chatBot[chatBot.length-1][r]);\r\n\t\t}\r\n\t\t\r\n\t\taddText(\"\\n\");\r\n\t}\r\n\t\r\n}", "public boolean next(String key) {\n while(next()) {\n if (element.keyEquals(new CaseInsensitiveElement<V>(key, null))) return true;\n }\n return false;\n }", "public void printResults(Map<String, String> endnoteExport){\n\tfor(Map.Entry<String,String> item : endnoteExport.entrySet()){\n\t\t\tSystem.out.println(item.getKey() + \" - \" + item.getValue());\n\t} \n }", "private static void processLine(\r\n final String line,\r\n final Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsForSessions,\r\n Map<String, List<Buy>> buysForSessions\r\n /* add parameters as needed */\r\n ) {\r\n final String[] words = line.split(\"\\\\h\");\r\n\r\n if (words.length == 0) {\r\n return;\r\n }\r\n\r\n switch (words[0]) {\r\n case START_TAG:\r\n processStartEntry(words, sessionsFromCustomer);\r\n break;\r\n case VIEW_TAG:\r\n processViewEntry(words, viewsForSessions );\r\n break;\r\n case BUY_TAG:\r\n processBuyEntry(words, buysForSessions);\r\n break;\r\n case END_TAG:\r\n processEndEntry(words);\r\n break;\r\n }\r\n }", "public void readFile(String fileName)\r\n {\n String key = new String();\r\n String value = new String();\r\n\r\n boolean readInfo = false;\r\n String out =\"\";\r\n String infoTag = \"\";\r\n String infoTagContent = \"\";\r\n\r\n try{\r\n System.out.println(\"Readig file \"+fileName+\" ...\");\r\n BufferedReader filereader = new BufferedReader(new FileReader(fileName));\r\n\r\n String line = new String();\r\n line = filereader.readLine();\r\n\r\n while(line != null){\r\n infoTag = \"\";\r\n infoTagContent = \"\";\r\n\r\n if((line.indexOf(\"=\") != -1) && (line.indexOf(\"#\") == -1))\r\n {\r\n key = line.substring(0, line.indexOf(\"=\"));\r\n value = line.substring(line.indexOf(\"=\")+1);\r\n\r\n key = key.trim();\r\n value = value.trim();\r\n\r\n if(key.equals(\"PREFIX\")){\r\n this.tagPrefix = value;\r\n } else {\r\n value = tagPrefix+\".\"+value;\r\n tagHash.put(key, value);\r\n }\r\n\r\n readInfo = false;\r\n infoHash.put(key, out);\r\n out = \"\";\r\n }\r\n\r\n\r\n if((line.indexOf(\"#\") == 0) && (line.indexOf(\"@\") != -1) && (line.indexOf(\"=\") != -1))\r\n {\r\n readInfo = true;\r\n infoTag = line.substring(line.indexOf(\"@\"), line.indexOf(\"=\"));\r\n infoTag.trim();\r\n infoTagContent = line.substring(line.indexOf(\"=\")+1);\r\n if(infoTagContent.trim().length() > 0) infoTagContent = infoTagContent+NL;\r\n out = out+infoTag+\": \"+NL+infoTagContent;\r\n }else if((line.indexOf(\"#\") == 0) && readInfo){\r\n // alreadey reading a tagInfo, means NL between entries\r\n out = out+line.substring(line.indexOf(\"#\")+1)+NL;\r\n }\r\n\r\n line = filereader.readLine();\r\n }\r\n\r\n filereader.close();\r\n\r\n //System.out.println(tagHash);\r\n\r\n }catch (Exception e){\r\n System.out.println(\"Exception in readFile: \"+e);\r\n }\r\n }", "public void find(File sourceFile, int fileNumber, Matcher match, String str) \r\n\t\t\tthrows FileNotFoundException, ArrayIndexOutOfBoundsException, IOException\r\n\t{\r\n\t\t\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(sourceFile));\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = br.readLine())!= null)\r\n\t\t\t{\r\n\t\t\t\tmatch.reset(line);\r\n\t\t\t\twhile (match.find())\r\n\t\t\t\t{\r\n\t\t\t\t\taList.add(match.group());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t\tfor (int p = 0; p < aList.size(); p++)\r\n\t\t\t{\r\n\t\t\t\thashTable.put(aList.get(p), editDistance(str.toLowerCase(), aList.get(p).toLowerCase()));\r\n\t\t\t}\r\n\r\n\t}", "private void findDocsFromLine(String line, String term) {\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n String tf = docInfo.substring(docInfo.indexOf(\":\") + 2);\n if (!docsResults.containsKey(doc)) {\n HashMap<String, Integer> termsTf = new HashMap<>();\n try{\n termsTf.put(term, Integer.parseInt(tf));\n }\n catch (NumberFormatException e){\n e.printStackTrace();\n }\n docsResults.put(doc, termsTf);\n } else {\n HashMap<String, Integer> termsTf = docsResults.get(doc);\n HashMap<String, Integer> newTermsTf = termsTf;\n newTermsTf.put(term, Integer.parseInt(tf));\n docsResults.replace(doc, termsTf, newTermsTf);\n }\n }\n }", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void suggestions(String mispelledPattern) \r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\t// String scanned to find the pattern.\r\n\t\t\tString line = \" \";\r\n\t\t\tString reg_ex = \"[\\\\w]+[@$%^&*()!?=.{}\\b\\n\\t]*\";\r\n\r\n\t\t\t// Create a Pattern object\r\n\t\t\tPattern pat = Pattern.compile(reg_ex);\r\n\t\t\t// Creating matcher object.\r\n\t\t\tMatcher my_match = pat.matcher(line);\r\n\t\t\tint file_Number = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tFile my_directory = new File(\"C:\\\\Users\\\\Asmita\\\\eclipse-workspace\\\\MyWebSearchEngine\\\\src\\\\HTMLFiles\");\r\n\t\t\t\tFile[] fileArray = my_directory.listFiles();\r\n\t\t\t\tfor (int i = 0; i < fileArray.length; i++)\r\n\r\n\t\t\t\t{\r\n\t\t\t\t\tfindWord(fileArray[i], file_Number, my_match, mispelledPattern);\r\n\t\t\t\t\tfile_Number++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSet keys = new HashSet();\r\n\t\t\t\tInteger val = 0;\r\n\t\t\t\tInteger value = 1;\r\n\t\t\t\t\r\n\t\t\t\tint counter = 0;\r\n\r\n\t\t\t\tSystem.out.println(\"\\nDid you mean? \");\r\n\t\t\t\tfor (Map.Entry entry : numbers.entrySet()) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (val == entry.getValue()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (value == entry.getValue()) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (counter == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.print(entry.getKey());\r\n\t\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.print(\" or \" + entry.getKey());\r\n\t\t\t\t\t\t\t\tcounter++;\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\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Exception:\" + e);\r\n\t\t\t} \r\n\t\t\tfinally \r\n\t\t\t{\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\r\n\t\t}\r\n\t}", "private void find(char[] m, String message, Trie cur, Trie root, int index, List<String> results) {\n // Base case 1. No match with any dictionary word. if cur == null -> no match ; return\n if (cur == null) {\n return;\n }\n // Base case 2. if out of bounds, check previously collected word and return\n if (index == message.length()) {\n // result only in case matches word\n if (cur.word != null) {\n results.add(new String(m));\n }\n return;\n }\n char c = message.charAt(index);\n if (c == SPACE) {\n // matches word or character 'e'\n // check if matches word from dictionary\n if (cur.word != null) {\n m[index] = SPACE;\n // if space - start collecting new word from beginning of Trie\n find(m, message, root, root, index + 1, results);\n }\n // otherwise ' ' -> 'e'\n c = 'e';\n }\n // considered non-space character (backtracking)\n m[index] = c;\n // get next element from try\n Trie next = cur.get(c);\n find(m, message, next, root, index + 1, results);\n }", "private String getTextID(String key) {\n return fieldID.get(key).getText();\n }", "private void appendMatched(StringBuilder response, String task, int index) {\n String matchedResult = String.format(\" %d.%s\\n\", index, task);\n if (task.contains(keyword)) {\n response.append(matchedResult);\n }\n }", "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "public void next() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getNextMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getNextModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "public boolean has(String key)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section != null && section.has(pieces[1]);\n }\n return data.containsKey(key);\n }", "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "protected int getRelevance(String key, IAssistState state) {\r\n\t\t// System.out.println(\"getRev for:\" + template.getName() + \" : |\" +\r\n\t\t// prefix + \"|\");\r\n\t\tif (state.getDataSoFar().length() == 0) {\r\n\t\t\t// System.out.println(\"getRev=null\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif (key.toString().startsWith(state.getDataSoFar())) {\r\n\t\t\t// System.out.println(\"getRev=\" + 90);\r\n\t\t\treturn 90;\r\n\t\t}\r\n\t\t// System.out.println(\"getRev=\" + 0);\r\n\t\treturn 0;\r\n\t}", "public String search(Integer key) {\n\t\treturn root.search(key);\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String line = value.toString().toLowerCase();\n line = line.replaceAll(regex, \" \");\n\n StringTokenizer itr = new StringTokenizer(line);\n while (itr.hasMoreTokens()) {\n word.set(itr.nextToken());\n context.write(word, one);\n }\n }", "public static void markMatch(final Board board, final int key)\r\n {\r\n //check every position\r\n for (int col = 0; col < board.getBoardKey()[0].length; col++)\r\n {\r\n for (int row = 0; row < board.getBoardKey().length; row++)\r\n {\r\n //if any of these match, mark our match\r\n if (hasMatchHorizontal(board, col, row, key))\r\n {\r\n board.setMatchLocation(col, row, col + MATCH_COUNT - 1, row);\r\n return;\r\n }\r\n \r\n if (hasMatchVertical(board, col, row, key))\r\n {\r\n board.setMatchLocation(col, row, col, row + MATCH_COUNT - 1);\r\n return;\r\n }\r\n \r\n if (hasMatchDiagonalSouth(board, col, row, key))\r\n {\r\n board.setMatchLocation(col, row, col + MATCH_COUNT - 1, row + MATCH_COUNT - 1);\r\n return;\r\n }\r\n \r\n if (hasMatchDiagonalNorth(board, col, row, key))\r\n {\r\n board.setMatchLocation(col, row, col + MATCH_COUNT - 1, row - MATCH_COUNT + 1);\r\n return;\r\n }\r\n }\r\n }\r\n }", "protected String getName( String key ){\n\n return ( key.indexOf( '.' ) == -1 )?\n //if there is no instance of . then the key is the name\n key:\n //else get the substring to first dot\n key.substring( 0, key.indexOf( '.' ));\n }", "public boolean processDocument(String fileDirectory){\n if(aux == null) { return false;}\n FileReader file = new FileReader();\n String key;\n int val;\n \n file.openFile(fileDirectory);\n \n while(file.hasNextToRead()){\n //System.out.print(i);\n key = file.readNextWord();\n val = aux.getOrDefault(key, 0) + 1;\n \n \n aux.put(key, val);\n \n }\n return true;\n }", "public void printMapValue(String aKey) {\n if (cars.containsKey(aKey)) {\n System.out.println(cars.get(aKey));\n } else {\n System.out.println(\"No cars by this manufacturer in stock!\");\n }\n }", "private boolean hasDataKey(String xryLine) {\n int dataKeyIndex = xryLine.indexOf(KEY_VALUE_DELIMITER);\n //No key structure found.\n if (dataKeyIndex == -1) {\n return false;\n }\n\n String normalizedDataKey = xryLine.substring(0,\n dataKeyIndex).trim().toLowerCase();\n return normalizedDataKey.equals(DATA_KEY);\n }", "private void update(String word, int lineNumber)\n {\n //checks to see if its the first word of concordance or not\n if(this.concordance.size()>0)\n {\n //if it is not the first word it loops through the concordance\n for(int i = 0; i < this.concordance.size();i++)\n {\n int check = 0;\n //if word is in concordance it updates the WordRecord for that word\n if(word.equalsIgnoreCase(concordance.get(i).getWord()))\n {\n concordance.get(i).update(lineNumber);\n check++;\n }\n \n //if the word is not found it adds it to the concordance and breaks out of the loop\n if(check == 0 && i == concordance.size() - 1)\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n break;\n }\n \n }\n }\n \n else\n //if it is the first word of the concordance it adds it to the concordance\n {\n WordRecord temp = new WordRecord(word,lineNumber);\n this.concordance.add(temp);\n }\n }", "@Override\n\t\tpublic void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException \n\t\t{\n\t\t\tString[] lines = value.toString().split(\"\\\\r?\\\\n\"); /* Split input block on new line*/\n\t\t\tfor (String line : lines) /*For each line, search article.*/\n\t\t\t{\n\t\t\t\tif (line == null || line.trim().equals(\"\")) {continue;} //Skip over bank or null lines\n\t\t\t\tString[] elements = line.split(\"\\\\t\"); /*Split line over tabs*/\n\t\t\t\t\n\t\t\t\tif (elements[1].contains(Searchword) || elements[3].contains(Searchword))\n\t\t\t\t{\n\t\t\t\t\t// If the keyword is found in the string write the output the articleID and 1\n\t\t\t\t\tcontext.write(new Text(elements[0].toString()), one); \n\t\t\t\t}\n\t\t\t}\n\t\t}", "private static String lookForSentenceWhichContains(String[] words, String documentPath) throws IOException {\r\n\r\n File document = new File(documentPath);\r\n\r\n if (!document.exists()) throw new FileNotFoundException(\"File located at \"+documentPath+\" doesn't exist.\\n\");\r\n\r\n FileReader r = new FileReader(document);\r\n BufferedReader br = new BufferedReader(r);\r\n\r\n String line;\r\n String documentText = \"\";\r\n while ( (line=br.readLine()) != null) {\r\n documentText += line;\r\n }\r\n\r\n documentText = Jsoup.parse(documentText).text();\r\n\r\n String[] listOfSentences = documentText.split(\"\\\\.\");\r\n HashMap<String,String> originalToNormalized = new HashMap<>();\r\n String original;\r\n\r\n for (String sentence: listOfSentences){\r\n\r\n original = sentence;\r\n\r\n sentence = sentence.toLowerCase();\r\n sentence = StringUtils.stripAccents(sentence);\r\n sentence = sentence.replaceAll(\"[^a-z0-9-._\\\\n]\", \" \");\r\n\r\n originalToNormalized.put(original,sentence);\r\n }\r\n\r\n int matches, maxMatches = 0;\r\n String output = \"\";\r\n\r\n for (Map.Entry<String,String> sentence: originalToNormalized.entrySet()){\r\n\r\n matches = 0;\r\n\r\n for (String word: words){\r\n if (sentence.getValue().contains(word)) matches++;\r\n }\r\n\r\n if (matches == words.length) return sentence.getKey();\r\n if (matches > maxMatches){\r\n maxMatches = matches;\r\n output = sentence.getKey();\r\n }\r\n }\r\n\r\n return output;\r\n\r\n }", "@Override\n public boolean nextKeyValue() throws IOException, InterruptedException {\n key.set(pos);\n\n int jsonSize = 0;\n\n while (pos < splitEnd) {\n jsonSize = nextJson(value);\n\n if (jsonSize == 0)\n break; // end of split reached\n\n pos += jsonSize;\n\n // Line is lower than Maximum record line size\n // break and return true (found key / value)\n if (jsonSize < maxLineLength)\n break;\n }\n\n if (jsonSize == 0) {\n // end of split reached\n key = null;\n value = null;\n return false;\n } else {\n return true;\n }\n }", "@GetMapping(value = \"{key}\", produces = MediaType.TEXT_PLAIN_VALUE)\n public ResponseEntity<String> readDoc(@PathVariable String key) {\n String doc = DocumentationUtil.readDocumentation(key, LocaleContextHolder.getLocale());\n if (StringUtils.hasText(doc)) {\n return new ResponseEntity<>(doc, HttpStatus.OK);\n }\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }", "@SuppressWarnings(\"IfStatementWithIdenticalBranches\")\n public final String getPropertyFromFile(final String key) {\n final var file = this.getPropertyCatalog();\n String data = \"\";\n File prop = new File(file);\n if (!prop.exists() || prop.length() == 0) {\n data = \"Refuse.Missing property file.\";\n } else {\n try (BufferedReader reader = new BufferedReader(\n new FileReader(file))) {\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.contains(\"=\") && line.contains(key)) {\n if (line.split(\"=\").length >= 2) {\n data = line.split(\"=\")[1];\n break;\n } else {\n data = \"abuse parameter.\";\n break;\n }\n }\n }\n } catch (IOException e) {\n data = \"Refuse.Mistake in-out property file.\";\n }\n }\n return data;\n }", "public void keyPressed() {\n\t ackEvent();\n if (key == ' ') {\n pauseTic = !pauseTic;\n EventQueue.getInstance().togglePause();\n }\n if (key == '.') {\n EventQueue.getInstance().beginEvents();\n } else if (key == '\\n') {\n if (pauseTic) { //only let this run if the display is paused\n StringManager.getInstance().ticAllOneCycle();\n }\n }else KeyMap.getInstance().run(key);\n }", "private void checkForKeywords(String fileName, String line, int loc){\n\t\tfor(Theme t: themes){\n\t\t\tfor(Keyword k: t.getKeywords()){\n\t\t\t\tif(line.contains(k.getName()))\n\t\t\t\t\tk.addOccurrence(fileName, line, loc);\n\t\t\t}\n\t\t}\n lineCount++;\n }", "public synchronized boolean next(Text key, Text value) throws IOException {\n\t\tText tKey = key;\n\t\tText tValue = value;\n\t\tif (!sequenceFileRecordReader.next(innerKey, innerValue)) {\n\t\t\treturn false;\n\t\t}\n\t\t//\t\ttKey.set(innerKey.toString());\n\t\ttKey.set( \"ignored\" );\n\t\t//\t\ttValue.set(innerValue.toString());\n\t\ttValue.set( innerKey.toString() + \"\\t\" + innerValue.toString() );\n\t\treturn true;\n\t}", "public String get(String key) {\n\t\tif (fileData.containsKey(key)) {\n\t\t\treturn fileData.get(key);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Couldn't find \" + key);\n\t\t\treturn \"\";\n\t\t}\n\t}", "private String matchVariable(String key) {\n\t\treturn variables.get(key);\n\t}", "String search(int key);", "public static Map<String, AuthorMod> indexEmails(String fileName)\n\t{\n\t\tMap<String, AuthorMod> authBank= new HashMap<String, AuthorMod>();\t\t \n\t\tAuthorMod curAuth;\n\t\t//vars for for loop - one loop per email\n\t\tString curTok;\n\t\tString lastTok;\n\t\t\n\t\ttry \n\t\t{\n\t\t\tScanner scanner = new Scanner(new FileInputStream(fileName));\n\t\t try \n\t\t {\n\t\t while (scanner.hasNextLine())\n\t\t {\n\t\t \n\t\t \t String[] emailToks= SimpleTokenizer.INSTANCE.tokenize(scanner.nextLine());\n\t\t \t\n\t\t \t lastTok = \"<s>\";\n\t\t \t curTok = emailToks[3]; //maybe 2, check output\n\t\t \t Pair<String, String> firstBg = new Pair<String, String>(lastTok, curTok);\t\t \t \n\t\t \t //author check, possible set\n\t\t \t String authID = emailToks[0] + emailToks[1] + emailToks[2]; //check output from the tokenizer\t \t\n\t\t \t if (authBank.containsKey(authID)){\n\t\t \t\t curAuth = authBank.get(authID);\n\t\t \t\t curAuth.trainSize = curAuth.trainSize + (emailToks.length-2);\n\t\t \t\t curAuth.ug.updateSeen(lastTok);\n\t\t \t } else {\n\t\t \t\t curAuth = new AuthorMod();\n\t\t \t\t curAuth.id = authID;\n\t\t \t\t curAuth.trainSize = emailToks.length - 2;\n\t\t\t \t curAuth.ug.addNew(lastTok);\n\t\t \t }\n\t\t \t \n\t\t \t //initalize loop\n\t\t \t if(curAuth.ug.contains(curTok)) {\n\t\t \t\t curAuth.ug.updateSeen(curTok);\n\t\t \t } \n\t\t \t else {\t\t \n\t\t \t\t curAuth.ug.addNew(curTok);\n\t\t \t }\n\n\t\t \t if(curAuth.bg.containsBg(firstBg)) {\n\t\t \t\t curAuth.bg.updateSeen(firstBg);\n\t\t \t } else {\n\t\t \t\t curAuth.bg.addNew(firstBg);\n\t\t \t }\n\t\t \t \t \n\t\t \t //index for that author, code very similar to bigram/unigram\n\t\t \t for(int i = 4; i < emailToks.length; i++)\t\t \n\t\t \t\t {\n\t\t \t\t\t curTok= emailToks[i];\n\t\t \t\t\t Pair<String, String> loopBg = new Pair<String, String>(lastTok, curTok);\n\t\t \t\t\t \n\t\t \t\t\t //three cases. \n\t\t \t\t\t //1) bigram has been seen\n\t\t \t\t\t if (curAuth.bg.containsBg(loopBg))\n\t\t \t\t\t {\n\t\t \t\t\t\t curAuth.bg.updateSeen(loopBg);\n\t\t \t\t\t\t curAuth.ug.updateSeen(curTok);\n\t\t \t\t\t } \n\t\t \t\t\t //2) word seen, but not bigram\n\t\t \t\t\t else\n\t\t \t\t\t { \n\t\t \t\t\t\t if (curAuth.ug.contains(curTok))\n\t\t \t\t\t \t\t{\n\t\t \t\t\t\t\t curAuth.bg.addNew(loopBg);\n\t\t \t\t\t\t\t curAuth.ug.updateSeen(curTok);\n\t\t \t\t\t\t\t} \n\t\t \t\t\t\t //3) new word entirely\n\t\t \t\t\t\t else\n\t\t \t\t\t\t {\n\t\t \t\t\t\t\t curAuth.ug.addNew(curTok);\n\t\t \t\t\t\t\t curAuth.bg.addNew(loopBg); \n\t\t \t\t\t\t } \n\t\t \t\t\t }\t \n\t\t \t\t\t lastTok = curTok;\n\t\t \t\t\t} //end inner loop\n\t\t \tauthBank.put(curAuth.id, curAuth); \n\t\t \t\t} //end outer loop \n\t\t }\t\n\t\t finally\n\t\t {\n\t\t scanner.close();\n\t\t }\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\treturn authBank;\n\t}", "protected String getFinal(String key) {\n if (key.contains(separator)) {\n return key.substring(key.lastIndexOf(separator) + 1);\n } else {\n return key;\n }\n }", "public static String getReplace(String key) {\n HashMap<String, String> replacement = new HashMap<>();\n replacement.put(\"i\", \"you\");\n replacement.put(\"me\", \"your\");\n replacement.put(\"am\", \"are\");\n replacement.put(\"my\", \"your\");\n replacement.put(\"you\", \"me\");\n String rp=replacement.get(key);\n return rp;\n }", "public static void writeQueryWord(LinkedHashMap<String, List<SearchResult>> queryResults, String key,\n\t\t\tBufferedWriter writer, int level) throws IOException {\n\t\twriter.write(indent(1) + quote(key) + \": [\");\n\t\tList<SearchResult> nextSearchResults = queryResults.get(key);\n\t\twriteQueryResults(nextSearchResults, writer, 1);\n\t\twriter.newLine();\n\t\twriter.write(indent(1) + \"]\");\n\t}", "public void remove(String key) {\n\t\tString value = get(key);\n\t\tif(value==null) {\n\t\t\treturn; //no key to remove\n\t\t}\n\t\tString newText = FileIO.read(this.getPath()).replace(key+\" : \"+value+\"\\n\", \"\");\n\t\tFileIO.write(this.getPath(), newText);\n\t\t\n\t}", "private void treatWrite(SelectionKey key) throws IOException\n {\n EventHandler attach = (EventHandler) key.attachment();\n attach.processWrite(key);\n }", "public void processFile(File rootFile) throws IOException {\n\t\tBufferedReader bf=new BufferedReader(new FileReader(rootFile));\r\n\t\tString lineTxt = null;\r\n\t\tint pos=1;\r\n\t\twhile((lineTxt = bf.readLine()) != null){\r\n String[] line=lineTxt.split(\" \");\r\n// System.out.println(line[0]);\r\n String hscode=line[0];\r\n \r\n \r\n TreeMap<String,Integer> word=null;\r\n if(!map.containsKey(hscode)){\r\n word=new TreeMap<String,Integer>();\r\n for(int i=1;i<line.length;i++){\r\n \tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n }\r\n map.put(hscode, word);\r\n }\r\n else{\r\n //\tSystem.out.println(\"sss\");\r\n \tword = map.get(hscode);\r\n \tfor(int i=1;i<line.length;i++){\r\n \t\tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n \t}\r\n \t\r\n \tmap.put(hscode, word);\r\n \t\r\n }\r\n\t\t}\r\n\t\tbf.close();\r\n//\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n//// \tSystem.out.println(\"hscode:\"+entry.getKey());\r\n// \tTreeMap<String, Integer> value = entry.getValue();\r\n// \tfor(Entry<String,Integer> e:value.entrySet()){\r\n//// \tSystem.out.println(\"单词\"+e.getKey()+\" 词频是\"+e.getValue());\r\n// \t}\r\n// }\r\n\t}", "public void wordMap(StringBuilder line, String path) {\r\n\t\tHashMap<String, ArrayList<Integer>> subIndex = new HashMap<String, ArrayList<Integer>> ();\r\n//\t\tFile file = new File(path);\r\n\t\tBufferedReader reader = null;\r\n\r\n\t\t\t\r\n//\t\t\t\treader = new BufferedReader(new FileReader(file));\r\n\t\t\t\tString textLine = line.toString();\r\n//\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tint position = 0;\r\n\t\t\t\t// reads lines in and splits them into an array.\r\n\t\t\t\ttextLine = textLine.toLowerCase();\r\n\r\n\t\t\t\tString[] lines = textLine.split(\"\\\\s\");\r\n\t\t\t\tfor (int i = 0; i < lines.length; i++) {\r\n\t\t\t\t\tlines[i] = lines[i].replaceAll(\"\\\\W\", \"\");\r\n\r\n\t\t\t\t\t// Skips empty lines that are read in\r\n\t\t\t\t\tif (lines[i].isEmpty()) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tposition += 1;\r\n\r\n\t\t\t\t\taddEntry(lines[i], path, position, subIndex);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\tfor(String word : subIndex.keySet()){\r\n\r\n\t\t\t\t\tfor(Integer count : subIndex.get(word)){\r\n\t\t\t\t\t\tindex.addEntry(word, path, count);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\treturn;\r\n\t}", "public static void main(String[] args) { //modified from TextScan.Java\r\n\r\n //finds tokens, add h.add/h.display\r\n HashTable newHash1 = new HashTable();\r\n HashTable newHash2 = new HashTable();\r\n HashTable newHash3 = new HashTable();\r\n //^^hash 1-3\r\n args = new String[1];\r\n args[0] = \"keywords.txt\"; //enter file name here\r\n\r\n Scanner readFile = null;\r\n String s;\r\n int count = 0;\r\n\r\n System.out.println();\r\n System.out.println(\"Attempting to read from file: \" + args[0]);\r\n try {\r\n readFile = new Scanner(new File(args[0]));\r\n }\r\n catch (FileNotFoundException e) {\r\n System.out.println(\"File: \" + args[0] + \" not found\");\r\n System.exit(1);\r\n }\r\n\r\n System.out.println(\"Connection to file: \" + args[0] + \" successful\");\r\n System.out.println();\r\n\r\n while (readFile.hasNext()) {\r\n s = readFile.next();\r\n newHash1.add(s, 1);\r\n newHash2.add(s, 2);\r\n newHash3.add(s, 3);\r\n count++;\r\n }\r\n System.out.println(\"HASH FUNCTION 1\");\r\n newHash1.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 2\");\r\n newHash2.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 3\");\r\n newHash3.display();\r\n\r\n System.out.println();\r\n System.out.println(count + \" Tokens found\");\r\n System.out.println();\r\n//dabble:\r\n// String key = \"+\";\r\n// char newc = key.toString().charAt(0);\r\n// int a = newc;\r\n// System.out.println(\"KEY: \"+(key.toString().charAt(0)+1)+ \"WACK: \"+ a);\r\n\r\n\r\n\r\n }", "public void zoekRecord(Integer key) {\n\t\t\n\t\tfor (int i = 1; i <= arr.length - 1; i++) {\n\t\t\tif (arr[key] == arr[i]) {\n\t\t\t\tSystem.out.println(arr[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tt1 = System.currentTimeMillis();\n\t\t\n\t\tSystem.out.println(\"Duration: \"+ (t1 - t0)+ \" milliseconds\");\n\n\n\t}", "public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n String [] roles= {\n \"Городничий\",\"Аммос Федорович\",\n \"Артемий Филиппович\",\n \"Лука Лукич\"};\n String [] textLines={\n \"Городничий: Я пригласил вас, господа, с тем, чтобы сообщить вам пренеприятное известие: к нам едет ревизор.\",\n \"Аммос Федорович: Как ревизор?\",\n \"Артемий Филиппович: Как ревизор?\",\n \"Городничий: Ревизор из Петербурга, инкогнито. И еще с секретным предписаньем.\",\n \"Аммос Федорович: Вот те на!\",\n \"Артемий Филиппович: Вот не было заботы, так подай!\",\n \"Лука Лукич: Господи боже! еще и с секретным предписаньем!\"};\n\n StringBuilder res = new StringBuilder(\"\");\n \n for (String role : roles) {\n \n res.append(role + \":\\n\");\n for (int i = 0; i < textLines.length; i++) {\n if ( textLines[i].matches(\"^\"+role+\":.*\") ){\n res.append(String.valueOf(i+1) + \")\" + textLines[i].substring(role.length()+1));\n }\n }\n res.append(\"\\n\");\n }\n System.out.println( res.toString());\n \n }", "public static void main(String[] args){\n \tString tempStringLine;\n\n\t\t /* SCANNING IN THE SENTENCE */\n // create a queue called sentenceQueue to temporary store each line of the text file as a String.\n MyLinkedList sentenceList = new MyLinkedList();\n\n // integer which keeps track of the index position for each new sentence string addition.\n int listCount = 0;\n\n // create a new file by opening a text file.\n File file2 = new File(\"testEmail2.txt\");\n try {\n\n \t// create a new scanner 'sc' for the newly allocated file.\n Scanner sc = new Scanner(file2);\n\n // while there are still lines within the file, continue.\n while (sc.hasNextLine()) {\n\n \t// save each line within the file to the String 'tempStringLine'.\n \ttempStringLine = sc.nextLine();\n\n \t// create a new BreakIterator called 'sentenceIterator' to break the 'tempStringLine' into sentences.\n BreakIterator sentenceIterator = BreakIterator.getSentenceInstance();\n\n // Set a new text string 'tempStringLine' to be scanned.\n sentenceIterator.setText(tempStringLine);\n\n // save the first index boundary in the integer 'start'.\n // The iterator's current position is set to the first text boundary.\n int start = sentenceIterator.first();\n\n // save the boundary following the current boundary in the integer 'end'.\n for(int end = sentenceIterator.next();\n\n \t// while the end integer does not equal 'BreakIterator.DONE' or the end of the boundary.\n \tend != BreakIterator.DONE;\n\n \t// set the start integer equal to the end integer. Set the end integer equal to the next boundary.\n \tstart = end, end = sentenceIterator.next()){\n\n \t// create a substring of tempStringLine of the start and end boundsries, which are just Strings of\n \t// each sentence.\n \tsentenceList.add(listCount,tempStringLine.substring(start, end));\n\n \t// add to the count.\n \tlistCount++;\n }\n }\n\n // close the scanner 'sc'.\n sc.close(); \n\n // if the file could not be opened, throw a FileNotFoundException.\n }catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n\t\tsentenceProcessor one = new sentenceProcessor(sentenceList);\n\t\tString[] names = one.findNames();\n System.out.println(\"Speaker \" + names[0]);\n System.out.println(\"Subject \" + names[1]);\n\t}", "public static void userSelection (String key) {\n // compare userInput with usernames\n if (students.containsKey(key)) {\n System.out.printf(\"Name: %s - Github Username: %s\\n\", students.get(key).getName(), key);\n System.out.printf(\"Current Average: %.2f\\n\", students.get(key).getGradeAverage());\n System.out.printf(\"All grades: %s \\n\", students.get(key).getGrades().toString());\n students.get(key).attendancePercentage();\n //System.out.printf(\"Student grades are: %s\", students.get(key).addGrade());\n // output student record\n } else {\n System.out.printf(\"Sorry, no student found with the github username of \\\"%s\\\".%n\", key);\n }\n }", "public String searchByMaterial(String string, ArrayList<String> materiallist, int count, Set<String> keys, Collection<String> values, Map<String, String> dataTable1) {\nfor(String s:materiallist) {\r\n\t\t\t\r\n\t\t\tif (string.equals(s)) {\r\n\t\t\t//\tSystem.out.print(s);\r\n\t\t\t\tcount--;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\nSystem.out.println(\"A List of Home that matches the Material \"+string+\":\");\r\n\r\nfor(String k: keys) {\r\n\t\r\n\tarraytoprintkey=k.split(\"_\");\r\n\r\n\r\n\t\r\n\t\tif(arraytoprintkey[1].equals(string)) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.print(k);\r\n\t\t\t\tSystem.out.println(\" \"+dataTable1.get(k));\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n}\r\nSystem.out.println();\r\n\t\tif(count==0) {\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn null;\r\n\t}", "public void searchByName(String name) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif(line.toLowerCase().contains(name.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void report() {\n\t\tfor (String s : wordC.keySet()) {\n\t\t\tSystem.out.println(s + \": \" + wordC.get(s));\n\t\t}\n\t\t\n\t}", "public String query(String key) {\n\n Connection conn = null;\n PreparedStatement stmt = null;\n\n try {\n\n conn = cpds.getConnection();\n String sql = \"SELECT text FROM q2 WHERE `idtag` = '\" + key + \"'\";\n stmt = conn.prepareStatement(sql);\n ResultSet rs = stmt.executeQuery();\n String result = null;\n if (rs.next()) {\n result = rs.getString(\"text\");\n }\n return result;\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "private void outputResults()\n{\n try {\n PrintWriter pw = new PrintWriter(new FileWriter(output_file));\n pw.println(total_documents);\n for (Map.Entry<String,Integer> ent : document_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n }\n pw.println(START_KGRAMS);\n pw.println(total_kdocuments);\n for (Map.Entry<String,Integer> ent : kgram_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n } \n pw.close();\n }\n catch (IOException e) {\n IvyLog.logE(\"SWIFT\",\"Problem generating output\",e);\n }\n}", "public void findWord() throws IOException{\r\n int lineCounter = 0; //lineCounter is the variable that will be used to print out on which line in the file the word is found on\r\n Scanner dataFile; //dataFile is the declared variable name for the file this method will be searching through\r\n dataFile = new Scanner(new File(filePath)); //Opening the file and setting dataFile equal to it\r\n System.out.print(\"\\n\\n__________________________________________________________________\\nResults:\\nThe word '\" + wordSearched + \"' appears on line(s): \"); //This begins the output on the screen that the user will see telling them on what line the word appears.\r\n while(dataFile.hasNext()){ //While the file has a next line this will execute\r\n String line = dataFile.nextLine(); //the variable is declared as line and set equal to the next line that is found in the file\r\n int lineCharLength = line.length(); //lineCharLength is set to the length of 'line' found in the line above.\r\n char[] characters = new char[lineCharLength]; //An array of characters is initialized as the length of the line\r\n lineCounter++; //the line counter will increment by one as the file begins to check the first line in the file, and so on every time this while loop runs.\r\n for(int i = 0; i < lineCharLength; i++){ //this for loop takes the characters in the line being read and puts them into an array\r\n characters[i] = line.charAt(i); //the characters are read one by one and put into the array\r\n characters[i] = Character.toLowerCase(characters[i]); //whatever character was found in the line above is set to lowercase so that it becomes uniform with the wordSearched.\r\n }//end of for loop\r\n for(int j = 0; j < lineCharLength; j++){ //this for loop takes the characters in the line being read and compares them to the characters in the word being searched.\r\n if(characters[j] == wordSearched.charAt(0)){ //this conditional statments checks to see if the character being compared equals the first in the word being searched.\r\n if(j++ < lineCharLength-1){ //this conditional statment checks to make sure that the next character being compared isnt the past end of the line.\r\n if(characters[j] == wordSearched.charAt(1)){ //this conditional statments checks to see if the character being compared equals the second in the word being searched.\r\n j=((--j+(wordLength-1))); //this line changes the character in the line being searched to the length of the word being searched to verify that the word is in fact the one being searched.\r\n if(j <= lineCharLength-1){ //this conditional statment checks to make sure that the next character being compared isnt the past end of the line.\r\n if(characters[j] == wordSearched.charAt(wordLength-1)){ //this conditional statment checks the character at the index of the wordLength of the word being searched.\r\n occurrences++; //the occurrences variable increments by one to count the times the word is found in the file.\r\n System.out.print(lineCounter + \", \"); //if the word appears on the line being searched this will execute to tell the user which line contains the word.\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }//end of for loop\r\n }//end of while loop\r\n this.occurrences = occurrences; //the occurrences variable is set to whatever occurrences total came to after the file was searched\r\n }", "public void print(){\r\n\r\n\r\n System.out.println(\"File: \" + file.getName());\r\n Set<String> keys = getDataMap().keySet();\r\n System.out.println(\"Die Variablen in diesem File: \" + keys);\r\n System.out.println(\"Geben Sie eine Variable an: \");\r\n\r\n Scanner wert = new Scanner(System.in);\r\n String wert1 = wert.nextLine();\r\n\r\n DataContainer dc = getDataMap().get(wert1);\r\n\r\n if (dc != null) {\r\n System.out.println(wert1 + \":\" + dc.getValues());\r\n }\r\n /*System.out.println(\"File: \" + file.getName());\r\n\r\n\r\n if (dc1 != null && dc2 != null) {\r\n System.out.println(dc1.getVariableName() + \": \" + dc1.getValues());\r\n System.out.println(dc2.getVariableName() + \": \" + dc2.getValues());*/\r\n }", "String findMatches(String filePath, String pattern) {\n\t Pattern regexp = Pattern.compile(pattern);\n\t Matcher m = null;\n\t String output = \"\";\n\t Path path = Paths.get(filePath);\n\t try {\n\t \t\tBufferedReader reader = Files.newBufferedReader(path, m_oEncoding);\n\t \t\tLineNumberReader lineReader = new LineNumberReader(reader);\n\t \t\tString line = null;\n\t \t\twhile ((line = lineReader.readLine()) != null) {\n\t \t\t\tm = regexp.matcher(line); //reset the input\n\t \t\t\tif (m.find()) {\n\t \t\t\t\tm_nCount ++;\n\t \t\t\t\toutput = output + String.valueOf(m_nCount) +\" - \" + String.valueOf(lineReader.getLineNumber()) +\": \"+ line + \"\\n\";\n\t \t\t\t}\n\t \t\t}\n\t } catch (IOException ex){\n\t ex.printStackTrace();\n\t }\n\t return output;\n\t }", "public Integer search(Integer currentLine, int key) {\r\n\t\t//Key was found or there is not \r\n\t\t//any new Node to search\r\n\t\tif(increaseCompares() && (currentLine==-1 || key==getKey(currentLine))) {\r\n\t\t\treturn currentLine;\r\n\t\t}\r\n\t\t//Get left subtree for searching\t\r\n\t\tif(increaseCompares() && key<getKey(currentLine)) {\r\n\t\t\treturn search(getLeft(currentLine),key);\r\n\t\t}\r\n\t\t//Get right subtree for searching\r\n\t\telse {\r\n\t\t\treturn search(getRight(currentLine),key);\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }", "@Override\n\tpublic void print(Multimap<String, List<String>> multimap,List<String> finalList) {\n\t\tmultimap= fileRecordsIntoMap(finalList);\n\t\tmultimap= \tremoveNonAnagram(multimap);\n\t\tSet<String> set=multimap.keySet();\n\t\tIterator<String> it=set.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tList<String> list=(List) multimap.get(String.valueOf(it.next()));\n\t\t\tfor(String value:list)\n\t\t\t{\n\t\t\t\tSystem.out.print(value+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void displayRecord(String companyName) {\n try {\n RandomAccessFile din = new RandomAccessFile(this.databaseName + \".data\", \"rws\");\n RandomAccessFile oin = new RandomAccessFile(this.databaseName + \".overflow\", \"rws\");\n int record = this.binarySearch(din, companyName.trim().toUpperCase());\n String recordLocation = \"normal\";\n\n if (record == -1) {\n int numOverflowRecords = Integer.parseInt(getNumberOfRecords(\"overflow\"));\n\n for (int i = 0; i < numOverflowRecords; i++) {\n String overflowRecord = getRecord(\"overflow\", oin, i);\n String recordName = overflowRecord.substring(5,45);\n recordName = recordName.trim();\n\n if (companyName.toUpperCase().equals(recordName)) {\n record = i;\n recordLocation = \"overflow\";\n break;\n }\n }\n }\n\n //if company is found display the company\n if(record != -1){\n if (recordLocation.equals(\"normal\")) {\n record = binarySearchToFindClosest(companyName.trim().toUpperCase(), 0, Integer.parseInt(getNumberOfRecords(recordLocation)));\n System.out.println(HelperFunctions.displayReadableRecord(this.getRecord(\"normal\", din, record)));\n } else {\n System.out.println(HelperFunctions.displayReadableRecord(this.getRecord(\"overflow\", oin, record)));\n }\n } \n //if not, let the user know\n else {\n System.out.println(\"NOT FOUND\");\n }\n \n din.close();\n oin.close();\n \n\n } catch (IOException ex) {\n ex.printStackTrace();\n } \n }", "public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}", "public void findLeader(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\n\t\t\t// Find Reader (1): First instruction of program\n\t\t\tline = br.readLine();\n\t\t\tLeaders.put(lineCount, line);\n\t\t\tlineCount++;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Find Reader (2): Target instruction of branch\n\t\t\t\tif (line.charAt(0) == '$') {\n\t\t\t\t\tLeaders.put(lineCount, line);\n\n\t\t\t\t}\n\t\t\t\t// Find Reader (3): Next instruction of branch instruction\n\t\t\t\telse if (line.charAt(12) == 'j') {\n\t\t\t\t\tline = br.readLine();\n\t\t\t\t\tlineCount++;\n\t\t\t\t\tLeaders.put(lineCount, line);\n\t\t\t\t}\n\t\t\t\tlineCount++;\n\t\t\t}\n\n\t\t\ttotalLineNum = lineCount - 1;\n\t\t\tlineCount = 1;\n\n\t\t\t// Print Leaders\n\t\t\tSystem.out.println(\"------------------ Leader ------------------\");\n\t\t\tleaderLineNum = new int[Leaders.size() + 1];\n\t\t\tint leaderNumber = 0;\n\t\t\tfor (int i = 1; i <= totalLineNum; i++) {\n\t\t\t\tif (Leaders.containsKey(i)) {\n\t\t\t\t\tSystem.out.printf(\"%3d: %s\\n\", i, Leaders.get(i));\n\t\t\t\t\tleaderLineNum[leaderNumber] = i;\n\t\t\t\t\tleaderNumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tleaderLineNum[leaderLineNum.length - 1] = totalLineNum;\n\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"::: I/O error\");\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"::: I/O error\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}" ]
[ "0.5470839", "0.5353092", "0.5317721", "0.5235008", "0.5035553", "0.5028363", "0.5008769", "0.4998941", "0.4844537", "0.48429963", "0.4841064", "0.48385683", "0.47928143", "0.47860086", "0.47671768", "0.47272122", "0.4691672", "0.4679347", "0.46668455", "0.46512243", "0.46328822", "0.46192142", "0.4598661", "0.4594118", "0.45940816", "0.4574591", "0.45569965", "0.45385736", "0.45376626", "0.4537484", "0.45024645", "0.44888324", "0.44846052", "0.44824672", "0.44692668", "0.44642848", "0.44531718", "0.44499597", "0.4436144", "0.4431912", "0.44209346", "0.44156775", "0.4408386", "0.4407859", "0.44059896", "0.44050384", "0.4399445", "0.4396557", "0.43886086", "0.4372667", "0.43698815", "0.43688336", "0.43588847", "0.43544728", "0.43491745", "0.43425333", "0.43329206", "0.43310958", "0.43285042", "0.43262884", "0.43172204", "0.43153813", "0.43128654", "0.4311387", "0.4296396", "0.42919084", "0.4290597", "0.4290282", "0.4289859", "0.4285258", "0.42737648", "0.42734647", "0.4272468", "0.42716226", "0.4270583", "0.42656717", "0.42623508", "0.4259505", "0.4256788", "0.42533952", "0.42517638", "0.42501932", "0.42494696", "0.42424417", "0.42419317", "0.42418382", "0.42408884", "0.42358288", "0.42356133", "0.42302686", "0.42265362", "0.42242846", "0.42179114", "0.4205475", "0.42054", "0.42053232", "0.42036942", "0.4193071", "0.41929364", "0.41922796" ]
0.6493701
0
split the given string by the char split and return the resulting strings as a String array
private String[] toStringArray(String doc, char split) { // count words int wordCount = 0; for (int i = 0; i < doc.length(); i++) { if (doc.charAt(i) == split) { wordCount++; } } // split the String String[] words = new String[wordCount]; int lastWord = 0; int index = 0; for (int i = 0; i < doc.length(); i++) { if (doc.charAt(i) == split) { words[index++] = doc.substring(lastWord, i + 1).trim(); lastWord = i + 1; } } return words; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] split(String s, char token) {\n\t\tint tokenCount = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\ttokenCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString[] splits = new String[tokenCount+1];\n\t\t\n\t\tString temp = \"\";\n\t\tint tokenItr = 0;\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == token) {\n\t\t\t\tsplits[tokenItr] = temp;\n\t\t\t\ttokenItr++;\n\t\t\t\ttemp = \"\";\n\t\t\t} else {\n\t\t\t\ttemp+=s.charAt(i);\n\t\t\t}\n\t\t}\n\t\tsplits[tokenItr] = temp; //For the left over strings in s\n\t\t\n\t\treturn splits;\n\t}", "public String[] splitBySplitter(String s) {\r\n\t\tString[] returnArray = new String[4];\r\n\t\treturnArray = s.split(\"-\");\r\n\t\treturn returnArray;\r\n\t}", "public static String[] split(String toSplit, char spliter){\n String[] endStringArray = new String[4];\n StringBuilder st = new StringBuilder();\n int i = 0;\n for (int j = 0; j < toSplit.length(); j++){\n if (toSplit.charAt(j) != spliter){\n st.append(toSplit.charAt(j));\n }\n else{\n endStringArray[i] = st.toString();\n st = new StringBuilder();\n i++;\n }\n }\n endStringArray[i] = st.toString();\n int size = 0;\n for (String s : endStringArray){\n if (s != null)\n size++;\n }\n String[] reducedArray = new String[size];\n System.arraycopy(endStringArray, 0, reducedArray, 0, size);\n return reducedArray;\n }", "public static String[] split(final String s, final char c)\n\t{\n\t\tfinal List strings = new ArrayList();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}", "public static String[] split(String str) {\n\t\treturn split(str, null, -1);\n\t}", "public static String[] splitAt (String toSplit, char splitter) {\n\t\n\t\tint placeHolder = 0; //tracks latest position of new substring\n\t\tint arrayCount = 0; //tracks of position of array entries\n\t\tint numberOfSplitters = 0; /*counts number of splitters so that\n\t\t\t\t\t\t\t\t\t*the length of array will be correct\n\t\t\t\t\t\t\t\t\t*/\n\t\tfor (int x = 0; x < toSplit.length(); x++) {\n\t\t\tif (toSplit.charAt(x) == splitter)\n\t\t\t\tnumberOfSplitters += 1;\n\t\t}\n\t\t/*\n\t\t * creates array to return with the correct number of \n\t\t * elements based on number of splitters plus 1\n\t\t */\n\t\tString[] splitArray = new String[numberOfSplitters + 1];\n\t\tfor (int x = 0; x < toSplit.length(); x++){\n\t\t\tif (toSplit.charAt(x) == splitter) {\n\t\t\t\tsplitArray[arrayCount] = \n\t\t\t\t\t\ttoSplit.substring(placeHolder, x);\n\t\t\t\tplaceHolder = x + 1;\n\t\t\t\tarrayCount += 1;\n\t\t\t}\n\t\t}\n\t //adds substring from last splitter to end of string\n\t\tsplitArray[arrayCount] = \n\t\t\t\ttoSplit.substring(placeHolder);\n\t\treturn splitArray;\n\t}", "public static String[] split(char c, String value) {\n\t\t int count,idx;\n\t\t for(count=1,idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,++idx),++count);\n\t\t String[] rv = new String[count];\n\t\t if(count==1) {\n\t\t\t rv[0]=value;\n\t\t } else {\n\t\t\t int last=0;\n\t\t\t count=-1;\n\t\t\t for(idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,idx)) {\n\t\t\t\t rv[++count]=value.substring(last,idx);\n\t\t\t\t last = ++idx;\n\t\t\t }\n\t\t\t rv[++count]=value.substring(last);\n\t\t }\n\t\t return rv;\n\t }", "public static String[] splitString(char delim, String string) {\n\t Vector<String> res = new Vector<String>();\n\t int len = string.length();\n\t int start = 0;\n\t for (int i=0; i<len; i++) {\n\t\t if (string.charAt(i) == delim) {\n\t\t\t res.add(string.substring(start, i));\n\t\t\t start = i+1;\n\t\t }\n\t }\n\t res.add(start==len ? \"\" : string.substring(start));\n\t return res.toArray(new String[res.size()]);\n }", "public static String[] splitOutOfString(String string, char split) {\r\n\t\tArrayList<String> ret = new ArrayList<String>();\r\n\t\tboolean inJavaString = false;\r\n\t\tint numBackSlashes = 0;\r\n\t\tint lastSplitIndex = 0;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar cur = string.charAt(i);\r\n\t\t\tif (!inJavaString) {\r\n\t\t\t\tif (cur == split) {\r\n\t\t\t\t\tret.add(string.substring(lastSplitIndex, i));\r\n\t\t\t\t\tlastSplitIndex = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"') {\r\n\t\t\t\t\tinJavaString = true;\r\n\t\t\t\t\tnumBackSlashes = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (cur == '\\\\') {\r\n\t\t\t\t\tnumBackSlashes++;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"' && numBackSlashes % 2 == 0) {\r\n\t\t\t\t\tinJavaString = false;\r\n\t\t\t\t\tif (cur == split) {\r\n\t\t\t\t\t\tret.add(string.substring(lastSplitIndex, i));\r\n\t\t\t\t\t\tlastSplitIndex = i + 1;\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 (lastSplitIndex < string.length()) {\r\n\t\t\tret.add(string.substring(lastSplitIndex, string.length()));\r\n\t\t}\r\n\t\tString[] retArray = new String[ret.size()];\r\n\t\tfor (int i = 0; i < ret.size(); i++) {\r\n\t\t\tretArray[i] = ret.get(i);\r\n\t\t}\r\n\t\treturn retArray;\r\n\t}", "public static String[] split(final String s, final char c)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn new String[0];\n\t\t}\n\t\tfinal List<String> strings = new ArrayList<String>();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}", "public static String[] strParts(String string, String delim) {\r\n //StringTokenizer st = new StringTokenizer(string);\r\n String[] strings = string.split(delim);\r\n return removeSpaces(strings);\r\n }", "public static List<String> splitString(String s, char c) {\r\n List<String> result = new ArrayList<String>();\r\n int startPos = 0;\r\n while (true) {\r\n int pos = s.indexOf(c, startPos);\r\n if (pos == -1) {\r\n break;\r\n }\r\n result.add(s.substring(startPos, pos));\r\n startPos = pos + 1;\r\n }\r\n if (startPos != s.length()) {\r\n result.add(s.substring(startPos, s.length()));\r\n }\r\n return result;\r\n }", "public static String[] strParts(String string) {\r\n //StringTokenizer st = new StringTokenizer(string);\r\n String[] strings = string.split(\"\\\\s+\");\r\n return removeSpaces(strings);\r\n }", "private String[] split(String string){\n\t\tString[] split = string.split( \" \" );\n\t\t\n\t\tfor(int i = 0; i < split.length; i++){\n\t\t\tString index = split[i];\n\t\t\tindex = index.trim();\n\t\t}\n\t\t\n\t\treturn split;\n\t}", "public static String[] convertStringToArray(String str){\n String[] arr = str.split(strSeparator);\n return arr;\n }", "public static String[] splitShortString(String str, char separator)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return org.apache.myfaces.util.lang.ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n int lastTokenIndex = 0;\n\n // Step 1: how many substrings?\n // We exchange double scan time for less memory allocation\n for (int pos = str.indexOf(separator);\n pos >= 0; pos = str.indexOf(separator, pos + 1))\n {\n lastTokenIndex++;\n }\n\n // Step 2: allocate exact size array\n String[] list = new String[lastTokenIndex + 1];\n\n int oldPos = 0;\n\n // Step 3: retrieve substrings\n int pos = str.indexOf(separator);\n int i = 0;\n \n while (pos >= 0)\n {\n list[i++] = substring(str, oldPos, pos);\n oldPos = (pos + 1);\n pos = str.indexOf(separator, oldPos);\n }\n\n list[lastTokenIndex] = substring(str, oldPos, len);\n\n return list;\n }", "public static String[] explode(char separator, String string) {\n\t if (string == null) return null;\n\t int len = string.length();\n\t int start = 0;\n\t int end;\n\t ArrayList<String> res = new ArrayList<String>(5);\n\t while (start < len) {\n\t\t end = string.indexOf(separator, start);\n\t\t if (end < 0) end = len;\n\t\t res.add(string.substring(start, end));\n\t\t start = end + 1;\n\t }\n\t return res.toArray(new String[res.size()]);\n }", "public static String[] split(String s)\n\t{\n\t\tArrayList <String> words = new ArrayList<> ();\n\t\t\n\t\tStringBuilder word = new StringBuilder();\n\t\tfor(int i=0; i < s.length(); i++ )\n\t\t{\n\t\t\tif(s.charAt(i) == ' ')\n\t\t\t{\n\t\t\t\twords.add(word.toString());\n\t\t\t\tword = new StringBuilder();\n\t\t\t}\n\t\t\telse\n\t\t\t\tword.append(s.charAt(i));\n\t\t}\n\t\twords.add(word.toString());\n\t\treturn words.toArray(new String[words.size()]);\n\t}", "public static String[] split(char delim, String seq) {\n List<String> result = new ArrayList<>(20);\n int max = seq.length();\n int start = 0;\n for (int i = 0; i < max; i++) {\n char c = seq.charAt(i);\n boolean last = i == max - 1;\n if (c == delim || last) {\n result.add(seq.substring(start, last ? c == delim ? i : i + 1 : i));\n start = i + 1;\n }\n }\n return result.toArray(new String[result.size()]);\n }", "public static String[] splitLongString(String str, char separator)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n int oldPos = 0;\n ArrayList list = new ArrayList();\n int pos = str.indexOf(separator);\n while (pos >= 0)\n {\n list.add(substring(str, oldPos, pos));\n oldPos = (pos + 1);\n pos = str.indexOf(separator, oldPos);\n }\n\n list.add(substring(str, oldPos, len));\n\n return (String[]) list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);\n }", "public static String[] split(String s, String sep)\r\n {\r\n if (s == null)\r\n return new String[0];\r\n \r\n if (s.trim().length() == 0 || sep == null || sep.length() == 0)\r\n return new String[]{s};\r\n \r\n List list = new ArrayList();\r\n int k1 = 0;\r\n int k2;\r\n while ((k2 = s.indexOf(sep, k1)) >= 0)\r\n {\r\n list.add(s.substring(k1, k2));\r\n k1 = k2 + 1;\r\n }\r\n list.add(s.substring(k1));\r\n \r\n return (String[]) list.toArray(new String[list.size()]);\r\n }", "public static String[] split(String toSplit, String delimiter) {\n if (!hasLength(toSplit) || !hasLength(delimiter)) {\n return null;\n }\n int offset = toSplit.indexOf(delimiter);\n if (offset < 0) {\n return null;\n }\n\n String beforeDelimiter = toSplit.substring(0, offset);\n String afterDelimiter = toSplit.substring(offset + delimiter.length());\n return new String[]{beforeDelimiter, afterDelimiter};\n }", "static String[] splitIntoAlphasAndNums( String s )\n\t{\n\t\tif ( \"\".equals( s ) )\n\t\t{\n\t\t\treturn new String[]{\"\"};\n\t\t}\n\t\ts = s.toLowerCase( Locale.ENGLISH );\n\n\t\tList<String> splits = new ArrayList<String>();\n\t\tString tok = \"\";\n\n\t\tchar c = s.charAt( 0 );\n\t\tboolean isDigit = isDigit( c );\n\t\tboolean isSpecial = isSpecial( c );\n\t\tboolean isAlpha = !isDigit && !isSpecial;\n\t\tint prevMode = isAlpha ? 0 : isDigit ? 1 : -1;\n\n\t\tfor ( int i = 0; i < s.length(); i++ )\n\t\t{\n\t\t\tc = s.charAt( i );\n\t\t\tisDigit = isDigit( c );\n\t\t\tisSpecial = isSpecial( c );\n\t\t\tisAlpha = !isDigit && !isSpecial;\n\t\t\tint mode = isAlpha ? 0 : isDigit ? 1 : -1;\n\t\t\tif ( mode != prevMode )\n\t\t\t{\n\t\t\t\tif ( !\"\".equals( tok ) )\n\t\t\t\t{\n\t\t\t\t\tsplits.add( tok );\n\t\t\t\t\ttok = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// alpha=0, digit=1. Don't append for specials.\n\t\t\tif ( mode >= 0 )\n\t\t\t{\n\t\t\t\t// Special case for minus sign.\n\t\t\t\tif ( i == 1 && isDigit && '-' == s.charAt( 0 ) )\n\t\t\t\t{\n\t\t\t\t\ttok = \"-\";\n\t\t\t\t}\n\t\t\t\ttok += c;\n\t\t\t}\n\t\t\tprevMode = mode;\n\t\t}\n\t\tif ( !\"\".equals( tok ) )\n\t\t{\n\t\t\tsplits.add( tok );\n\t\t}\n\t\tsplits.add( \"\" ); // very important: append empty-string to all returned splits.\n\t\treturn splits.toArray( new String[ splits.size() ] );\n\t}", "public static String[] split(String s) {\n int cp = 0; // Cantidad de palabras\n\n // Recorremos en busca de espacios\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si es un espacio\n cp++; // Aumentamos en uno la cantidad de palabras\n }\n }\n\n // \"Este blog es genial\" tiene 3 espacios y 3 + 1 palabras\n String[] partes = new String[cp + 1];\n for (int i = 0; i < partes.length; i++) {\n partes[i] = \"\"; // Se inicializa en \"\" en lugar de null (defecto)\n }\n\n int ind = 0; // Creamos un índice para las palabras\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == ' ') { // Si hay un espacio\n ind++; // Pasamos a la siguiente palabra\n continue; // Próximo i\n }\n partes[ind] += s.charAt(i); // Sino, agregamos el carácter a la palabra actual\n }\n return partes; // Devolvemos las partes\n }", "public static String[] split(String string) {\n String[] result = string.split(\",\");\n for (int i = 0; i < result.length; i++) {\n result[i] = result[i].trim();\n }\n return result;\n }", "public static String[] splitWordString(String word) {\r\n\t\tString[] letters = word.split(\"[^a-z^A-Z]\");\r\n\t\treturn letters;\r\n\t}", "public static String[] splitString(String str) {\r\n String line = str.trim();\r\n String info = \"\";\r\n String areas = \"\";\r\n for (int i = 0; i < line.length(); i ++) {\r\n if (i <= 6)\r\n info += line.charAt(i);\r\n else\r\n areas += line.charAt(i);\r\n }\r\n info = info.trim();\r\n areas = areas.trim();\r\n String[] splitString = new String[]{info, areas};\r\n return splitString;\r\n }", "public static String[] splitString3(String haystack, String needle) {\n // return array of one empty string element if haystack is empty\n if(haystack.equals(\"\")){\n return new String[] {};\n }\n // for empty needle, just return array of characters (cast to String)\n if (needle.equals(\"\")){\n char[] charArray = haystack.toCharArray();\n String[] result = new String[charArray.length];\n \n for(int i = 0; i < charArray.length; i++){\n result[i] = Character.toString(charArray[i]);\n };\n return result;\n }\n // Do actual splitting using String.indexOf() method\n String newHaystack= haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n \n while (index != -1){ \n resultList.add(newHaystack.substring(0, index)); \n newHaystack = newHaystack.substring(index + needle.length()); \n index = newHaystack.indexOf(needle); \n if(index == -1) resultList.add(newHaystack); // add remaining string before exit loop\n }\n \n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for(int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n } \n return res; \n \n }", "private static ArrayList<String> split(String str) {\n String[] splits = str.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }", "@Test(testName = \"splitFunctioanlity\")\n\t public static void splitFunction() \n\t { \n\t String str = \"geekss@for@geekss\"; \n\t String[] arrOfStr = str.split(\"s\", 5); \n\t \n\t for (String a : arrOfStr) \n\t System.out.println(a); \n\t \t}", "public static String[] splitLastChar(String text, char ch) {\n\t\tchar[] chars = text.toCharArray();\n\t\tString[] splitText = null;\n\t\tfor (int i=chars.length-1; i>=0; i--) {\n\t\t\tif (chars[i] == ch) {\n\t\t\t\tsplitText = new String[2];\n\t\t\t\tsplitText[0]=text.substring(0,i);\n\t\t\t\tif (chars.length>i+1) {\n\t\t\t\t\tsplitText[1]=text.substring(i+1);\n\t\t\t\t} else {\n\t\t\t\t\tsplitText[1]=\"\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"splitText: \"+splitText[0]+\" \"+splitText[1]);\n\t\tif (splitText == null) {\n\t\t\treturn new String[]{text};\n\t\t}\n\t\treturn splitText;\n\t}", "public static Vector<String> splitString(String str, String delimiter) {\n Vector<String> strVec = new Vector<>();\n int p = 0, dp;\n do {\n dp = str.indexOf(delimiter, p);\n if (dp == -1) dp = str.length();\n if (dp == p) {\n strVec.add(\"\");\n p += delimiter.length();\n } else {\n strVec.add(str.substring(p, dp));\n p = dp + 1;\n }\n } while(p < str.length());\n return strVec;\n }", "public String[] split(String value, String splitter) {\n\t\tString[] newValue;\n\t\tnewValue = value.split(splitter);\n\t\treturn newValue;\n\t}", "public static String[] splitString4(String haystack, String needle) {\n \n // return array of one empty string element if haystack is empty\n if (haystack.equals(\"\")){\n return new String[] {};\n }\n // for empty needle, just return array of single element = the whole haystack string - still valid\n if (needle.equals(\"\")){\n return new String[] { haystack };\n }\n \n // Do actual splitting using String.indexOf() method\n String newHaystack= haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n \n while (index != -1){ \n if(index > 0) {\n resultList.add(newHaystack.substring(0, index)); \n }\n newHaystack = newHaystack.substring(index + needle.length()); \n index = newHaystack.indexOf(needle); \n if(index == -1 && !newHaystack.equals(\"\")) {\n resultList.add(newHaystack); // add remaining string before exit loop\n }\n }\n \n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for(int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n } \n return res; \n \n }", "private static String[] splitString(String stringToSplit, String delimiter, boolean takeDelimiter)\n\t{\n\t\tString[] aRet;\n\t\tint iLast;\n\t\tint iFrom;\n\t\tint iFound;\n\t\tint iRecords;\n\t\tint iJump;\n\n\t\t// return Blank Array if stringToSplit == \"\")\n\t\tif (stringToSplit.equals(\"\")) { return new String[0]; }\n\n\t\t// count Field Entries\n\t\tiFrom = 0;\n\t\tiRecords = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tiFound = stringToSplit.indexOf(delimiter, iFrom);\n\t\t\tif (iFound == -1)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tiRecords += (takeDelimiter ? 2 : 1);\n\t\t\tiFrom = iFound + delimiter.length();\n\t\t}\n\t\tiRecords = iRecords + 1;\n\n\t\t// populate aRet[]\n\t\taRet = new String[iRecords];\n\t\tif (iRecords == 1)\n\t\t{\n\t\t\taRet[0] = stringToSplit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tiLast = 0;\n\t\t\tiFrom = 0;\n\t\t\tiFound = 0;\n\t\t\tiJump = 0;\n\t\t\tfor (int i = 0; i < iRecords; i++)\n\t\t\t{\n\t\t\t\tiFound = stringToSplit.indexOf(delimiter, iFrom);\n\t\t\t\tif (takeDelimiter)\n\t\t\t\t{\n\t\t\t\t\tiJump = (iFrom == iFound ? delimiter.length() : 0);\n\t\t\t\t\tiFound += iJump;\n\t\t\t\t}\n\t\t\t\tif (iFound == -1)\n\t\t\t\t{ // at End\n\t\t\t\t\taRet[i] = stringToSplit.substring(iLast + delimiter.length(), stringToSplit.length());\n\t\t\t\t}\n\t\t\t\telse if (iFound == 0)\n\t\t\t\t{ // at Beginning\n\t\t\t\t\taRet[i] = delimiter;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ // somewhere in middle\n\t\t\t\t\taRet[i] = stringToSplit.substring(iFrom, iFound);\n\t\t\t\t}\n\t\t\t\tiLast = iFound - (takeDelimiter ? iJump : 0);\n\t\t\t\tiFrom = iFound + (takeDelimiter ? 0 : delimiter.length());\n\t\t\t}\n\t\t}\n\t\treturn aRet;\n\t}", "public static String[] splitShortString(\n String str, char separator, char quote)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n // Step 1: how many substrings?\n // We exchange double scan time for less memory allocation\n int tokenCount = 0;\n for (int pos = 0; pos < len; pos++)\n {\n tokenCount++;\n\n int oldPos = pos;\n\n // Skip quoted text, if any\n while ((pos < len) && (str.charAt(pos) == quote))\n {\n pos = str.indexOf(quote, pos + 1) + 1;\n\n // pos == 0 is not found (-1 returned by indexOf + 1)\n if (pos == 0)\n {\n throw new IllegalArgumentException(\n \"Closing quote missing in string '\" + str + '\\'');\n }\n }\n\n if (pos != oldPos)\n {\n if ((pos < len) && (str.charAt(pos) != separator))\n {\n throw new IllegalArgumentException(\n \"Separator must follow closing quote in strng '\"\n + str + '\\'');\n }\n }\n else\n {\n pos = str.indexOf(separator, pos);\n if (pos < 0)\n {\n break;\n }\n }\n }\n\n // Main loop will finish one substring short when last char is separator\n if (str.charAt(len - 1) == separator)\n {\n tokenCount++;\n }\n\n // Step 2: allocate exact size array\n String[] list = new String[tokenCount];\n\n // Step 3: retrieve substrings\n // Note: on this pass we do not check for correctness,\n // since we have already done so\n tokenCount--; // we want to stop one token short\n\n int oldPos = 0;\n for (int pos = 0, i = 0; i < tokenCount; i++, oldPos = ++pos)\n {\n boolean quoted;\n\n // Skip quoted text, if any\n while (str.charAt(pos) == quote)\n {\n pos = str.indexOf(quote, pos + 1) + 1;\n }\n\n if (pos != oldPos)\n {\n quoted = true;\n\n if (str.charAt(pos) != separator)\n {\n throw new IllegalArgumentException(\n \"Separator must follow closing quote in strng '\"\n + str + '\\'');\n }\n }\n else\n {\n quoted = false;\n pos = str.indexOf(separator, pos);\n }\n\n list[i] =\n quoted ? dequote(str, oldPos + 1, pos - 1, quote)\n : substring(str, oldPos, pos);\n }\n\n list[tokenCount] = dequoteFull(str, oldPos, len, quote);\n\n return list;\n }", "public static ArrayList<String> stringSplit(String stringToSplit, String delimiter) \n\t{\n\t\tif (delimiter == null) delimiter = \" \";\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tString currentWord = \"\";\n\n\t\tfor (int i = 0; i < stringToSplit.length(); i++) \n\t\t{\n\t\t\tString s = Character.toString(stringToSplit.charAt(i));\n\n\t\t\tif (s.equals(delimiter)) \n\t\t\t{\n\t\t\t\tstringList.add(currentWord);\n\t\t\t\tcurrentWord = \"\";\n\t\t\t} \n\t\t\telse { currentWord += stringToSplit.charAt(i); }\n\n\t\t\tif (i == stringToSplit.length() - 1) stringList.add(currentWord);\n\t\t}\n\n\t\treturn stringList;\n\t}", "private static ArrayIterator<String> splitString(String base, String delimiter) {\r\n\t\tString[] substrings = base.split(delimiter);\r\n\t\treturn ArrayIterator.create(substrings);\r\n\t}", "private String [] splitString(String name) {\r\n String [] parts = {\"\", \"\"};\r\n if (name != null) {\r\n String [] t = StringExtend.toArray(name, \".\", false);\r\n if (t.length == 3) {\r\n parts [0] = t [0] + \".\" + t [1];\r\n parts [1] = t [2];\r\n }\r\n else if (t.length == 2) {\r\n parts [0] = t [0]; parts [1] = t [1];\r\n }\r\n else if (t.length == 1) {\r\n parts [1] = t [0];\r\n }\r\n }\r\n\r\n return parts;\r\n }", "private static String[] partition(String str, char character) {\n int index = str.indexOf(character);\n\n String[] pair = new String[2];\n\n if (index > -1) {\n // Gets rid of a space in the end of the first partition.\n pair[0] = str.substring(0, index).trim();\n pair[1] = str.substring(index + 1).trim();\n } else {\n // If there exists no '/' in the string, set the tail of the pair as an empty string.\n pair[0] = str;\n pair[1] = \"\";\n }\n return pair;\n }", "public static String[] svStringToArray(String sv, String separator) {\n String[] split = sv.split(separator);\n for (int i = 0; i < split.length; i++) {\n split[i] = split[i].trim();\n }\n return split;\n }", "public static String[] splitString1(String haystack, String needle) {\n if (haystack.equals(\"\") || needle.equals(\"\") // non empty strings are\n // not accepted\n || haystack.indexOf(needle) == -1) { // haystack must have at\n // least one needle\n throw new IllegalArgumentException();\n }\n\n // Do actual splitting using String.indexOf() method and do-while loop \n String newHaystack = haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n\n do {\n resultList.add(newHaystack.substring(0, index));\n newHaystack = newHaystack.substring(index + needle.length());\n index = newHaystack.indexOf(needle);\n\n } while (index != -1);\n\n resultList.add(newHaystack); // add remaining haystack \n\n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for (int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n }\n return res;\n\n }", "private static Character[] stringToArray(String s) {\n\t\tint len = s.length();\n\t\tCharacter[] testArray = new Character[len];\n\t\tfor(int i = 0; i < len; i++) {\n\t\t\ttestArray[i] = s.charAt(i);\n\t\t}\n\t\tassert(testArray.length == s.length());\n\t\treturn testArray;\n\t}", "public static String[] splitOnce(char c, String cs) {\n int max = cs.length();\n if (max == 0) {\n return new String[0];\n }\n int splitAt = -1;\n for (int i = 0; i < cs.length(); i++) {\n if (c == cs.charAt(i)) {\n splitAt = i;\n break;\n }\n }\n if (splitAt == -1) {\n return new String[]{cs};\n }\n String left = cs.subSequence(0, splitAt).toString();\n if (splitAt < max - 1) {\n String right = cs.subSequence(splitAt + 1, max).toString();\n return new String[]{left, right};\n }\n return new String[]{left};\n }", "private static ArrayList<String> splitString(String line) {\n String[] splits = line.split(DELIMITER);\n return new ArrayList<>(Arrays.asList(splits));\n }", "private byte[][] splitStr(String theString) {\n\t\tbyte[] strByteArr = theString.getBytes(Packet.DEF_ENCODING);// string -> byte[]\n\t\tint noOfStrings = strByteArr.length / Packet.MAX_LENGTH_BYTES;// number of byte[] required\n\t\tif (strByteArr.length % Packet.MAX_LENGTH_BYTES != 0)// check for a shorter byte[] on the end\n\t\t\tnoOfStrings++;\n\t\tbyte[][] resByte = new byte[noOfStrings][];// new byte array array\n\t\tint start = 0;\n\t\t// if the length of the array is less than the max, use it as the max\n\t\tint end = (strByteArr.length < Packet.MAX_LENGTH_BYTES) ? strByteArr.length : Packet.MAX_LENGTH_BYTES;\n\t\tfor (int i = 0; i < resByte.length; i++) {// for every byte array\n\t\t\tresByte[i] = Arrays.copyOfRange(strByteArr, start, end);// copy section of byte[]\n\t\t\tstart += Packet.MAX_LENGTH_BYTES;\n\t\t\tend = ((end + Packet.MAX_LENGTH_BYTES) > strByteArr.length) ? strByteArr.length\n\t\t\t\t\t: (end + Packet.MAX_LENGTH_BYTES);\n\t\t}\n\t\treturn resByte;\n\t}", "private static String[] splitPartName(String partName) {\n if (partName == null) {\n partName = \"\";\n }\n\n int last_match = 0;\n LinkedList<String> splitted = new LinkedList<String>();\n Matcher m = partNamePattern.matcher(partName);\n while (m.find()) {\n if (!partName.substring(last_match, m.start()).trim().isEmpty()) {\n splitted.add(partName.substring(last_match, m.start()));\n }\n if (!m.group().trim().isEmpty()) {\n splitted.add(m.group());\n }\n last_match = m.end();\n }\n if (!partName.substring(last_match).trim().isEmpty()) {\n splitted.add(partName.substring(last_match));\n }\n return splitted.toArray(new String[splitted.size()]);\n }", "public static final List<?> split(final String string, final String divider) {\n\t\t\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\t\tfinal List<String> result = new ArrayList<>();\n\t\tfinal int length = divider.length();\n\t\tif (length == 1) {\n\t\t\tfor (final StringTokenizer st = new StringTokenizer(string, divider); st.hasMoreTokens();) {\n\t\t\t\tresult.add(st.nextToken());\n\t\t\t}\n\t\t} else {\n\t\t\tint start = 0;\n\t\t\tint end = 0;\n\t\t\tfor (;;) {\n\t\t\t\tstart = string.indexOf(divider, end);\n\t\t\t\tif (start == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tresult.add(string.substring(end, start));\n\t\t\t\tend = start + length;\n\t\t\t}\n\t\t\tif (end < string.length()) {\n\t\t\t\tresult.add(string.substring(end));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static String[] splitString2(String haystack, String needle) {\n if (haystack.equals(\"\") || needle.equals(\"\") // non empty strings are\n // not accepted\n || haystack.indexOf(needle) == -1 // haystack must have at least\n // one needle\n || haystack.startsWith(needle) // needle must not be at the\n // beginning of haystack\n || haystack.endsWith(needle)// needle must not be at the end of\n // haystack\n || haystack.contains(needle + needle) // needle must not repeat\n ) {\n throw new IllegalArgumentException();\n }\n // Do actual splitting using string builder method\n String newHaystack = haystack;\n int index = newHaystack.indexOf(needle);\n List<String> resultList = new ArrayList<String>();\n\n do {\n StringBuilder before = new StringBuilder();\n for (int i = 0; i < index; i++) {\n before.append(newHaystack.charAt(i));\n if (i == index - 1)\n resultList.add(before.toString());\n }\n StringBuilder after = new StringBuilder();\n for (int i = index + needle.length(); i < newHaystack.length(); i++) {\n after.append(newHaystack.charAt(i));\n if (i == newHaystack.length() - 1)\n newHaystack = after.toString();\n }\n index = newHaystack.indexOf(needle);\n } while (index != -1);\n\n resultList.add(newHaystack); // add remaining haystack \n \n\n // need to return an array not Array List\n String[] res = new String[resultList.size()];\n for (int j = 0; j < resultList.size(); j++) {\n res[j] = resultList.get(j);\n }\n return res;\n\n }", "public ArrayList recuperString_to_Array(String lestring){\n int i;\n char restemp;\n String sretemp=\"\";\n Iterator it;\n ArrayList<String>ListTextString=new ArrayList<String>();\n for(i=0;i<lestring.length();i++){\n restemp=lestring.charAt(i);\n sretemp+=restemp;\n switch (lestring.charAt(i)) {\n case '\\n':\n ListTextString.add(sretemp);\n sretemp=\"\";\n break;\n case '\\t':\n sretemp=\"\";\n break;\n }\n }\n it=ListTextString.iterator();\n while (it.hasNext()){\n System.out.println(it.next().toString());\n\n }\n return ListTextString;\n }", "public static String[] splitByCharacterTypeCamelCase(String str) {\n return splitByCharacterType(str, true);\n }", "private static String[] seperateStr(String str)\r\n\t{\r\n\t\tboolean doubleSpace = false;\r\n\t\tint wordCount = 0;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif (str == null || str.length() == 0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t\twordCount++;\r\n\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\t\tString st[] = new String[wordCount + 1];\r\n\t\tint i = 0;\r\n\r\n\t\tdoubleSpace = false;\r\n\t\tString ch = \"\";\r\n\t\tfor (int j = 0; j < str.length(); j++)\r\n\t\t{\r\n\t\t\tif (str.charAt(j) == ' ')\r\n\t\t\t{\r\n\t\t\t\tif (!doubleSpace)\r\n\t\t\t\t{\r\n\t\t\t\t\tst[i] = sb.toString();\r\n\t\t\t\t\tsb.delete(0, sb.length());\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tdoubleSpace = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tsb.append(str.charAt(j));\r\n\t\t\t}\r\n\t\t\tdoubleSpace = false;\r\n\t\t}\r\n\r\n\t\tst[i] = sb.toString();\r\n\t\t;\r\n\t\treturn st;\r\n\t}", "public static String[] split(String value, String spliter) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(spliter);\r\n\t}", "public static List<String> splitBitStrings(String bitString){\n\t\tList<String> LR = new ArrayList<String>();\n\t\tString L = bitString.substring(0,(bitString.length()/2));\n\t\tString R = bitString.substring((bitString.length()/2),bitString.length());\n\t\tLR.add(L);\n\t\tLR.add(R);\n\t\t\n\t\treturn LR;\n\n\t}", "public static String[] split(String src, String sep) {\n if (src == null || src.equals(\"\") || sep == null || sep.equals(\"\")) return new String[0];\n List<String> v = new ArrayList<String>();\n int idx;\n int len = sep.length();\n while ((idx = src.indexOf(sep)) != -1) {\n v.add(src.substring(0, idx));\n idx += len;\n src = src.substring(idx);\n }\n v.add(src);\n return (String[]) v.toArray(new String[0]);\n }", "private static String[] splitByCharacterType(String str, boolean camelCase) {\n if (str == null) {\n return null;\n }\n if (str.length() == 0) {\n return new String[0];\n }\n char[] c = str.toCharArray();\n ArrayList<String> list = new ArrayList<String>();\n int tokenStart = 0;\n int currentType = Character.getType(c[tokenStart]);\n for (int pos = tokenStart + 1; pos < c.length; pos++) {\n int type = Character.getType(c[pos]);\n if (type == currentType) {\n continue;\n }\n if (camelCase && type == Character.LOWERCASE_LETTER\n && currentType == Character.UPPERCASE_LETTER) {\n int newTokenStart = pos - 1;\n if (newTokenStart != tokenStart) {\n list.add(new String(c, tokenStart, newTokenStart - tokenStart));\n tokenStart = newTokenStart;\n }\n } else {\n list.add(new String(c, tokenStart, pos - tokenStart));\n tokenStart = pos;\n }\n currentType = type;\n }\n list.add(new String(c, tokenStart, c.length - tokenStart));\n return (String[]) list.toArray(new String[list.size()]);\n }", "public StringWrapper[] split(DocText docText, BreakStrategy breakStrategy) {\n final String string = docText.getString();\n final String[] pieces = string.split(pattern);\n\n final List<StringWrapper> result = new ArrayList<StringWrapper>();\n\n for (int i = 0; i < pieces.length; ++i) {\n if (!\"\".equals(pieces[i])) {\n result.add(new StringWrapper(pieces[i], breakStrategy));\n }\n }\n\n return result.toArray(new StringWrapper[result.size()]);\n }", "public static String[] splitFirst(String source, String splitter)\n\t {\n\t Vector<String> rv = new Vector<String>();\n\t int last = 0;\n\t int next = 0;\n\n\t // find first splitter in source\n\t next = source.indexOf(splitter, last);\n\t if (next != -1)\n\t {\n\t // isolate from last thru before next\n\t rv.add(source.substring(last, next));\n\t last = next + splitter.length();\n\t }\n\n\t if (last < source.length())\n\t {\n\t rv.add(source.substring(last, source.length()));\n\t }\n\n\t // convert to array\n\t return (String[]) rv.toArray(new String[rv.size()]);\n\t }", "public static StringBuffer[] splitStringBuffer(String[] splittedString) {\n\n\t\tStringBuffer array[] = new StringBuffer[splittedString.length];\n\n\t\tint i = 0;\n\n\t\tfor (String string : splittedString) {\n\n\t\t\tarray[i++] = new StringBuffer(string);\n\n\t\t}\n\n\t\treturn array;\n\n\t}", "private static String[] lineSplit(String input) {\r\n String[] tokens = input.split(delimiter);\r\n return tokens;\r\n }", "public static String[] splitName(String name) {\n return normalizer.splitName(defaultRule, name);\n }", "@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }", "abstract List<String> splitStringToCollection(String inputString, String separator);", "private String[] splitLetters(String word) {\n String[] temp = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n temp[i] = Character.toString(word.charAt(i)).toUpperCase();\n }\n return temp;\n }", "public static CharSequence[] split(char delim, CharSequence seq) {\n if (seq.length() == 0) {\n return new CharSequence[0];\n }\n List<CharSequence> l = splitToList(delim, seq);\n return l.toArray(new CharSequence[l.size()]);\n }", "public static ArrayList<String> stringToArray(String str) {\n ArrayList<String> temp = new ArrayList<String>();\n\n while (!str.equals(\"\") && str.contains(\" \")) {\n temp.add(str.substring(0, str.indexOf(\" \")));\n str = str.substring(str.indexOf(\" \") + 1, str.length());\n }\n temp.add(str);\n return temp;\n }", "public static String[] splitTrim(char c, String value) {\n\t\t int count,idx;\n\t\t for(count=1,idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,++idx),++count);\n\t\t String[] rv = new String[count];\n\t\t if(count==1) {\n\t\t\t rv[0]=value.trim();\n\t\t } else {\n\t\t\t int last=0;\n\t\t\t count=-1;\n\t\t\t for(idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,idx)) {\n\t\t\t\t rv[++count]=value.substring(last,idx).trim();\n\t\t\t\t last = ++idx;\n\t\t\t }\n\t\t\t rv[++count]=value.substring(last).trim();\n\t\t }\n\t\t return rv;\n\t }", "public static String[] toStringArray(String str) {\r\n\t\tList<Object> list = new ArrayList<Object>();\r\n\t\tfor (StringTokenizer st = new StringTokenizer(str); st.hasMoreTokens(); list.add(st.nextToken()))\r\n\t\t\t;\r\n\r\n\t\treturn toStringArray(list);\r\n\t}", "public String[] split(String line, String delimit) {\r\n\t\tlog.debug(\"line = \" + line);\r\n\t\tString[] a = null;\r\n\t\tVector<String> lines = new Vector<String>();\r\n\t\tline = line.replaceAll(\"\\\\\\\\\" + delimit, \"\\\\e\");\r\n\t\ta = line.split(delimit);\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tString thisLine = a[i];\r\n\t\t\tlog.debug(\"thisLine[\" + i + \"] = \" + thisLine);\r\n\t\t\tif (quoteText && thisLine.startsWith(\"\\\"\")) {\r\n\t\t\t\twhile (!thisLine.endsWith(\"\\\"\") && i < a.length) {\r\n\t\t\t\t\tthisLine += \",\" + a[++i];\r\n\t\t\t\t}\r\n\t\t\t\tif (i == line.length()) {\r\n\t\t\t\t\tthrow new RuntimeException(\"unterminated string quote\");\r\n\t\t\t\t}\r\n\t\t\t\tthisLine = thisLine.substring(1, thisLine.length()-2);\r\n\t\t\t\tthisLine.replaceAll(\"\\\\e\", delimit);\r\n\t\t\t}\r\n\t\t\tlines.add(thisLine);\r\n\t\t}\r\n\t\ta = new String[1];\r\n\t\treturn lines.toArray(a);\r\n\t}", "public static String[] splitLongString(\n String str, char separator, char quote)\n {\n int len = (str == null) ? 0 : str.length();\n if (str == null || len == 0)\n {\n return ArrayUtils.EMPTY_STRING_ARRAY;\n }\n\n int oldPos = 0;\n ArrayList list = new ArrayList();\n for (int pos = 0; pos < len; oldPos = ++pos)\n {\n // Skip quoted text, if any\n while ((pos < len) && (str.charAt(pos) == quote))\n {\n pos = str.indexOf(quote, pos + 1) + 1;\n\n if (pos == 0)\n {\n throw new IllegalArgumentException(\n \"Closing quote missing in string '\" + str + '\\'');\n }\n }\n\n boolean quoted;\n\n if (pos != oldPos)\n {\n quoted = true;\n\n if ((pos < len) && (str.charAt(pos) != separator))\n {\n throw new IllegalArgumentException(\n \"Separator must follow closing quote in string '\"\n + str + '\\'');\n }\n }\n else\n {\n quoted = false;\n pos = str.indexOf(separator, pos);\n if (pos < 0)\n {\n pos = len;\n }\n }\n\n list.add(quoted\n ? dequote(str, oldPos + 1, pos - 1, quote)\n : substring(str, oldPos, pos));\n }\n\n return (String[]) list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);\n }", "public static String[] split(String value) {\r\n\t\tif(value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn value.trim().split(\",\");\r\n\t}", "public static String[] split(String str, String separator, int max) {\n\t\tStringTokenizer tok = null;\n\t\tif (separator == null) {\n\t\t\t// Null separator means we're using StringTokenizer's default\n\t\t\t// delimiter, which comprises all whitespace characters.\n\t\t\ttok = new StringTokenizer(str);\n\t\t} else {\n\t\t\ttok = new StringTokenizer(str, separator);\n\t\t}\n\n\t\tint listSize = tok.countTokens();\n\t\tif (max > 0 && listSize > max) {\n\t\t\tlistSize = max;\n\t\t}\n\n\t\tString[] list = new String[listSize];\n\t\tint i = 0;\n\t\tint lastTokenBegin = 0;\n\t\tint lastTokenEnd = 0;\n\t\twhile (tok.hasMoreTokens()) {\n\t\t\tif (max > 0 && i == listSize - 1) {\n\t\t\t\t// In the situation where we hit the max yet have\n\t\t\t\t// tokens left over in our input, the last list\n\t\t\t\t// element gets all remaining text.\n\t\t\t\tString endToken = tok.nextToken();\n\t\t\t\tlastTokenBegin = str.indexOf(endToken, lastTokenEnd);\n\t\t\t\tlist[i] = str.substring(lastTokenBegin);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist[i] = tok.nextToken();\n\t\t\tlastTokenBegin = str.indexOf(list[i], lastTokenEnd);\n\t\t\tlastTokenEnd = lastTokenBegin + list[i].length();\n\t\t\ti++;\n\t\t}\n\t\treturn list;\n\t}", "public static char[] splitWordChar(String word) {\r\n\t\tchar[] letters = word.toCharArray();\r\n\t\treturn letters;\r\n\t}", "private static String[] tokenize(String str, String delim, boolean returnTokens) {\n StringTokenizer tokenizer = new StringTokenizer(str, delim, returnTokens);\n String[] tokens = new String[tokenizer.countTokens()];\n int i = 0;\n while (tokenizer.hasMoreTokens()) {\n tokens[i] = tokenizer.nextToken();\n i++;\n }\n return tokens;\n }", "private String[] decode(String encoding) {\n ArrayList<String> components = new ArrayList<String>();\n StringBuilder builder = new StringBuilder();\n int index = 0;\n int length = encoding.length();\n while (index < length) {\n char currentChar = encoding.charAt(index);\n if (currentChar == SEPARATOR_CHAR) {\n if (index + 1 < length && encoding.charAt(index + 1) == SEPARATOR_CHAR) {\n builder.append(SEPARATOR_CHAR);\n index += 2;\n } else {\n components.add(builder.toString());\n builder.setLength(0);\n index++;\n }\n } else {\n builder.append(currentChar);\n index++;\n }\n }\n components.add(builder.toString());\n return components.toArray(new String[components.size()]);\n }", "public static String[] breakInput(String input){\n\t\t//Split the thing up on spaces,\n\t\tString[] inputSplit = (input.split(\"\\\\s\"));\n\t\treturn inputSplit;\n\t}", "static void separarString(String s){\n\t\tString[] palabras = s.split(\"[ ]\");\n\t\tfor(int i = 0; i < palabras.length; i++){\n\t\t\tpalabras[i] = limpia(palabras[i]);\n\t\t\tSystem.out.println(palabras[i]);\n\t\t}\n\t}", "public char[] getArray(String str) {\n\t\tstr = str.trim();\n\t\tchar[] result = new char[str.length()];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tresult[i] = str.charAt(i);\n\n\t\t}\n\n\t\treturn result;\n\t}", "public static String [] splitwords(String s) {\n return splitwords(s, WHITESPACE);\n }", "public static String[] splitIntoWords(String s) {\n String[] words = s.split(\" \");\n return words;\n }", "public static String[] splitMessage(String msg){\n\t\t\n\t\tString content = msg;\n\t\tString[] msgArray = new String[msg.length()/252];\n\t\tint i=0;\n\t\twhile(content.length() >= 252) {\n\t\t msgArray[i] = content.substring(0, 252);\n\t\t i++;\n\t\t content = content.substring(252);\n\t\t}\n\t\treturn msgArray;\n\t}", "public static String getDigits(String s, String splitChar)\r\n {\r\n if(isEmpty(s))\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer();\r\n int len = s.length();\r\n boolean noPreDigit = false,firstDigit=true;\r\n for(int n=0; n < len; n++)\r\n {\r\n char c = s.charAt(n);\r\n if(Character.isDigit(c))\r\n {\r\n if(noPreDigit && !firstDigit)\r\n {\r\n buf.append(splitChar);\r\n } \r\n buf.append(c);\r\n noPreDigit = false;\r\n firstDigit = false;\r\n }\r\n else\r\n {\r\n noPreDigit = true;\r\n }\r\n }\r\n \r\n return buf.toString();\r\n }", "public List<ColouredString> split(String string) {\n List<ColouredString> result = new ArrayList<ColouredString>();\n \n String[] parts = content.split(string);\n for (String s : parts) {\n result.add(new ColouredString(colour, s));\n }\n \n return result;\n }", "public static char[] strinigToCharArray(String str) {\r\n // str.getChars(0, 0, dst, 0);\r\n return str.toCharArray();\r\n }", "static ArrayList<String> split_words(String s){\n ArrayList<String> words = new ArrayList<>();\n\n Pattern p = Pattern.compile(\"\\\\w+\");\n Matcher match = p.matcher(s);\n while (match.find()) {\n words.add(match.group());\n }\n return words;\n }", "public static String[] slashPartition(String str) {\n return partition(str, '/');\n }", "@Override\n public String[][] splitFaces( byte[] chars, boolean isUTF8 )\n {\n ArrayList<String[]> faces = new ArrayList<>();\n ByteArrayInputStream bais = new ByteArrayInputStream( chars );\n InputStreamReader isr;\n try {\n isr = new InputStreamReader( bais, isUTF8? \"UTF8\" : \"ISO8859_1\" );\n } catch( java.io.UnsupportedEncodingException uee ) {\n Log.i( TAG, \"splitFaces: %s\", uee.toString() );\n isr = new InputStreamReader( bais );\n }\n\n int[] codePoints = new int[1];\n\n // \"A aB bC c\"\n boolean lastWasDelim = false;\n ArrayList<String> face = null;\n for ( ; ; ) {\n int chr = -1;\n try {\n chr = isr.read();\n } catch ( java.io.IOException ioe ) {\n Log.w( TAG, ioe.toString() );\n }\n if ( -1 == chr ) {\n addFace( faces, face );\n break;\n } else if ( SYNONYM_DELIM == chr ) {\n Assert.assertNotNull( face );\n lastWasDelim = true;\n continue;\n } else {\n String letter;\n if ( chr < 32 ) {\n letter = String.format( \"%d\", chr );\n } else {\n codePoints[0] = chr;\n letter = new String( codePoints, 0, 1 );\n }\n // Ok, we have a letter. Is it part of an existing\n // one or the start of a new? If the latter, insert\n // what we have before starting over.\n if ( null == face ) { // start of a new, clearly\n // do nothing\n } else {\n Assert.assertTrue( 0 < face.size() );\n if ( !lastWasDelim ) {\n addFace( faces, face );\n face = null;\n }\n }\n lastWasDelim = false;\n if ( null == face ) {\n face = new ArrayList<>();\n }\n face.add( letter );\n }\n }\n\n String[][] result = faces.toArray( new String[faces.size()][] );\n return result;\n }", "private ArrayList<String> stringToArrayList(String group, String splitter) {\n\t\t\n\t\t// Temp variables for splitting the string\n\t\tString[] splitString = TextUtils.split(group, splitter);\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\t\n\t\t\n\t\tfor(int i=0; i<splitString.length; i++){\n\t\t\tLog.v(TAG, \"Read group \" + splitString[i]);\n\t\t\tal.add(splitString[i]);\n\t\t}\n\t\t\n\t\treturn al;\n\t}", "private static char[] input(String string) {\n\t\tchar[] result = new char[4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tresult[i] = string.charAt(i);\n\t\treturn result;\n\t}", "public static String[] split(String text, Pattern pattern) {\r\n\t\tif (text.length() == 0) {\r\n\t\t\treturn EMPTY_STRING_ARRAY;\r\n\t\t} else {\r\n\t\t\treturn pattern.split(text, -1);\r\n\t\t}\r\n\t}", "private java.util.ArrayList<String> textSplit(String splitted) {\n java.util.ArrayList<String> returned = new java.util.ArrayList<String>();\n String relatedSeparator = this.getLineSeparator(splitted);\n String[] pieces = splitted.split(relatedSeparator + relatedSeparator);\n String rstr = \"\";\n for (int cpiece = 0; cpiece < pieces.length; cpiece++) {\n String cstr = pieces[cpiece];\n if (rstr.length() + cstr.length() > maxLength) {\n if (!rstr.isEmpty()) {\n returned.add(rstr);\n rstr = cstr;\n }\n else {\n returned.add(cstr);\n }\n }\n else {\n if (rstr.equals(\"\")) {\n rstr = cstr;\n }\n else {\n rstr = rstr + lineSeparator + lineSeparator + cstr;\n }\n }\n if (cpiece == pieces.length - 1) {\n returned.add(rstr);\n }\n }\n return returned;\n }", "public static void main(String[] args) {\nString str=\"This is Batch \";\nString Arr[]=str.split(\"i\");\nSystem.out.println(Arr.length);\nSystem.out.println(Arr[0]);\nSystem.out.println(Arr[1]);\nSystem.out.println(Arr[2]);\n\t}", "public static String [] splitwords(String s, \n\t\t\t\t String whiteSpace,\n\t\t\t\t char citChar) {\n boolean bCit = false; // true when inside citation chars.\n Vector v = new Vector(); // (String) individual words after splitting\n StringBuffer buf = new StringBuffer(); \n int i = 0; \n \n while(i < s.length()) {\n char c = s.charAt(i);\n\n if(bCit || whiteSpace.indexOf(c) == -1) {\n\t// Build up word until we breaks on either a citation char or whitespace\n\tif(c == citChar) {\n\t bCit = !bCit;\n\t} else {\n\t if(buf == null) {\n\t buf = new StringBuffer();\n\t }\n\t buf.append(c);\n\t}\n\ti++;\n } else {\t\n\t// found whitespace or end of citation, append word if we have one\n\tif(buf != null) {\n\t v.addElement(buf.toString());\n\t buf = null;\n\t}\n\n\t// and skip whitespace so we start clean on a word or citation char\n\twhile((i < s.length()) && (-1 != whiteSpace.indexOf(s.charAt(i)))) {\n\t i++;\n\t}\n }\n }\n\n // Add possible remaining word\n if(buf != null) {\n v.addElement(buf.toString());\n }\n \n // Copy back into an array\n String [] r = new String[v.size()];\n v.copyInto(r);\n \n return r;\n }", "public static String[] stringToStringArray(String s, String div){\n\t\tString[] ugh = s.split(div);\n\t\tfor (int i=0; i<ugh.length; i++){\n\t\t\t//System.out.println(ugh[i]);\n\t\t\tif (ugh[i].equals(\"<-_->\")){\n\t\t\t\tugh[i] = \"\";\n\t\t\t\t//System.out.println(\"fix! \"+ugh[i]);\n\t\t\t}\n\t\t}\n\t\treturn ugh;\n\t}", "static String[] SplitText(String input, String regex) {\n ArrayList<String> res = new ArrayList<String>();\n Pattern p = Pattern.compile(regex);\n Matcher m = p.matcher(input);\n int pos = 0;\n while (m.find()) {\n res.add(input.substring(pos, m.start()));\n res.add(input.substring(m.start()+1, m.end()-1));\n pos = m.end();\n }\n if(pos < input.length()) res.add(input.substring(pos));\n return res.toArray(new String[res.size()]);\n }", "public void splitString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\tString[] strings = sentence.split(\" \");\n\t\t\tSystem.out.println(\"Length is \" + strings.length);\n\n\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t\tSystem.out.println(strings[index]);\n\t\t}", "public static String[] splitWords(String str){\r\n\t\tArrayList<String> wordsList= new ArrayList<String>();\r\n\t\t\r\n\t\tfor(String s:str.split(\" \")){\r\n\t\t\tif(!s.isEmpty()) wordsList.add(s);\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn wordsList.toArray(new String[wordsList.size()]);\r\n\t}", "public static String[] stringToStringArray(String instr, String delim)\n throws NoSuchElementException, NumberFormatException {\n StringTokenizer toker = new StringTokenizer(instr, delim);\n String stringArray[] = new String[toker.countTokens()];\n int i = 0;\n \n while (toker.hasMoreTokens()) {\n stringArray[i++] = toker.nextToken();\n }\n return stringArray;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str= \"I liked Java, did you like it\";\n\t\t\n\t\tString arr[]=str.split(\"d\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\nString str1[]=str.split(\" \");\n\t\t\n\t\tSystem.out.println(Arrays.toString(str1));\n\t\t\n\t\t\n\t}", "private static List<String> stringToList(String string) {\n\t // Create a tokenize that uses \\t as the delim, and reports\n\t // both the words and the delimeters.\n\t\tStringTokenizer tokenizer = new StringTokenizer(string, \"\\t\", true);\n\t\tList<String> row = new ArrayList<String>();\n\t\tString elem = null;\n\t\tString last = null;\n\t\twhile(tokenizer.hasMoreTokens()) {\n\t\t\tlast = elem;\n\t\t\telem = tokenizer.nextToken();\n\t\t\tif (!elem.equals(\"\\t\")) row.add(elem);\n\t\t\telse if (last.equals(\"\\t\")) row.add(\"\");\n\t\t\t// We need to track the 'last' state so we can treat\n\t\t\t// two tabs in a row as an empty string column.\n\t\t}\n\t\tif (elem.equals(\"\\t\")) row.add(\"\"); // tricky: notice final element\n\t\t\n\t\treturn(row);\n\t}" ]
[ "0.7499128", "0.7397076", "0.73797685", "0.7330122", "0.717519", "0.7109664", "0.7106869", "0.7096227", "0.7078358", "0.7076035", "0.6988742", "0.6986643", "0.6899004", "0.681711", "0.6772656", "0.6764232", "0.67285454", "0.65675807", "0.65097725", "0.6488246", "0.6465824", "0.64515376", "0.6413639", "0.64123607", "0.64117944", "0.639556", "0.6366258", "0.6355253", "0.6339226", "0.6295461", "0.629419", "0.628524", "0.62820995", "0.626575", "0.62411165", "0.62308687", "0.62217355", "0.61745554", "0.6150186", "0.6144169", "0.61351985", "0.61293703", "0.6122759", "0.61186856", "0.6113988", "0.6100588", "0.6089999", "0.6077387", "0.6072327", "0.6054727", "0.6041529", "0.6016823", "0.5978244", "0.5975338", "0.5969888", "0.59341323", "0.5914993", "0.5912816", "0.5911349", "0.5898413", "0.58959746", "0.58873713", "0.58866984", "0.5876549", "0.5864298", "0.58522934", "0.5851549", "0.5848426", "0.58453625", "0.5834948", "0.58093655", "0.580393", "0.580007", "0.5798601", "0.57939327", "0.5789989", "0.57844406", "0.5756513", "0.5745177", "0.5740901", "0.5725611", "0.57223815", "0.570374", "0.56950796", "0.5693147", "0.5685309", "0.56820613", "0.56706494", "0.56663764", "0.5646405", "0.56418866", "0.5636041", "0.5629861", "0.5628723", "0.5627122", "0.5617015", "0.55991656", "0.5583444", "0.5581618", "0.5574504" ]
0.58470863
68
returns a boolean value weather or not the word contains the key. has an option to ignore the case of the key
private boolean contains(String key, String word, boolean caseSensitive) { int keyLen = key.length(); if (caseSensitive) { for (int i = 0; i <= word.length() - keyLen; i++) { if (word.substring(i, i + keyLen).equals(key)) { return true; } } } else { for (int i = 0; i <= word.length() - keyLen; i++) { if (word.substring(i, i + keyLen).equalsIgnoreCase(key)) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(String word) {\r\n\r\n return dictionaryMap.containsKey(word.toUpperCase());\r\n\r\n }", "boolean contains(String key);", "boolean contains(String key);", "public boolean contains(String word) {\r\n\t\treturn dict.contains(word);\r\n\t}", "public boolean contains(String key);", "public static Boolean isContains(String key){\r\n return scenarioContext.containsKey(key.toString());\r\n }", "private boolean contains(String key) {\n return contains(dict, key);\n }", "public boolean containsKey(String key);", "public boolean search(String word) {\n boolean allFlag = false;\n for (Entry<String, String> entry : dataStructure.entrySet()) {\n boolean flag = true;\n String key = entry.getKey();\n if (key.equals(word)) {\n return true;\n }\n if (key.length() != word.length()) {\n return false;\n }\n\n char[] aArr = word.toCharArray();\n char[] bArr = key.toCharArray();\n for (int i = 0; i < aArr.length; i++) {\n if (aArr[i] == '.') {\n continue;\n } else {\n if (aArr[i] != bArr[i]) {\n flag = false;\n break;\n }\n }\n\n }\n if (flag) {\n return true;\n }\n }\n return allFlag;\n }", "public boolean contains(String key) {\n\n char[] characters = key.trim().toCharArray();\n\n TrieNode trieNode = root; // current trie node\n\n boolean contains = true;\n\n for (char ch : characters) {\n\n // get the character represent index from the current trie node\n int index = ch - 'a';\n if (trieNode.offsprings[index] == null) {\n contains = false;\n break;\n }\n\n trieNode = trieNode.offsprings[index];\n }\n\n if (trieNode != null) {\n contains = trieNode.isRepresentACompleteWord;\n }\n\n return contains;\n }", "boolean isNotKeyWord(String word);", "boolean hasWord();", "private static boolean findKeyWord(String str, String kw, boolean caseSensitive) {\r\n\t\t\r\n\t\tif(str.isEmpty() || kw.isEmpty()) {\r\n\t\t\tSystem.out.println(\"One of your input lines was blank. Returning false.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif(str.length() < kw.length()) {\r\n\t\t\tSystem.out.println(\"KW longer than str. Returning false.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif(!caseSensitive) {\r\n\t\t\tif(str.contains(kw)) {\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tString str1 = str.toLowerCase();\r\n\t\t\tString kw1 = str.toLowerCase();\r\n\t\t\tif(str1.contains(kw1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean contains(String word) {\n\t\treturn invertedIndex.containsKey(word);\n\t}", "boolean hasKeyword();", "boolean containsKey(String keyLabel);", "public boolean containsSearchKey(String key) {\n if (this.name.toLowerCase().contains(key) || this.name.toLowerCase().contains(Dictionary.parseKey(key))) {\n return true;\n }\n if (this.address.toLowerCase().contains(key) || this.address.toLowerCase().contains(Dictionary.parseKey(key))) {\n return true;\n }\n return this.faculty.toLowerCase().contains((key))\n || this.faculty.toLowerCase().contains(Dictionary.parseKey(key));\n }", "public boolean containsKey(String s){\r\n return this.get(s) != 0;\r\n }", "public boolean contains (String word) {\n //boolean res = true ;\n\n if(word.length()>0){\n\n String lettre = Character.toString(word.charAt(0));\n if(this.fils.containsKey(lettre)){\n String ssChaine = word.substring(1);\n return this.fils.get(lettre).contains(ssChaine);\n\n }\n else{\n return false;\n }\n }\n else{\n return /*res &&*/ this.fin;\n }\n }", "boolean containsKey(CoreLabel key);", "public boolean containsWord(String word) {\n\t\treturn index.containsKey(word);\n\t}", "public boolean search(String word)\n {\n return true;\n }", "public boolean isMatchFilterKey(String key) {\n boolean match = false;\n\n // Validate the title contains the key\n if (title.contains(key)) {\n System.out.println(String.format(\"Title for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Title for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the Name contains the key\n if (name.contains(key)) {\n System.out.println(String.format(\"Name for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Name for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the overview contains the key\n if (overview.contains(key)) {\n System.out.println(String.format(\"Overview for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Overview for Talent %s dose not contains the search key %s \", name, key));\n\n // Validate the skills contains the key\n if (skills.contains(key)) {\n System.out.println(String.format(\"Skills for Talent %s contains the search key %s \", name, key));\n match = true;\n }else System.out.println(String.format(\"Skills for Talent %s dose not contains the search key %s \", name, key));\n\n return match;\n }", "boolean hasKey(String key);", "public boolean search(String word) {\n // 1. 遍历 每个 字母 去掉 从list 里去出来结果 比较list 每个结果\n for (int i = 0; i < word.length(); i++) {\n String key = word.substring(0, i) + word.substring(i+1);\n List<int[]> indexAndCharList = dictonary.getOrDefault(key, new ArrayList<>());\n for (int[] indexAndChar : indexAndCharList) {\n if (indexAndChar[0] == i && indexAndChar[1] != (word.charAt(i) - 'a')) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean containsWord(String keyword){\n /* to be implemented in part(b) */\n if(description.indexOf(\" \"+ keyword+ \" \")!==-1){\n return true; \n }\n else if(description.indexOf(\" \"+keyword)=0){\n return true \n }\n else return false;\n }", "public boolean search(String word) {\n if (value == null || word == null) {\n return false;\n }\n if (value.contains(word)) {\n return true;\n }\n return false;\n }", "public boolean inCache(String word){\n\t//\tSystem.out.println(\"checking word is: \"+\"-\"+word+\"-\");\n\t//\tSystem.out.println(source.containsValue(word));\n\t\tif(source.get(word) != null){\n\t//\t\tSystem.out.println(\"This word is in the cache dictionary \");\n\t\t\treturn true;\n\t\t}\n\t//\tSystem.out.println(\"this word is not in the cache dictionary \");\n\t\treturn false;\n\t}", "public boolean hasWord(String word) {\n return cache.indexOf(word) >= 0;\n }", "public boolean findWord ( String word ) {\n\t\tif(this.contains(word))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t\t\n\t\t/**old code written by Professor below\n\t\t * \n\t\t */\n\t\t//return isWordInDictionaryRecursive( word, 0, words.size()-1);\n\n\t}", "boolean containsUtilize(String word)\n {\n return word.contains(\"utilize\");\n }", "boolean has(String key);", "public boolean contains(String word, String path) {\n\t\treturn contains(word) ? invertedIndex.get(word).containsKey(path) : false;\n\t}", "public boolean contains (String key)\n {\n use (key);\n return map.containsKey (key);\n }", "static boolean isEnglishWord(String str) {\r\n return localDictionary.contains(str);\r\n }", "public boolean wordExists(String word)\n\t{\n\t\t//checks to make sure the word is a word that starts with a lowercase letter, otherwise return false\n\t\tif(word.charAt(0) >= 'a' && word.charAt(0) <= 'z')\n\t\t{\n\t\t\tchar letter = word.charAt(0);\n\t\t\t\n\t\t\treturn (myDictionaryArray[(int)letter - (int)'a'].wordExists(word));\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}", "public boolean isInDictionary(String word) {\n return isInDictionary(word, Language.ENGLISH);\n }", "public boolean contains(String key)\r\n { return get(key) != null; }", "@Override\n\tpublic boolean containsWord(String word) {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.containsWord(word);\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}", "private boolean isWord(String word) {\n\t\treturn dict.isWord(word);\n\t}", "public boolean containsKey(String n){\n\t\treturn name.containsKey(n);\n\t}", "public boolean contains(String key) {\n return find(key) != null;\n }", "public boolean search(String word) {\n\t\t\tTrieNode prefix = searchPrefix(word);\n\t\t\treturn prefix == null ? false : prefix.isWord == true;\n\t\t}", "public boolean search(String word) {\n\t\treturn startsWith(word) && cur.isWord == true;\n\t}", "private boolean matchedKeyword(String keyword, String[] tokens) {\n\t\tfor (int i = 0; i < tokens.length; i++)\n\t\t\tif (keyword.equalsIgnoreCase(tokens[i]))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean containsKey(Key key) ;", "public boolean definesKey( final String key ) {\n return values.containsKey( key );\n }", "boolean isWord(String potentialWord);", "public Boolean checkWord (String word,String line){\n return line.contains(word);\n }", "public boolean search(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(temp == null) return false;\n tn = temp;\n }\n return tn.flag;\n }", "public boolean exists(String word)\n {\n boolean rtn = false;\n\n if(word.length() > 0)\n {\n StringBuffer buff = new StringBuffer().append(\"^\");\n buff.append(word.toLowerCase()).append(\"_\");\n\n String tmp = searchLexDb(buff.toString(), true);\n if(tmp.length() > 0)\n rtn = true;\n } // fi\n\n return(rtn);\n }", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }", "public boolean contains(String word) {\n Signature sig = new Signature(word);\n RadixTree node = find(sig);\n\n if (node != null) {\n return node.words.contains(word);\n } else {\n return false;\n }\n }", "public boolean containsKey(String key)\n\t{\n\t\tverifyParseState();\n\t\treturn values.containsKey(key);\n\t}", "public boolean match(String word)\n {\n int flags = 0;\n if (ignoreCase)\n {\n flags = flags | Pattern.CASE_INSENSITIVE;\n }\n return Pattern.compile(pattern, flags).matcher(word).find();\n }", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\tString uKey = key.toString().toUpperCase();\n\t\treturn super.containsKey(uKey);\n\t}", "private boolean isWord(String word) {\n String pattern = \"^[a-zA-Z]+$\";\n if (word.matches(pattern)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean search(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)) {\n return false;\n }\n node = node.get(curr);\n }\n return node.isEnd();\n\n }", "public boolean existsKey(String inKey);", "public boolean contains(String word) {\n return indexOf(word) > -1;\n }", "private boolean isValidWord(String word){\n if (trie.searchWord(word)){\n return true;\n } else {\n return false;\n }\n }", "boolean contains(String value);", "public boolean search(String word) {\n return searchWord(word, true);\n }", "public boolean contains(String word) {\n\t\tif (wordList.contains(word)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t// TODO Add your code here\n\t}", "public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}", "public boolean contains(String str);", "private boolean checkKey(char k)\n {\n \tint index = word.indexOf(k);\n \tif (index == -1)\n \t{\n \t\t//k doesn't exist in word\n \t\tguess_number--;\n \t\treturn false;\n \t}\n \telse\n \t{\n \t\t//k exist in the word\n \t\twhile (index != -1)\n \t\t{\n \t\t\t//update mask\n \t\t\tmask = mask.substring(0, index)+k+mask.substring(index+1);\n \t\t\t//update index\n \t\t\tindex = word.indexOf(k, index + 1);\n \t\t}\n \t\treturn true;\n \t}\n \t\n }", "public boolean checkDictionary(String word) {\n Node current = root;\n String check = word.toLowerCase().trim();\n // parse through the String word\n for (int i = 0; i < check.length(); i++) {\n // get the index of the selected character in the node array\n int index = getIndex(check.charAt(i));\n if (index < 0) {\n return false;\n }\n \n // if the iteration is not at the last character\n if (i < check.length() - 1) {\n // get the next node\n Node next = current.nexts[index];\n // if there is a next node, move to it\n if (next != null) {\n current = next;\n }\n // otherwise, the word does not exist as its path is longer than where it went in the dictionary\n else return false;\n }\n // if the iteration is on the last character\n else {\n // return true if the value at the node index is true, false otherwise\n return current.wordExists(index);\n }\n }\n // somehow the loop exitted without a return statement in the middle of it and the word does not exist\n return false;\n }", "public static boolean searchWordInTemplateString(TemplateString tStr, String word) {\n\t\tString text = tStr.string;\r\n\t\tint currentIndex = 0;\r\n\t\tfor(int j = 0; j < text.length() && currentIndex < word.length(); j++) {\r\n\t\t\tchar c = text.charAt(j);\r\n\t\t\t// Check uppercase\r\n\t\t\tif(c >= 'A' && c <= 'Z') c = (char) (c + 'a' - 'A');\r\n\t\t\t// Check if equal to current word char\r\n\t\t\tif(c == word.charAt(currentIndex)) {\r\n\t\t\t\t// If last index then the word exists in template\r\n\t\t\t\tif(currentIndex == word.length() - 1) return true;\r\n\t\t\t\t// Otherwise add one to index\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(currentIndex > 0 && ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9'))) {\r\n\t\t\t\t// If the char was alphanumerical but unequal, the word train was broken..\r\n\t\t\t\tcurrentIndex = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isKeyword(String value) {\n return Keywords.isKeyword(value);\n }", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "boolean containsLabels(java.lang.String key);", "public boolean\tcontains(String e) {\n\t\treturn map.containsKey(e);\n\t}", "boolean containsKey(K key);", "boolean containsKey(K key);", "private boolean isContain(String fullText, String searchString) {\n String pattern = \"\\\\b\" + searchString + \"\\\\b\";\n Pattern p = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE); //make the keyword case insensitive\n Matcher m = p.matcher(fullText);\n return m.find();\n }", "public boolean wordExists(int index) {\n // if the specified index is between 0 and 26\n if (index >= 0 && index < wordExists.length) {\n // return the value at the index\n return wordExists[index];\n }\n // else return false\n else {\n return false;\n }\n }", "public boolean contains(Key key);", "public boolean search(String word) {\n return helper(word,root,0);\n }", "public boolean search(String word) {\n\n return helper(word, 0, root);\n\n }", "boolean contains(String name);", "public boolean search(String word) {\n\t\tTrie curr = this;\n\t\t\n\t\tfor (Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch];\n\t\t\t\n\t\t\tif (n == null)\t\treturn false;\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\t\n\t\treturn curr.isWord;\n\t}", "public boolean search(String word){\n\t\tint hash = getHash(word);\n\t\tif (hash != INVALID){\n\t\t\treturn m_arraylists[hash].search(word);\n\t\t}\n\t\treturn false;\n\t}", "boolean isCaseInsensitive();", "private static boolean matchSearchWord(String word, String matchWord) {\n // The regex is to match words even though they contain special characters.\n // If this wasn't done the function would not match e.g. Java to \"Java\"\n return word.toLowerCase().replaceAll(\"[^a-zA-Z0-9]\", \"\").equals(matchWord.toLowerCase());\n }", "public boolean search(String word) {\n Node node = getNode(word);\n\n return node != null && node.isWord == true;\n }", "public boolean search(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n return false;\n }\n now = now.children.get(c);\n }\n return now.hasWord;\n}", "public boolean contains(String word) {\n word = word.toUpperCase();\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char ch = word.charAt(i);\n if (node.get(ch) == null) {\n return false;\n }\n node = node.get(ch);\n }\n return node.isLeaf;\n }", "public boolean find(T word);", "boolean containsField(\n java.lang.String key);", "public abstract boolean isKeyword(@Nullable String text);", "public boolean containsKey (String key)\n\t{\n\t\treturn properties.containsKey(key);\n\t}", "public boolean search(String word) {\n Trie cur = this;\n int i = 0;\n while(i < word.length()) {\n int c = word.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n return false;\n }\n cur = cur.tries[c];\n i++;\n }\n return cur.hasWord;\n }", "public boolean search(String word) {\n TrieNode tail = match(root, word.toCharArray(), 0);\n return tail != null && tail.isWord;\n }", "private String isKeyAlreadyFormed(String Key){\n\t\tfor(String key : userData.keySet()){\n\t\t\tif(key.startsWith(Key)){\n\t\t\t\treturn key;\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "@Override\n public boolean contains(String key) {\n if (key == null || key.length() == 0 || root == null)\n return false;\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n Node next = p.next.get(current);\n if (next == null) {\n return false;\n }\n p = next;\n }\n return p.isKey;\n }" ]
[ "0.771723", "0.74111795", "0.74111795", "0.7362959", "0.72659385", "0.72508514", "0.7170371", "0.7166265", "0.7164029", "0.7138834", "0.7135822", "0.69687027", "0.6942876", "0.6924427", "0.69214123", "0.6899609", "0.6886464", "0.6874697", "0.68666595", "0.68569636", "0.68354404", "0.68080246", "0.6803969", "0.6786073", "0.67702794", "0.6764125", "0.6746767", "0.6735147", "0.67089033", "0.6661206", "0.66506517", "0.6635455", "0.66265166", "0.6619628", "0.6609729", "0.6607326", "0.66059834", "0.66053706", "0.65701264", "0.6563081", "0.65627456", "0.65599406", "0.65273434", "0.6515183", "0.65067565", "0.649921", "0.6483015", "0.6482263", "0.64560145", "0.6455066", "0.6453808", "0.64482725", "0.64431256", "0.64068353", "0.64052004", "0.640441", "0.64042413", "0.6400698", "0.63967675", "0.63653386", "0.6357992", "0.6346015", "0.6334953", "0.63324606", "0.63324285", "0.6330783", "0.63231015", "0.63227606", "0.63197404", "0.63159245", "0.631178", "0.63002497", "0.6292736", "0.6292736", "0.6292736", "0.6292736", "0.6268348", "0.6264574", "0.6264574", "0.6258944", "0.62570214", "0.62513477", "0.6246408", "0.6242476", "0.62382156", "0.62346333", "0.622763", "0.62270063", "0.6224352", "0.62236774", "0.62231976", "0.6219923", "0.62109447", "0.6203944", "0.62006193", "0.61933714", "0.6190517", "0.61838347", "0.6179446", "0.61681914" ]
0.77986616
0
outputs each line in the designated file as an Entry in a String[]
private String[] readFile(String location) { try { BufferedReader reader = new BufferedReader(new FileReader(location)); ArrayList<String> document = new ArrayList<String>(); String currLine; // continue to append until the end of file has been reached while ((currLine = reader.readLine()) != null) { // avoiding empty strings if (!currLine.isEmpty()) document.add(currLine); } reader.close(); return document.toArray(new String[1]); } catch (IOException e) { e.printStackTrace(); } // sadly neccessary default return case return new String[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] buildEntries(String a) {\n try {\n File file = new File(a);\n Scanner input = new Scanner(file);\n while (input.hasNextLine()) {\n String line=input.nextLine();\n String name=line.substring(line.indexOf(\"\\t\"));\n name=name.substring(0,name.lastIndexOf(\"H\"));\n name=name.substring(0,name.lastIndexOf(\"\\t\"));\n int entries=Integer.parseInt(line.substring(line.lastIndexOf(\"\\t\")+1,line.lastIndexOf(\"E\")));\n while (entries>0) {\n entryList.add(name);\n entries--;\n System.out.println(\"Added: \"+name);\n }\n}\n return drawBE(entryList,a);\n }\n catch(FileNotFoundException b) {\n System.out.println(\"Error, no entries\"); \n String ret[] = new String[6];\n ret[0]=\"NOFILE\";\n return ret;\n }\n }", "String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }", "static String[] copy(Scanner file, int lines){\t\t\n\t\tString[] array = new String[lines];\n\t\tfor(int i = 0; file.hasNextLine(); i++){\n\t\t array[i] = file.nextLine();\n\t\t}\n\t\treturn array;\n\t}", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "private ArrayList<String> readEntriesFromFile(String nameOfFile){\n\t\tArrayList<String> foundEntries = new ArrayList<String>();\n\t\t\n\t\ttry{\n\t\t\tFile file = new File(nameOfFile); \n\t\t\tScanner fileIn = new Scanner(file);\n\t\t\twhile (fileIn.hasNext()){\n\t\t\t\tString currentLine = fileIn.nextLine();\n\t\t\t\tfoundEntries.add(currentLine);\n\t\t\t} \n\t\t\tfileIn.close();\n\t\t}catch (IOException e){\n\t\t}\n\t\t\n\t\tif(foundEntries.size()==0){\n\t\t return null;\n\t\t}else{\n\t\t\treturn foundEntries;\n\t\t}\n\t}", "public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}", "private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }", "public ArrayList<String> readFile(File file) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line;\n\t\t\t\tbr.readLine();\n\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\tal.add(line);\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t} catch (IOException e) {\t\n\t\t\t}\n\t\treturn al;\n\t\t}", "public static final List<SignalEntry> read(File file) {\r\n List<SignalEntry> result = new ArrayList<SignalEntry>();\r\n LineNumberReader reader = null;\r\n try {\r\n reader = new LineNumberReader(new FileReader(file));\r\n String line;\r\n do {\r\n line = reader.readLine();\r\n if (\"Entry:\".equals(line)) {\r\n String algorithm = unquote(reader.readLine());\r\n String parameterName = unquote(reader.readLine());\r\n String parameterValue = unquote(reader.readLine());\r\n result.add(new SignalEntry(algorithm, parameterName, parameterValue));\r\n }\r\n } while (null != line);\r\n reader.close();\r\n } catch (IOException e) {\r\n if (null != reader) {\r\n try {\r\n reader.close();\r\n } catch (IOException e1) {\r\n }\r\n }\r\n }\r\n return result;\r\n }", "private void createLinesArray()\n {\n //This will iterate through the lines array\n for (int i = 0; i < lines.length; i++)\n {\n //Stop at end-of-File\n if (mapScanner.hasNextLine())\n {\n //Add the current line to the lines array\n lines[i] = mapScanner.nextLine();\n }\n }\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static String[] readLines(InputStream f) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(f, \"US-ASCII\"));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null)\n\t\t\tlines.add(line);\n\t\treturn lines.toArray(new String[0]);\n\t}", "public ArrayList<String> getInputByLines(Class c, String file){\n this.resourceName = file;\n input = new ArrayList<String>();\n headerLine = new String();\n getFileAsResourceNewLineDelineated(c);\n return this.input;\n }", "public void printFile() {\n\t\t\n\t\tfor(String[] line_i: linesArray) {\n\t\t\tSystem.out.println( Arrays.toString(line_i) );\n\t\t}\n\t}", "private List<String> getLine() throws FileNotFoundException {\n List<String> lines = new ArrayList<>();\n File f = new File(path);\n Scanner s = new Scanner(f);\n while(s.hasNext()){\n lines.add(s.nextLine());\n }\n return lines;\n }", "String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "protected String[] readInFile(String filename) {\n Vector<String> fileContents = new Vector<String>();\n try {\n InputStream gtestResultStream1 = getClass().getResourceAsStream(File.separator +\n TEST_TYPE_DIR + File.separator + filename);\n BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1));\n String line = null;\n while ((line = reader.readLine()) != null) {\n fileContents.add(line);\n }\n }\n catch (NullPointerException e) {\n CLog.e(\"Gest output file does not exist: \" + filename);\n }\n catch (IOException e) {\n CLog.e(\"Unable to read contents of gtest output file: \" + filename);\n }\n return fileContents.toArray(new String[fileContents.size()]);\n }", "private static String[] readFile(String file){\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tString line;\n\t\t\tString data = \"\";\n\t\t\twhile((line = in.readLine()) != null){\n\t\t\t\tdata = data + '\\n' + line;\t\t\t}\n\t\t\tin.close();\n\t\t\tString[] data_array = data.split(\"\\\\n\");\n\t\t\treturn data_array;\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tString[] shouldNeverReturn = new String[1];\n\t\treturn shouldNeverReturn;\n\t}", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "@SuppressWarnings(\"resource\")\n \tpublic String[] readTextFileOutputLinesArray(String fileName) throws IOException{\n \t BufferedReader in = new BufferedReader(new FileReader(Common.testOutputFileDir + fileName));\n \t String str=null;\n \t ArrayList<String> lines = new ArrayList<String>();\n \t while ((str = in.readLine()) != null) {\n \t if (!str.contains(\"helper\") && (str.length() != 0)) { lines.add(str); }\n \t }\n \t String[] linesArray = lines.toArray(new String[lines.size()]);\n \t return linesArray;\n \t}", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "public static List<String> readLineFromFile(File file) {\r\n List<String> result = new ArrayList<String>();\r\n LineNumberReader lnr = null;\r\n try {\r\n lnr = new LineNumberReader(new BufferedReader(\r\n new InputStreamReader(new FileInputStream(file), Charset\r\n .defaultCharset().name())));\r\n for (String line = lnr.readLine(); line != null; line = lnr\r\n .readLine()) {\r\n result.add(line);\r\n }\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n if (lnr != null) {\r\n try {\r\n lnr.close();\r\n } catch (IOException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n return result;\r\n }", "@SuppressWarnings(\"resource\")\n \tpublic String[] readTextFileOutputLinesArray(String path, String fileName) throws IOException{\n \t BufferedReader in = new BufferedReader(new FileReader(path + File.separator + fileName));\n \t String str=null;\n \t ArrayList<String> lines = new ArrayList<String>();\n \t while ((str = in.readLine()) != null) {\n \t if (!str.contains(\"helper\") && (str.length() != 0)) { lines.add(str); }\n \t }\n \t String[] linesArray = lines.toArray(new String[lines.size()]);\n \t return linesArray;\n \t}", "public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }", "public String[] readLines() {\n\t\tVector linesVector = new Vector(); ;\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\twhile (!eof) {\n\t\t\t\tString line = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\tlinesVector.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\tString[] lines = new String[linesVector.size()];\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tlines[i] = (String) (linesVector.get(i));\n\t\t}\n\t\treturn lines;\n\t}", "public void printAll(String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tSystem.out.println(file + \" Adress book\");\n\t\tSystem.out.println(arrayList.toString());\n\n\t}", "private static String[] readFile(String path) throws FileNotFoundException{\n\t\tjava.io.File file = new java.io.File(path);\n\t\tjava.util.Scanner sc = new java.util.Scanner(file); \n\t\tStringBuilder content = new StringBuilder();\n\t\twhile (sc.hasNextLine()) {\n\t\t String line = sc.nextLine();\n\t\t if (!line.startsWith(\"!--\")){\n\t\t \tline = line.trim();\n\t\t \tString[] lineContent = line.split(\"/\");\n\t\t \tfor (String entry : lineContent){\n\t\t \t\tcontent.append(entry);\n\t\t \t\tcontent.append(\"/\");\n\t\t \t}\n\t\t \tcontent.append(\"!\");\n\t\t }\n\t\t}\n\t\tsc.close();\n\t\treturn content.toString().split(\"!\");\n\t}", "public String[] getFile() throws IOException {\n\t\n\t\n\ttry {\n\tFileReader reader = new FileReader(path);\n\tBufferedReader textReader = new BufferedReader(reader); // creates buffered file reader again\n\t\n\tint numberOfLines = getLines(); // calls the method above to know how many lines there are\n\tString[ ] textData = new String[numberOfLines]; //creates an array the size of the amount of lines the file has\n\t\n\tfor (int i=0; i < numberOfLines; i++) {\n\t\ttextData[ i ] = textReader.readLine(); // go through file and read each line into its own array space\n\t\t}\n\t\n\ttextReader.close( ); //reader is done\n\treturn textData; // return array\n\t} catch (IOException e) {\n\t\tString[] exceptionString = new String[1];\n\t\texceptionString[0] = \"nothing\";\n\t\treturn exceptionString;\n\t}\n}", "public static ArrayList<ArrayList<Feiertag>> produceFromString(File[] f) {\n\t\tArrayList<ArrayList<Feiertag>> ret = new ArrayList<ArrayList<Feiertag>>();\n\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\tArrayList<Feiertag> temp = new ArrayList<Feiertag>();\n\t\t\ttry {\n\t\t\t\tScanner myReader = new Scanner(f[i]);\n\t\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\t\tString data = myReader.nextLine();\n\t\t\t\t\ttemp.add(new Feiertag(FeiertageFactory.toDate(data), FeiertageFactory.toName(data)));\n\t\t\t\t}\n\t\t\t\tmyReader.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tret.add(temp);\n\t\t}\n\t\treturn ret;\n\t}", "public static ArrayList<String> loadFileStrings(File f) {\n\t\tArrayList<String> fileStrings = new ArrayList<String>();\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t\tfileStrings.add(line);\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn fileStrings;\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\n\t\tFile file = new File(\"B:\\\\output.txt\");\n\t\t\n\t\tScanner input = new Scanner(file);\n\t\t\n\t\twhile(input.hasNextLine()) {\n\t\t\tString tmp = input.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(tmp);\n\t\t}\n\t\tinput.close();\n\t}", "public static List<String> processFileLineByLine(MultipartFile file) throws IOException {\n try(BufferedReader fileBufferReader = new BufferedReader(new InputStreamReader(file.getInputStream()))) {\n return fileBufferReader.lines().collect(Collectors.toList());\n }\n }", "private Object[] fetchTextFile(String filePathString){\n try (Stream<String> stream = Files.lines(Paths.get(filePathString))) {\n return stream.toArray();\n }\n catch (IOException ioe){\n System.out.println(\"Could not find file at \" + filePathString);\n return null;\n }\n\n }", "private ArrayList<char[]> getFileAsResourceByCharsNewLineDelineated(Class c){\n ArrayList<char[]> charLines = new ArrayList<char[]>();\n try{\n s = new Scanner(c.getResourceAsStream(resourceName)); \n while (s.hasNextLine()){\n char[] line = s.nextLine().toCharArray();\n charLines.add(line);\n }\n } catch(Exception e){\n e.printStackTrace();\n }\n return charLines;\n }", "public void readDataFromFile() {\n System.out.println(\"Enter address book name: \");\n String addressBookFile = sc.nextLine();\n Path filePath = Paths.get(\"C:\\\\Users\\\\Muthyala Aishwarya\\\\git\" + addressBookFile + \".txt\");\n try {\n Files.lines(filePath).map(line -> line.trim()).forEach(line -> System.out.println(line));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private List<String[]> extract(String file) {\n List<String[]> readIn = null;\n try {\n // instantiate file reader object\n FileReader fr = new FileReader(file);\n\n // instantiate csv reader object\n CSVReader csvReader = new CSVReaderBuilder(fr).build();\n readIn = csvReader.readAll();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return readIn;\n }", "public static String[] getLines(String filename)\n throws IOException {\n\n\n try (\n FileInputStream inStream = new FileInputStream(filename);\n InputStreamReader reader = new InputStreamReader(inStream);\n BufferedReader buffer = new BufferedReader(reader)\n ) {\n List<String> lines = new LinkedList<>();\n for (String line = buffer.readLine();\n line != null;\n line = buffer.readLine()) {\n line = line.trim();\n if (!line.isEmpty()) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[0]);\n }\n }", "public static String[] readAllLines() {\n ArrayList<String> lines = new ArrayList<String>();\n while (hasNextLine()) {\n lines.add(readLine());\n }\n return lines.toArray(new String[lines.size()]);\n }", "public static String[] readFile() throws FileNotFoundException {\r\n\t\tScanner scan = new Scanner(new File(\"H:/My Documents/Eclipse/wordlist.txt\"));\r\n\t\tArrayList<String> a = new ArrayList<String>();\r\n\t\twhile (scan.hasNextLine()) {\r\n\t\t\ta.add(scan.nextLine());\r\n\t\t}\r\n\t\tString[] w = new String[a.size()];\r\n\t\tfor (int i = 0; i < a.size(); i++) {\r\n\t\t\tw[i] = a.get(i);\r\n\t\t}\r\n\t\tscan.close();\r\n\t\treturn w;\r\n\t}", "public Set<String> readFile(File file)throws IOException{\n Scanner scanner = new Scanner(file);\n StringBuilder stringBuilder = new StringBuilder();\n Set<String> data = new HashSet<>();\n\n while(scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n return data;\n }", "public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "List<String> obtenerlineas(String archivo) throws FileException;", "public String[] openFile() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Set the variable to the number of lines in the text file through the function in this class that is defined below\n\t\tnumberOfLines = readLines();\n\t\t//Creates an array of strings with size of how many lines of data there are in the file\n\t\tString[] textData = new String[numberOfLines];\n\t\t\n\t\t//Loop to read the lines from the text file for the song data\n\t\tfor (int i = 0; i < numberOfLines; i++)\n\t\t{\n\t\t\t//Read data from song file and into the string list\n\t\t\ttextData[i] = textReader.readLine();\n\t\t}\n\t\t\n\t\t//Close the BufferedReader that was opened\n\t\ttextReader.close();\n\t\t\n\t\t//Return the read data from the text file in the form of a string array\n\t\treturn textData;\n\t}", "public List<String> getStrings(String fileName) throws IOException {\n\n List<String> items = readFile (fileName);\n String text = String.join (\"\", items);\n\n return normalizeCsv (text + \" \");\n }", "private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}", "private List<KeyFileEntry> convertLinesIntoInMemoryObjectList(List<String> lines) {\n List<KeyFileEntry> retList = new ArrayList<>(1250);\n\n int i = 0;\n\n // Ignore the header lines and information\n for (; i < lines.size(); i++) {\n String lineIgnore = lines.get(i);\n if (lineIgnore.startsWith(\"______\")) {\n break;\n }\n }\n\n // Ignore underscore ___ line\n i++;\n\n // reached entries lines\n KeyFileEntry entry = new KeyFileEntry();\n\n // create in memory list of objects\n while (i < lines.size()) {\n String line = lines.get(i);\n\n // For terminating line no need to complete loop\n if (line.equals(\"//\")) {\n retList.add(entry);\n entry = new KeyFileEntry();\n i++;\n continue;\n }\n\n String[] tokens = line.split(SPLIT_SPACES);\n switch (tokens[0]) {\n case \"ID\":\n entry.id = tokens[1];\n break;\n case \"IC\":\n entry.ic = tokens[1];\n break;\n case \"AC\":\n entry.ac = tokens[1];\n break;\n case \"DE\":\n entry.de.add(tokens[1]);\n break;\n case \"SY\":\n entry.sy.add(tokens[1]);\n break;\n case \"HI\":\n entry.hi.add(tokens[1]);\n break;\n case \"GO\":\n entry.go.add(tokens[1]);\n break;\n case \"CA\":\n entry.ca = tokens[1];\n break;\n case \"WW\":\n entry.ww.add(tokens[1]);\n break;\n default:\n LOG.info(\"Unhandle line found while parsing file: {}\", line);\n\n }\n\n // read and save next line\n i++;\n }\n return retList;\n }", "public static String[] getLines (final String pFilename) throws FileNotFoundException {\n\t\tFile file = new File (pFilename); \n\t\tScanner scanner = new Scanner (file); \n\t\t\n\t\tArrayList<String> lines = new ArrayList<String> (); \n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString line = scanner.nextLine(); \n\t\t\tif (!line.isEmpty())\n\t\t\t\tlines.add(line); \n\t\t}\n\t\tscanner.close(); \n\t\t\n\t\treturn lines.toArray(new String [0]); \n\t}", "private void viewAllInfo(){\r\n try{\r\n Scanner scanner = new Scanner(file);\r\n String info;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n String[] components = line.split(separator);\r\n info = \" Name: \" + components[0] + \"\\n\";\r\n info += \" Phone No.: \"+components[1]+\"\\n\";\r\n info += \" Email: \"+components[2]+\"\\n\";\r\n info += \" Address: \"+components[3]+\"\\n\";\r\n textAreaFromAllInfo.append(info+\"\\n\");\r\n }\r\n\r\n }catch (IOException e){\r\n fileError();\r\n }\r\n }", "public String getFormattedFileContents ();", "static ArrayList<String> getLabels(String filename) throws Exception {\n\t\tArrayList<String> al = new ArrayList<>();\n\t\ttry(Scanner in = new Scanner(new FileInputStream(filename))) {\n\t\t\twhile(in.hasNextLine())\n\t\t\t\tal.add(in.nextLine());\n\t\t}\n\t\treturn al;\n\t}", "public String[] readAllLines(){\n\t\tArrayList<String> lines=new ArrayList<>();\n\t\twhile (hasNestLine())\n\t\t\tlines.add(readLine());\n\t\treturn lines.toArray(new String[lines.size()]);\n\t}", "private List<String> findAnts(String inputFileName) {\n\nList<String> lines = new ArrayList<>();\ntry {\nBufferedReader br = new BufferedReader(new FileReader(inputFileName));\nString line = br.readLine();\nwhile (line != null) {\nlines.add(line);\nline = br.readLine();\n}\n} catch (Exception e) {\n\n}\n\nchar[] splitLineByLetterOrDigit;\nList<String> saveAnts = new ArrayList<>();\n\nfor (int k = 0; k < lines.size(); k++) {\nString singleLine = lines.get(k);\nsplitLineByLetterOrDigit = singleLine.toCharArray();\nfor (int i = 0; i < splitLineByLetterOrDigit.length; i++) {\nif (Character.isLetter(splitLineByLetterOrDigit[i])) {\n// first is row\nsaveAnts.add(String.format(\"%d %d %s\", k, i, splitLineByLetterOrDigit[i]));\n}\n}\n}\n\nreturn saveAnts;\n}", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "private ArrayList<String> getPackagesFromFile() {\n\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tString path = Environment.getExternalStorageDirectory().getCanonicalPath() + \"/data/levelup/\";\r\n\r\n\r\n\t\t\t//view2_.setText(\"\");\r\n\t\t\tFile root = new File(path);\r\n\r\n\r\n\t\t\troot.mkdirs();\r\n\r\n\r\n\t\t\tFile f = new File(root, \"custom.txt\");\r\n\t\t\tif(!f.exists())\r\n\t\t\t{\r\n\t\t\t\t//view2_.setText(\"now I am here\");\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(f);\r\n\t\t\t\tfos.close();\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tFileReader r = new FileReader(f);\r\n\t\t\tBufferedReader br = new BufferedReader(r);\r\n\r\n\r\n\r\n\t\t\t// Open the file that is the first\r\n\t\t\t// command line parameter\r\n\r\n\r\n\t\t\tString strLine;\r\n\t\t\t// Read File Line By Line\r\n\r\n\r\n\r\n\t\t\twhile ((strLine = br.readLine()) != null) {\r\n\t\t\t\t// Print the content on the console\r\n\t\t\t\t//String[] allWords;\r\n\t\t\t\tif(!strLine.equals(null)) temp.add(strLine);\r\n\t\t\t\tLog.i(\"packages from file\", strLine);\r\n\t\t\t}\r\n\r\n\t\t\tr.close();\r\n\r\n\r\n\t\t} catch (Exception e) {// Catch exception if any\r\n\t\t\t//System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "public void readFile()\n {\n try {\n fileName = JOptionPane.showInputDialog(null,\n \"Please enter the file you'd like to access.\"\n + \"\\nHint: You want to access 'catalog.txt'!\");\n \n File aFile = new File(fileName);\n Scanner myFile = new Scanner(aFile);\n \n String artist, albumName; \n while(myFile.hasNext())\n { //first we scan the document\n String line = myFile.nextLine(); //for the next line. then we\n Scanner myLine = new Scanner(line); //scan that line for our info.\n \n artist = myLine.next();\n albumName = myLine.next();\n ArrayList<Track> tracks = new ArrayList<>();\n \n while(myLine.hasNext()) //to make sure we get all the tracks\n { //that are on the line.\n Track song = new Track(myLine.next());\n tracks.add(song);\n }\n myLine.close();\n Collections.sort(tracks); //sort the list of tracks as soon as we\n //get all of them included in the album.\n Album anAlbum = new Album(artist, albumName, tracks);\n catalog.add(anAlbum);\n }\n myFile.close();\n }\n catch (NullPointerException e) {\n System.err.println(\"You failed to enter a file name!\");\n System.exit(1);\n }\n catch (FileNotFoundException e) {\n System.err.println(\"Sorry, no file under the name '\" + fileName + \"' exists!\");\n System.exit(2);\n }\n }", "ArrayList<String> getLines();", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "private static City[] fileInterpreter(Scanner file,int numberOfLines){\n City[] cities = new City [numberOfLines];\n for(int i = 0 ; file.hasNextLine(); i++){\n String line = file.nextLine();\n Scanner string = new Scanner(line); //String Scanner to consume the line into city and country and rainfall...\n String cityName = string.next();\n String countryName = string.next();\n double[] data = extractRainfallInformation(line.split(\"[ \\t]+[ \\t]*\")); //to create the array of monthly rainfall\n cities[i] = new City(cityName , countryName , data);\n string.close();\n }\n file.close();\n return cities;\n }", "public String FetchDataFromFile(File file) {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(file);\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tsb.append(sc.nextLine());\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public ArrayList<String> parseFile(String fileName) throws IOException {\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t\tFileInputStream inFile = null;\n\n\t\tinFile = new FileInputStream(mngr.getPath() + fileName);\n\t\tDataInputStream in = new DataInputStream(inFile);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\t\tString strLine;\n\n\t\twhile ((strLine = reader.readLine()) != null && strLine.length() > 0) {\n\t\t\t// Print the content on the console\n\t\t\tparrsedArray.add(strLine);\n\t\t}\n\n\t\tinFile.close();\n\n\t\treturn parrsedArray;\n\n\t}", "public static List<String> mainReadFile(String[] args) throws IOException, URISyntaxException {\n List<String> exmp = new ArrayList<>();\n File initialFile = resolveFileFromResources(args[0]);\n // System.out.println(initialFile);\n ObjectMapper obM = getObjectMapper();\n Trades[] exmpTrade = obM.readValue(initialFile, Trades[].class);\n for (Trades trade : exmpTrade) {\n exmp.add(trade.getSymbol());\n }\n printJsonObject(exmp);\n //return Collections.emptyList();\n return exmp;\n }", "public static List<String> getData(String fileNameLocation) {\n\t\tString fileName = fileNameLocation;\n\t\t// ArrayList r = new ArrayList();\n\t\tList<String> readtext = new ArrayList();\n\t\t// This will reference one line at a time\n\t\tString line = null;\n\t\ttry {\n\t\t\t// - FileReader for text files in your system's default encoding\n\t\t\t// (for example, files containing Western European characters on a\n\t\t\t// Western European computer).\n\t\t\t// - FileInputStream for binary files and text files that contain\n\t\t\t// 'weird' characters.\n\t\t\tFileReader fileReader = new FileReader(fileName);\n\t\t\t// Always wrap FileReader in BufferedReader.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\tint index = 0;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\treadtext.add(line);\n\t\t\t\t// System.out.println(line);\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + fileName + \"'\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Error reading file '\" + fileName + \"'\");\n\t\t\t// Or we could just do this: // ex.printStackTrace(); }\n\t\t}\n\t\t// System.out.println(\"Results after stored to array\" +\n\t\t// readtext..toString());\n\t\t// for (String string : readtext) {\n\t\t// System.out.println(string);\n\t\t// }\n\t\treturn readtext;\n\t}", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public static void main(String[] args) throws InterruptedException {\n\n List<String> lista = FileOperations.readAllLine(PATH_TO_FILE);\n System.out.println(lista);\n\n }", "public static List<Server> readFile() {\n String fileName = \"servers.txt\";\n\n List<Server> result = new LinkedList<>();\n try (Scanner sc = new Scanner(createFile(fileName))) {\n\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n result.add(lineProcessing(line));\n\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File is not found\");\n } catch (MyException e) {\n System.out.println(\"File is corrupted\");\n }\n return result;\n }", "public static String[] readFile(String fn) {\n\n try {\n\n FileReader fr = new FileReader(fn); // read the file\n // store contents in a buffer\n BufferedReader bfr = new BufferedReader(fr);\n // an string array list for storing each line of content\n ArrayList<String> content = new ArrayList<String>();\n String p = null; // temper string for passing each line of contents\n while ((p = bfr.readLine()) != null) {\n content.add(p);\n }\n\n // String array for storing content\n String[] context = new String[content.size()];\n\n for (int i = 0; i < content.size(); i++) {\n context[i] = content.get(i);\n }\n\n bfr.close(); // close the buffer\n return context;\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found: \" + e.getMessage());\n System.exit(0);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n System.out.println(\"I/O Ooops: \" + e.getMessage());\n System.exit(0);\n }\n\n // If an exception occurred we will get to here as the return statement\n // above was not executed\n // so setup a paragraphs array to return which contains the empty string\n String[] context = new String[1];\n context[0] = \"\";\n return context;\n\n }", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "private static String[][] getMap(String inputFile, String[][] Map) {\n\t\tFile text = new File(inputFile);\t\r\n\t\tint j = 0;\r\n\r\n\t\ttry {\r\n\t\t\tScanner s = new Scanner(text);\r\n\t\t\tString nex = s.nextLine();\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine())\r\n\t\t\t{\r\n\t\t\tnex = s.nextLine();\r\n\t\t\tfor (int i = 0; i < nex.length(); i++)\r\n\t\t\t{\r\n\t\t\t\tchar c = nex.charAt(i);\r\n\t\t\t\tString d = Character.toString(c);\r\n\t\t\t\tMap[j][i] = d;\t\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\t}\t\r\n\t\t\ts.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t\treturn Map;\r\n}", "private static List<String> loadGenericDfFile(String file) throws IOException{\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), \"UTF-8\"));\n\t\ttry {\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tlines.add(str);\n\t\t\t}\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\n\t\treturn lines;\n\t}", "public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }", "private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }", "public static String[] getUserInput() throws IOException{\n\t\t//Declare variables to read the file.\n\t\tFileInputStream inFile;\n\t\tInputStreamReader inReader;\n\t\tBufferedReader reader;\n\t\t\n\t\t//The test file that I used in order to run the program.\n\t\tString input = \"test.txt\";\n\t\t\n\t\t//Process the file, get it into a bufferedreader\n\t\tinFile = new FileInputStream (input);\n\t\tinReader = new InputStreamReader(inFile);\n\t\treader = new BufferedReader(inReader);\n\n\t\t//The only reason I do this thing where I make a big long string and then break it up\n\t\t//Is because I wasn't too sure about the rules surrounding things we haven't learned (Arrays)\n\t\tString fileData = \"\";\n\t\t\n\t\t//If there's more data, add the line to the end of the FileData String, with a space in between.\n\t\twhile(reader.ready()){\n\t\t\tfileData += (reader.readLine() + \" \");\n\t\t}\n\t\t\n\t\t//Then, break that line up into an array using the split function.\n\t\treturn breakInput(fileData);\n\t}", "void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Scanner s2 = new Scanner(sc2.nextLine());\n while (s2.hasNext()) {\n //s is the next word\n String s = s2.next();\n this.readFile.add(s);\n }\n }\n }", "public ArrayList<String> loadLines(String filename) {\n ArrayList<String> lines = new ArrayList<String>();\n String[] rawLines = loadStrings(filename);\n for(String str : rawLines) {\n if(str != null && !str.isEmpty()){\n lines.add(str);\n }\n }\n return lines;\n }", "private String[] loadFile(String filename) {\n\t\treturn loadFile(filename, new String[0], System.lineSeparator());\n\t}", "public static String[] getTeamInfo(){\n List<String> input = null;\n String[] output = null;\n try {\n Path path = Paths.get(Constants.TEAM_FILE_PATH);\n input = Files.readAllLines(path, StandardCharsets.UTF_8);\n output = input.get(0).split(\",\");\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n return output;\n }", "public String[] getNames(){\n File file = new File(getContext().getFilesDir(),\"currentUsers.txt\");\n List<String> names = null;\n try {\n //read names from file\n names = new ArrayList<>(FileUtils.readLines(file, Charset.defaultCharset()));\n Log.i(TAG,\"names from currentUsers.txt: \" + names.toString());\n usernames = new String[names.size()];\n //populate the array with the data form file\n for(int i = 0; i < usernames.length; i++){\n String user = names.get(i);\n usernames[i] = user;\n Log.i(TAG, \"added \" + usernames[i] + \" to usernames array\");\n }\n } catch (IOException e) {\n Log.i(TAG, \"error: \" + e.getLocalizedMessage());\n }\n return usernames;\n }", "public static String[] getTextFileLinesAsArray(String textFileAddress,\n\t\t\tBoolean printMessage) {\n\t\tString[] output = new String[tools.util.File.getTextFileLineCount(\n\t\t\t\ttextFileAddress, false)];\n\t\tint lines = 0;\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(textFileAddress));\n\t\t\tString newLine;\n\t\t\twhile ((newLine = reader.readLine()) != null) {\n\t\t\t\toutput[lines] = newLine;\n\t\t\t\tlines++;\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (printMessage)\n\t\t\tSystem.out.println(tools.util.File.getName(textFileAddress)\n\t\t\t\t\t+ \" have \" + lines + \" Line\");\n\t\treturn output;\n\t}", "private ArrayList<String> saveText(){\n FileReader loadDetails = null;\n String record;\n record = null;\n\n //Create an ArrayList to store the lines from text file\n ArrayList<String> lineKeeper = new ArrayList<String>();\n\n try{\n loadDetails=new FileReader(\"employees.txt\");\n BufferedReader bin=new BufferedReader (loadDetails);\n record=new String();\n while (((record=bin.readLine()) != null)){//Read the file and store it into the ArrayList line by line*\n lineKeeper.add(record);\n }//end while\n bin.close();\n bin=null;\n }//end try\n catch (IOException ioe) {}//end catc\n\n return lineKeeper;\n\n }", "public ArrayList<String> getPageAsList() throws FileNotFoundException{\r\n\t\t//List of lines of the file that's being translated\r\n\t\tArrayList<String> pageLines = new ArrayList<String>();\r\n\t\tScanner file = new Scanner(page);\r\n\t\t\r\n\t\t//Takes the file and cuts it into lines, with each one being added to a list\r\n\t\twhile(file.hasNextLine()){\r\n\t\t\tpageLines.add(file.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\treturn pageLines;\r\n\t}", "public String[] FetchWordsFrom(File file){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t \tScanner scnr = null;\r\n\t\ttry {\r\n\t\t\tscnr = new Scanner(file);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t \tString s=\"\";\r\n\t \twhile(scnr.hasNextLine()){\r\n\t \t\tsb.append(scnr.nextLine());\r\n\t \t\tsb.append(\" \");\r\n\t \t\ts=sb.toString();\r\n\t \t}\r\n\tString[] words = s.split(\" \");\r\n\tscnr.close();\r\n\treturn words;\r\n\t}", "private static String readTextFile(File file) throws IOException {\n return Files.lines(file.toPath()).collect(Collectors.joining(\"\\n\"));\n }", "private static char[][] convertFileIntoArray(File inputFile) {\n\t\tBufferedReader br = null;\n\t\tchar[][] rowIdxContentsArr = null;\n\t\t\n\t try{\n\t FileReader fileRdr = new FileReader(inputFile);\n\t br = new BufferedReader(fileRdr);\n\n\t String content;\n\t int row = 0;\n\t \n\t // Read every row contents line by line\n\t while ((content = br.readLine()) != null) {\n\t \tif(rowIdxContentsArr == null) {\n\t \t\t// Initialize the 2D Array based on the length of the row data.\n\t \t\trowIdxContentsArr = new char[NUMBER_OF_ROWS][content.length()];\n\t \t}\n\t \t//Convert every row string data into a char array and set it into every 2D array index. \n\t rowIdxContentsArr[row] = content.toCharArray();\n\t logDebug(\"convertFileIntoArray() | row = \"+row +\" , line = \"+content);\n\t row++;\n\t }\n\t logDebug(\"File written successfully into a char array\");\n\t } catch(IOException e) {\n\t \tSystem.err.println(\"Unable to parse file - map.txt. ERROR: \"+e.getMessage());\n\t } finally {\n\t \tif(br != null) {\n\t \t\ttry {\n\t\t\t\t\tbr.close();\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}\n\t }\t\n\t return rowIdxContentsArr;\n\t}", "public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String line = null; \n\n\t while (( line = input.readLine()) != null){\n\t contents.append(line);\n\t contents.append(\"\\r\\n\");\t }\n\t }\n\t finally {\n\t input.close();\n\t }\n\t }\n\t catch (IOException ex){\n\t log.error(\"Greska prilikom citanja iz fajla: \"+ex);\n\t }\n\t \n\t return contents.toString();\n\t}", "public ArrayList<String> read_file() {\n prog = new ArrayList<>();\n //Read file\n try {\n\n File myObj = new File(\"in3.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n if (data.charAt(0) != '.') {\n// System.out.println(data);\n prog.add(data);\n } else {\n continue;\n// data = data.substring(1);\n// System.out.println(\"{{ \" + data + \" }}\");\n }\n\n }\n myReader.close();\n\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n return prog;\n }", "public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "private List<Task> getTasksFromFile() throws FileNotFoundException{\n List<Task> loadedTasks = new ArrayList<>();\n Ui a=new Ui();\n try {\n List<String> lines = getLine() ;\n for (String line : lines) {\n if (line.trim().isEmpty()) { //ignore empty lines\n continue;\n }\n loadedTasks.add(createTask(line)); //convert the line to a task and add to the list\n }\n System.out.println(\"File successfully loaded\");\n } catch (DukeException e1) {\n System.out.println(\"☹ OOPS!!! Problem encountered while loading data: \" +e1.getMessage());\n }\n return loadedTasks;\n }", "public static void main(String[] args) throws IOException {\n\n // reading a file is one line of code as below\n // it return List of String as each line as element\n try {\n List<String> allLines = Files.readAllLines(Paths.get(\"src/day60/note.txt\"));\n System.out.println(\"allLines = \" + allLines);\n\n for (String eachLine : allLines) {\n System.out.println(eachLine);\n }\n } catch (Exception e) {\n System.out.println(\"BOOM!!\");\n System.out.println(e.getMessage());\n }\n\n }", "public String[] readFile() {\n\t\t\n\t\tFile file = null;\n\t\tString[] contenu = new String[2];\n\t\tMonFileChooser ouvrir = new MonFileChooser();\n\t\tint resultat = ouvrir.showOpenDialog(null);\n\t\tif (resultat == MonFileChooser.APPROVE_OPTION) {\n\t\t\tfile = ouvrir.getSelectedFile();\n\t\t\tcontenu[0]=file.getName();\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tString fileContent = null;\n\t\t\t\tcontenu[1] = \"\";\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(file)); \n\t\t\t\twhile((fileContent = br.readLine()) != null) {\n\t\t\t\t\tif (fileContent != null)\n\t\t\t\t\tcontenu[1] += fileContent+\"\\n\";\n\t\t\t}\n\t\t\t br.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\topenFiles.add(file);\n\t\t}\n\t\treturn contenu;\t\n\t}", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private String readFile(File file){\n StringBuilder stringBuffer = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n\n bufferedReader = new BufferedReader(new FileReader(file));\n\n String text;\n while ((text = bufferedReader.readLine()) != null) {\n stringBuffer.append(text.replaceAll(\"\\t\", miTab) + \"\\n\");\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n return stringBuffer.toString();\n }", "private void getLines(File file)\n\t{\n\n\t\ttry {\n\t\t\tList<String> lines = FileUtils.readLines(file);\n\t\t\tthis.lines = lines;\n\t\t\tfor(int i = 0; i < lines.size(); i++)\n\t\t\t{\n\t\t\t\tfile = new File(lines.get(i));\n\t\t\t\tif(file.getName().contains(\".\"))\n\t\t\t\t{\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\tString link = Main.dl + file.getName();\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Downloading: \" + file.getName());\n\t\t\t\t\tMain.file(link, file);\n\t\t\t\t}\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\t\t}\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n return entry_;\n }", "public ArrayList<String> createStringArray() throws Exception {\n ArrayList<String> stringsFromFile = new ArrayList<>();\n while (reader.hasNext()) {\n stringsFromFile.add(reader.nextLine());\n }\n return stringsFromFile;\n }", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\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\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}" ]
[ "0.66615206", "0.64017457", "0.61493415", "0.602698", "0.6026788", "0.60142154", "0.59851813", "0.59332895", "0.5917477", "0.58830947", "0.58729196", "0.5837087", "0.58188426", "0.5787616", "0.57667685", "0.57389057", "0.5733238", "0.57202023", "0.57202023", "0.5690049", "0.5645745", "0.56342757", "0.5616519", "0.56071013", "0.56063753", "0.5604441", "0.55988634", "0.5594921", "0.5577113", "0.55741954", "0.557009", "0.5569054", "0.55613005", "0.5561011", "0.5551161", "0.5547482", "0.552762", "0.55218154", "0.54981726", "0.5491069", "0.5476811", "0.5472871", "0.5461094", "0.54569846", "0.5454815", "0.54437715", "0.54258424", "0.5407027", "0.54016876", "0.53950334", "0.53903246", "0.53858244", "0.5382917", "0.53770334", "0.53752124", "0.5370076", "0.5367729", "0.5364225", "0.5359389", "0.53530645", "0.53517646", "0.53479356", "0.53468215", "0.5344221", "0.5342875", "0.5341689", "0.5341135", "0.53404796", "0.53321314", "0.5330954", "0.53281945", "0.53125244", "0.53067404", "0.5304271", "0.5303818", "0.5295146", "0.528726", "0.5277298", "0.5274449", "0.52719766", "0.5269156", "0.52659327", "0.5262574", "0.5255874", "0.5245491", "0.5240772", "0.5235748", "0.5235483", "0.5232852", "0.5232252", "0.5230193", "0.52277", "0.522052", "0.52167016", "0.5215509", "0.52135146", "0.52081186", "0.520538", "0.520355", "0.5203273", "0.52019733" ]
0.0
-1
Referenced classes of package io.fabric.sdk.android.services.network: HttpMethod, HttpRequest, PinningInfoProvider
public interface HttpRequestFactory { public abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s); public abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s, Map map); public abstract PinningInfoProvider getPinningInfoProvider(); public abstract void setPinningInfoProvider(PinningInfoProvider pinninginfoprovider); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InfoRequest extends BaseRequest {\n\n InfoRequest setShortLabel(CharSequence label);\n\n InfoRequest setLongLabel(CharSequence label);\n\n InfoRequest setDisabledMessage(CharSequence disabledMessage);\n\n InfoRequest setIcon(Bitmap bitmap);\n\n InfoRequest setIcon(Drawable drawable);\n\n InfoRequest setIcon(IconCompat icon);\n\n InfoRequest setActivity(ComponentName activity);\n\n InfoRequest setAlwaysBadge();\n\n IntentRequest setIntent(Class<?> clz);\n\n IntentRequest setIntent(Intent intent);\n\n IntentRequest setIntent(Intent[] intents);\n\n InfoRequest updateIfExist(boolean updateIfExist);\n\n InfoRequest fixHUAWEIOreo(boolean isAutoCreate);\n\n InfoRequest iconShapeWithLauncher(boolean isIconAutoShape);\n\n\n\n}", "public interface NetworkInterface {\n\n @POST(\"/api/v1/auth\")\n Call<AuthParams> login(@Body Credentials task);\n\n @POST(\"/api/v1/register\")\n Call<AuthParams> register(@Body Credentials task);\n\n @GET(\"/api/v1/places\")\n Call<Locations> getPlaces();\n\n @POST(\"/api/v1/rent\")\n Call<RentResponse> bookonRent(@Body RentRequest rentRequest);\n}", "public interface WebRequests {\n\n\n\n @POST(Constants.API+Constants.SIGN_IN)\n Call<JsonObject> signin(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n\n @POST(Constants.API+Constants.SIGN_UP)\n Call<JsonObject> signup(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n @POST(Constants.API+Constants.VERIFYOTP)\n Call<JsonObject> verifyOtp(@Body JsonObject task);\n\n// {\n// \"user_mobile_ver_code\":\"1234\",\n// \"access_token\": \"57b6a4e15f9fc\"\n// }\n\n @POST(Constants.API+Constants.GET_CITY)\n Call<JsonObject> get_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.GET_VERIFYDEVICEID)\n Call<JsonObject> get_verify_deviceId(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.SAVE_CITY)\n Call<JsonObject> save_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n// \"user_city\":\"Bangalore\"\n// }\n\n @POST(Constants.API+Constants.GET_BRANDS)\n Call<JsonObject> getBrands(@Body JsonObject task);\n// {\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n\n @POST(Constants.API+Constants.GET_CITYMARKET)\n Call<JsonObject> getCityMarket(@Body JsonObject task);\n\n// 1.Request( for all citymarketlist):\n// {\n// \"city_id\":\"57a1c61edf3e78293ea41087\"\n// }\n\n// 2.Request(citymarket list of perticular category):\n// {\n// \"city_id\":\"57b6a735830f09cd1d59158f\",\n// \"category_id\":\"57b5ab6166724dec7409fff0\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST)\n Call<JsonObject> getShopList(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST_SEARCH)\n Call<JsonObject> getShopListBySearch(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n @POST(Constants.API+Constants.GET_SHOPDETAILS)\n Call<JsonObject> getShopDetails(@Body JsonObject task);\n\n// {\n// \"merchant_id\":\"57b6f746fbb597ba108b4568\"\n// }\n//\n//\n @POST(Constants.API+Constants.GET_SUBCATEGORYLIST)\n Call<JsonObject> getSubCategories(@Body JsonObject task);\n//\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\"\n// }\n\n @POST(Constants.API+Constants.GET_PRODUCTLIST)\n Call<JsonObject> getProductList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_SOCKETID)\n Call<JsonObject> update_socket(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_LIST)\n Call<JsonObject> chat_list(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_VIEW)\n Call<JsonObject> chat_view(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.DELETE_ADDRESS)\n Call<JsonObject> deleteAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.ADD_ADDRESS)\n Call<JsonObject> addAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n\n @POST(Constants.API+Constants.UPDATE_ADDRESS)\n Call<JsonObject> updateAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.GET_ADDRESS)\n Call<JsonObject> getAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_OFFERS)\n Call<JsonObject> getOffers(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY)\n Call<JsonObject> getOrdersList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.CREATE_ORDERS)\n Call<JsonObject> createOrders(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_PROFILE)\n Call<JsonObject> updateProfile(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.UPDATE_TRANSACTIONID)\n Call<JsonObject> updateTransactionId(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CANCEL_ORDER)\n Call<JsonObject> cancelOrder(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY_BY_MERCHANT)\n Call<JsonObject> getOrdersMerchantList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n}", "interface LockssGetMethod extends HttpMethod {\n long getResponseContentLength();\n }", "public interface C2034ok extends IInterface {\n\n /* renamed from: com.google.android.gms.internal.ok$a */\n public static abstract class C2035a extends Binder implements C2034ok {\n\n /* renamed from: com.google.android.gms.internal.ok$a$a */\n private static class C2036a implements C2034ok {\n\n /* renamed from: le */\n private IBinder f4164le;\n\n C2036a(IBinder iBinder) {\n this.f4164le = iBinder;\n }\n\n /* renamed from: a */\n public void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n obtain.writeStrongBinder(ojVar != null ? ojVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(z ? 1 : 0);\n this.f4164le.transact(1, obtain, (Parcel) null, 1);\n } finally {\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f4164le;\n }\n }\n\n /* renamed from: bG */\n public static C2034ok m6022bG(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C2034ok)) ? new C2036a(iBinder) : (C2034ok) queryLocalInterface;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n C2031oj bF = C2031oj.C2032a.m6019bF(parcel.readStrongBinder());\n Bundle bundle = null;\n Uri uri = parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);\n }\n mo16484a(bF, uri, bundle, parcel.readInt() != 0);\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException;\n}", "public interface FairRepairService {\n String ENDPOINT = \"http://fairrepair.onsisdev.info/providerapi/\";\n\n @POST(\"signup\")\n @Multipart\n Call<SignInResponse> signUp(@PartMap Map<String, RequestBody> requestMap);\n\n @POST(\"login\")\n @FormUrlEncoded\n Call<SignInResponse> login(@FieldMap Map<String, String> params);\n\n @POST(\"forgotpassword\")\n @FormUrlEncoded\n Call<SignInResponse> forgotPassword(@FieldMap Map<String, String> params);\n\n @POST(\"logout\")\n @FormUrlEncoded\n Call<SignInResponse> logout(@FieldMap Map<String, String> params);\n\n @POST(\"getprofile\")\n @FormUrlEncoded\n Call<SignInResponse> getProfile(@FieldMap Map<String, String> params);\n\n @POST(\"editprofile\")\n @Multipart\n Call<SignInResponse> editProfile(@PartMap Map<String, RequestBody> params);\n\n @POST(\"changepassword\")\n @FormUrlEncoded\n Call<SignInResponse> resetPassword(@FieldMap Map<String, String> params);\n\n @POST(\"staticpages\")\n @FormUrlEncoded\n Call<SignInResponse> getStaticPages(@FieldMap Map<String, String> params);\n\n @POST(\"getservicetype\")\n @FormUrlEncoded\n Call<SignInResponse> getServiceType(@FieldMap Map<String, String> params);\n\n @POST(\"changeAvailability\")\n @FormUrlEncoded\n Call<SignInResponse> changeAvailability(@FieldMap Map<String, String> params);\n\n @POST(\"requestaccept\")\n @FormUrlEncoded\n Call<SignInResponse> acceptRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"cancelrequest\")\n @FormUrlEncoded\n Call<SignInResponse> cancelRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"billing\")\n @FormUrlEncoded\n Call<SignInResponse> generateBill(@FieldMap Map<String, String> requestMap);\n\n @POST(\"completerequest\")\n @FormUrlEncoded\n Call<SignInResponse> completeRequest(@FieldMap Map<String, String> requestMap);\n\n @POST(\"updatelatlong\")\n @FormUrlEncoded\n Call<SignInResponse> updateLatLng(@FieldMap Map<String, String> requestMap);\n\n @POST(\"arraived\")\n @FormUrlEncoded\n Call<SignInResponse> arrived(@FieldMap Map<String, String> requestMap);\n\n /********\n * Factory class that sets up a new ribot services\n *******/\n class Factory {\n\n public static FairRepairService makeFairRepairService(Context context) {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .connectTimeout(2, TimeUnit.MINUTES)\n .readTimeout(2, TimeUnit.MINUTES)\n .addInterceptor(new UnauthorisedInterceptor(context))\n .addInterceptor(logging)\n .build();\n\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(FairRepairService.ENDPOINT)\n .client(okHttpClient)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n return retrofit.create(FairRepairService.class);\n }\n }\n}", "public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}", "static Downloader m61430a(Context context) {\n try {\n Class.forName(\"com.squareup.okhttp.OkHttpClient\");\n return C18811c.m61450a(context);\n } catch (ClassNotFoundException unused) {\n return new C18803ab(context);\n }\n }", "public interface HttpRequestResolutionHandler {\r\n \r\n /**\r\n * Resolves the incoming HTTP request to a URL\r\n * that identifies a content binary \r\n *\r\n * @param inetAddress IP address the transaction was sent from.\r\n * @param url The <code>URL</code> requested by the transaction.\r\n * @param request The HTTP message request;\r\n * i.e., the request line and subsequent message headers.\r\n * @param networkInterface The <code>NetworkInterface</code> the request\r\n * came on.\r\n *\r\n * @return URL of the content binary if a match is found,\r\n * null otherwise.\r\n * \r\n */\r\n public URL resolveHttpRequest(InetAddress inetAddress,\r\n URL url,\r\n String[] request,\r\n NetworkInterface networkInterface);\r\n \r\n}", "public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}", "private Dex2JarProxy() {\r\n\t}", "void projectUriRequest(Request request);", "public interface NetworkAPI {\n //Login Screen\n @Multipart\n @POST(\"/doLogin\")\n void doLogin(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Add services Screen\n @Multipart\n @POST(\"/getServices\")\n void getAllServices(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Service details\n @Multipart\n @POST(\"/getServiceDetails\")\n void getServicesDetails(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"service_id\") TypedString service_id,\n Callback<JsonObject> response);\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale, //// added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n\n//elenco_partecipanti_al_corso_cognome_nome_e_c_f_\n //Save service request without bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n\n\n //User Selection Screen\n @Multipart\n @POST(\"/doLogin\")\n void getUserType(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"tipout\") TypedString user_type,\n Callback<JsonObject> response);\n\n //For company data without bpfile\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n //For company data with bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n/*certificazione_accreditamento_dellorganismo_di_formazione,\ncv_formatori,\ncalendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\nallegatiDesc*/\n\n //Service details\n /*@Multipart\n @POST(\"/changePassword\")\n void changePassword(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"existing_password\") TypedString existing_password,\n @Part(\"new_password\") TypedString new_password,\n @Part(\"confirm_password\") TypedString confirm_password,\n Callback<JsonObject> response);*/\n\n @GET(\"/index_production.php\")\n void changePassword(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"existing_password\") String existing_password,\n @Query(\"new_password\") String new_password,\n @Query(\"confirm_password\") String confirm_password,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n //@Query(\"action\") String action,\n\n @GET(\"/getUserServices\")\n void requestService(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n\n @GET(\"/getVersionList\")\n // @GET(\"/index_new.php\")\n void getVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n @GET(\"/updateVersionList\")\n void editVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"AzNome\") String AzNome,\n @Query(\"AnnoComp\") String AnnoComp,\n @Query(\"cf\") String cf,\n @Query(\"piva\") String piva,\n @Query(\"ebv_ver\") String ebv_ver,\n @Query(\"INPS\") String INPS,\n @Query(\"GEN\") String GEN,\n @Query(\"FEB\") String FEB,\n @Query(\"MAR\") String MAR,\n @Query(\"APR\") String APR,\n @Query(\"MAG\") String MAG,\n @Query(\"GIU\") String GIU,\n @Query(\"LUG\") String LUG,\n @Query(\"AGO\") String AGO,\n @Query(\"SET\") String SET,\n @Query(\"OTT\") String OTT,\n @Query(\"NOV\") String NOV,\n @Query(\"DIC\") String DIC,\n Callback<JsonObject> response);\n\n @GET(\"/getSeatList\")\n void getSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n /* http://www.ebveneto.it/web_services/index_new.php?action=updateSeatList&tabella=Aziende&user_id=00097A&idSede=&\n // Nome=&Via=&Cap=&Comune=&Frazione=&Prov=&Tipo=&fonte=*/\n\n @GET(\"/updateSeatList\")\n void editSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"idSede\") String idSede,\n @Query(\"Nome\") String Nome,\n @Query(\"Via\") String Via,\n @Query(\"Cap\") String Cap,\n @Query(\"Comune\") String Comune,\n @Query(\"Frazione\") String Frazione,\n @Query(\"Prov\") String Prov,\n @Query(\"Tipo\") String Tipo,\n @Query(\"fonte\") String fonte,\n Callback<JsonObject> response);\n\n\n @Multipart\n @POST(\"/updateUserConsent\")\n void updateUserConsent(@Part(\"tabella\") TypedString tabella,\n @Part(\"id\") TypedString user_id,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @PartMap Map<String, TypedString> userId,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n // @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @PartMap Map<String, TypedFile> dynamicFiles,\n Callback<JsonObject> response);\n\n @GET(\"/index_production_march19.php?action=getAppVersion&type=android\")\n void updateAvailable(Callback<JsonObject> response);\n\n @Multipart\n @POST(\"/uploadAttach\")\n void uploadAttachment(\n @Part(\"user_id\") TypedString user_id,\n @Part(\"ids\") TypedString ids,\n @PartMap Map<String, TypedFile> dynamicFiles,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n}", "List<SdkHttpRequest> getRequests();", "public interface IDownloadAidlDepend extends IInterface {\n /* renamed from: a */\n void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a */\n /* compiled from: IDownloadAidlDepend */\n public static abstract class AbstractBinderC7166a extends Binder implements IDownloadAidlDepend {\n public IBinder asBinder() {\n return this;\n }\n\n public AbstractBinderC7166a() {\n attachInterface(this, \"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n }\n\n /* renamed from: a */\n public static IDownloadAidlDepend m42991a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IDownloadAidlDepend)) {\n return new C7167a(iBinder);\n }\n return (IDownloadAidlDepend) queryLocalInterface;\n }\n\n @Override // android.os.Binder\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n BaseException aVar = null;\n DownloadInfo createFromParcel = parcel.readInt() != 0 ? DownloadInfo.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n aVar = BaseException.CREATOR.createFromParcel(parcel);\n }\n mo45684a(createFromParcel, aVar, parcel.readInt());\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n return true;\n }\n }\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a$a */\n /* compiled from: IDownloadAidlDepend */\n private static class C7167a implements IDownloadAidlDepend {\n\n /* renamed from: a */\n private IBinder f30137a;\n\n C7167a(IBinder iBinder) {\n this.f30137a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f30137a;\n }\n\n @Override // com.p803ss.android.socialbase.downloader.p833d.IDownloadAidlDepend\n /* renamed from: a */\n public void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (cVar != null) {\n obtain.writeInt(1);\n cVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (aVar != null) {\n obtain.writeInt(1);\n aVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(i);\n this.f30137a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n }\n}", "public interface AsyncHttpLink{\n// @FormUrlEncoded\n// @POST(\"{url}\")\n// Call<ResponseBody> request(@Path(value = \"url\", encoded = true) String url, @FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST\n Call<ResponseBody> request(@Url String url, @FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @Headers(\"Authorization: basic dGFjY2lzdW06YWJjZGU=\")\n @POST\n Call<ResponseBody> login(@Url String url, @FieldMap Map<String, String> params);\n}", "private Request() {}", "private Request() {}", "public interface NetworkProvider {\n\n @GET(BuildConfig.AUTOCOMPLETE_URL + \"/aq?h=0\")\n Observable<AutoCompleteResults> getAqResults(@Query(\"query\") String query);\n\n @GET(\"forecast10day/lang:RU/q/{latitude},{longitude}.json\")\n Observable<ForecastTenDays> getForecast(@Path(\"latitude\") double latitude, @Path(\"longitude\") double longitude);\n}", "interface LockssPostMethod extends HttpMethod {\n long getResponseContentLength();\n }", "public interface NetService {\n\n\n @FormUrlEncoded\n @POST(\"getcode\")\n Call<CodeResponse> getCode(@Field(\"tel\") String tel);\n\n @FormUrlEncoded\n @POST(\"setinfo\")\n Call<UserInfo> updateUserInfo(@FieldMap() Map appNo);\n\n @FormUrlEncoded\n @POST(\"setmode\")\n Call<ResultData> setMode(@Field(\"tel\") String tel, @Field(\"up\")String up, @Field(\"down\")String down, @Field(\"time\")String time);\n\n @FormUrlEncoded\n @POST(\"getMode\")\n Call<List<ModelData>> getMode(@Field(\"tel\")String tel);\n\n @FormUrlEncoded\n @GET(\"getnews\")\n Call<BaseResponse> getNews();\n\n\n}", "public interface C48251a {\n /* renamed from: a */\n HttpURLConnection mo120621a(Uri uri) throws IOException;\n}", "public interface RequestAPI {\n public void signIn(String login, String password) throws RequestException, WrongParameterException;\n\n public void signUp(String login, String password) throws RequestException, WrongParameterException;\n\n public void addFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriendRequest(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public Account getMyAccountInfo() throws RequestException, UnauthorizedException;\n\n public String getToken();\n\n public String getHost();\n}", "public interface Request {\n}", "public interface zzke\n extends IInterface\n{\n public static abstract class zza extends Binder\n implements zzke\n {\n\n public static zzke zzbc(IBinder ibinder)\n {\n if(ibinder == null)\n return null;\n IInterface iinterface = ibinder.queryLocalInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(iinterface != null && (iinterface instanceof zzke))\n return (zzke)iinterface;\n else\n return new zza(ibinder);\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n zzkd zzkd;\n switch(i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n return true;\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n zzkd = com.google.android.gms.internal.zzkd.zza.zzbb(parcel.readStrongBinder());\n break;\n }\n UserAddressRequest useraddressrequest;\n if(parcel.readInt() != 0)\n useraddressrequest = (UserAddressRequest)UserAddressRequest.CREATOR.createFromParcel(parcel);\n else\n useraddressrequest = null;\n if(parcel.readInt() != 0)\n parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);\n else\n parcel = null;\n zza(zzkd, useraddressrequest, parcel);\n parcel1.writeNoException();\n return true;\n }\n }\n\n private static class zza.zza\n implements zzke\n {\n\n public IBinder asBinder()\n {\n return zzlW;\n }\n\n public void zza(zzkd zzkd1, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(zzkd1 == null) goto _L2; else goto _L1\n_L1:\n zzkd1 = zzkd1.asBinder();\n_L5:\n parcel.writeStrongBinder(zzkd1);\n if(useraddressrequest == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n useraddressrequest.writeToParcel(parcel, 0);\n_L6:\n if(bundle == null)\n break MISSING_BLOCK_LABEL_127;\n parcel.writeInt(1);\n bundle.writeToParcel(parcel, 0);\n_L7:\n zzlW.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n zzkd1 = null;\n goto _L5\n_L4:\n parcel.writeInt(0);\n goto _L6\n zzkd1;\n parcel1.recycle();\n parcel.recycle();\n throw zzkd1;\n parcel.writeInt(0);\n goto _L7\n }\n\n private IBinder zzlW;\n\n zza.zza(IBinder ibinder)\n {\n zzlW = ibinder;\n }\n }\n\n\n public abstract void zza(zzkd zzkd, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException;\n}", "public interface RestService {\n\n @GET\n Call<String> get(@Url String url, @QueryMap Map<String, Object> params, @HeaderMap Map<String, String> headers);\n\n @FormUrlEncoded\n @POST\n Call<String> post(@Url String url, @FieldMap Map<String, Object> params);\n\n// @Multipart\n// @PUT\n// Call<String> put(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @PUT\n Call<String> put(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @DELETE\n Call<String> delete(@Url String url, @HeaderMap Map<String, String> headers, @QueryMap Map<String, Object> params);\n\n @Streaming\n @GET\n Call<ResponseBody> download(@Url String url, @QueryMap Map<String, Object> params);\n\n @Multipart\n @POST\n Call<String> upload(@Url String url, @Part MultipartBody.Part file);\n\n// @GET\n// Call<SongSearchEntity> getSongSearchList(@Url String url, @QueryMap Map<String, Object> params, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<User> signIn(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @GET\n Call<User> profile(@Url String url, @HeaderMap Map<String, String> headers);\n\n// @Multipart\n// @PUT\n// Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @Part(\"id\") RequestBody id, @Part(\"key\") RequestBody key, @Part(\"value\") RequestBody value);\n//\n// @PUT\n// Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @Multipart\n @PUT\n Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @GET\n Call<SongListEntity> musicbillList(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<SongListDetailEntity> musicbill(@Url String url, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<String> createMusicbill(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @DELETE\n Call<String> deleteMusicbill(@Url String url, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<String> addMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @Multipart\n @PUT\n Call<String> updateMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @DELETE\n Call<String> deleteMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @GET\n Call<SongSearchEntity> getMusic(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<LyricEntity> getLyric(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<String> getSinger(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<ZhiliaoEntity> getVerify(@Url String url, @HeaderMap Map<String, String> headers);\n}", "public interface NeighborService {\n\n\n @FormUrlEncoded\n @POST(\"login/\")\n Call<TokenInfo> login(@Field(\"username\") String userName, @Field(\"password\") String password);\n\n @GET(\"{id}/user/\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"{id}/user/\")\n Observable<User> getUserRx(@Path(\"id\") String userId);\n\n\n}", "void mo54428b(DownloadTask downloadTask);", "public interface C4610a extends IInterface {\n\n /* renamed from: com.kwai.filedownloader.c.a$a */\n public static abstract class C4611a extends Binder implements C4610a {\n\n /* renamed from: com.kwai.filedownloader.c.a$a$a */\n private static class C4612a implements C4610a {\n /* renamed from: a */\n private IBinder f15013a;\n\n C4612a(IBinder iBinder) {\n this.f15013a = iBinder;\n }\n\n /* renamed from: a */\n public void mo25008a(MessageSnapshot messageSnapshot) {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n if (messageSnapshot != null) {\n obtain.writeInt(1);\n messageSnapshot.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f15013a.transact(1, obtain, null, 1);\n } finally {\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f15013a;\n }\n }\n\n public C4611a() {\n attachInterface(this, \"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n }\n\n /* renamed from: a */\n public static C4610a m18836a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C4610a)) ? new C4612a(iBinder) : (C4610a) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n String str = \"com.kwai.filedownloader.i.IFileDownloadIPCCallback\";\n if (i == 1) {\n parcel.enforceInterface(str);\n mo25008a(parcel.readInt() != 0 ? (MessageSnapshot) MessageSnapshot.CREATOR.createFromParcel(parcel) : null);\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(str);\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo25008a(MessageSnapshot messageSnapshot);\n}", "private ConnectivityManager.NetworkCallback getNetworkCallback() {\n return new NetworkRequestCallback();\n }", "public interface LoadSupportInfoTaskDelegate {\n\n void loadSupportInfoCompleted(APIResult result);\n\n}", "public interface C1326d extends IInterface {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a */\n public static abstract class C1327a extends Binder implements C1326d {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a$a */\n private static class C1328a implements C1326d {\n\n /* renamed from: ky */\n private IBinder f3425ky;\n\n C1328a(IBinder iBinder) {\n this.f3425ky = iBinder;\n }\n\n /* renamed from: a */\n public void mo7372a(C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeInt(i3);\n obtain.writeString(str);\n this.f3425ky.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeString(str);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeString(str2);\n obtain.writeString(str3);\n this.f3425ky.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n obtain.writeString(str2);\n this.f3425ky.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeStringList(list);\n this.f3425ky.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f3425ky;\n }\n\n /* renamed from: b */\n public void mo7381b(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void clearDefaultAccount() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public String getAccountName() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hl */\n public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hm */\n public boolean mo7389hm() throws RemoteException {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hn */\n public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void removeMoment(String momentId) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeString(momentId);\n this.f3425ky.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n /* renamed from: aA */\n public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r4v0 */\n /* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r4v5 */\n /* JADX WARNING: type inference failed for: r4v6 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]\n uses: [com.google.android.gms.internal.fh, android.net.Uri]\n mth insns count: 188\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 3 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {\n /*\n r8 = this;\n r4 = 0\n r7 = 1\n switch(r9) {\n case 1: goto L_0x0010;\n case 2: goto L_0x0028;\n case 3: goto L_0x0044;\n case 4: goto L_0x005c;\n case 5: goto L_0x0076;\n case 6: goto L_0x0086;\n case 8: goto L_0x0093;\n case 9: goto L_0x00a8;\n case 14: goto L_0x00de;\n case 16: goto L_0x0113;\n case 17: goto L_0x0139;\n case 18: goto L_0x014a;\n case 19: goto L_0x0163;\n case 34: goto L_0x0178;\n case 40: goto L_0x0191;\n case 41: goto L_0x01aa;\n case 42: goto L_0x01bb;\n case 43: goto L_0x01d1;\n case 44: goto L_0x01e2;\n case 45: goto L_0x01fb;\n case 1598968902: goto L_0x000a;\n default: goto L_0x0005;\n }\n L_0x0005:\n boolean r7 = super.onTransact(r9, r10, r11, r12)\n L_0x0009:\n return r7\n L_0x000a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r11.writeString(r0)\n goto L_0x0009\n L_0x0010:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7378a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0028:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n java.lang.String r2 = r10.readString()\n r8.mo7379a(r0, r1, r2)\n r11.writeNoException()\n goto L_0x0009\n L_0x0044:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7382b(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x005c:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0074\n com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)\n L_0x006d:\n r8.mo7372a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0074:\n r0 = r4\n goto L_0x006d\n L_0x0076:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.getAccountName()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x0086:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n r8.clearDefaultAccount()\n r11.writeNoException()\n goto L_0x0009\n L_0x0093:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7373a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00a8:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00da\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r1 = r0\n L_0x00c4:\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00dc\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.os.Bundle r0 = (android.os.Bundle) r0\n L_0x00d2:\n r8.mo7376a(r2, r1, r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00da:\n r1 = r4\n goto L_0x00c4\n L_0x00dc:\n r0 = r4\n goto L_0x00d2\n L_0x00de:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n java.lang.String r3 = r10.readString()\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0102\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r4 = r0\n L_0x0102:\n java.lang.String r5 = r10.readString()\n java.lang.String r6 = r10.readString()\n r0 = r8\n r0.mo7375a(r1, r2, r3, r4, r5, r6)\n r11.writeNoException()\n goto L_0x0009\n L_0x0113:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n int r3 = r10.readInt()\n int r4 = r10.readInt()\n java.lang.String r5 = r10.readString()\n r0 = r8\n r0.mo7374a(r1, r2, r3, r4, r5)\n r11.writeNoException()\n goto L_0x0009\n L_0x0139:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r10.readString()\n r8.removeMoment(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x014a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7383c(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0163:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7381b(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0178:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.util.ArrayList r1 = r10.createStringArrayList()\n r8.mo7380a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0191:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7385d(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01aa:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7388hl()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01bb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n boolean r0 = r8.mo7389hm()\n r11.writeNoException()\n if (r0 == 0) goto L_0x01cf\n r0 = r7\n L_0x01ca:\n r11.writeInt(r0)\n goto L_0x0009\n L_0x01cf:\n r0 = 0\n goto L_0x01ca\n L_0x01d1:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7390hn()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01e2:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7386e(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01fb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r1 = r10.readInt()\n if (r1 == 0) goto L_0x0214\n com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)\n L_0x0214:\n r8.mo7377a(r0, r4)\n r11.writeNoException()\n goto L_0x0009\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo7372a(C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7373a(C1320b bVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;\n\n /* renamed from: a */\n void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7378a(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;\n\n /* renamed from: a */\n void mo7380a(C1320b bVar, List<String> list) throws RemoteException;\n\n /* renamed from: b */\n void mo7381b(C1320b bVar) throws RemoteException;\n\n /* renamed from: b */\n void mo7382b(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: c */\n void mo7383c(C1320b bVar, String str) throws RemoteException;\n\n void clearDefaultAccount() throws RemoteException;\n\n /* renamed from: d */\n void mo7385d(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: e */\n void mo7386e(C1320b bVar, String str) throws RemoteException;\n\n String getAccountName() throws RemoteException;\n\n /* renamed from: hl */\n String mo7388hl() throws RemoteException;\n\n /* renamed from: hm */\n boolean mo7389hm() throws RemoteException;\n\n /* renamed from: hn */\n String mo7390hn() throws RemoteException;\n\n void removeMoment(String str) throws RemoteException;\n}", "public interface Api {\n String URL_PROD_BASE = \"http://defcon33.ddns.net/\";\n String URL_PROD_TEST = \"http://bcreaderapp.com/\";\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/register\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> register(@Field(\"name\") String name,\n @Field(\"email\") String email,\n @Field(\"password\") String password);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> login(@Field(\"email\") String email,\n @Field(\"password\") String password);\n\n @POST(\"/FoodSavr/public/logout\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<AddFridgeItemResponse> logout();\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/sendToken\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> sendRefreshToken(@Field(\"token\") String token);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/addFridgeItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<AddFridgeItemResponse> addFridgeItem(@Field(\"barcode\") String barcode,\n @Field(\"quantity\") Integer quantity,\n @Field(\"useBy\") Long useBy);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/products/updateInfo\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> updateItemInfo(@Field(\"barcode\") String barcode,\n @Field(\"manufacturer\") String manufacturer,\n @Field(\"name\") String name);\n\n @GET(\"/FoodSavr/public/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> testLogin();\n\n @GET(\"/FoodSavr/public/user/getFridgeItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<ProductsResponse> getFridgeItems();\n\n @GET(\"/FoodSavr/public/user/getDonatedItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<ProductsResponse> getDonatedItems();\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/donateItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> donateItems(@Field(\"id\") Integer productId, @Field(\"quantity\") Integer quantity);\n\n @GET(\"/FoodSavr/public/getRecipes\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<List<RecipeItem>> getRecipes();\n\n /*@POST(\"/user/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<LoginResponse> login(@Body LoginBody body);\n\n @POST(\"/user/logout\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<ApiResponse> logout();\n\n @GET(\"/get/cardslist\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<GenericResponse> getCardsList();*/\n}", "public interface ReqAccessContract {\n\n interface View extends BaseView<Presenter> {\n void onNameError(String message);\n void onUsernameError(String message);\n void onPasswordError(String message);\n void onRelationshipEmptyError();\n void onRequestSentSuccessfully();\n void onAlreadyRegistered();\n void onImageAvailable(Bitmap image);\n void onAlreadyGranted();\n void onError(String displayMessage);\n void showLoadingIndicator();\n void hideLoadingIndicator();\n void onEmptyUserNameError();\n void onNoProfilePicError();\n }\n\n interface Presenter extends BasePresenter {\n void launchImagePicker();\n\n void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull\n int[] grantResults);\n\n void onActivityResult(int requestCode, int resultCode, Intent data);\n\n void handleAccessRequest(User user);\n }\n}", "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "public NetworkManager() {\n okHttpClient = new OkHttpClientProvider().getClient();\n retrofit = new RetrofitInstanceProvider(new RelatedTopicTypeAdapterFactory(), okHttpClient).getRetrofitInstance();\n }", "public interface GoogleApi {\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<VisionRespose> processImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @POST(VISION_CLOUD)\n Call<LogoResponse> processLogoImage64(@Header(\"Content-Length\") String bodyLength, @Query(\"key\") String apiKey, @Body VisionRequest visionRequest);\n\n @Headers(\"Content-Type: application/json\")\n @GET(TRANSLATION_CLOUD)\n Call<TranslationResponse> translateQuery(@Query(\"key\") String apiKey, @Query(\"source\") String source, @Query(\"target\") String target, @Query(\"q\") List<String> queries);\n}", "@Override\n public IBinder onBind(Intent intent) {\n if(org.mcopenplatform.muoapi.BuildConfig.DEBUG)Log.d(TAG,\"onBind packet client: \"+getApplicationContext().getPackageName()+\" 6\");\n Signature[] sigs = new Signature[0];\n\n try {\n sigs = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures;\n } catch (PackageManager.NameNotFoundException e) {\n if(org.mcopenplatform.muoapi.BuildConfig.DEBUG)Log.e(TAG,\"Error in get sign \"+e.getMessage());\n }\n for (Signature sig : sigs)\n {\n if(org.mcopenplatform.muoapi.BuildConfig.DEBUG)Log.i(TAG, \"Signature hashcode : \"+ sig.hashCode());\n }\n String[] paramets;\n if((paramets=checkPermission(this))!=null && paramets.length>0){\n PermissionRequestUtils.requestPermissions(this,paramets);\n }else{\n if(org.mcopenplatform.muoapi.BuildConfig.DEBUG){\n Log.d(TAG,\"The SDK has all the permissions\"); }\n }\n if(startIntent != null){\n intent=startIntent;\n }\n return engine.newClient(intent,this,false);\n }", "private PortletRequestUtils() {\r\n\t\tthrow new UnsupportedOperationException();\r\n\t}", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static OkHttpClient m35241c() {\n return new OkHttpClient();\n }", "public interface DownloadNetworkFactory {\n /* renamed from: a */\n void mo26166a(String str, String str2, Map<String, Object> map, IHttpCallback mVar);\n}", "public okhttp3.Request followUpRequest() {\n /*\n r5 = this;\n r1 = 0;\n r0 = r5.userResponse;\n if (r0 != 0) goto L_0x000b;\n L_0x0005:\n r0 = new java.lang.IllegalStateException;\n r0.<init>();\n throw r0;\n L_0x000b:\n r0 = r5.streamAllocation;\n r0 = r0.connection();\n if (r0 == 0) goto L_0x0027;\n L_0x0013:\n r0 = r0.route();\n L_0x0017:\n r2 = r5.userResponse;\n r2 = r2.code();\n r3 = r5.userRequest;\n r3 = r3.method();\n switch(r2) {\n case 300: goto L_0x0063;\n case 301: goto L_0x0063;\n case 302: goto L_0x0063;\n case 303: goto L_0x0063;\n case 307: goto L_0x0053;\n case 308: goto L_0x0053;\n case 401: goto L_0x0046;\n case 407: goto L_0x0029;\n case 408: goto L_0x00dc;\n default: goto L_0x0026;\n };\n L_0x0026:\n return r1;\n L_0x0027:\n r0 = r1;\n goto L_0x0017;\n L_0x0029:\n if (r0 == 0) goto L_0x003f;\n L_0x002b:\n r1 = r0.proxy();\n L_0x002f:\n r1 = r1.type();\n r2 = java.net.Proxy.Type.HTTP;\n if (r1 == r2) goto L_0x0046;\n L_0x0037:\n r0 = new java.net.ProtocolException;\n r1 = \"Received HTTP_PROXY_AUTH (407) code while not using proxy\";\n r0.<init>(r1);\n throw r0;\n L_0x003f:\n r1 = r5.client;\n r1 = r1.proxy();\n goto L_0x002f;\n L_0x0046:\n r1 = r5.client;\n r1 = r1.authenticator();\n r2 = r5.userResponse;\n r1 = r1.authenticate(r0, r2);\n goto L_0x0026;\n L_0x0053:\n r0 = \"GET\";\n r0 = r3.equals(r0);\n if (r0 != 0) goto L_0x0063;\n L_0x005b:\n r0 = \"HEAD\";\n r0 = r3.equals(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0063:\n r0 = r5.client;\n r0 = r0.followRedirects();\n if (r0 == 0) goto L_0x0026;\n L_0x006b:\n r0 = r5.userResponse;\n r2 = \"Location\";\n r0 = r0.header(r2);\n if (r0 == 0) goto L_0x0026;\n L_0x0075:\n r2 = r5.userRequest;\n r2 = r2.url();\n r0 = r2.resolve(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0081:\n r2 = r0.scheme();\n r4 = r5.userRequest;\n r4 = r4.url();\n r4 = r4.scheme();\n r2 = r2.equals(r4);\n if (r2 != 0) goto L_0x009d;\n L_0x0095:\n r2 = r5.client;\n r2 = r2.followSslRedirects();\n if (r2 == 0) goto L_0x0026;\n L_0x009d:\n r2 = r5.userRequest;\n r2 = r2.newBuilder();\n r4 = okhttp3.internal.http.HttpMethod.permitsRequestBody(r3);\n if (r4 == 0) goto L_0x00c3;\n L_0x00a9:\n r4 = okhttp3.internal.http.HttpMethod.redirectsToGet(r3);\n if (r4 == 0) goto L_0x00d8;\n L_0x00af:\n r3 = \"GET\";\n r2.method(r3, r1);\n L_0x00b4:\n r1 = \"Transfer-Encoding\";\n r2.removeHeader(r1);\n r1 = \"Content-Length\";\n r2.removeHeader(r1);\n r1 = \"Content-Type\";\n r2.removeHeader(r1);\n L_0x00c3:\n r1 = r5.sameConnection(r0);\n if (r1 != 0) goto L_0x00ce;\n L_0x00c9:\n r1 = \"Authorization\";\n r2.removeHeader(r1);\n L_0x00ce:\n r0 = r2.url(r0);\n r1 = r0.build();\n goto L_0x0026;\n L_0x00d8:\n r2.method(r3, r1);\n goto L_0x00b4;\n L_0x00dc:\n r0 = r5.requestBodyOut;\n if (r0 == 0) goto L_0x00e6;\n L_0x00e0:\n r0 = r5.requestBodyOut;\n r0 = r0 instanceof okhttp3.internal.http.RetryableSink;\n if (r0 == 0) goto L_0x00f1;\n L_0x00e6:\n r0 = 1;\n L_0x00e7:\n r2 = r5.callerWritesRequestBody;\n if (r2 == 0) goto L_0x00ed;\n L_0x00eb:\n if (r0 == 0) goto L_0x0026;\n L_0x00ed:\n r1 = r5.userRequest;\n goto L_0x0026;\n L_0x00f1:\n r0 = 0;\n goto L_0x00e7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.HttpEngine.followUpRequest():okhttp3.Request\");\n }", "public synchronized io.fabric.sdk.android.services.settings.Settings m58818a(io.fabric.sdk.android.C15611g r23, io.fabric.sdk.android.services.common.IdManager r24, io.fabric.sdk.android.services.network.HttpRequestFactory r25, java.lang.String r26, java.lang.String r27, java.lang.String r28) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r22 = this;\n r1 = r22;\n r3 = r23;\n monitor-enter(r22);\n r2 = r1.f48448d;\t Catch:{ all -> 0x0095 }\n if (r2 == 0) goto L_0x000b;\n L_0x0009:\n monitor-exit(r22);\n return r1;\n L_0x000b:\n r2 = r1.f48447c;\t Catch:{ all -> 0x0095 }\n r9 = 1;\t Catch:{ all -> 0x0095 }\n if (r2 != 0) goto L_0x0091;\t Catch:{ all -> 0x0095 }\n L_0x0010:\n r2 = r23.getContext();\t Catch:{ all -> 0x0095 }\n r4 = r24.m58638c();\t Catch:{ all -> 0x0095 }\n r5 = new io.fabric.sdk.android.services.common.f;\t Catch:{ all -> 0x0095 }\n r5.<init>();\t Catch:{ all -> 0x0095 }\n r11 = r5.m58689a(r2);\t Catch:{ all -> 0x0095 }\n r5 = r24.m58644i();\t Catch:{ all -> 0x0095 }\n r6 = new io.fabric.sdk.android.services.common.m;\t Catch:{ all -> 0x0095 }\n r6.<init>();\t Catch:{ all -> 0x0095 }\n r7 = new io.fabric.sdk.android.services.settings.j;\t Catch:{ all -> 0x0095 }\n r7.<init>();\t Catch:{ all -> 0x0095 }\n r8 = new io.fabric.sdk.android.services.settings.h;\t Catch:{ all -> 0x0095 }\n r8.<init>(r3);\t Catch:{ all -> 0x0095 }\n r20 = io.fabric.sdk.android.services.common.CommonUtils.m58625k(r2);\t Catch:{ all -> 0x0095 }\n r10 = java.util.Locale.US;\t Catch:{ all -> 0x0095 }\n r12 = \"https://settings.crashlytics.com/spi/v2/platforms/android/apps/%s/settings\";\t Catch:{ all -> 0x0095 }\n r13 = new java.lang.Object[r9];\t Catch:{ all -> 0x0095 }\n r14 = 0;\t Catch:{ all -> 0x0095 }\n r13[r14] = r4;\t Catch:{ all -> 0x0095 }\n r4 = java.lang.String.format(r10, r12, r13);\t Catch:{ all -> 0x0095 }\n r15 = new io.fabric.sdk.android.services.settings.k;\t Catch:{ all -> 0x0095 }\n r10 = r25;\t Catch:{ all -> 0x0095 }\n r12 = r28;\t Catch:{ all -> 0x0095 }\n r15.<init>(r3, r12, r4, r10);\t Catch:{ all -> 0x0095 }\n r12 = r24.m58642g();\t Catch:{ all -> 0x0095 }\n r13 = r24.m58641f();\t Catch:{ all -> 0x0095 }\n r4 = r24.m58640e();\t Catch:{ all -> 0x0095 }\n r16 = r24.m58637b();\t Catch:{ all -> 0x0095 }\n r10 = new java.lang.String[r9];\t Catch:{ all -> 0x0095 }\n r2 = io.fabric.sdk.android.services.common.CommonUtils.m58627m(r2);\t Catch:{ all -> 0x0095 }\n r10[r14] = r2;\t Catch:{ all -> 0x0095 }\n r2 = io.fabric.sdk.android.services.common.CommonUtils.m58598a(r10);\t Catch:{ all -> 0x0095 }\n r5 = io.fabric.sdk.android.services.common.DeliveryMechanism.determineFrom(r5);\t Catch:{ all -> 0x0095 }\n r19 = r5.getId();\t Catch:{ all -> 0x0095 }\n r5 = new io.fabric.sdk.android.services.settings.r;\t Catch:{ all -> 0x0095 }\n r10 = r5;\t Catch:{ all -> 0x0095 }\n r14 = r4;\t Catch:{ all -> 0x0095 }\n r21 = r15;\t Catch:{ all -> 0x0095 }\n r15 = r16;\t Catch:{ all -> 0x0095 }\n r16 = r2;\t Catch:{ all -> 0x0095 }\n r17 = r27;\t Catch:{ all -> 0x0095 }\n r18 = r26;\t Catch:{ all -> 0x0095 }\n r10.<init>(r11, r12, r13, r14, r15, r16, r17, r18, r19, r20);\t Catch:{ all -> 0x0095 }\n r10 = new io.fabric.sdk.android.services.settings.i;\t Catch:{ all -> 0x0095 }\n r2 = r10;\t Catch:{ all -> 0x0095 }\n r4 = r5;\t Catch:{ all -> 0x0095 }\n r5 = r6;\t Catch:{ all -> 0x0095 }\n r6 = r7;\t Catch:{ all -> 0x0095 }\n r7 = r8;\t Catch:{ all -> 0x0095 }\n r8 = r21;\t Catch:{ all -> 0x0095 }\n r2.<init>(r3, r4, r5, r6, r7, r8);\t Catch:{ all -> 0x0095 }\n r1.f48447c = r10;\t Catch:{ all -> 0x0095 }\n L_0x0091:\n r1.f48448d = r9;\t Catch:{ all -> 0x0095 }\n monitor-exit(r22);\n return r1;\n L_0x0095:\n r0 = move-exception;\n r2 = r0;\n monitor-exit(r22);\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.fabric.sdk.android.services.settings.Settings.a(io.fabric.sdk.android.g, io.fabric.sdk.android.services.common.IdManager, io.fabric.sdk.android.services.network.HttpRequestFactory, java.lang.String, java.lang.String, java.lang.String):io.fabric.sdk.android.services.settings.Settings\");\n }", "public interface Request extends RegistryTask {\n\n}", "public interface GoogleApiService {\n\n @GET\n Call<CurrentWeather> getLocationWeather(@Url String url);\n\n @GET\n Call<MyPlaces> getMyNearByPlaces(@Url String url);\n\n}", "protected void addDependencies(MRSubmissionRequest request) {\n // Guava\n request.addJarForClass(ThreadFactoryBuilder.class);\n }", "public interface HttpConnectionCovid {\n\n /**\n * Gets all statistics from the api.\n *\n * @return the all statistics\n * @throws UnirestException the unirest exception\n */\n public JSONObject getAllStatistics() throws UnirestException;\n\n /**\n * Gets statistics of country by its name from the api .\n *\n * @param country the country\n * @return the statistics of country\n * @throws UnirestException the unirest exception\n */\n public JSONObject getStatisticsOfCountry(String country) throws UnirestException;\n\n /**\n * Gets cords of any country.\n *\n * @param Country the country\n * @return the cords of the country\n * @throws UnirestException the unirest exception\n */\n public JSONArray getCordsOfCountry(String Country) throws UnirestException;\n\n}", "public interface IMapsEngineLayerDelegate extends IInterface {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a */\n public static abstract class IMapsEngineLayerDelegate extends Binder implements IMapsEngineLayerDelegate {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a.a */\n static class IMapsEngineLayerDelegate implements IMapsEngineLayerDelegate {\n private IBinder f7659a;\n\n IMapsEngineLayerDelegate(IBinder iBinder) {\n this.f7659a = iBinder;\n }\n\n public final IBinder asBinder() {\n return this.f7659a;\n }\n\n public final void m10923b() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final MapsEngineLayerInfo m10925d() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n MapsEngineLayerInfo a;\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n a = MapsEngineLayerInfo.CREATOR.m11016a(obtain2);\n } else {\n a = null;\n }\n obtain2.recycle();\n obtain.recycle();\n return a;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10920a(float f) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeFloat(f);\n this.f7659a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final float m10926f() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n float readFloat = obtain2.readFloat();\n return readFloat;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10921a(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10927h() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10924b(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10928j() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10922a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate) {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeStrongBinder(iMapsEngineLayerDelegate != null ? iMapsEngineLayerDelegate.asBinder() : null);\n this.f7659a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final int m10929l() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(10, obtain, obtain2, 0);\n obtain2.readException();\n int readInt = obtain2.readInt();\n return readInt;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IMapsEngineLayerDelegate() {\n attachInterface(this, \"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n }\n\n public static IMapsEngineLayerDelegate m8274a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IMapsEngineLayerDelegate)) {\n return new IMapsEngineLayerDelegate(iBinder);\n }\n return (IMapsEngineLayerDelegate) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n int i3 = 0;\n boolean z;\n boolean h;\n switch (i) {\n case R.SlidingUpPanelLayout_umanoShadowHeight /*1*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8267b();\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoParalaxOffset /*2*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n MapsEngineLayerInfo d = m8269d();\n parcel2.writeNoException();\n if (d != null) {\n parcel2.writeInt(1);\n d.writeToParcel(parcel2, 1);\n return true;\n }\n parcel2.writeInt(0);\n return true;\n case R.SlidingUpPanelLayout_umanoFadeColor /*3*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8264a(parcel.readFloat());\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoFlingVelocity /*4*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n float f = m8270f();\n parcel2.writeNoException();\n parcel2.writeFloat(f);\n return true;\n case R.SlidingUpPanelLayout_umanoDragView /*5*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8265a(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoOverlay /*6*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8271h();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case R.SlidingUpPanelLayout_umanoClipPanel /*7*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8268b(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoAnchorPoint /*8*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8272j();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.HT /*9*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8266a(IMapsEngineLayerDelegate.m8274a(parcel.readStrongBinder()));\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.LF /*10*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n i3 = m8273l();\n parcel2.writeNoException();\n parcel2.writeInt(i3);\n return true;\n case 1598968902:\n parcel2.writeString(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n return true;\n default:\n return super.onTransact(i, parcel, parcel2, i2);\n }\n }\n }\n\n void m8264a(float f);\n\n void m8265a(boolean z);\n\n boolean m8266a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate);\n\n void m8267b();\n\n void m8268b(boolean z);\n\n MapsEngineLayerInfo m8269d();\n\n float m8270f();\n\n boolean m8271h();\n\n boolean m8272j();\n\n int m8273l();\n}", "void getRequests();", "public interface NetworkConstatnts {\n\n interface ResponseCode {\n int success = 201;\n int sessionExpred = 203;\n }\n\n interface URL {\n // String BASE_URL = \"\"; //LIVE\n String BASE_URL = \"http://barber.xicom.info/\";//DEMO\n }\n\n interface KEYS {\n String secretKey = \"J3H7F9J6FG\";\n String deviceType = \"DeviceType\";\n String uniqueDeviceId = \"UniqueDeviceId\";\n // String deviceId = \"DeviceID\";\n String TimeStamp = \"TimeStamp\";\n String sessionToken = \"SessionToken\";\n String deviceToken = \"DeviceToken\";\n String userId = \"userId\";\n String sessionId = \"SessionId\";\n String ClientHash = \"ClientHash\";\n\n\n }\n\n interface API {\n String ABOUT_US = URL.BASE_URL + \"Page/AboutUs\";\n\n String loginUser = \"api/account/Login\";\n }\n\n interface Params {\n String firstName = \"firstName\";\n String email = \"Email\";\n String lastName = \"lastName\";\n String password = \"Password\";\n\n }\n\n interface RequestCode {\n int API_LOGIN = 1;\n int API_REGISTER = 2;\n int API_FORGET_PASSWORD = 3;\n\n }\n}", "public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}", "public interface iRepository {\n\n @GET(\"contacts/\")\n Call<User> getContacts();\n\n @FormUrlEncoded\n @POST(\"/user/register/\")\n Call<RootLogin> signUp(@Field(\"fullName\") String fullName, @Field(\"password\") String password, @Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig, @Field(\"accountType\") String accountType, @Field(\"externalUserId\") String externalUserId, @Field(\"externalPhotoUrl\") String externalPhotoUrl);\n\n @FormUrlEncoded\n @POST(\"/user/auth/\")\n Call<RootLogin> login(@Field(\"password\") String password, @Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig);\n\n @FormUrlEncoded\n @POST(\"/user/delete/\")\n Call<Status> accountDelete(@Field(\"key\") String key, @Field(\"sig\") String sig, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/monitor/add/\")\n Call<RootRegister> addMonitor(@Field(\"startDate\") String startDate, @Field(\"name\") String name,\n @Field(\"address\") String address, @Field(\"interval\") String interval, @Field(\"type\") String type, @Field(\"port\") String port, @Field(\"keywords\") String keywords,\n @Field(\"mobileDateTime\") String mobileDateTime, @Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/monitor/list/\")\n Call<RootMonitorList> getMonitorList(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/user/forgetpass/\")\n Call<RootRegister> forgotPassword(@Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig);\n\n @FormUrlEncoded\n @POST(\"/status/add/\")\n Call<RootRegister> sendStatus(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId, @Field(\"status\") String status, @Field(\"mobileDateTime\") String mobileDateTime, @Field(\"deviceName\") String deviceName, @Field(\"ipAddress\") String ipAddress);\n\n\n @FormUrlEncoded\n @POST(\"/status/list/\")\n Call<RootMonitorStatus> getStatusList(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId, @Field(\"timeFrame\") String timeFrame);\n\n @FormUrlEncoded\n @POST(\"/status/get/\")\n Call<RootMonitorStatus> getMonitorStatus(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/monitor/delete/\")\n Call<RootRegister> sendMonitorDelete(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/monitor/pause/\")\n Call<RootRegister> sendMonitorPause(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/status/ping/\")\n Call<RootMonitorStatus> getStatusPing(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n\n @GET(\"/\")\n Call<ResponseBody> checkType1();\n\n\n// @POST(\"api2/completePrfile\")\n// Call<User> completeProfile(@Header(\"Authorization\") String authorization, @Body User userLogin);\n//\n// @POST(\"/api2/login\")\n// Call<User> loginUser(@Body User userLogin);\n//\n\n\n// @POST(\"api2/community\")\n// Call<ModelCummunity> addCommunity(@Header(\"Authorization\") String authorization, @Body ModelCummunity modelCummunity);\n//\n// @POST(\"api2/m.facebook\")\n// Call<User> facebookLogin(@Body User book);\n//\n// @POST(\"api2/m.google\")\n// Call<User> googleLogin(@Body User book);\n//\n// @Multipart\n// @POST(\"api2/upload\")\n// Call<User> uploadBook(@Header(\"Authorization\") String authorization, @Part MultipartBody.Part filePart);\n//\n// @GET(\"api2/community\")\n// Call<RootModel> search(@Header(\"Authorization\") String authorization, @Query(\"searchkeyword\") String searchkeyword);\n//\n// @GET(\"api2/joinCommunity/{cum_id}\")\n// Call<RootModelJoinCommunity> joinCum(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @GET(\"api2/communityRoom/{cum_id}\")\n// Call<RootModel> getRooms(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @POST(\"api2/communityRoom/{cum_id}\")\n// Call<RootModel> createRoom(@Header(\"Authorization\") String authorization, @Body ModelRoom modelRoom, @Path(\"cum_id\") String cum_id);\n//\n// @GET(\"api2/communityMembers/{cum_id}\")\n// Call<ModelCommunityMembers> getCommunityMembers(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @POST(\"api2/addServiceProvider\")\n// Call<RootModel> addServiceProvider(@Header(\"Authorization\") String authorization, @Body ModelUserInfo modelProfession);\n//\n// @GET(\"api2/getuserdetail\")\n// Call<RootUserInfo> getUserDetail(@Header(\"Authorization\") String authorization);\n//\n// @GET(\"api2/joinRoom/{room_id}\")\n// Call<RootModel> joinRoom(@Header(\"Authorization\") String authorization, @Path(\"room_id\") String room_id);\n//\n// @GET(\"/api2/communityPosts/{cum_id}\")\n// Call<RootPost> getPosts(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String room_id);\n//\n// @POST(\"api2/updatePrfile\")\n// Call<RootModel> updateProfile(@Header(\"Authorization\") String authorization, @Body ModelUserInfo user);\n//\n// @GET(\"/api2/roomMembers/{room_id}\")\n// Call<RootModelGroupMember> getRoomMembers(@Header(\"Authorization\") String authorization, @Path(\"room_id\") String room_id);\n//\n// @GET(\"/api2/myCommunities\")\n// Call<RootMyCommunities> getMyCommunities(@Header(\"Authorization\") String authorization);\n//\n// @POST(\"/api2/communityPost/{cum_id}\")\n// Call<RootModel> addPost(@Header(\"Authorization\") String authorization, @Body ModelPost modelPost, @Path(\"cum_id\") String cum_id);\n//\n//\n// @GET(\"api2/getCommunityProfession/{cum_id}\")\n// Call<ModelCommunityMembers> getDirectory(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n//\n// @FormUrlEncoded\n// @POST(\"api2/getmemberdetail\")\n// Call<RootUserInfo> getOtherUserInfo(@Header(\"Authorization\") String authorization, @Field(\"userId\") String userId);\n//\n//\n// @GET(\"/api2/getServiceProvider/{cum_id}\")\n// Call<ModelCommunityMembers> getServiceProviders(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cumId, @Query(\"profesion\") String profesion);\n//\n//\n// @GET(\"api2/communityPostLike/{post_id}\")\n// Call<RootModel> likePost(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id);\n//\n// @GET(\"api2/communityPostComment/{post_id}\")\n// Call<RootComment> getComments(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id);\n//\n//\n// @FormUrlEncoded\n// @POST(\"api2/communityPostComment/{post_id}\")\n// Call<RootComment> postComment(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id, @Field(\"comment\") String comment);\n\n\n}", "Lock getProtocolImportLock();", "public final void run() {\n AppMethodBeat.i(108148);\n if (q.a(cVar2.aBx(), jSONObject2, (com.tencent.mm.plugin.appbrand.s.q.a) cVar2.aa(com.tencent.mm.plugin.appbrand.s.q.a.class)) == b.FAIL_SIZE_EXCEED_LIMIT) {\n aVar2.BA(\"convert native buffer parameter fail. native buffer exceed size limit.\");\n AppMethodBeat.o(108148);\n return;\n }\n String CS = j.CS(jSONObject2.optString(\"url\"));\n Object opt = jSONObject2.opt(\"data\");\n String optString = jSONObject2.optString(FirebaseAnalytics.b.METHOD);\n if (bo.isNullOrNil(optString)) {\n optString = \"GET\";\n }\n if (TextUtils.isEmpty(CS)) {\n aVar2.BA(\"url is null\");\n AppMethodBeat.o(108148);\n } else if (URLUtil.isHttpsUrl(CS) || URLUtil.isHttpUrl(CS)) {\n byte[] bArr = new byte[0];\n if (opt != null && d.CK(optString)) {\n if (opt instanceof String) {\n bArr = ((String) opt).getBytes(Charset.forName(\"UTF-8\"));\n } else if (opt instanceof ByteBuffer) {\n bArr = com.tencent.mm.plugin.appbrand.r.d.q((ByteBuffer) opt);\n }\n }\n synchronized (d.this.ioA) {\n try {\n if (d.this.ioA.size() >= d.this.ioB) {\n aVar2.BA(\"max connected\");\n ab.i(\"MicroMsg.AppBrandNetworkRequest\", \"max connected mRequestTaskList.size():%d,mMaxRequestConcurrent:%d\", Integer.valueOf(d.this.ioA.size()), Integer.valueOf(d.this.ioB));\n }\n } finally {\n while (true) {\n }\n AppMethodBeat.o(108148);\n }\n }\n } else {\n aVar2.BA(\"request protocol must be http or https\");\n AppMethodBeat.o(108148);\n }\n }", "private KubevirtNetworkingUtil() {\n }", "public interface ActivityRecognitionApi {\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n ActivityRecognitionResult getLastActivity(GoogleApiClient googleApiClient) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> removeActivityUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> removeFloorChangeUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> removeGestureUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> removeSleepSegmentUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> requestActivityUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"J\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"J\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) long j, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"J\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> requestFloorChangeUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> requestGestureUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Lcom/google/android/gms/location/GestureRequest;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Lcom/google/android/gms/location/GestureRequest;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GestureRequest gestureRequest, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Lcom/google/android/gms/location/GestureRequest;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n\n @RequiresPermission(\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\")\n PendingResult<Status> requestSleepSegmentUpdates(@Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) GoogleApiClient googleApiClient, @Signature({\"(\", \"Lcom/google/android/gms/common/api/GoogleApiClient;\", \"Landroid/app/PendingIntent;\", \")\", \"Lcom/google/android/gms/common/api/PendingResult\", \"<\", \"Lcom/google/android/gms/common/api/Status;\", \">;\"}) PendingIntent pendingIntent) throws ;\n}", "public interface IFingerprintServiceReceiver extends android.os.IInterface\n{\n/** Local-side IPC implementation stub class. */\npublic static abstract class Stub extends android.os.Binder implements android.service.fingerprint.IFingerprintServiceReceiver\n{\nprivate static final java.lang.String DESCRIPTOR = \"android.service.fingerprint.IFingerprintServiceReceiver\";\n/** Construct the stub at attach it to the interface. */\npublic Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}\n/**\n * Cast an IBinder object into an android.service.fingerprint.IFingerprintServiceReceiver interface,\n * generating a proxy if needed.\n */\npublic static android.service.fingerprint.IFingerprintServiceReceiver asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.service.fingerprint.IFingerprintServiceReceiver))) {\nreturn ((android.service.fingerprint.IFingerprintServiceReceiver)iin);\n}\nreturn new android.service.fingerprint.IFingerprintServiceReceiver.Stub.Proxy(obj);\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn this;\n}\n@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException\n{\nswitch (code)\n{\ncase INTERFACE_TRANSACTION:\n{\nreply.writeString(DESCRIPTOR);\nreturn true;\n}\ncase TRANSACTION_onEnrollResult:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nint _arg1;\n_arg1 = data.readInt();\nthis.onEnrollResult(_arg0, _arg1);\nreturn true;\n}\ncase TRANSACTION_onAcquired:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onAcquired(_arg0);\nreturn true;\n}\ncase TRANSACTION_onProcessed:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onProcessed(_arg0);\nreturn true;\n}\ncase TRANSACTION_onError:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onError(_arg0);\nreturn true;\n}\ncase TRANSACTION_onRemoved:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onRemoved(_arg0);\nreturn true;\n}\n}\nreturn super.onTransact(code, data, reply, flags);\n}\nprivate static class Proxy implements android.service.fingerprint.IFingerprintServiceReceiver\n{\nprivate android.os.IBinder mRemote;\nProxy(android.os.IBinder remote)\n{\nmRemote = remote;\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn mRemote;\n}\npublic java.lang.String getInterfaceDescriptor()\n{\nreturn DESCRIPTOR;\n}\n@Override public void onEnrollResult(int fingerprintId, int remaining) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\n_data.writeInt(remaining);\nmRemote.transact(Stub.TRANSACTION_onEnrollResult, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onAcquired(int acquiredInfo) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(acquiredInfo);\nmRemote.transact(Stub.TRANSACTION_onAcquired, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onProcessed(int fingerprintId) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\nmRemote.transact(Stub.TRANSACTION_onProcessed, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onError(int error) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(error);\nmRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onRemoved(int fingerprintId) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\nmRemote.transact(Stub.TRANSACTION_onRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n}\nstatic final int TRANSACTION_onEnrollResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);\nstatic final int TRANSACTION_onAcquired = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);\nstatic final int TRANSACTION_onProcessed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);\nstatic final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);\nstatic final int TRANSACTION_onRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);\n}\npublic void onEnrollResult(int fingerprintId, int remaining) throws android.os.RemoteException;\npublic void onAcquired(int acquiredInfo) throws android.os.RemoteException;\npublic void onProcessed(int fingerprintId) throws android.os.RemoteException;\npublic void onError(int error) throws android.os.RemoteException;\npublic void onRemoved(int fingerprintId) throws android.os.RemoteException;\n}", "public interface TCNetworkManageInterface {\n\n public String serviceIdentifier();\n\n public String apiClassPath();\n\n public String apiMethodName();\n}", "@Override\n public void onCallInformationRequestRequest(CallInformationRequestRequest arg0) {\n\n }", "public interface OnRestCallback {\n void onNetSuccess(int requestCode, int responseCode, String data);\n void onNetError(int requestCode, int responseCode, String error);\n}", "private NetUtils() {\r\n\t}", "public interface HttpClientInterface {\n\n Retrofit getClient();\n}", "public void loadFromNetworkWithAuth(final String ServiceTag,\n int RequestType,\n final String Url,\n final JSONObject JsonRequest,\n final OnTaskCompleted callback,\n final OnTaskError errorCallback){\n\n JsonObjectRequest jsonObjReq=new JsonObjectRequest(RequestType, Url, JsonRequest,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.e(ServiceTag, response.toString());\n callback.onTaskCompleted(response);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error instanceof TimeoutError || error instanceof NoConnectionError) {\n Toast.makeText(context,\"Error: Timeout\",Toast.LENGTH_LONG).show();\n } else if (error instanceof AuthFailureError) {\n Toast.makeText(context,\"Error: AuthFailure\",Toast.LENGTH_LONG).show();\n } else if (error instanceof ServerError) {\n String responseBody = null;\n try {\n responseBody = new String(error.networkResponse.data, \"utf-8\");\n JSONObject jsonObject = new JSONObject(responseBody);\n Log.e(\"Error-Msg\",jsonObject.getString(\"errorMessage\"));\n Toast.makeText(context, jsonObject.getString(\"errorMessage\"), Toast.LENGTH_LONG).show();\n errorCallback.onTaskError(jsonObject.getString(\"errorMessage\"));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else if (error instanceof NetworkError) {\n Toast.makeText(context,\"Error: Network issue\",Toast.LENGTH_LONG).show();\n } else if (error instanceof ParseError) {\n Toast.makeText(context,\"Error: Parse Error\",Toast.LENGTH_LONG).show();\n }\n }\n }){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Authorization\", ConstantVariables.auth_token);\n return headers;\n }\n };\n jsonObjReq.setRetryPolicy(retryPolicy);\n if (checkInternetConnection() == true) {\n try{\n AppController.getInstance().addToRequestQueue(jsonObjReq, ServiceTag);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n\n }", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\tCollection<Class<? extends IFloodlightService>> l =\n\t\t new ArrayList<Class<? extends IFloodlightService>>();\n\t\t l.add(IFloodlightProviderService.class);\n\t\t l.add(IStaticEntryPusherService.class);\n\t\t return l;\n\t}", "@Override\n protected String inferProtocol() {\n return \"http\";\n }", "public interface MethodsHttpUtils {\n HttpResponse doGet(String url, String mediaType) throws AppServerNotAvailableException, IOException;\n HttpResponse doPost(String url, String mediaType, String dataJson) throws UnsupportedEncodingException, ClientProtocolException, AppServerNotAvailableException;\n HttpResponse doDelete(String url, String mediaType) throws AppServerNotAvailableException;\n HttpResponse doPut(String url, String mediaType, String dataJson) throws AppServerNotAvailableException;\n}", "com.czht.face.recognition.Czhtdev.RequestOrBuilder getRequestOrBuilder();", "public interface IRequest<T, O> {\r\n /**\r\n * Call back interface method for processing the Server Request\r\n *\r\n * @param requestInfo - RequestInfo Object which holds all the required Request Details\r\n */\r\n void processRequest(RequestInfo<T, O> requestInfo, Class<T> TClass, Class<O> OClass, boolean invalidateCache);\r\n\r\n void registerListener(INetworkListener networkListener);\r\n\r\n boolean cancelRequest();\r\n}", "void onNetworkCredentialsRequested();", "@Override\n public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n return null;\n }", "public void request() {\n /*\n r11 = this;\n r0 = 0\n r11.mResponse = r0\n java.lang.String r1 = r11.mUrlString\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r3 = 0\n r5 = r0\n r4 = 0\n L_0x000d:\n r6 = 1\n java.lang.String r7 = \"DistanceConfigFetcher\"\n if (r4 == 0) goto L_0x002a\n r1 = 2\n java.lang.Object[] r1 = new java.lang.Object[r1]\n java.lang.String r8 = r11.mUrlString\n r1[r3] = r8\n java.lang.String r8 = \"Location\"\n java.lang.String r9 = r5.getHeaderField(r8)\n r1[r6] = r9\n java.lang.String r9 = \"Following redirect from %s to %s\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r9, r1)\n java.lang.String r1 = r5.getHeaderField(r8)\n L_0x002a:\n int r4 = r4 + 1\n r8 = -1\n r11.mResponseCode = r8\n java.net.URL r8 = new java.net.URL // Catch:{ Exception -> 0x0035 }\n r8.<init>(r1) // Catch:{ Exception -> 0x0035 }\n goto L_0x0044\n L_0x0035:\n r8 = move-exception\n java.lang.Object[] r9 = new java.lang.Object[r6]\n java.lang.String r10 = r11.mUrlString\n r9[r3] = r10\n java.lang.String r10 = \"Can't construct URL from: %s\"\n org.altbeacon.beacon.logging.LogManager.e(r7, r10, r9)\n r11.mException = r8\n r8 = r0\n L_0x0044:\n if (r8 != 0) goto L_0x004e\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r8 = \"URL is null. Cannot make request\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r8, r6)\n goto L_0x00a0\n L_0x004e:\n java.net.URLConnection r8 = r8.openConnection() // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.net.HttpURLConnection r8 = (java.net.HttpURLConnection) r8 // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.lang.String r5 = \"User-Agent\"\n java.lang.String r9 = r11.mUserAgentString // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r8.addRequestProperty(r5, r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r5 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r11.mResponseCode = r5 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.String r5 = \"response code is %s\"\n java.lang.Object[] r6 = new java.lang.Object[r6] // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r9 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r6[r3] = r9 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n org.altbeacon.beacon.logging.LogManager.d(r7, r5, r6) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n goto L_0x009f\n L_0x0073:\n r5 = move-exception\n goto L_0x007c\n L_0x0075:\n r5 = move-exception\n goto L_0x0089\n L_0x0077:\n r5 = move-exception\n goto L_0x0096\n L_0x0079:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x007c:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach server\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0086:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0089:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"No data exists at \\\"+urlString\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0093:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0096:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach sever. Have you added android.permission.INTERNET to your manifest?\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n L_0x009f:\n r5 = r8\n L_0x00a0:\n r6 = 10\n if (r4 >= r6) goto L_0x00b2\n int r6 = r11.mResponseCode\n r8 = 302(0x12e, float:4.23E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 301(0x12d, float:4.22E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 303(0x12f, float:4.25E-43)\n if (r6 == r8) goto L_0x000d\n L_0x00b2:\n java.lang.Exception r0 = r11.mException\n if (r0 != 0) goto L_0x00e2\n java.io.BufferedReader r0 = new java.io.BufferedReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStreamReader r1 = new java.io.InputStreamReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStream r4 = r5.getInputStream() // Catch:{ Exception -> 0x00d8 }\n r1.<init>(r4) // Catch:{ Exception -> 0x00d8 }\n r0.<init>(r1) // Catch:{ Exception -> 0x00d8 }\n L_0x00c4:\n java.lang.String r1 = r0.readLine() // Catch:{ Exception -> 0x00d8 }\n if (r1 == 0) goto L_0x00ce\n r2.append(r1) // Catch:{ Exception -> 0x00d8 }\n goto L_0x00c4\n L_0x00ce:\n r0.close() // Catch:{ Exception -> 0x00d8 }\n java.lang.String r0 = r2.toString() // Catch:{ Exception -> 0x00d8 }\n r11.mResponse = r0 // Catch:{ Exception -> 0x00d8 }\n goto L_0x00e2\n L_0x00d8:\n r0 = move-exception\n r11.mException = r0\n java.lang.Object[] r1 = new java.lang.Object[r3]\n java.lang.String r2 = \"error reading beacon data\"\n org.altbeacon.beacon.logging.LogManager.w(r0, r7, r2, r1)\n L_0x00e2:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.altbeacon.beacon.distance.DistanceConfigFetcher.request():void\");\n }", "public interface IImageLoaderClient {\n public void init(Context context);\n\n public void destroy(Context context);\n\n public File getCacheDir(Context context);\n\n public void clearMemoryCache(Context context);\n\n public void clearDiskCache(Context context);\n\n public Bitmap getBitmapFromCache(Context context, String url);\n\n public void getBitmapFromCache(Context context, String url, IGetBitmapListener listener);\n\n public void displayImage(Context context, int resId, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, boolean isCache);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n\n public void displayImage(Context context, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n\n public void displayCircleImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayCircleImage(Fragment fragment, String url, ImageView imageView, int defRes);\n @Deprecated\n public void displayRoundImage(Context context, String url, ImageView imageView, int defRes, int radius);\n\n public void displayRoundImage(Fragment fragment, String url, ImageView imageView, int defRes, int radius);\n\n public void displayBlurImage(Context context, String url, int blurRadius, IGetDrawableListener listener);\n\n public void displayBlurImage(Context context, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayBlurImage(Context context, int resId, ImageView imageView, int blurRadius);\n\n public void displayBlurImage(Fragment fragment, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n\n //add shiming 2018.4.20 transformation 需要装换的那种图像的风格,错误图片,或者是,正在加载中的错误图\n public void displayImageInResourceTransform(Activity activity, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Context context, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Fragment fragment, int resId, ImageView imageView, Transformation transformation, int errorResId);\n\n //这是对网络图片,进行的图片操作,使用的glide中的方法\n public void displayImageByNet(Context context, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Fragment fragment, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Activity activity, String url, ImageView imageView, int defRes, Transformation transformation);\n\n\n /**\n * 停止图片的加载,对某一个的Activity\n * @hide\n */\n public void clear(Activity activity, ImageView imageView);\n /**\n * 停止图片的加载,context\n * {@hide}\n */\n public void clear(Context context, ImageView imageView);\n /**\n * 停止图片的加载,fragment\n * {@hide}\n */\n public void clear(Fragment fragment, ImageView imageView);\n\n\n //如果需要的话,需要指定加载中,或者是失败的图片\n public void displayImageByDiskCacheStrategy(Fragment fragment, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Activity activity, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Context context, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n //某些情形下,你可能希望只要图片不在缓存中则加载直接失败(比如省流量模式)\n public void disPlayImageOnlyRetrieveFromCache(Fragment fragment, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Activity activity, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Context context, String url, ImageView imageView);\n\n\n\n /**\n *如果你想确保一个特定的请求跳过磁盘和/或内存缓存(比如,图片验证码 –)\n * @param fragment\n * @param url\n * @param imageView\n * @param skipflag 是否跳过内存缓存\n * @param diskCacheStratey 是否跳过磁盘缓存\n */\n public void disPlayImageSkipMemoryCache(Fragment fragment, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Activity activity, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Context context, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n\n /**\n * 知道这个图片会加载失败,那么的话,我们可以重新加载\n * @param fragment\n * @param url\n * @param fallbackUrl\n * @param imageView\n */\n //从 Glide 4.3.0 开始,你可以很轻松地使用 .error() 方法。这个方法接受一个任意的 RequestBuilder,它会且只会在主请求失败时开始一个新的请求:\n public void disPlayImageErrorReload(Fragment fragment, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Activity activity, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Context context, String url, String fallbackUrl, ImageView imageView);\n\n\n /**\n 未来 Glide 将默认加载硬件位图而不需要额外的启用配置,只保留禁用的选项 现在已经默认开启了这个配置,但是在有些情况下需要关闭\n 所以提供了以下的方法,禁用硬件位图 disallowHardwareConfig\n * @param fragment\n * @param url\n * @param imageView\n */\n// 哪些情况不能使用硬件位图?\n// 在显存中存储像素数据意味着这些数据不容易访问到,在某些情况下可能会发生异常。已知的情形列举如下:\n// 在 Java 中读写像素数据,包括:\n// Bitmap#getPixel\n// Bitmap#getPixels\n// Bitmap#copyPixelsToBuffer\n// Bitmap#copyPixelsFromBuffer\n// 在本地 (native) 代码中读写像素数据\n// 使用软件画布 (software Canvas) 渲染硬件位图:\n// Canvas canvas = new Canvas(normalBitmap)\n//canvas.drawBitmap(hardwareBitmap, 0, 0, new Paint());\n// 在绘制位图的 View 上使用软件层 (software layer type) (例如,绘制阴影)\n// ImageView imageView = …\n// imageView.setImageBitmap(hardwareBitmap);\n//imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\n// 打开过多的文件描述符 . 每个硬件位图会消耗一个文件描述符。\n// 这里存在一个每个进程的文件描述符限制 ( Android O 及更早版本一般为 1024,在某些 O-MR1 和更高的构建上是 32K)。\n// Glide 将尝试限制分配的硬件位图以保持在这个限制以内,但如果你已经分配了大量的文件描述符,这可能是一个问题。\n// 需要ARGB_8888 Bitmaps 作为前置条件\n// 在代码中触发截屏操作,它会尝试使用 Canvas 来绘制视图层级。\n// 作为一个替代方案,在 Android O 以上版本你可以使用 PixelCopy.\n// 共享元素过渡 (shared element transition)(OMR1已修复)\n public void disPlayImagedisallowHardwareConfig(Fragment fragment, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Activity activity, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Context context, String url, ImageView imageView);\n\n //监听图片的下载进度,是否完成,百分比 也可以加载本地图片,扩张一下\n public void disPlayImageProgress(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n\n public void disPlayImageProgressByOnProgressListener(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n\n\n\n// TransitionOptions 用于给一个特定的请求指定过渡。\n// 每个请求可以使用 RequestBuilder 中的 transition()\n// 方法来设定 TransitionOptions 。还可以通过使用\n// BitmapTransitionOptions 或 DrawableTransitionOptions\n// 来指定类型特定的过渡动画。对于 Bitmap 和 Drawable\n// 之外的资源类型,可以使用 GenericTransitionOptions。 Glide v4 将不会默认应用交叉淡入或任何其他的过渡效果。每个请求必须手动应用过渡。\n public void displayImageByTransition(Context context, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Activity activity, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Fragment fragment, String url, TransitionOptions transitionOptions, ImageView imageView);\n\n //失去焦点,建议实际的项目中少用,取消求情\n public void glidePauseRequests(Context context);\n public void glidePauseRequests(Activity activity);\n public void glidePauseRequests(Fragment fragment);\n\n //获取焦点,建议实际的项目中少用\n public void glideResumeRequests(Context context);\n public void glideResumeRequests(Activity activity);\n public void glideResumeRequests(Fragment fragment);\n //加载缩图图 int thumbnailSize = 10;//越小,图片越小,低网络的情况,图片越小\n //GlideApp.with(this).load(urlnoData).override(thumbnailSize))// API 来强制 Glide 在缩略图请求中加载一个低分辨率图像\n public void displayImageThumbnail(Context context, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Fragment fragment, String url, String backUrl, int thumbnailSize, ImageView imageView);\n //如果没有两个url的话,也想,记载一个缩略图\n public void displayImageThumbnail(Fragment fragment, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Context context, String url, float thumbnailSize, ImageView imageView);\n}", "@Beta\npublic interface GoogleComputeEngineApi extends Closeable {\n\n /**\n * Provides access to Address features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n AddressApi getAddressApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Disk features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskApi getDiskApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to DiskType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskTypeApi getDiskTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Firewall features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n FirewallApi getFirewallApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to ForwardingRule features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n ForwardingRuleApi getForwardingRuleApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Global Operation features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n GlobalOperationApi getGlobalOperationApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to HttpHealthCheck features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n HttpHealthCheckApi getHttpHealthCheckApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Image features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n ImageApi getImageApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Instance features\n *\n * @param projectName the name of the project\n * @param zone zone the instances are in.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n InstanceApi getInstanceApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to MachineType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n MachineTypeApi getMachineTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Network features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n NetworkApi getNetworkApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Project features\n */\n @Delegate\n ProjectApi getProjectApi();\n\n /**\n * Provides access to Region features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n RegionApi getRegionApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Region Operation features\n *\n * @param project the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n RegionOperationApi getRegionOperationApi(@PathParam(\"project\") String project, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Route features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n RouteApi getRouteApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Snapshot features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n SnapshotApi getSnapshotApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to TargetPool features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n TargetPoolApi getTargetPoolApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Zone features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n ZoneApi getZoneApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Zone Operation features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n ZoneOperationApi getZoneOperationApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n}", "public interface NetworkApi {\n\t@GET\n\t@Streaming\n\tCall<ResponseBody> download(@Url String url, @Header(\"Range\") String rangeDownload, @Header(\"Connection\") String connection);\n}", "@Override\n\tpublic void requestToNet(String url, ArrayList<NameValuePair> params) {\n\t\tif (super.isConnected()) {\n\t\t\tsuper.requestToNet(url, params);\n\t\t}\n\n\t}", "void processRequest(RequestInfo<T, O> requestInfo, Class<T> TClass, Class<O> OClass, boolean invalidateCache);", "void mo54418a(DownloadTask downloadTask);", "@Override\n public List<Method> getAllUssdMethodes(String className) {\n\n Class klass = null;\n\n try {\n klass = Class.forName(className);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n List<Method> resultMethods = new ArrayList<Method>();\n if (klass == null)\n return resultMethods;\n Method[] methods = klass.getDeclaredMethods();\n\n\n for (Method method : methods) {\n method.setAccessible(true);\n if (method.isAnnotationPresent(UssdMethod.class)) {\n resultMethods.add(method);\n }\n }\n\n return resultMethods;\n }", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n\tprotected void updateTargetRequest() {\n\t}", "private ReflectionRequest(Builder builder) {\n super(builder);\n }", "public interface ApiInterface {\n\n @GET(\"android_task.php\")\n Call<JsonResponse> getRecepies();\n}", "@Override\n public void run() {\n String origin = slat + \",\" + slng;\n String dest = dlat + \",\" + dlng;\n// String googleApiKey = \"AIzaSyC7V9uWEfYabkwgSNF2zyDedJcHilCDIpM\";\n String googleApiKey = \"AIzaSyCFZyKKvqUSacq3gDLw5rCfgFohQMYWyKI\";\n String tomtomApiKey = \"93lGMTmQuN5JmgZqR0HGb3TwYvrDSz6i\";\n\n// URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?origin=\"\n// + origin + \"&destination=\" + dest + \"&travel_mode=DRIVING\" +\n// \"&key=\" + googleApiKey);\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n try {\n URL url = null;\n if (useApi == GOOGLE_API) {\n /* for google */\n url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?origin=\"\n + origin + \"&destination=\" + dest + \"&travel_mode=DRIVING\" +\n \"&key=\" + googleApiKey);\n } else if (useApi == TOM_TOM_API) {\n /* for tomtom */\n if (wayPoints != null && wayPoints.length() > 0) {\n url = new URL(\"https://api.tomtom.com/routing/1/calculateRoute/\" + origin +\n \":\" + wayPoints + \":\" + dest +\n \"/json?&travelMode=car&key=\" + tomtomApiKey);\n } else {\n url = new URL(\"https://api.tomtom.com/routing/1/calculateRoute/\" + origin +\n \":\" + dest +\n \"/json?&travelMode=car&key=\" + tomtomApiKey);\n }\n ServerAsyncTask serverAsyncTask = new ServerAsyncTask(context, serverHelper);\n serverHelper.setUrl(url.toString());\n serverHelper.setTag(map);\n serverAsyncTask.showCallProgress(false);\n serverAsyncTask.execute();\n }\n } catch (Exception e) {\n Helper.printLogMsg(\"Exception while reading url\", e.toString());\n }\n\n// CameraPosition cameraPosition = new CameraPosition.Builder()\n// .target(new com.google.android.gms.maps.model.LatLng(slat, slng)).zoom(16).build();\n// map.animateCamera(CameraUpdateFactory\n// .newCameraPosition(cameraPosition));\n }", "@kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000&\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\bf\\u0018\\u0000 \\u000b2\\u00020\\u0001:\\u0001\\u000bJ\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0004\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0005\\u001a\\u00020\\u0006H&J\\u0010\\u0010\\u0007\\u001a\\u00020\\b2\\u0006\\u0010\\t\\u001a\\u00020\\nH&\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"\", \"getDiskIOExecutor\", \"Ljava/util/concurrent/Executor;\", \"getNetworkExecutor\", \"getRedditApi\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/api/RedditApi;\", \"getRepository\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository;\", \"type\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository$Type;\", \"Companion\", \"app_debug\"})\npublic abstract interface ServiceLocator {\n public static final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator.Companion Companion = null;\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository getRepository(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository.Type type);\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getNetworkExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getDiskIOExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.api.RedditApi getRedditApi();\n \n @kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000 \\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0002\\b\\u0002\\b\\u0086\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u000e\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007J\\u0010\\u0010\\b\\u001a\\u00020\\t2\\u0006\\u0010\\n\\u001a\\u00020\\u0005H\\u0007R\\u000e\\u0010\\u0003\\u001a\\u00020\\u0001X\\u0082\\u0004\\u00a2\\u0006\\u0002\\n\\u0000R\\u0010\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005X\\u0082\\u000e\\u00a2\\u0006\\u0002\\n\\u0000\\u00a8\\u0006\\u000b\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator$Companion;\", \"\", \"()V\", \"LOCK\", \"instance\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"context\", \"Landroid/content/Context;\", \"swap\", \"\", \"locator\", \"app_debug\"})\n public static final class Companion {\n private static final java.lang.Object LOCK = null;\n private static com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance;\n \n @org.jetbrains.annotations.NotNull()\n public final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance(@org.jetbrains.annotations.NotNull()\n android.content.Context context) {\n return null;\n }\n \n /**\n * * Allows tests to replace the default implementations.\n */\n @android.support.annotation.VisibleForTesting()\n public final void swap(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator locator) {\n }\n \n private Companion() {\n super();\n }\n }\n}", "@Override\n public void onCollectInformationRequest(CollectInformationRequest arg0) {\n\n }", "private MockClientNetworkModule() {\n\t\t// TODO complete this constructor\n\t}", "public static RemoteObject _globals() throws Exception{\nrequests3.mostCurrent._icon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.BitmapDrawable\");\n //BA.debugLineNum = 25;BA.debugLine=\"Private xui As XUI\";\nrequests3.mostCurrent._xui = RemoteObject.createNew (\"anywheresoftware.b4a.objects.B4XViewWrapper.XUI\");\n //BA.debugLineNum = 27;BA.debugLine=\"Private TileSourceSpinner As Spinner\";\nrequests3.mostCurrent._tilesourcespinner = RemoteObject.createNew (\"anywheresoftware.b4a.objects.SpinnerWrapper\");\n //BA.debugLineNum = 29;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 30;BA.debugLine=\"Private FilterStartDate As String\";\nrequests3.mostCurrent._filterstartdate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 31;BA.debugLine=\"Private FilterEndDate As String\";\nrequests3.mostCurrent._filterenddate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 32;BA.debugLine=\"Private FilterTasks As Int = 0\";\nrequests3._filtertasks = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 33;BA.debugLine=\"Private FilterEntity As Int = 0\";\nrequests3._filterentity = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 34;BA.debugLine=\"Private FilterRoute As Int = 0\";\nrequests3._filterroute = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FilterStates As Int = 0\";\nrequests3._filterstates = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 36;BA.debugLine=\"Private FilterTypeRequests As Int = 0\";\nrequests3._filtertyperequests = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 37;BA.debugLine=\"Private Bloco30 As Int = 0\";\nrequests3._bloco30 = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 39;BA.debugLine=\"Private ListTypeRequests As List\";\nrequests3.mostCurrent._listtyperequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 40;BA.debugLine=\"Private ListStates As List\";\nrequests3.mostCurrent._liststates = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 41;BA.debugLine=\"Private ListEntities As List\";\nrequests3.mostCurrent._listentities = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 42;BA.debugLine=\"Private ListTasks As List\";\nrequests3.mostCurrent._listtasks = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 43;BA.debugLine=\"Private ListRoutes As List\";\nrequests3.mostCurrent._listroutes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 45;BA.debugLine=\"Private ButtonUserUnavailable As Button\";\nrequests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 46;BA.debugLine=\"Private mapUserPosition As Button\";\nrequests3.mostCurrent._mapuserposition = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 47;BA.debugLine=\"Private ColorTabPanel As Panel\";\nrequests3.mostCurrent._colortabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 49;BA.debugLine=\"Private ButtonActionTransport As Button\";\nrequests3.mostCurrent._buttonactiontransport = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 50;BA.debugLine=\"Private ButtonAppAlert As Button\";\nrequests3.mostCurrent._buttonappalert = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 51;BA.debugLine=\"Private ButtonAppNetwork As Button\";\nrequests3.mostCurrent._buttonappnetwork = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 52;BA.debugLine=\"Private LabelAppInfo As Label\";\nrequests3.mostCurrent._labelappinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 53;BA.debugLine=\"Private LabelCopyright As Label\";\nrequests3.mostCurrent._labelcopyright = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 54;BA.debugLine=\"Private LabelDateTime As Label\";\nrequests3.mostCurrent._labeldatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 55;BA.debugLine=\"Private LabelVersion As Label\";\nrequests3.mostCurrent._labelversion = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 56;BA.debugLine=\"Private listsBasePanel As Panel\";\nrequests3.mostCurrent._listsbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 57;BA.debugLine=\"Private listsBottomLine As Panel\";\nrequests3.mostCurrent._listsbottomline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 58;BA.debugLine=\"Private listsBottomPanel As Panel\";\nrequests3.mostCurrent._listsbottompanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 59;BA.debugLine=\"Private listsButtonClose As Button\";\nrequests3.mostCurrent._listsbuttonclose = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 60;BA.debugLine=\"Private listsButtonFilter As Button\";\nrequests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 61;BA.debugLine=\"Private listsLabelInfo As Label\";\nrequests3.mostCurrent._listslabelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 62;BA.debugLine=\"Private listsTabPanel As TabStrip\";\nrequests3.mostCurrent._liststabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.TabStripViewPager\");\n //BA.debugLineNum = 63;BA.debugLine=\"Private listsTopBar As Panel\";\nrequests3.mostCurrent._liststopbar = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 64;BA.debugLine=\"Private mainLabelOptLists As Label\";\nrequests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 65;BA.debugLine=\"Private mainLogo As ImageView\";\nrequests3.mostCurrent._mainlogo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 66;BA.debugLine=\"Private mainTopLine As Panel\";\nrequests3.mostCurrent._maintopline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 68;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 69;BA.debugLine=\"Private iDialogReqTypeObject, iDialogReqZone, iDi\";\nrequests3._idialogreqtypeobject = RemoteObject.createImmutable(0);\nrequests3._idialogreqzone = RemoteObject.createImmutable(0);\nrequests3._idialogreqstatus = RemoteObject.createImmutable(0);\nrequests3._idialogreqregion = RemoteObject.createImmutable(0);\nrequests3._idialogreqlocal = RemoteObject.createImmutable(0);\nrequests3._idialogreqwithrequests = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 70;BA.debugLine=\"Private sDialogReqName, sDialogReqAddress, Search\";\nrequests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._searchfilter = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 71;BA.debugLine=\"Private RegionsList, TypeObjectsList, LocalsList,\";\nrequests3.mostCurrent._regionslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._typeobjectslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._localslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 72;BA.debugLine=\"Private ItemsCounter As Int = 0\";\nrequests3._itemscounter = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 74;BA.debugLine=\"Private listRequestsButtonMap As Button\";\nrequests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 75;BA.debugLine=\"Private mapBaseList As Panel\";\nrequests3.mostCurrent._mapbaselist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 76;BA.debugLine=\"Private mapBasePanel As Panel\";\nrequests3.mostCurrent._mapbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 78;BA.debugLine=\"Private mapZoomDown As Button\";\nrequests3.mostCurrent._mapzoomdown = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 79;BA.debugLine=\"Private mapZoomUp As Button\";\nrequests3.mostCurrent._mapzoomup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 80;BA.debugLine=\"Private listRequests As CustomListView 'ExpandedL\";\nrequests3.mostCurrent._listrequests = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 81;BA.debugLine=\"Private listsRequestsMap As CustomListView\";\nrequests3.mostCurrent._listsrequestsmap = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 83;BA.debugLine=\"Private pnlGroupTitle As Panel\";\nrequests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 84;BA.debugLine=\"Private pnlGroupData As Panel\";\nrequests3.mostCurrent._pnlgroupdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 86;BA.debugLine=\"Private ListItemTodayRequests As Label\";\nrequests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 87;BA.debugLine=\"Private ListItemReference As Label\";\nrequests3.mostCurrent._listitemreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 88;BA.debugLine=\"Private ListItemDatetime As Label\";\nrequests3.mostCurrent._listitemdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 89;BA.debugLine=\"Private ListItemContact As Label\";\nrequests3.mostCurrent._listitemcontact = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 90;BA.debugLine=\"Private ListItemFullName As Label\";\nrequests3.mostCurrent._listitemfullname = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 91;BA.debugLine=\"Private ListItemStatus As Label\";\nrequests3.mostCurrent._listitemstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 92;BA.debugLine=\"Private listButMap As Button\";\nrequests3.mostCurrent._listbutmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 94;BA.debugLine=\"Private ListItemObject As Label\";\nrequests3.mostCurrent._listitemobject = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 95;BA.debugLine=\"Private ListItemObjectTask As Label\";\nrequests3.mostCurrent._listitemobjecttask = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 96;BA.debugLine=\"Private ListItemObjectExecution As Label\";\nrequests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 97;BA.debugLine=\"Private listButObjectAction As Button\";\nrequests3.mostCurrent._listbutobjectaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 98;BA.debugLine=\"Private ListItemObjectStatus As Label\";\nrequests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 99;BA.debugLine=\"Private ListItemObjectStatusIcon As Label\";\nrequests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 101;BA.debugLine=\"Private CurrentGroupItem As Int = 0\";\nrequests3._currentgroupitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 102;BA.debugLine=\"Private pnlGroupCurrenIndex As Int\";\nrequests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 103;BA.debugLine=\"Private ClickLabel As Label\";\nrequests3.mostCurrent._clicklabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 105;BA.debugLine=\"Private ShowListPedidosMap As Boolean = False\";\nrequests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 106;BA.debugLine=\"Private EditSearch As EditText\";\nrequests3.mostCurrent._editsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.EditTextWrapper\");\n //BA.debugLineNum = 107;BA.debugLine=\"Private butSearch As Button\";\nrequests3.mostCurrent._butsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 109;BA.debugLine=\"Dim CurrentIndexPanel As Int = -1\";\nrequests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 110;BA.debugLine=\"Dim CurrentIDPanel As Int = 0\";\nrequests3._currentidpanel = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 112;BA.debugLine=\"Private LabelButtonTitleAction As Label\";\nrequests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 113;BA.debugLine=\"Private LabelReferenciasDescritivos As Label\";\nrequests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 114;BA.debugLine=\"Private LabelStatus As Label\";\nrequests3.mostCurrent._labelstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 115;BA.debugLine=\"Private RequestsOptionsPopMenu As MenuOnAnyView\";\nrequests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew (\"com.jakes.menuonviews.menuonanyview\");\n //BA.debugLineNum = 117;BA.debugLine=\"Private CurrentLineItem As Int = 0\";\nrequests3._currentlineitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 118;BA.debugLine=\"Private TotalLineItems As Int = 0\";\nrequests3._totallineitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 119;BA.debugLine=\"Private ListItemObjectNumber As Label\";\nrequests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 120;BA.debugLine=\"Private listButMore As Button\";\nrequests3.mostCurrent._listbutmore = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 121;BA.debugLine=\"Private ListItemObjectDateTime As Label\";\nrequests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 122;BA.debugLine=\"Private ListItemObjectReference As Label\";\nrequests3.mostCurrent._listitemobjectreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 123;BA.debugLine=\"Private pnlGroupDataSub As Panel\";\nrequests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 124;BA.debugLine=\"Private pnlGroupDataList As ExpandedListView 'Cus\";\nrequests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.expandedlistview\");\n //BA.debugLineNum = 127;BA.debugLine=\"Private CurrentPage As Int\";\nrequests3._currentpage = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 128;BA.debugLine=\"Private Pages As List '= Array(True, False, True,\";\nrequests3.mostCurrent._pages = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 130;BA.debugLine=\"Private listRequestsItem As CustomListView\";\nrequests3.mostCurrent._listrequestsitem = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 131;BA.debugLine=\"Private CLAButtonOptions As Button\";\nrequests3.mostCurrent._clabuttonoptions = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 132;BA.debugLine=\"Private CLAItem_G1 As Label\";\nrequests3.mostCurrent._claitem_g1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 133;BA.debugLine=\"Private CLAItemButton_1 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 134;BA.debugLine=\"Private CLAItemButton_2 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 135;BA.debugLine=\"Private CLAItem_G2 As Label\";\nrequests3.mostCurrent._claitem_g2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 136;BA.debugLine=\"Private CLAItem_G3 As Label\";\nrequests3.mostCurrent._claitem_g3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 137;BA.debugLine=\"Private CLAItem_G4 As Label\";\nrequests3.mostCurrent._claitem_g4 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 138;BA.debugLine=\"Private CLAItem_G5 As Label\";\nrequests3.mostCurrent._claitem_g5 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 139;BA.debugLine=\"Private CLAItem_G6 As Label\";\nrequests3.mostCurrent._claitem_g6 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 140;BA.debugLine=\"Private CLAItem_G7 As Label\";\nrequests3.mostCurrent._claitem_g7 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 141;BA.debugLine=\"Private ListItemType As Label\";\nrequests3.mostCurrent._listitemtype = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 143;BA.debugLine=\"Private ListItem_Notes As Label\";\nrequests3.mostCurrent._listitem_notes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 144;BA.debugLine=\"Private ListItem_Status As Label\";\nrequests3.mostCurrent._listitem_status = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 145;BA.debugLine=\"Private ListItem_Datetime As Label\";\nrequests3.mostCurrent._listitem_datetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 146;BA.debugLine=\"Private ListItem_Entity As Label\";\nrequests3.mostCurrent._listitem_entity = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 147;BA.debugLine=\"Private ListItem_Cloud As Label\";\nrequests3.mostCurrent._listitem_cloud = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 148;BA.debugLine=\"Private listButCompare As Button\";\nrequests3.mostCurrent._listbutcompare = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 149;BA.debugLine=\"Private ListItem_TypeRequest As Label\";\nrequests3.mostCurrent._listitem_typerequest = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 150;BA.debugLine=\"Private listRequestsItemSecond As CustomListView\";\nrequests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 151;BA.debugLine=\"Private CLAItemButtonBR_SVR2 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 152;BA.debugLine=\"Private CLAItemButtonBR_SVR2_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 153;BA.debugLine=\"Private CLA_BR_KSVRF2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 154;BA.debugLine=\"Private CLA_BR_KSVRF2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 155;BA.debugLine=\"Private CLA_BR_KSVRI2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 156;BA.debugLine=\"Private CLA_BR_KSVRI2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 157;BA.debugLine=\"Private CLA_BR_KSVRI1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 158;BA.debugLine=\"Private CLA_BR_KSVRI1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 159;BA.debugLine=\"Private CLA_BR_KSVRF1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 160;BA.debugLine=\"Private CLA_BR_KSVRF1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 161;BA.debugLine=\"Private CLAItemButtonBR_SVR1 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 162;BA.debugLine=\"Private CLAItemButtonBR_SVR1_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 163;BA.debugLine=\"Private CLAItemButtonBR_INIT_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 164;BA.debugLine=\"Private CLAItemButtonBR_INIT As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 165;BA.debugLine=\"Private CLA_BR_OBS As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_obs = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 166;BA.debugLine=\"Private CLA_BR_OBS_A As Button\";\nrequests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 167;BA.debugLine=\"Private CLA_BR_KMI_A As Button\";\nrequests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 168;BA.debugLine=\"Private CLA_BR_KMI As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmi = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 169;BA.debugLine=\"Private CLA_BR_CAR As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_car = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 170;BA.debugLine=\"Private CLA_BR_CAR_A As Button\";\nrequests3.mostCurrent._cla_br_car_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 171;BA.debugLine=\"Private CLA_BR_KMF_A As Button\";\nrequests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 172;BA.debugLine=\"Private CLA_BR_KMF As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmf = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 173;BA.debugLine=\"Private CLA_BR_E1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 174;BA.debugLine=\"Private CLA_BR_S1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 175;BA.debugLine=\"Private CLA_BR_E2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 176;BA.debugLine=\"Private CLA_BR_S2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 177;BA.debugLine=\"Private CLA_BR_E3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 178;BA.debugLine=\"Private CLA_BR_S3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 179;BA.debugLine=\"Private CLAItemButtonBR As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 180;BA.debugLine=\"Private CLAItemButtonBR_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 181;BA.debugLine=\"Private CLAItemButtonX_A As Button\";\nrequests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 182;BA.debugLine=\"Private B4XStateButton1 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 183;BA.debugLine=\"Private B4XStateButton2 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 184;BA.debugLine=\"Private B4XStateButton3 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 185;BA.debugLine=\"Private B4XStateButton4 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 186;BA.debugLine=\"Private B4XStateButton5 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 187;BA.debugLine=\"Private B4XStateButton6 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 188;BA.debugLine=\"Private B4XStateButton7 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 189;BA.debugLine=\"Private B4XStateButton14 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 190;BA.debugLine=\"Private B4XStateButton13 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 191;BA.debugLine=\"Private B4XStateButton21 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 192;BA.debugLine=\"Private B4XStateButton20 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 193;BA.debugLine=\"Private B4XStateButton19 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 194;BA.debugLine=\"Private B4XStateButton12 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 195;BA.debugLine=\"Private B4XStateButton11 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 196;BA.debugLine=\"Private B4XStateButton18 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 197;BA.debugLine=\"Private B4XStateButton17 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 198;BA.debugLine=\"Private B4XStateButton10 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 199;BA.debugLine=\"Private B4XStateButton9 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 200;BA.debugLine=\"Private B4XStateButton16 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 201;BA.debugLine=\"Private B4XStateButton15 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 202;BA.debugLine=\"Private B4XStateButton8 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 203;BA.debugLine=\"Private B4XStateButton22 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 204;BA.debugLine=\"Private B4XStateButton23 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 205;BA.debugLine=\"Private B4XStateButton24 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 206;BA.debugLine=\"Private B4XStateButton25 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 207;BA.debugLine=\"Private B4XStateButton26 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 209;BA.debugLine=\"Private VIEW_requests_listview As String = \\\"reque\";\nrequests3.mostCurrent._view_requests_listview = BA.ObjectToString(\"requests_listview\");\n //BA.debugLineNum = 210;BA.debugLine=\"Private VIEW_requests_listviewrequest As String =\";\nrequests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString(\"requests_listviewrequest\");\n //BA.debugLineNum = 211;BA.debugLine=\"Private VIEW_requests_listviewrequest2 As String\";\nrequests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString(\"requests_listviewrequest2\");\n //BA.debugLineNum = 212;BA.debugLine=\"Private VIEW_requests_mapview As String = \\\"reques\";\nrequests3.mostCurrent._view_requests_mapview = BA.ObjectToString(\"requests_mapview_google\");\n //BA.debugLineNum = 213;BA.debugLine=\"Private ButtonActionPause As Button\";\nrequests3.mostCurrent._buttonactionpause = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 214;BA.debugLine=\"Private CurrentFilter As String = \\\"\\\"\";\nrequests3.mostCurrent._currentfilter = BA.ObjectToString(\"\");\n //BA.debugLineNum = 215;BA.debugLine=\"Private mainActiveUser As Label\";\nrequests3.mostCurrent._mainactiveuser = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 216;BA.debugLine=\"Private gmap As GoogleMap\";\nrequests3.mostCurrent._gmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper\");\n //BA.debugLineNum = 217;BA.debugLine=\"Private mapData As MapFragment\";\nrequests3.mostCurrent._mapdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper\");\n //BA.debugLineNum = 218;BA.debugLine=\"Private mapMarker As Marker\";\nrequests3.mostCurrent._mapmarker = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper\");\n //BA.debugLineNum = 219;BA.debugLine=\"Private listsButtonPull As Button\";\nrequests3.mostCurrent._listsbuttonpull = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 220;BA.debugLine=\"Private listButNote As Button\";\nrequests3.mostCurrent._listbutnote = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 221;BA.debugLine=\"Private butQuickAction As Button\";\nrequests3.mostCurrent._butquickaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 222;BA.debugLine=\"Private ListItem_Favorite As Label\";\nrequests3.mostCurrent._listitem_favorite = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 223;BA.debugLine=\"Private listsButtonFavorites As Button\";\nrequests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 224;BA.debugLine=\"Private ListItem_Desc02 As Label\";\nrequests3.mostCurrent._listitem_desc02 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 225;BA.debugLine=\"Private ListItem_Desc01 As Label\";\nrequests3.mostCurrent._listitem_desc01 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 226;BA.debugLine=\"Private ListaPrincipalClickItem As Int = -1\";\nrequests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 227;BA.debugLine=\"Private ListViewDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 228;BA.debugLine=\"Private ListViewRequestDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 229;BA.debugLine=\"Private ListViewRequest2Device3Panel As Panel\";\nrequests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 230;BA.debugLine=\"Private ListItemClickIndex As Label\";\nrequests3.mostCurrent._listitemclickindex = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 231;BA.debugLine=\"Private ListItem_Desc00 As Label\";\nrequests3.mostCurrent._listitem_desc00 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 232;BA.debugLine=\"Private SubItemImage As ImageView\";\nrequests3.mostCurrent._subitemimage = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 233;BA.debugLine=\"Private LockPanel As Panel\";\nrequests3.mostCurrent._lockpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 235;BA.debugLine=\"Private GRANDACTIVE_INSTANCE As String = \\\"PT20180\";\nrequests3.mostCurrent._grandactive_instance = BA.ObjectToString(\"PT20180913-2105-006\");\n //BA.debugLineNum = 236;BA.debugLine=\"Private LockPanelInfo As Label\";\nrequests3.mostCurrent._lockpanelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 238;BA.debugLine=\"Private current_limit As Int = 0\";\nrequests3._current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 239;BA.debugLine=\"Private current_offset As Int = 100\";\nrequests3._current_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 240;BA.debugLine=\"Private next_current_limit As Int = 0\";\nrequests3._next_current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 241;BA.debugLine=\"Private next_offset As Int = 100\";\nrequests3._next_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 242;BA.debugLine=\"Private CurrentTotalItems As Int = 0\";\nrequests3._currenttotalitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 244;BA.debugLine=\"Private SelectedTagcode As String = \\\"\\\"\";\nrequests3.mostCurrent._selectedtagcode = BA.ObjectToString(\"\");\n //BA.debugLineNum = 245;BA.debugLine=\"Private SelectedRequestData As RequestData\";\nrequests3.mostCurrent._selectedrequestdata = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.types._requestdata\");\n //BA.debugLineNum = 246;BA.debugLine=\"Private ListItemNumber As Label\";\nrequests3.mostCurrent._listitemnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 248;BA.debugLine=\"Private data_Intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._data_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 249;BA.debugLine=\"Private hora_intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._hora_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 250;BA.debugLine=\"Private TaskList2Dup As CustomListView\";\nrequests3.mostCurrent._tasklist2dup = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 251;BA.debugLine=\"Private BotaoDataDup As Button\";\nrequests3.mostCurrent._botaodatadup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 252;BA.debugLine=\"Private BotaoHoraDup As Button\";\nrequests3.mostCurrent._botaohoradup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 253;BA.debugLine=\"Private dupItemCheck As CheckBox\";\nrequests3.mostCurrent._dupitemcheck = RemoteObject.createNew (\"anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper\");\n //BA.debugLineNum = 254;BA.debugLine=\"Private dupItemLabel As Label\";\nrequests3.mostCurrent._dupitemlabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 256;BA.debugLine=\"Private ListITemTechnical As Label\";\nrequests3.mostCurrent._listitemtechnical = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 257;BA.debugLine=\"Private GlobalScanReturn As Boolean\";\nrequests3._globalscanreturn = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 258;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "public void request() {\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\t\tsuper.onActivityResult(requestCode, resultCode, intent);\n\t\t// Choose what to do based on the request code\n\t\tswitch (requestCode) {\n\t\tcase LocationUtils.REQUEST_ACCOUNT_PICKER:\n\t if (intent != null && intent.getExtras() != null) {\n\n\t \t LocationUtils.accountName = intent.getExtras().getString(AccountManager.KEY_ACCOUNT_NAME);\n\t if (LocationUtils.accountName != null) {\n\t \t LocationUtils.credential.setSelectedAccountName(LocationUtils.accountName);\n\t \t \n\t \t AnyTaxi.Builder endpointBuilder = new AnyTaxi.Builder(\n\t AndroidHttp.newCompatibleTransport(),\n\t new JacksonFactory(),\n\t LocationUtils.credential);\n\t \t LocationUtils.endpoint = CloudEndpointUtils.updateBuilder(endpointBuilder).build();\n\t }\n\t }\n\t\t\tAsyncTask<Void, Void, Driver> task = new EndpointsTask(this, \n\t\t\t\t\tLocationUtils.endpoint, \"[email protected]\");\n\t\t\ttask.execute();\n\t\t\tbreak;\n\n\t\t\t// If the request code matches the code sent in onConnectionFailed\n\t\tcase LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n\n\t\t\tswitch (resultCode) {\n\t\t\t// If Google Play services resolved the problem\n\t\t\tcase Activity.RESULT_OK:\n\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.resolved));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.connected);\n\t\t\t\tmConnectionStatus.setText(R.string.resolved);\n\t\t\t\tbreak;\n\n\t\t\t\t// If any other result was returned by Google Play services\n\t\t\tdefault:\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.no_resolution));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.disconnected);\n\t\t\t\tmConnectionStatus.setText(R.string.no_resolution);\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// If any other request code was received\n\t\tdefault:\n\t\t\t// Report that this Activity received an unknown requestCode\n\t\t\tLog.d(LocationUtils.APPTAG,\n\t\t\t\t\tgetString(R.string.unknown_activity_request_code, requestCode));\n\n\t\t\tbreak;\n\t\t}\n\t}", "public interface CardService {\n\n /**\n * Internal API for creating Twitter cards.\n */\n @FormUrlEncoded\n @POST(\"/v2/cards/create.json\")\n void create(@Field(\"card_data\") CardData data, Callback<CardCreate> cb);\n}", "public NetworkBoundFetcher(AppExecutors appExecutors) {\n this.appExecutors = appExecutors;\n fetch();\n }", "public interface GitHubInterface {\n //http://test.xdyapi.haodai.net/Wallet/getAccountList?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9&xid=193594\n\n //这是retrofit版本\n// @POST(\"Wallet/{user}\")\n// Call<Repo> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n\n //这是retrofit2版本\n //注意:ResponseBody这个类需要导入\"import okhttp3.ResponseBody\"这个包的\n @POST(\"Wallet/{user}\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n}", "public interface ParcelableNetworkListener extends IInterface {\n byte getListenerState() throws RemoteException;\n\n void onDataReceived(DefaultProgressEvent defaultProgressEvent) throws RemoteException;\n\n void onFinished(DefaultFinishEvent defaultFinishEvent) throws RemoteException;\n\n void onInputStreamGet(ParcelableInputStream parcelableInputStream) throws RemoteException;\n\n boolean onResponseCode(int i, ParcelableHeader parcelableHeader) throws RemoteException;\n\n /* compiled from: Taobao */\n public static abstract class Stub extends Binder implements ParcelableNetworkListener {\n private static final String DESCRIPTOR = \"anetwork.channel.aidl.ParcelableNetworkListener\";\n static final int TRANSACTION_getListenerState = 5;\n static final int TRANSACTION_onDataReceived = 1;\n static final int TRANSACTION_onFinished = 2;\n static final int TRANSACTION_onInputStreamGet = 4;\n static final int TRANSACTION_onResponseCode = 3;\n\n public IBinder asBinder() {\n return this;\n }\n\n public Stub() {\n attachInterface(this, DESCRIPTOR);\n }\n\n public static ParcelableNetworkListener asInterface(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);\n if (queryLocalInterface == null || !(queryLocalInterface instanceof ParcelableNetworkListener)) {\n return new Proxy(iBinder);\n }\n return (ParcelableNetworkListener) queryLocalInterface;\n }\n\n /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v2, resolved type: anetwork.channel.aidl.DefaultProgressEvent} */\n /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v5, resolved type: anetwork.channel.aidl.DefaultFinishEvent} */\n /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v8, resolved type: anetwork.channel.aidl.ParcelableHeader} */\n /* JADX WARNING: type inference failed for: r0v1 */\n /* JADX WARNING: type inference failed for: r0v11 */\n /* JADX WARNING: type inference failed for: r0v12 */\n /* JADX WARNING: type inference failed for: r0v13 */\n /* JADX WARNING: Multi-variable type inference failed */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r3, android.os.Parcel r4, android.os.Parcel r5, int r6) throws android.os.RemoteException {\n /*\n r2 = this;\n r0 = 1598968902(0x5f4e5446, float:1.4867585E19)\n r1 = 1\n if (r3 == r0) goto L_0x008c\n r0 = 0\n switch(r3) {\n case 1: goto L_0x0071;\n case 2: goto L_0x0056;\n case 3: goto L_0x0033;\n case 4: goto L_0x001f;\n case 5: goto L_0x000f;\n default: goto L_0x000a;\n }\n L_0x000a:\n boolean r3 = super.onTransact(r3, r4, r5, r6)\n return r3\n L_0x000f:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r4.enforceInterface(r3)\n byte r3 = r2.getListenerState()\n r5.writeNoException()\n r5.writeByte(r3)\n return r1\n L_0x001f:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r4.enforceInterface(r3)\n android.os.IBinder r3 = r4.readStrongBinder()\n anetwork.channel.aidl.ParcelableInputStream r3 = anetwork.channel.aidl.ParcelableInputStream.Stub.asInterface(r3)\n r2.onInputStreamGet(r3)\n r5.writeNoException()\n return r1\n L_0x0033:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r4.enforceInterface(r3)\n int r3 = r4.readInt()\n int r6 = r4.readInt()\n if (r6 == 0) goto L_0x004b\n android.os.Parcelable$Creator<anetwork.channel.aidl.ParcelableHeader> r6 = anetwork.channel.aidl.ParcelableHeader.CREATOR\n java.lang.Object r4 = r6.createFromParcel(r4)\n r0 = r4\n anetwork.channel.aidl.ParcelableHeader r0 = (anetwork.channel.aidl.ParcelableHeader) r0\n L_0x004b:\n boolean r3 = r2.onResponseCode(r3, r0)\n r5.writeNoException()\n r5.writeInt(r3)\n return r1\n L_0x0056:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r4.enforceInterface(r3)\n int r3 = r4.readInt()\n if (r3 == 0) goto L_0x006a\n android.os.Parcelable$Creator<anetwork.channel.aidl.DefaultFinishEvent> r3 = anetwork.channel.aidl.DefaultFinishEvent.CREATOR\n java.lang.Object r3 = r3.createFromParcel(r4)\n r0 = r3\n anetwork.channel.aidl.DefaultFinishEvent r0 = (anetwork.channel.aidl.DefaultFinishEvent) r0\n L_0x006a:\n r2.onFinished(r0)\n r5.writeNoException()\n return r1\n L_0x0071:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r4.enforceInterface(r3)\n int r3 = r4.readInt()\n if (r3 == 0) goto L_0x0085\n android.os.Parcelable$Creator<anetwork.channel.aidl.DefaultProgressEvent> r3 = anetwork.channel.aidl.DefaultProgressEvent.CREATOR\n java.lang.Object r3 = r3.createFromParcel(r4)\n r0 = r3\n anetwork.channel.aidl.DefaultProgressEvent r0 = (anetwork.channel.aidl.DefaultProgressEvent) r0\n L_0x0085:\n r2.onDataReceived(r0)\n r5.writeNoException()\n return r1\n L_0x008c:\n java.lang.String r3 = \"anetwork.channel.aidl.ParcelableNetworkListener\"\n r5.writeString(r3)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: anetwork.channel.aidl.ParcelableNetworkListener.Stub.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n\n /* compiled from: Taobao */\n private static class Proxy implements ParcelableNetworkListener {\n\n /* renamed from: a reason: collision with root package name */\n private IBinder f366a;\n\n Proxy(IBinder iBinder) {\n this.f366a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f366a;\n }\n\n public void onDataReceived(DefaultProgressEvent defaultProgressEvent) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(Stub.DESCRIPTOR);\n if (defaultProgressEvent != null) {\n obtain.writeInt(1);\n defaultProgressEvent.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f366a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void onFinished(DefaultFinishEvent defaultFinishEvent) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(Stub.DESCRIPTOR);\n if (defaultFinishEvent != null) {\n obtain.writeInt(1);\n defaultFinishEvent.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f366a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public boolean onResponseCode(int i, ParcelableHeader parcelableHeader) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(Stub.DESCRIPTOR);\n obtain.writeInt(i);\n boolean z = true;\n if (parcelableHeader != null) {\n obtain.writeInt(1);\n parcelableHeader.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f366a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() == 0) {\n z = false;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void onInputStreamGet(ParcelableInputStream parcelableInputStream) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(Stub.DESCRIPTOR);\n obtain.writeStrongBinder(parcelableInputStream != null ? parcelableInputStream.asBinder() : null);\n this.f366a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public byte getListenerState() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(Stub.DESCRIPTOR);\n this.f366a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readByte();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n }\n}", "public static void m886a(Request request) {\n C1744eg egVar = f1001a;\n egVar.f1002b = request;\n egVar.runAsync(new C1738eb() {\n /* renamed from: a */\n public final void mo16236a() throws Exception {\n if (C1948n.m1229a().f1421g.mo16247c()) {\n C1744eg.this.runAsync(new C1738eb() {\n /* renamed from: a */\n public final void mo16236a() throws Exception {\n Map b = C1744eg.m890b(C1744eg.this.f1002b);\n C1691dd ddVar = new C1691dd();\n ddVar.f897f = \"https://api.login.yahoo.com/oauth2/device_session\";\n ddVar.f898g = C1699a.kPost;\n ddVar.mo16403a(\"Content-Type\", \"application/json\");\n ddVar.f883b = new JSONObject(b).toString();\n ddVar.f885d = new C1725dt();\n ddVar.f884c = new C1725dt();\n ddVar.f882a = new C1693a<String, String>() {\n /* renamed from: a */\n public final /* synthetic */ void mo16300a(C1691dd ddVar, Object obj) {\n String str = \"PrivacyManager\";\n String str2 = (String) obj;\n try {\n int i = ddVar.f904m;\n if (i == 200) {\n JSONObject jSONObject = new JSONObject(str2);\n C1744eg.m888a(C1744eg.this, new C1477a(jSONObject.getString(\"device_session_id\"), jSONObject.getLong(\"expires_in\"), C1744eg.this.f1002b));\n C1744eg.this.f1002b.callback.success();\n return;\n }\n C1685cy.m769e(str, \"Error in getting privacy dashboard url. Error code = \".concat(String.valueOf(i)));\n C1744eg.this.f1002b.callback.failure();\n } catch (JSONException e) {\n C1685cy.m763b(str, \"Error in getting privacy dashboard url. \", (Throwable) e);\n C1744eg.this.f1002b.callback.failure();\n }\n }\n };\n C1675ct.m738a().mo16389a(C1744eg.this, ddVar);\n }\n });\n return;\n }\n C1685cy.m754a(3, \"PrivacyManager\", \"Waiting for ID provider.\");\n C1948n.m1229a().f1421g.subscribe(C1744eg.this.f1003d);\n }\n });\n }", "@Override\n public void buildNetwork() {\n }", "public interface API {\n\n// String BASE_URL = \"https://www.apiopen.top/\";\n String BASE_URL = \"http://gc.ditu.aliyun.com/\";\n\n\n @GET\n Observable<Response<ResponseBody>> doGet(@Url String Url);\n\n @FormUrlEncoded\n @POST\n Observable<Response<ResponseBody>> doPost(@Url String Url, @FieldMap HashMap<String, String> map);\n\n @Streaming\n @GET\n Observable<Response<ResponseBody>> doDownload(@Url String Url);\n}", "public interface BurppleAPI {\n\n @FormUrlEncoded\n @POST(\"v1/getFeatured.php\")\n Call<GetFeaturedResponse> loadFeatured(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n\n @FormUrlEncoded\n @POST(\"v1/getPromotions.php\")\n Call<GetPromotionsResponse> loadPromotions(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n\n @FormUrlEncoded\n @POST(\"v1/getGuides.php\")\n Call<GetGuidesResponse> loadGuides(\n @Field(\"access_token\") String accessToken,\n @Field(\"page\") int pageIndex);\n}" ]
[ "0.52405924", "0.5169905", "0.5119525", "0.50883865", "0.5085347", "0.50803065", "0.5078045", "0.5069506", "0.5046522", "0.5013343", "0.50111955", "0.4991004", "0.49789292", "0.49589112", "0.49276167", "0.49247912", "0.4903279", "0.4903279", "0.48969182", "0.48924884", "0.4843485", "0.48408118", "0.48363563", "0.4831692", "0.4831348", "0.48292947", "0.482071", "0.48202175", "0.4818393", "0.48101243", "0.4807832", "0.48075247", "0.4803763", "0.47966185", "0.4794515", "0.4794515", "0.4794515", "0.47797057", "0.4774564", "0.47680694", "0.4766034", "0.47610387", "0.4752356", "0.47475746", "0.47263137", "0.47259647", "0.4713435", "0.47132924", "0.47130677", "0.47121608", "0.46978745", "0.46969944", "0.4694052", "0.46911466", "0.4689411", "0.46877173", "0.4682301", "0.4682233", "0.4679735", "0.46780697", "0.4673234", "0.46597037", "0.46429697", "0.46409386", "0.4640793", "0.4629078", "0.46171176", "0.4615938", "0.46142417", "0.46089697", "0.46074864", "0.46067822", "0.4605902", "0.46049675", "0.46023574", "0.45992297", "0.45982182", "0.4594741", "0.45937648", "0.4585083", "0.45843983", "0.4583219", "0.4583143", "0.45796633", "0.45753744", "0.45740733", "0.45736468", "0.45706376", "0.45695075", "0.45652652", "0.4562835", "0.4560529", "0.45578164", "0.4556528", "0.45560035", "0.455579", "0.45551863", "0.45542926", "0.45507014", "0.45485243" ]
0.49742013
13
return a Optional pending ResponseFuture by given correlationId.
public static Optional<ServiceResponse> get(String correlationId) { return Optional.of(futures.get(correlationId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public Response<T> awaitResponse() {\n Await.latch(responseLatch, waitTimeMs);\n return responseContainer.get();\n }", "com.ipay.api.grpc.ServiceGenericReply getReply();", "@GET\n @Produces(MediaType.TEXT_PLAIN)\n public CompletionStage<String> maybeYesOrNo()\n {\n CompletableFuture<String> chain1 = executorService.supplyAsync(() -> 42)\n .thenComposeAsync(\n integer -> someoneElseClient.maybeYesOrNot().thenApplyAsync(v -> v, executorService).toCompletableFuture(),\n executorService\n );\n\n CompletableFuture<String> chain2 = CompletableFuture.allOf(chain1).thenApplyAsync(aVoid -> chain1.join(), executorService);\n\n return threadContext.withContextCapture(\n chain2\n .thenComposeAsync(answerFromSomeone -> {\n if (answerFromSomeone.equals(\"no\"))\n {\n return CompletableFuture.completedFuture(\"no\");\n }\n\n List<String> authHeader = ResteasyContext.getContextData(HttpHeaders.class).getRequestHeader(\"Authorization\");\n if (authHeader.isEmpty())\n {\n return CompletableFuture.completedFuture(\"no\");\n }\n else\n {\n return CompletableFuture.completedFuture(\"yes\");\n }\n },\n executorService\n )\n );\n }", "com.ipay.api.grpc.ServiceGenericReplyOrBuilder getReplyOrBuilder();", "Optional<Company> getCompany(long id);", "public synchronized Resource getResource(String respositoryId)\n {\n return null;\n }", "Optional<ConnectionResponse> fetchById(String id);", "public Response waitForCoapResponse() throws InterruptedException {\n try {\n boolean timeElapsed = false;\n timeElapsed = !latch.await(timeout, TimeUnit.MILLISECONDS);\n if (timeElapsed || coapTimeout.get()) {\n coapTimeout.set(true);\n coapRequest.cancel();\n }\n } finally {\n coapRequest.removeMessageObserver(this);\n }\n\n if (exception.get() != null) {\n coapRequest.cancel();\n throw exception.get();\n }\n return ref.get();\n }", "public com.callfire.api.service.xsd.IdRequest getGetAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.callfire.api.service.xsd.IdRequest target = null;\n target = (com.callfire.api.service.xsd.IdRequest)get_store().find_element_user(GETAUTOREPLY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "protected void awaitPending(IdentityHolder<NamedCache> cacheId)\n {\n Object oPending = f_mapPending.get(cacheId);\n\n if (oPending != null)\n {\n synchronized (oPending)\n {\n if (oPending == f_mapPending.get(cacheId))\n {\n try\n {\n Blocking.wait(oPending);\n }\n catch (InterruptedException e)\n {\n // ignore\n }\n }\n }\n }\n }", "public ChannelFuture method_4130() {\n return null;\n }", "public PendingRequest getPendingRequest(final String id);", "public ChannelFuture method_4092() {\n return null;\n }", "Optional<OrdPaymentRefDTO> findOne(Long id);", "public Optional<?> confirmarTarefa(Long idTarefa){\n\t\treturn tarefaRepository.findById(idTarefa)\n\t\t\t\t.map(tarefa -> {\n\t\t\t\ttarefa.setStatus(true);\n\t\t\t\ttarefaRepository.save(tarefa);\n\t\t\t\treturn Optional.of(tarefa);\n\t\t\t\t}).orElse(Optional.empty());\n\t}", "public ChannelFuture method_4097() {\n return null;\n }", "Optional<RequestOtherNiazsanjiDTO> findOne(Long id);", "private Order getOrderWithId(int orderId) {\n\t\tfor (Order order : acceptedOrders) {\n\t\t\tif (order.getOrderId() == orderId)\n\t\t\t\treturn order;\n\t\t}\n\t\tfor (Order order : newOrders) {\n\t\t\tif (order.getOrderId() == orderId)\n\t\t\t\treturn order;\n\t\t}\n\n\t\t// Es wurde keine Order in dem OrderPool gefunden, die mit der OrderId\n\t\t// vom Spieler übereinstimmt.\n\t\tSystem.err\n\t\t\t\t.println(\"Die OrderId der Order ist nicht im PlayerOrderPool vorhanden\");\n\t\treturn null;\n\t}", "public Response getResponse(long response_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n String selectQuery = \"SELECT * FROM \" + RESPONSES_TABLE_NAME + \" WHERE \"\n + KEY_ID + \" = \" + response_id;\n\n Log.e(LOG, selectQuery);\n\n Cursor c = db.rawQuery(selectQuery, null);\n\n if (c != null)\n c.moveToFirst();\n\n Response response = new Response();\n response.setId(c.getInt(c.getColumnIndex(KEY_ID)));\n response.setEvent(c.getString(c.getColumnIndex(RESPONSES_EVENT)));\n response.setResponse(c.getInt(c.getColumnIndex(RESPONSES_RESPONSE)));\n\n return response;\n }", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic Optional<Dispositivo> getById(int id) {\n\t\treturn dispositivoDao.findById(id);\n\t}", "@Nonnull\n public Optional<String> getReply() {\n return Optional.ofNullable(this.reply);\n }", "public ChannelFuture method_4120() {\n return null;\n }", "public ChannelFuture method_4126() {\n return null;\n }", "Optional<Type> buscarPorId(Long id);", "private BlockingFuture setRetractingFuture(ATFarReference reference) {\n\t\t// first assign future to a local variable to avoid race conditions on writing to the outboxFuture_ variable!\n\t\tfinal BlockingFuture future = new BlockingFuture();\n\t\tsynchronized(this) { \n\t\t\t// synchronized access because different thread in the pool could\n\t\t\t// be processing retractUnsentMessages requests for different references. \n\t\t\tretractFutures_.put(reference, future);\n\t\t}\n\t\treturn future;\n\t}", "@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }", "@Nullable\n public abstract T response();", "public ChannelFuture method_4124(ChannelPromise var1) {\n return null;\n }", "public Promise<Result> actorResponseHandler(\n Object actorRef,\n org.sunbird.common.request.Request request,\n Timeout timeout,\n String responseKey,\n Request httpReq,\n boolean generateTelemetry) {\n Function<Object, Result> function =\n new Function<Object, Result>() {\n public Result apply(Object result) {\n if (result instanceof Response) {\n Response response = (Response) result;\n return createSuccessResponse(response, responseKey, httpReq, generateTelemetry);\n } else if (result instanceof ProjectCommonException) {\n return createCommonExceptionResponse(\n (ProjectCommonException) result, httpReq, generateTelemetry);\n } else {\n ProjectLogger.log(\n \"BaseController:actorResponseHandler: Unsupported actor response format\",\n LoggerEnum.INFO.name());\n return createCommonExceptionResponse(new Exception(), httpReq, generateTelemetry);\n }\n }\n };\n\n if (actorRef instanceof ActorRef) {\n return Promise.wrap(Patterns.ask((ActorRef) actorRef, request, timeout)).map(function);\n } else {\n return Promise.wrap(Patterns.ask((ActorSelection) actorRef, request, timeout)).map(function);\n }\n }", "public void setCorrelationId(final Object correlationId)\n {\n setUnderlyingId(correlationId, false);\n }", "public Optional<Product> getProduct(String productId);", "@Test\n public void getPhoneDataFetcher_with_unknown_id_should_return_null() throws Exception {\n useSimpleGraphQLUtil();\n when(mockEnvironment.getArgument(\"phoneId\"))\n .thenReturn(PHONE_ID);\n when(dataLoader.load(PHONE_ID))\n .thenReturn(CompletableFuture.supplyAsync(() -> null));\n\n // Asserts\n CompletableFuture<Phone> asyncResult = resolvers.getPhoneDataFetcher()\n .get(mockEnvironment);\n assertNotNull(asyncResult);\n\n Phone result = asyncResult.get();\n assertNull(result);\n }", "public boolean getAwaitResponse() {\n return awaitResponse;\n }", "public Optional<GetMovieDetailsResponse> getMovieDetails(int movieId) {\n return getMovieDetails(movieId, null, null);\n }", "public ChannelPromise method_4109() {\n return null;\n }", "public Optional<Cliente>obtenerId(Long id){\n return clienteRepositori.findById(id);\n }", "private <T> CompletableFuture<T> receiveAsync(ClientRequestFuture pendingReq, PayloadReader<T> payloadReader) {\n return pendingReq.thenApplyAsync(payload -> {\n if (payload == null || payloadReader == null)\n return null;\n\n try (var in = new PayloadInputChannel(this, payload)) {\n return payloadReader.apply(in);\n } catch (Exception e) {\n throw new IgniteException(\"Failed to deserialize server response: \" + e.getMessage(), e);\n }\n }, asyncContinuationExecutor);\n }", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "@Override\n public ASN1Decodable getResponseOp() {\n // responseOp has been load, just return it\n if (super.getResponseOp() != null) {\n return super.getResponseOp();\n }\n\n int messageId = getMessageId();\n\n // Unsolicited Notification\n if (messageId == 0) {\n return new UnsolicitedNotificationImpl();\n }\n\n // get response operation according messageId\n Element element = requests.get(Integer\n .valueOf(messageId));\n if (element == null) {\n element = batchedSearchRequests.get(Integer\n .valueOf(messageId));\n }\n\n if (element != null) {\n return element.response.getResponseOp();\n }\n\n /*\n * FIXME: if messageId not find in request list,\n * what should we do?\n */\n return null;\n }", "public ChannelFuture method_4114(ChannelPromise var1) {\n return null;\n }", "public String getDetailsRequest(String correlationId) {\n\t\tString dtlTemplate = StringUtils.replace(\r\n\t\t\t\tDetailsTemplateConstant.INSTANCE.DTL_JMS, \"#!CORRELATIONID!#\", correlationId);\r\n\t\treturn dtlTemplate;\r\n\t}", "CompletableFuture<BonusCustomer> findById(int customerNumber);", "public Future<?> doFindAlarm(long id)\n\t{\n\t\tif (id < 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(() -> dao.findAlarm(id));\n\t}", "@RequestMapping(value = \"/presencerequests/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Presencerequest> getPresencerequest(@PathVariable Long id, HttpServletResponse response) {\n log.debug(\"REST request to get Presencerequest : {}\", id);\n Presencerequest presencerequest = presencerequestRepository.findOne(id);\n if (presencerequest == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(presencerequest, HttpStatus.OK);\n }", "Optional<Company> findOneById(String id);", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "public Optional<Coach> findById(Long id) {\n\t\treturn Optional.ofNullable(get(id));\n\t}", "public Optional<GetMovieCreditsResponse> getMovieCredits(int movieId) {\n return getMovieCredits(movieId, null);\n }", "@GetMapping(path = \"{id}\")\n public ResponseEntity<ContractorDTO> getContractors(@PathVariable Long id) {\n logger.debug(\"Request to get a Contractor by id\");\n if(id == null || id <= 0) throw new IllegalArgumentException(\"Expects a valid id value > 0\");\n Optional<Contractor> contractor = contractorService.getByID(id);\n if(contractor != null && contractor.isPresent()) return new ResponseEntity(convertToDTO(contractor.get()) , HttpStatus.ACCEPTED);\n throw new ResourceNotFoundException(\"Unable to find any Contractor with id \" + id);\n }", "Optional<DomainRelationshipDTO> findOne(UUID id);", "@Override\n\tpublic Optional<Opcion> findById(Integer id) throws Exception {\n\t\treturn opcionRepository.findById(id);\n\t}", "public Question findQuestionById(final Long questionId) {\n final Optional<Question> findFirst = getSubmittedAnswers().keySet().stream()\n .filter(q -> q.getId() == questionId).findFirst();\n if (findFirst.isPresent()) {\n return findFirst.get();\n }\n return null;\n }", "Optional<Contact> getContact(long id);", "@Override\n public Response getCommonOperationPolicyByPolicyId(String operationPolicyId, MessageContext messageContext) {\n\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String organization = RestApiUtil.getValidatedOrganization(messageContext);\n\n OperationPolicyData existingPolicy =\n apiProvider.getCommonOperationPolicyByPolicyId(operationPolicyId, organization, false);\n if (existingPolicy != null) {\n OperationPolicyDataDTO policyDataDTO =\n OperationPolicyMappingUtil.fromOperationPolicyDataToDTO(existingPolicy);\n return Response.ok().entity(policyDataDTO).build();\n } else {\n throw new APIMgtResourceNotFoundException(\"Couldn't retrieve an existing common policy with ID: \"\n + operationPolicyId, ExceptionCodes.from(ExceptionCodes.OPERATION_POLICY_NOT_FOUND,\n operationPolicyId));\n }\n\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_PATH_OPERATION_POLICIES,\n operationPolicyId, e, log);\n } else {\n String errorMessage = \"Error while getting the common operation policy with ID :\" + operationPolicyId\n + \" \" + e.getMessage();\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n } catch (Exception e) {\n RestApiUtil.handleInternalServerError(\"An error has occurred while getting the common operation \" +\n \" policy with ID: \" + operationPolicyId, e, log);\n }\n return null;\n }", "@GET @Path(\"/{id}\")\n @Produces({MediaType.APPLICATION_JSON})\n public void getCar(@Suspended final AsyncResponse asyncResponse, @PathParam(value = \"id\") final String id) {\n executorService.submit(() -> { asyncResponse.resume(service.getCar(id)); });\n }", "public boolean hasFuture();", "@Override\n @Transactional(readOnly = true)\n public Optional<OperationDTO> findOne(Long id) {\n log.debug(\"Request to get Operation : {}\", id);\n return operationRepository.findById(id)\n .map(operationMapper::toDto);\n }", "@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}", "public String correlationId() {\n return correlationId;\n }", "public ChannelFuture method_4111(ChannelPromise var1) {\n return null;\n }", "public Responder getResponder(long responder_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n String selectQuery = \"SELECT * FROM \" + RESPONDERS_TABLE_NAME + \" WHERE \"\n + KEY_ID + \" = \" + responder_id;\n\n Log.e(LOG, selectQuery);\n\n Cursor c = db.rawQuery(selectQuery, null);\n\n if (c != null)\n c.moveToFirst();\n\n Responder responder = new Responder();\n responder.setId(c.getInt(c.getColumnIndex(KEY_ID)));\n responder.setName((c.getString(c.getColumnIndex(RESPONDERS_NAME))));\n responder.setPhone(c.getString(c.getColumnIndex(RESPONDERS_PHONE)));\n\n return responder;\n }", "public ChannelFuture method_4103(Object var1, ChannelPromise var2) {\n return null;\n }", "public com.callfire.api.service.xsd.IdRequest addNewGetAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.callfire.api.service.xsd.IdRequest target = null;\n target = (com.callfire.api.service.xsd.IdRequest)get_store().add_element_user(GETAUTOREPLY$0);\n return target;\n }\n }", "public ChannelProgressivePromise method_4127() {\n return null;\n }", "public Repuesto getRepuesto(long id) {\n\t\treturn null;\n\t}", "public boolean hasRespondingProductId() {\n return fieldSetFlags()[0];\n }", "@Test\n public void getPhoneDataFetcher_no_specified_id_should_return_null() throws Exception {\n when(mockEnvironment.getArgument(\"phoneId\"))\n .thenReturn(0L);\n\n // Asserts\n CompletableFuture<Phone> asyncResult = resolvers.getPhoneDataFetcher()\n .get(mockEnvironment);\n assertNull(asyncResult);\n }", "private Optional<Payments> findPaymentById(Integer id) {\n return paymentsList.stream()\n .filter(payment -> payment.getId().equals(id))\n .findAny();\n }", "@Override\n\tpublic ResponseEntity<?> findOne(Long id) {\n\t\treturn null;\n\t}", "public Optional<GetMovieTranslationsResponse> getMovieTranslations(int movieId) {\n // /movie/{movie_id}/translations\n String path = String.format(\"/movie/%s/translations\", movieId);\n Map<String, Object> requestParams = Collections.emptyMap();\n return restClient.getOpt(path, requestParams, new TypeReference<>() {\n\n\n }\n );\n }", "public Optional<VirtualFile> getAnyFileById(String id) {\n Stream<VirtualFile> files = Stream.concat(Stream.concat(public_files.stream(), resource_files.stream()), Stream.concat(solution_files.stream(), private_files.stream()));\n return files.filter(file -> file.getId().equals(id)).findFirst();\n }", "Optional<Funcionario> buscarPorId(Long id);", "Optional<CompanyRoleDTO> findOne(Long id);", "Optional<TITransferDetails> findOne(UUID id);", "public ChannelFuture method_4089(Throwable var1) {\n return null;\n }", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }", "public static MetadataServiceFutureStub newFutureStub(io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<MetadataServiceFutureStub>() {\n @java.lang.Override\n public MetadataServiceFutureStub newStub(\n io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new MetadataServiceFutureStub(channel, callOptions);\n }\n };\n return MetadataServiceFutureStub.newStub(factory, channel);\n }", "@PostMapping(\"/cancelOrder\")\n\tpublic ResponseEntity<?> cancelOrder(@RequestParam int orderId) {\n\t\torderService.cancelOrder(orderId);\n\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t}", "private CompletableFuture<Response> getExceptionalCF(Throwable t) {\n if ((t instanceof CompletionException) || (t instanceof ExecutionException)) {\n if (t.getCause() != null) {\n t = t.getCause();\n }\n }\n if (cancelled && t instanceof IOException) {\n t = new HttpTimeoutException(\"request timed out\");\n }\n return MinimalFuture.failedFuture(t);\n }", "@Transactional(readOnly = true)\n public Optional<Invitation> findOne(Long id) {\n log.debug(\"Request to get Invitation : {}\", id);\n return invitationRepository.findById(id);\n }", "@Test\n @Transactional\n public void testGetOneQuestionWithReply() throws RecordNotFoundException {\n QuestionEntity questionEntityWithReply = createNewQuestion();\n questionEntityWithReply.setReplies(Arrays.asList(createReplyEntity()));\n when(questionRepository.findById(anyLong())).thenReturn(Optional.of(questionEntityWithReply));\n Optional<GetQuestionResponseDto> getQuestionResponseDto = questionService.getQuestion(1L);\n assertTrue(getQuestionResponseDto.isPresent());\n assertEquals(\"Author1\", getQuestionResponseDto.get().getAuthor());\n assertEquals(\"Message1\", getQuestionResponseDto.get().getMessage());\n assertEquals(\"reply-author\", getQuestionResponseDto.get().getReplies().get(0).getAuthor());\n assertEquals(\"reply-message\", getQuestionResponseDto.get().getReplies().get(0).getMessage());\n assertEquals(Long.valueOf(1), getQuestionResponseDto.get().getId());\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<DSCorrespondence> findOne(Long id) {\n log.debug(\"Request to get DSCorrespondence : {}\", id);\n return dSCorrespondenceRepository.findById(id);\n }", "@RequestMapping(value = \"/fornecedors/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<FornecedorDTO> getFornecedor(@PathVariable Long id) {\n log.debug(\"REST request to get Fornecedor : {}\", id);\n FornecedorDTO fornecedorDTO = fornecedorService.findOne(id);\n return Optional.ofNullable(fornecedorDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public ChannelFuture method_4099(Object var1, ChannelPromise var2) {\n return null;\n }", "ISerializer invoke(String responseReceiverId);", "Optional<Order> findById(Long orderId);", "@Override\n public Optional<FridgeEntity> getById(String id) {\n return Optional.empty();\n }", "Optional<NotificationDTO> findOne(Long id);", "public Optional<String> getOperationId() {\n return operationId;\n }", "Optional<Company> findById(long company_id);", "Optional<ShipmentInfoPODDTO> findOne(Long id);", "pb4server.TransportResAskReq getTransportResAskReq();", "@Override\n\t@Transactional\n\tpublic Optional<Order> getOrderById(Long id) {\n\t\tOrder order = repository.get(id, Order.class);\n\t\treturn Optional.of(order);\n\t}", "default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }", "@GetMapping(\"/cargos/{id}\")\n @Timed\n public ResponseEntity<Cargo> getCargo(@PathVariable Long id) {\n log.debug(\"REST request to get Cargo : {}\", id);\n Optional<Cargo> cargo = cargoRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(cargo);\n }", "Response<SharedPrivateLinkResource> getByIdWithResponse(String id, UUID clientRequestId, Context context);", "@Transactional(readOnly = true)\n public Optional<PizzaOrder> findOne(Long id) {\n log.debug(\"Request to get PizzaOrder : {}\", id);\n return pizzaOrderRepository.findById(id);\n }", "public static DoctorServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<DoctorServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<DoctorServiceFutureStub>() {\n @java.lang.Override\n public DoctorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {\n return new DoctorServiceFutureStub(channel, callOptions);\n }\n };\n return DoctorServiceFutureStub.newStub(factory, channel);\n }" ]
[ "0.5118843", "0.5004828", "0.48490286", "0.48255402", "0.48003072", "0.47902557", "0.45729342", "0.45680708", "0.4543476", "0.45030802", "0.44963238", "0.44667137", "0.44143978", "0.44112006", "0.4406547", "0.43824258", "0.4376698", "0.43494692", "0.4347148", "0.43339217", "0.43339217", "0.43272465", "0.43233952", "0.43178695", "0.4315474", "0.4311128", "0.43096516", "0.43050614", "0.43039054", "0.42881173", "0.42609224", "0.42344683", "0.42334467", "0.42256838", "0.42196864", "0.420981", "0.42087737", "0.42055082", "0.4202637", "0.41965124", "0.4193575", "0.4183406", "0.41726488", "0.4158696", "0.41573605", "0.41558197", "0.41488194", "0.4141168", "0.41378582", "0.413669", "0.4136327", "0.41359192", "0.41337335", "0.41317448", "0.41216046", "0.4101705", "0.41000164", "0.4086542", "0.40837818", "0.40788445", "0.40743506", "0.40709138", "0.40638277", "0.40635365", "0.4047296", "0.40432787", "0.40397093", "0.40368712", "0.40357468", "0.40322113", "0.4031226", "0.40291297", "0.40190884", "0.40080908", "0.40078992", "0.4006763", "0.40063745", "0.400091", "0.39996096", "0.39988828", "0.39987338", "0.3993533", "0.3985159", "0.39811057", "0.39715737", "0.3969649", "0.39623705", "0.3960548", "0.39597705", "0.39568067", "0.39560276", "0.39538997", "0.395011", "0.3946571", "0.3939722", "0.39393038", "0.3931688", "0.3931318", "0.39288086", "0.39248595" ]
0.7789066
0
complete the expected future response successfully and apply the function.
public void complete(Message message) { if (message.header("exception") == null) { messageFuture.complete(function.apply(message)); } else { LOGGER.error("cid [{}] remote service invoke respond with error message {}", correlationId, message); messageFuture.completeExceptionally(message.data()); } futures.remove(this.correlationId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void operationComplete(Future<Response> future) throws Exception {\n }", "CompletableFuture<WebClientServiceResponse> whenComplete();", "@Override\n public void operationComplete(Future<Void> future) throws Exception{\n if(!future.isSuccess()){\n olapFuture.fail(future.cause());\n olapFuture.signal();\n }\n }", "@Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess()) {\n Throwable cause = future.cause();\n // Do something\n }\n }", "Single<WebClientServiceResponse> whenComplete();", "Single<WebClientServiceResponse> whenComplete();", "public void onComplete(T result);", "@Override\n \t\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n \t\t\t\t\tif (future.isSuccess()) {\n \t\t\t\t\t\tdetermineNextChannelAction(channel, currentSequenceNumber + 1, follow);\n \t\t\t\t\t}\n \t\t\t\t}", "void onComplete(ResultModel result);", "@Override\r\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\r\n\t\t}", "void whenComplete();", "public void finish() {\n if (!isFinishing) {\n performFnishWithRequest(true);\n }\n }", "void onCompleted(T response);", "@Override\r\n\t\tpublic void operationComplete(ChannelProgressiveFuture future) {\n }", "@Test\n public void thenApply() {\n CompletableFuture<String> cf = CompletableFuture.completedFuture(\"message\")\n .thenApply(s -> {\n assertFalse(Thread.currentThread().isDaemon());\n System.out.println(Thread.currentThread().getName());\n return s.toUpperCase();\n });\n System.out.println(Thread.currentThread().getName());\n assertEquals(\"MESSAGE\", cf.getNow(null));\n }", "public void requestDone(Request request, boolean isSuccessful);", "@Override\n\t\tpublic void operationComplete(ChannelFuture arg0) throws Exception {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "private void supplyAsyncThenApply() {\n CompletableFuture<String> completableFuture\n = CompletableFuture.supplyAsync(() -> {\n sleep();\n return \"Hello from \" + Thread.currentThread().getName();\n });\n\n CompletableFuture<String> future = completableFuture\n .thenApply(s -> s + \" World from \" + Thread.currentThread().getName());\n\n try {\n String s = future.get();\n System.out.println(\"supplyAsyncThenApply : \" + s);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }", "@Override\n public boolean complete(boolean succeed) {\n if (completed.compareAndSet(false, true)) {\n onTaskCompleted(task, succeed);\n return true;\n }\n return false;\n }", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "default void accept(CompletableFuture<? extends T> future) {\n future.handle((value, failure) -> {\n if (failure == null) {\n success(value);\n } else {\n error(failure);\n }\n\n return null;\n });\n }", "void complete();", "void complete();", "@NotNull\n <U> LightFuture<U> thenApply(Function<? super T, U> mapping) throws InterruptedException, LightExecutionException;", "protected void completeFuturesForFauxInstances() {\n }", "@Override\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\tLog.d(\"arvi\", \"arvi1111\");\n\t\t}", "public void onComplete() {\r\n\r\n }", "void onTaskComplete(T result);", "public Single<Void> whenComplete() {\n return mockSubscriber.completed();\n }", "@Override\n public void operationComplete(ChannelFuture future)\n throws Exception\n {\n if (future.isSuccess())\n {\n listener.sendSusccess(message);\n }\n else if (future.isCancelled())\n {\n listener.oncancellSend(message);\n }\n else if (!future.isSuccess())\n {\n listener.sendFailed(message, future.cause());\n }\n }", "void faild_response();", "@Override\n public void onComplete() {\n callback.getRandomUserResponse(randomUserResponse);\n }", "void onComplete(Consumer<? super Try<T>> action);", "CompletableFuture<Void> next();", "JobResponse apply();", "boolean complete();", "protected final void complete(R result) {\n myDeferred.resolve(result);\n }", "@Override\n public void onSuccess(final Void result) {\n cupState.getCurrentHeatCupTask().set(executor.submit(new HeatCupTask(input,\n futureResult)));\n }", "@Override\n\tpublic void complete(ReceiveResponseBean receiveResponseBean) {\n\n\t}", "void onComplete(boolean result, JSONObject jsonObject);", "public void complete() {\n\t}", "public void onCompletion();", "@Test\n public void thenAccept() {\n StringBuilder result = new StringBuilder();\n CompletableFuture.completedFuture(\"thenAccept message\")\n .thenAccept(s -> result.append(s));\n assertTrue(\"Result was empty\", result.length() > 0);\n }", "void onComplete(String status);", "@NonBlocking\n void success(T value);", "private void maybeOnSucceededOnExecutor() {\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n if (!(mWriteState == State.WRITING_DONE && mReadState == State.READING_DONE)) {\n return;\n }\n mReadState = mWriteState = State.SUCCESS;\n // Destroy native stream first, so UrlRequestContext could be shut\n // down from the listener.\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onSucceeded(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onSucceeded method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception {\n \r\n }", "void onComplete();", "@Override\n\tpublic void finishSuccess() {\n\t\tSystem.err.println(\"finishSuccess\");\n\n\t}", "@Override\n public void onSucceed(Object valor) {\n }", "@Override\r\n public void afterCompletion(HttpServletRequest request,\r\n HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception \r\n {\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest req, HttpServletResponse resp, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n\tpublic void complete()\n\t{\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "CompletableFuture<WriteResponse> submit();", "public void handleFutureResult(WorkContainer<K, V> wc) {\n if (checkEpochIsStale(wc)) {\n // no op, partition has been revoked\n log.debug(\"Work result received, but from an old generation. Dropping work from revoked partition {}\", wc);\n // todo mark work as to be skipped, instead of just returning null - related to retry system https://github.com/confluentinc/parallel-consumer/issues/48\n return;\n }\n\n if (wc.getUserFunctionSucceeded().get()) {\n onSuccess(wc);\n } else {\n onFailure(wc);\n }\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t}", "public void finish(ServiceResult result);", "protected abstract void doAfter(T result);", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n Exception ex) throws Exception {\n\r\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "void onCompleteActionWithSuccess(SmartEvent smartEvent);", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {\r\n\t}", "@Override\n\tpublic void endSuccess() {\n\t\t\n\t}", "@Override\n public void onCompleted() {\n System.out.println(\"Sending final response as client is done\");\n //as client done, setting the result to response observer object\n responseObserver.onNext(LongGreetResponse.newBuilder().setResult(result).build());\n //complete the response\n responseObserver.onCompleted();\n }", "void onServiceSuccess(MasterResponse masterResponse, int taskCode);", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "public void complete()\n {\n isComplete = true;\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "protected abstract void onCustomSuccess(T result);", "void complete(Messages.AuthResult authResult);", "void completed(TestResult tr);", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public void onSuccess(RpcResult<Void> result) {\n handleIfFinished(null, isSucessful.get());\n }", "Single<WebClientServiceResponse> whenResponseReceived();", "Single<WebClientServiceResponse> whenResponseReceived();" ]
[ "0.69235504", "0.6660811", "0.6653972", "0.61836326", "0.6170641", "0.6170641", "0.61557734", "0.6080103", "0.60378927", "0.5948815", "0.5940915", "0.58993936", "0.58206874", "0.57924855", "0.5789504", "0.57877535", "0.5754458", "0.57409143", "0.57272136", "0.57185256", "0.57171464", "0.57171464", "0.5684673", "0.56808203", "0.56808203", "0.56687516", "0.56613815", "0.56523675", "0.56510174", "0.5644396", "0.5634615", "0.56341815", "0.5633269", "0.5627294", "0.56218684", "0.56145096", "0.56115735", "0.5595059", "0.5589589", "0.5577651", "0.5573636", "0.55706173", "0.5568955", "0.55682737", "0.5553643", "0.55455685", "0.5539709", "0.55391", "0.55348855", "0.5531768", "0.5520681", "0.55143136", "0.5498683", "0.54847986", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.54834056", "0.5476993", "0.5476993", "0.54669434", "0.5463145", "0.5460919", "0.5459508", "0.54515386", "0.54470885", "0.5443624", "0.5439872", "0.54362756", "0.54362756", "0.542293", "0.54164183", "0.54139495", "0.5408167", "0.54073346", "0.5406327", "0.5406327", "0.5396927", "0.5396806", "0.5396806", "0.5396806", "0.5396806", "0.5396806", "0.5396806", "0.5396806", "0.53856415", "0.53831995", "0.53825814", "0.5382219", "0.5372721", "0.53674245", "0.53674245" ]
0.54062825
85
complete the expected future response exceptionally with a given exception.
public void completeExceptionally(Throwable exception) { messageFuture.completeExceptionally(exception); futures.remove(this.correlationId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void operationComplete(Future<Response> future) throws Exception {\n }", "@Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess()) {\n Throwable cause = future.cause();\n // Do something\n }\n }", "public void complete(Message message) {\n if (message.header(\"exception\") == null) {\n messageFuture.complete(function.apply(message));\n } else {\n LOGGER.error(\"cid [{}] remote service invoke respond with error message {}\", correlationId, message);\n messageFuture.completeExceptionally(message.data());\n }\n futures.remove(this.correlationId);\n }", "private CompletableFuture<Response> getExceptionalCF(Throwable t) {\n if ((t instanceof CompletionException) || (t instanceof ExecutionException)) {\n if (t.getCause() != null) {\n t = t.getCause();\n }\n }\n if (cancelled && t instanceof IOException) {\n t = new HttpTimeoutException(\"request timed out\");\n }\n return MinimalFuture.failedFuture(t);\n }", "@Override\n public void operationComplete(Future<Void> future) throws Exception{\n if(!future.isSuccess()){\n olapFuture.fail(future.cause());\n olapFuture.signal();\n }\n }", "@Override\n public void onError(Throwable e)\n {\n if (e instanceof RestException)\n {\n promise.done(((RestException) e).getResponse());\n }\n else\n {\n promise.fail(e);\n }\n }", "CompletableFuture<WebClientServiceResponse> whenComplete();", "public static <T> CompletionStage<T> exceptionallyCompleted(Exception e) {\n CompletableFuture<T> result = new CompletableFuture<T>();\n result.completeExceptionally(e);\n return result;\n }", "@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "Result(Exception e) {\n empty = false;\n this.e = e;\n status = 1;\n }", "@Override\n public void onComplete() {\n refCause.compareAndSet(null, DELIBERATE_EXCEPTION);\n }", "private static void shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise) {\n/* 674 */ Throwable shutdownOutputCause = shutdownOutputFuture.cause();\n/* 675 */ Throwable shutdownInputCause = shutdownInputFuture.cause();\n/* 676 */ if (shutdownOutputCause != null) {\n/* 677 */ if (shutdownInputCause != null) {\n/* 678 */ logger.debug(\"Exception suppressed because a previous exception occurred.\", shutdownInputCause);\n/* */ }\n/* */ \n/* 681 */ promise.setFailure(shutdownOutputCause);\n/* 682 */ } else if (shutdownInputCause != null) {\n/* 683 */ promise.setFailure(shutdownInputCause);\n/* */ } else {\n/* 685 */ promise.setSuccess();\n/* */ } \n/* */ }", "void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);", "@Override\n\tprotected void doAfterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object obj, Exception e) {\n\t\t\n\t}", "public void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Test\n public void followFail() throws IOException {\n Mockito.when(mockRegisterService.register(request)).thenThrow(new IOException());\n\n Assertions.assertThrows(IOException.class, () -> {\n presenter.register(request);\n });;\n// Assertions.assertEquals(failResponse.getMessage(), presenter.follow(failRequest).getMessage());\n }", "private void failWithExceptionOnExecutor(CronetException e) {\n mException = e;\n // Do not call into mCallback if request is complete.\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onFailed(this, mResponseInfo, e);\n } catch (Exception failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception notifying of failed request\",\n failException);\n }\n mInflightDoneCallbackCount.decrement();\n }", "public void waitForCompletion() throws Exception {\n latch.await();\n if (exception != null) {\n throw new RuntimeException(\"Query submission failed\", exception);\n }\n }", "@Override\n public Promise<T> exceptionallyAsync(Function<Throwable, ? extends T> fn) {\n return cast(super.exceptionallyAsync(fn));\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n public Promise<T> exceptionallyAsync(Function<Throwable, ? extends T> fn, Executor executor) {\n return cast(super.exceptionallyAsync(fn, executor));\n }", "@Override\n public void onCompleted(Exception e, String result) {\n if (e != null) {\n Log.e(\"API Error\", e.getMessage());\n } else {\n Log.e(\"API Response\", result);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testBackenStatusUpdateError() throws Exception {\n RequestBodyEntity bodyEntityRegister = mock(RequestBodyEntity.class);\n \n HttpResponse<String> stringResponseRegister = (HttpResponse<String>) mock(HttpResponse.class);\n when(stringResponseRegister.getStatus())\n .thenReturn(400); \n when(bodyEntityRegister.asString())\n .thenReturn(stringResponseRegister); \n\n HttpRequestWithBody registerBodyMock = mock(HttpRequestWithBody.class);\n \n when(registerBodyMock.routeParam(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.header(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.body(anyString()))\n .thenReturn(bodyEntityRegister);\n\n // PUT mock\n when(Unirest.put(contains(\"/event/status\")))\n .thenReturn(registerBodyMock); \n \n TestWorker testWorker = new TestWorker();\n worker = getWrappedWorker(testWorker);\n worker.run();\n \n // let worker throw CommunicationException\n Envelope envelope = new Envelope(new Long(34343), false, \"graviton\", \"documents.core.app.update\");\n URL jsonFile = this.getClass().getClassLoader().getResource(\"json/queueEvent.json\");\n String message = FileUtils.readFileToString(new File(jsonFile.getFile()));\n workerConsumer.handleDelivery(\"documents.core.app.update\", envelope, new AMQP.BasicProperties(), message.getBytes()); \n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n throws Exception {\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\t\n\t}", "CompletableFuture<Void> next();", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t}", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {\r\n\t}", "private static HttpResponse handleExceptionalStatus(\n HttpResponse response,\n UUID requestId,\n ApiName apiName,\n CloseableHttpClient httpClient,\n HttpUriRequest request,\n RequestBuilder requestBuilder)\n throws IOException, IngestResponseException, BackOffException {\n if (!isStatusOK(response.getStatusLine())) {\n StatusLine statusLine = response.getStatusLine();\n LOGGER.warn(\n \"{} Status hit from {}, requestId:{}\",\n statusLine.getStatusCode(),\n apiName,\n requestId == null ? \"\" : requestId.toString());\n\n // if we have a 503 exception throw a backoff\n switch (statusLine.getStatusCode()) {\n // If we have a 503, BACKOFF\n case HttpStatus.SC_SERVICE_UNAVAILABLE:\n throw new BackOffException();\n case HttpStatus.SC_UNAUTHORIZED:\n LOGGER.warn(\"Authorization failed, refreshing Token succeeded, retry\");\n requestBuilder.refreshToken();\n requestBuilder.addToken(request);\n response = httpClient.execute(request);\n if (!isStatusOK(response.getStatusLine())) {\n throw new SecurityException(\"Authorization failed after retry\");\n }\n break;\n default:\n String blob = consumeAndReturnResponseEntityAsString(response.getEntity());\n throw new IngestResponseException(\n statusLine.getStatusCode(),\n IngestResponseException.IngestExceptionBody.parseBody(blob));\n }\n }\n return response;\n }", "@Test\n public void testExceptionThrown() throws Exception {\n final HttpResponse response = Request.Get(\"http://localhost:\" + httpPort.getValue() + CORS_EXCEPTION_ENDPOINT_PATH).addHeader(\"Origin\", CORS_DEFAULT_ORIGIN).execute().returnResponse();\n\n assertNotNull(\"Response should not be null\", response);\n\n //we should have an access control allow origin\n assertNotNull(\"Allowed origin should be present\", response.getFirstHeader(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_ORIGIN));\n }", "@Override\n\tpublic void finishFailure(Exception cause) {\n\t\tSystem.err.println(\"finishFailure\");\n\n\t}", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n finish();\n }", "public Promise<V> setFailure(Throwable cause)\r\n/* 331: */ {\r\n/* 332:415 */ if (setFailure0(cause))\r\n/* 333: */ {\r\n/* 334:416 */ notifyListeners();\r\n/* 335:417 */ return this;\r\n/* 336: */ }\r\n/* 337:419 */ throw new IllegalStateException(\"complete already: \" + this, cause);\r\n/* 338: */ }", "@Override\n public void onResponse(PersistentTasksCustomMetadata.PersistentTask<?> task) {\n onFailure.accept(exception);\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tsuper.afterCompletion(request, response, handler, ex);\n\t}", "public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "private void done(boolean exceptionOccurred) {\n\t\tif (afterWorkComplete != null) {\n\t\t\tafterWorkComplete.accept(exceptionOccurred);\n\t\t}\n\t\tformMode();\n\t}", "ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception);", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object object, Exception e)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n public void close() throws Exception {\n synchronized (lock) {\n httpClient.close();\n }\n }", "void taskFinished(Throwable t);", "public void afterCompletion(HttpServletRequest arg0,\n\t\t\tHttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t}", "@Nullable\n public ApolloException awaitFailure() {\n Await.latch(failureLatch, waitTimeMs);\n return failureContainer.get();\n }", "public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest paramHttpServletRequest,\r\n\t\t\tHttpServletResponse paramHttpServletResponse, Object paramObject,\r\n\t\t\tException paramException) throws Exception {\n\t\t\r\n\t}", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "public void afterCompletion(HttpServletRequest arg0,\n\t\t\tHttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tsuper.afterCompletion(request, response, handler, ex);\n\t}", "@Override\n\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n\t\t\tSystem.out.println(\"Channel closed\");\n\t\t\t// @TODO if lost, try to re-establish the connection\n\t\t}", "@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n public Promise<T> exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> fn) {\n return cast(super.exceptionallyComposeAsync(fn));\n }", "void afterThrow(T resource, Exception exception);", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request,\r\n HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception \r\n {\n }", "@Override\n public void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception {\n }", "@Test(dependsOnMethods = { \"testCompleteTaskWithMandatoryParameters\" },\n description = \"podio {completeTask} integration test with negative case.\")\n public void testCompleteTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:completeTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_completeTask_negative.json\");\n \n String apiEndPoint = apiUrl + \"/task/Invalid/complete\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n \n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0,\n\t\t\tHttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0,\n\t\t\tHttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest req,\n\t\t\tHttpServletResponse res, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\n\t}", "private ChannelFuture checkException(ChannelPromise promise) {\n/* 624 */ Throwable t = this.lastException;\n/* 625 */ if (t != null) {\n/* 626 */ this.lastException = null;\n/* */ \n/* 628 */ if (promise.isVoid()) {\n/* 629 */ PlatformDependent.throwException(t);\n/* */ }\n/* */ \n/* 632 */ return (ChannelFuture)promise.setFailure(t);\n/* */ } \n/* */ \n/* 635 */ return (ChannelFuture)promise.setSuccess();\n/* */ }", "@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception {\n \r\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "void onComplete(Consumer<? super Try<T>> action);", "public void testHttpFailureRetries() {\n delayTestFinish(RUNASYNC_TIMEOUT);\n runAsync1(0);\n }", "@Override\n\t\tpublic void operationComplete(ChannelFuture arg0) throws Exception {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "public void onFailure(Exception t);", "@Override\n public Promise<T> exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> fn, Executor executor) {\n return cast(super.exceptionallyComposeAsync(fn, executor));\n }", "public void performCompletion() {\n/* 536 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\t\tlogger.info(\"execute afterCompletion method ……\");\n\t\t\n\t}", "@Override\n public void onCompleted(Exception e, JsonObject result) {\n System.out.println(\"Forgot Response >>>\"+result);\n System.out.println(\"Forgot Response >>>\"+e);\n loader.cancel();\n if (e != null) {\n //Toast.makeText(ForgotActivity.this, \"Forgot Error\"+e, Toast.LENGTH_LONG).show();\n Common.ShowHttpErrorMessage(ForgotActivity.this, e.getMessage());\n return;\n }\n\n try {\n JSONObject JsonRes = new JSONObject(result.toString());\n if(JsonRes.getString(\"status\").equals(\"success\")) {\n Toast.makeText(ForgotActivity.this, JsonRes.getString(\"message\").toString(), Toast.LENGTH_LONG).show();\n finish();\n }\n } catch (JSONException e1) {\n e1.printStackTrace();\n }\n\n\n }", "public AsyncHttpResponse(String url, Exception exception) {\n mUrl = url;\n mHeaders = null;\n mPayload = null;\n mException = exception;\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }" ]
[ "0.6368535", "0.6268779", "0.6086253", "0.5997044", "0.5787659", "0.5753979", "0.564964", "0.5557127", "0.5497742", "0.54774106", "0.53798026", "0.53712636", "0.53528047", "0.5325526", "0.5292485", "0.52701026", "0.52623034", "0.5257528", "0.52181387", "0.51893455", "0.51731694", "0.5161477", "0.5149953", "0.5141262", "0.5141184", "0.5141184", "0.5141184", "0.5141184", "0.5128821", "0.51258045", "0.51258045", "0.5115094", "0.5114373", "0.5114313", "0.50984657", "0.509086", "0.5088333", "0.50799334", "0.5068871", "0.5066573", "0.50616646", "0.5057938", "0.5049054", "0.5033838", "0.5031282", "0.5031282", "0.50281715", "0.5028112", "0.50254", "0.5025335", "0.5018889", "0.50160617", "0.5007999", "0.50074875", "0.50057137", "0.4999925", "0.49972063", "0.49972063", "0.4992769", "0.49912438", "0.49848086", "0.49727076", "0.49721172", "0.49721172", "0.4969926", "0.49665612", "0.49584946", "0.49584946", "0.49584946", "0.49584946", "0.4958253", "0.49507383", "0.49487197", "0.49472803", "0.4944494", "0.4944494", "0.4942319", "0.49403855", "0.49316314", "0.49297088", "0.49267444", "0.49267444", "0.49259523", "0.49194187", "0.49190226", "0.4916496", "0.491371", "0.49127394", "0.4912466", "0.4897043", "0.48914132", "0.48795325", "0.48783815", "0.48783815", "0.48783815", "0.48783815", "0.48783815", "0.48783815", "0.48783815", "0.48783815" ]
0.6966053
0
future of this correlated response.
public CompletableFuture<Object> future() { return messageFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}", "public SynchronizationResponse getResult() {\n return _response;\n }", "public Object call() throws Exception {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tif ( reference.asNativeRemoteFarReference().getTransmitting()){\n\t\t\t\t\t\t\t// if there is a thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future with a BlockingFuture to wait for the result of the transmission.\n\t\t\t\t\t\t\tBlockingFuture future = setRetractingFuture(reference);\n\t\t\t\t\t\t\treturn future.get();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if there is no thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future immediately with the content of its oubox.\n\t\t\t\t\t\t\treturn reference.asNativeRemoteFarReference().impl_retractOutgoingLetters();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "private BlockingFuture setRetractingFuture(ATFarReference reference) {\n\t\t// first assign future to a local variable to avoid race conditions on writing to the outboxFuture_ variable!\n\t\tfinal BlockingFuture future = new BlockingFuture();\n\t\tsynchronized(this) { \n\t\t\t// synchronized access because different thread in the pool could\n\t\t\t// be processing retractUnsentMessages requests for different references. \n\t\t\tretractFutures_.put(reference, future);\n\t\t}\n\t\treturn future;\n\t}", "@Nullable\n public Response<T> awaitResponse() {\n Await.latch(responseLatch, waitTimeMs);\n return responseContainer.get();\n }", "CompletableFuture<WebClientServiceResponse> whenComplete();", "public void operationComplete(Future<Response> future) throws Exception {\n }", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "public String getCorrentResponseValue() {\n return correntResponseValue;\n }", "public boolean getAwaitResponse() {\n return awaitResponse;\n }", "Single<WebClientServiceResponse> whenComplete();", "Single<WebClientServiceResponse> whenComplete();", "Single<WebClientServiceResponse> whenResponseReceived();", "Single<WebClientServiceResponse> whenResponseReceived();", "private String getResponse(){\n\t\tString msg;\n\t\tsynchronized (this){\n\t\t\twhile(!validResponse) {\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmsg = response;\n\t\t\tvalidResponse = false;\n\t\t\tnotifyAll();\n\t\t}\n\t\treturn msg;\n\t}", "public synchronized boolean poll_response(){\n return gotResponse;\n }", "public ResponseTime finish(){\n return finish(Instant.now());\n }", "@Override\n public void onCompleted() {\n System.out.println(\"Sending final response as client is done\");\n //as client done, setting the result to response observer object\n responseObserver.onNext(LongGreetResponse.newBuilder().setResult(result).build());\n //complete the response\n responseObserver.onCompleted();\n }", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "@Override\r\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\r\n\t\t}", "public T getResponse() {\n return response;\n }", "@Override\n\t\tpublic void operationComplete(ChannelFuture arg0) throws Exception {\n\t\t\t\n\t\t}", "public long getCompleted() { return completed; }", "@Override\n public void onCompleted() {\n System.out.println(\"Server has completed sending us response\");\n // on completed will be called right after onNext\n // Whenever server is done sending data latch is going down by 1\n latch.countDown();\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getInitialResponse() {\n return instance.getInitialResponse();\n }", "@Override\n public void onComplete() {\n callback.getRandomUserResponse(randomUserResponse);\n }", "private <T> Future<T> newFuture(final T response) {\n FutureTask<T> t = new FutureTask<T>(new Callable<T>() {\n @Override\n public T call() {\n return response;\n }\n });\n t.run();\n return t;\n }", "public Response waitForCoapResponse() throws InterruptedException {\n try {\n boolean timeElapsed = false;\n timeElapsed = !latch.await(timeout, TimeUnit.MILLISECONDS);\n if (timeElapsed || coapTimeout.get()) {\n coapTimeout.set(true);\n coapRequest.cancel();\n }\n } finally {\n coapRequest.removeMessageObserver(this);\n }\n\n if (exception.get() != null) {\n coapRequest.cancel();\n throw exception.get();\n }\n return ref.get();\n }", "public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }", "@Override\n \t\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n \t\t\t\t\tif (future.isSuccess()) {\n \t\t\t\t\t\tdetermineNextChannelAction(channel, currentSequenceNumber + 1, follow);\n \t\t\t\t\t}\n \t\t\t\t}", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "public void done() {\n if (!isCancelled()) {\n try {\n C0637h.this.mo7991a(get());\n } catch (InterruptedException | ExecutionException e) {\n C0637h.this.mo7992a(e.getCause());\n }\n } else {\n C0637h.this.mo7992a((Throwable) new CancellationException());\n }\n }", "public ChannelFuture method_4097() {\n return null;\n }", "public void onComplete() {\r\n\r\n }", "public @NonNull CompletableFuture<?> ready() {\n return this.readyFuture;\n }", "public RlcpResponse execute() {\n return execute(0);\n }", "public static void fromFuture() {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n Future<String> future = executorService.submit(() -> \"Response from future\");\n Observable<String> myObservable = Observable.fromFuture(future);\n myObservable.subscribe(genericObserver1);\n }", "@Override\n\tpublic void replyOperationCompleted() { ; }", "public ChannelFuture method_4130() {\n return null;\n }", "protected T getResponse() {\n return responseData;\n }", "public ChannelFuture getChannelFuture() {\n return channelFuture;\n }", "@Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess()) {\n Throwable cause = future.cause();\n // Do something\n }\n }", "public void onComplete(T result);", "@Override\r\n\t\tpublic void operationComplete(ChannelProgressiveFuture future) {\n }", "@Override\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\tLog.d(\"arvi\", \"arvi1111\");\n\t\t}", "private CallResponse() {\n initFields();\n }", "public ChannelFuture method_4092() {\n return null;\n }", "@Override\n public void onCompleted() {\n responseObserver.onCompleted();\n }", "CompletableFuture<Void> next();", "@Override\n\t\tpublic void onComplete(Object response) {\n\t\t\t Util.toastMessage(QZoneShareActivity.this, \"onComplete: \" + response.toString());\n\t\t}", "public ChannelFuture method_4120() {\n return null;\n }", "public Single<Void> whenComplete() {\n return mockSubscriber.completed();\n }", "public ChannelFuture method_4126() {\n return null;\n }", "@Override\n public void execute() {\n this.setMyReturnValue(myHandler.getXcor());\n }", "public Date getLastReceiveSuccessResponseTime()\r\n {\r\n return lastReceiveSuccessResponseTime;\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\t\t\t\t\tString json = response;\n\t\t\t\t\t\t\t\tLog.d(\"arv\", \"arv\"+json);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "Object getCompletionResult();", "Double getCompletion();", "@Override\n public void onComplete(long dt) {\n }", "public String getFuture_fa() {\n return future_fa;\n }", "public final T getResult() {\n join();\n return self();\n }", "@Override\n public void onSuccess() {\n threadExchangeObject.value = true;\n }", "void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);", "String waitForCompletion(ClientResponse asyncResponse) {\n return waitForCompletion(asyncResponse, maxAsyncPollingRetries);\n }", "public ClientResponse getResponse() {\n return r;\n }", "public Date getLastSendSuccessResponseTime()\r\n {\r\n return lastSendSuccessResponseTime;\r\n }", "public static final double futureValue (\n double c,\n double r,\n double t )\n //////////////////////////////////////////////////////////////////////\n {\n return c * Math.pow ( 1.0 + r, t );\n }", "public boolean getComplete(){\n return localComplete;\n }", "@Override\n public void onNext(ExecutionResult executionResult) {\n // as each deferred result arrives, send it to where it needs to go\n //\n try {\n TimeUnit.SECONDS.sleep(3);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n sendResult(session, executionResult);\n subscription.request(1);\n }", "@Asynchronous\n public Future<Boolean> compute() {\n observer.reset();\n return new AsyncResult<Boolean>(requestScopedObserver.isInitializedObserved());\n }", "public interface AsyncResponse {\n void processFinish(RoadInfo output);\n }", "void onComplete(ResultModel result);", "void onCompleted(T response);", "public abstract T await();", "public long logicallyCompletedAt() {\n return logicallyCompletedAt;\n }", "public synchronized Object getResponse() {\n Object[] resp = new Object[ responses.size() ] ;\n for (int i=0;i<responses.size();i++) {\n resp[i] = responses.get(i) ;\n }\n responses.clear();\n responseChanged = false ;\n numResponses ++ ;\n return resp ;\n }", "public ListenableFuture<SendResult> getSendResultFuture() {\n return this.sendResultFuture;\n }", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public CompletableFuture<?> getReleaseFuture() {\n\t\treturn releaseFuture;\n\t}", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "public Future<Integer> getValue() {\n GetValue getValue = new GetValue(this.generator);\n return this.scheduled.schedule(getValue, this.delay, TimeUnit.MILLISECONDS);\n }", "public void callCompleted(InetAddress clientId, int xid, RpcResponse response) {\n ClientRequest req = new ClientRequest(clientId, xid);\n CacheEntry e;\n synchronized(map) {\n e = map.get(req);\n }\n e.response = response;\n }", "public edu.itq.soa.ResponseDocument.Response getResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.itq.soa.ResponseDocument.Response target = null;\n target = (edu.itq.soa.ResponseDocument.Response)get_store().find_element_user(RESPONSE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }" ]
[ "0.6285853", "0.5718331", "0.56778985", "0.56637007", "0.560122", "0.556376", "0.55258876", "0.5517272", "0.55068374", "0.5482601", "0.5479431", "0.5479431", "0.54748863", "0.54748863", "0.5393023", "0.53844094", "0.53679824", "0.5308647", "0.5264171", "0.5264171", "0.5252067", "0.5218107", "0.5218107", "0.52131706", "0.52109605", "0.5187382", "0.51718974", "0.516167", "0.51519716", "0.513837", "0.51195025", "0.5094864", "0.508912", "0.50888526", "0.50797415", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.50605065", "0.5060196", "0.5048308", "0.50431246", "0.50363", "0.5015738", "0.5010215", "0.500803", "0.5007765", "0.4997828", "0.49831322", "0.49701542", "0.49595764", "0.49571928", "0.4950629", "0.49396685", "0.49335933", "0.49279547", "0.4920671", "0.49092358", "0.4905578", "0.48982486", "0.48977432", "0.4882152", "0.48769018", "0.48744887", "0.4871655", "0.4864859", "0.48612157", "0.48592904", "0.48580736", "0.4857343", "0.48523358", "0.48492256", "0.48485672", "0.48475277", "0.48475277", "0.48406136", "0.48343125", "0.48313263", "0.48299575", "0.48273668", "0.48272347", "0.4823205", "0.48212013", "0.48192447", "0.481664", "0.4810793", "0.48074242", "0.48051065", "0.48039487", "0.47989735", "0.47950122", "0.47949588" ]
0.5579603
5
Correlation id of the request.
public String correlationId() { return correlationId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }", "public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}", "java.lang.String getRequestID();", "public String getIdrequest() {\r\n\t\treturn idrequest;\r\n\t}", "public int getR_Request_ID();", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "private String getCorrelationIdFromTask(String TaskContext) {\n String msgContext = TaskContext.substring(TaskContext.indexOf(\":\") + 1);\n logger.debug(String.format(\"msgContext: %s\", msgContext));\n Map msgMap = JSONObjectUtil.toObject(msgContext, LinkedHashMap.class);\n return (String) msgMap.get(ID);\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }", "@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }", "org.apache.xmlbeans.XmlString xgetRequestID();", "public UUID getXMsClientRequestId() {\n return this.xMsClientRequestId;\n }", "long requestId();", "long requestId();", "public int getClientRequestId() {\n return clientRequestId;\n }", "private int getRequestCode() {\n return Thread.currentThread().hashCode();\n }", "public String getDetailsRequest(String correlationId) {\n\t\tString dtlTemplate = StringUtils.replace(\r\n\t\t\t\tDetailsTemplateConstant.INSTANCE.DTL_JMS, \"#!CORRELATIONID!#\", correlationId);\r\n\t\treturn dtlTemplate;\r\n\t}", "public Integer getCorpid() {\n return corpid;\n }", "public java.lang.Integer getReqCustid() {\n return req_custid;\n }", "public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }", "public String getUniqueId() {\n return _uniqueId;\n }", "public java.lang.Integer getReqCustid() {\n return req_custid;\n }", "public int getR_RequestType_ID();", "protected Long getIdRendicion(HttpServletRequest request){\n\t\tLong idRendicion = null;\n\t\t\n\t\tif (validateParameter(request,\"id\")){\n\t\t\tidRendicion = new Long(request.getParameter(\"id\"));\n\t\t}\n\t\treturn idRendicion;\n\t}", "public String getCallIdentifier() {\n return callIdHeader.getCallId();\n }", "private static synchronized String getNextRequestId()\n {\n if (++nextRequestId < 0)\n {\n nextRequestId = 0;\n }\n String id = Integer.toString(nextRequestId);\n return id;\n }", "private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }", "public String getOrigId () {\n return origId;\n }", "public String getOrigId () {\n return origId;\n }", "public byte getResponseId() {\n return responseId;\n }", "private String getRequestReplyId(final ImmutableMessage immutableMessage) {\n String requestReplyId = immutableMessage.getCustomHeaders().get(Message.CUSTOM_HEADER_REQUEST_REPLY_ID);\n if (requestReplyId == null || requestReplyId.isEmpty()) {\n try {\n String deserializedPayload = new String(immutableMessage.getUnencryptedBody(), StandardCharsets.UTF_8);\n final Request request = objectMapper.readValue(deserializedPayload, Request.class);\n requestReplyId = request.getRequestReplyId();\n } catch (Exception e) {\n logger.error(\"Error while trying to get requestReplyId from the message. msgId: {}. from: {} to: {}. Error:\",\n immutableMessage.getId(),\n immutableMessage.getSender(),\n immutableMessage.getRecipient(),\n e);\n }\n if (requestReplyId == null || requestReplyId.isEmpty()) {\n return immutableMessage.getId();\n }\n }\n if (requestReplyId.contains(REQUEST_REPLY_ID_SEPARATOR)) {\n // stateless async\n return immutableMessage.getId();\n }\n return requestReplyId;\n }", "protected String getContainerId(Response response) {\r\n\t\treturn response.getRequest().getId();\r\n\t}", "public String getOriginalId()\r\n {\r\n return originalId;\r\n }", "public long getTraceId() {\n\t\treturn this.traceInformation.getTraceId();\n\t}", "public CorrelationIdUtils getCorrelationIdUtils() {\n return correlationIdUtils;\n }", "public Integer getCrowdId() {\n return crowdId;\n }", "public final Integer getRequestSeq() {\n return requestSeq;\n }", "public String getResponseId() {\n return responseId;\n }", "long getCreatedConglomNumber()\n {\n if (SanityManager.DEBUG)\n {\n if (conglomId == -1L)\n {\n SanityManager.THROWASSERT(\n \"Called getCreatedConglomNumber() on a CreateIndex\" +\n \"ConstantAction before the action was executed.\");\n }\n }\n\n return conglomId;\n }", "public String getTransactionId() {\n Via topVia = null;\n if ( ! this.getViaHeaders().isEmpty()) {\n topVia = (Via) this.getViaHeaders().first();\n }\n // Have specified a branch Identifier so we can use it to identify\n // the transaction. BranchId is not case sensitive.\n \t// Branch Id prefix is not case sensitive.\n if ( topVia.getBranch() != null &&\n topVia.getBranch().toUpperCase().startsWith\n (SIPConstants.BRANCH_MAGIC_COOKIE.toUpperCase())) {\n // Bis 09 compatible branch assignment algorithm.\n // implies that the branch id can be used as a transaction\n // identifier.\n return\n topVia.getBranch().toLowerCase();\n } else {\n // Old style client so construct the transaction identifier\n // from various fields of the request.\n StringBuffer retval = new StringBuffer();\n From from = (From) this.getFrom();\n To to = (To) this.getTo();\n String hpFrom = from.getUserAtHostPort();\n retval.append(hpFrom).append( \":\");\n if (from.hasTag()) retval.append(from.getTag()).append(\":\");\n String hpTo = to.getUserAtHostPort();\n retval.append(hpTo).append(\":\");\n String cid = this.callIdHeader.getCallId();\n retval.append(cid).append(\":\");\n retval.append(this.cSeqHeader.getSequenceNumber()).append( \":\").\n append(this.cSeqHeader.getMethod());\n if (topVia != null) {\n retval.append(\":\").append( topVia.getSentBy().encode());\n if (!topVia.getSentBy().hasPort()) {\n retval.append(\":\").append(5060);\n }\n }\n \t String hc =\n \t\tUtils.toHexString(retval.toString().toLowerCase().getBytes());\n \t if (hc.length() < 32) return hc;\n \t else return hc.substring(hc.length() - 32, hc.length() -1 );\n }\n // Convert to lower case -- bug fix as a result of a bug report\n // from Chris Mills of Nortel Networks.\n }", "public String getCallId();", "String getContentGeneratorId();", "java.lang.String getClientRecordId();", "public int getId() {\n return decision.getConsensusId();\n }", "public int getRequestNumber() {\n return requestNumber;\n }", "public String getId() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"n=\");\n\t\tif ( nodeId != null ) {\n\t\t\tbuilder.append(nodeId);\n\t\t}\n\t\tbuilder.append(\";c=\");\n\t\tif ( created != null ) {\n\t\t\tbuilder.append(created);\n\t\t}\n\t\tbuilder.append(\";s=\");\n\t\tif ( sourceId != null ) {\n\t\t\tbuilder.append(sourceId);\n\t\t}\n\t\treturn DigestUtils.sha1Hex(builder.toString());\n\t}", "public int getClientID() {\r\n\t\treturn this.clientID;\r\n\t}", "public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}", "public String getClId() {\r\n return clId;\r\n }", "private String getNewConversationId( )\r\n {\r\n return UUID.randomUUID( ).toString( );\r\n }", "public String getClientTransId() {\n\t\treturn clientTransId;\n\t}", "String getReceiptId();", "public int getM_Requisition_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Requisition_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Integer getcId() {\n return cId;\n }", "long getMessageId();", "long getMessageId();", "public String getResouceId() {\n return id;\n }", "public UUID getCallId() {\n return callId;\n }", "public String senderId() {\n return senderId;\n }", "public Object getMessageId()\n {\n return getUnderlyingId(true);\n }", "UUID getTransmissionId();", "public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public final int getId() {\n\t return icqID;\n }", "java.lang.String getMessageId();", "public String getClId() {\r\n\t\treturn clId;\r\n\t}", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public Long getRelCustId() {\n return relCustId;\n }", "Object getMessageId();", "public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}", "public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}", "public String uniqueId() {\n return this.uniqueId;\n }", "public String getTicketId() {\n String ticketId = getParameter(CosmoDavConstants.PARAM_TICKET);\n if (ticketId == null) {\n ticketId = getHeader(CosmoDavConstants.HEADER_TICKET);\n }\n return ticketId;\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public int getLNSRequestId() {\n return LNSRequestId;\n }", "public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }", "int getReceiverid();", "public Integer getCid() {\n return cid;\n }", "public Integer getCid() {\n return cid;\n }", "public int getSenderId() {\n return senderId;\n }", "java.lang.String getSenderId();", "java.lang.String getRequestId();", "public int getClientId() {\n\t\treturn clientIDCounter++;\n\t}", "public int getIdClientef() {\n return idClientef;\n }", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "public String getOriginalConsignmentOpenTransactionId() {\n for (Enumeration em = compositePOSTransaction.getSaleLineItems(); em.hasMoreElements(); ) {\n CMSSaleLineItem line = (CMSSaleLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n for (Enumeration em = compositePOSTransaction.getReturnLineItems(); em.hasMoreElements(); ) {\n CMSReturnLineItem line = (CMSReturnLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n return null;\n }", "OperationIdT getOperationId();", "int getMessageId();", "public java.lang.String getRequestCode() {\n\t\treturn _tempNoTiceShipMessage.getRequestCode();\n\t}", "public long getSequenceId()\n {\n return sequence_id_;\n }", "public static int getRequestNum(){\n return requestNum;\n }", "int getLogId();", "String getCreatorId();", "public Long getCustPid() {\n\t\treturn custPid;\n\t}", "long getRpcId();", "public java.lang.Long getTiag_id();", "public int getReceiverid() {\n return receiverid_;\n }", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public String getUniqueID();", "@Override\n\tpublic String id() {\n\t\treturn \"HTTP request: \";\n\t}" ]
[ "0.78216517", "0.7033319", "0.7012582", "0.68987954", "0.6763355", "0.6731649", "0.6664083", "0.6506542", "0.6461361", "0.62763476", "0.6248425", "0.6195505", "0.61785555", "0.6151973", "0.6151973", "0.6091304", "0.6082145", "0.6052023", "0.60509294", "0.6046379", "0.599288", "0.59809625", "0.5947783", "0.59466", "0.5898402", "0.58915156", "0.58506036", "0.5849823", "0.5834572", "0.5834572", "0.5810285", "0.5804652", "0.58036894", "0.58018804", "0.57764304", "0.57690877", "0.5759197", "0.57569295", "0.5754533", "0.5746834", "0.5743104", "0.5739626", "0.5734791", "0.5721772", "0.5721424", "0.57200223", "0.5685322", "0.5654503", "0.56370866", "0.56349546", "0.56331027", "0.5631196", "0.5630006", "0.5628771", "0.56280375", "0.5623017", "0.5623017", "0.5619657", "0.5615096", "0.560114", "0.5584606", "0.557065", "0.55613893", "0.55607164", "0.5557738", "0.55545455", "0.5553793", "0.55475634", "0.55466706", "0.55402297", "0.55303836", "0.553032", "0.5522708", "0.55152655", "0.5510266", "0.5505751", "0.550091", "0.5495553", "0.5495553", "0.54947597", "0.5491096", "0.54873204", "0.5486881", "0.54829895", "0.5478684", "0.54785746", "0.54768926", "0.547665", "0.54720074", "0.5452514", "0.5450725", "0.5448977", "0.5440714", "0.54377544", "0.5436936", "0.5434421", "0.54340667", "0.5433677", "0.54335374", "0.5426057" ]
0.76962614
1
Creates a customized instance.
public DccdMailerConfiguration(final InputStream inputStream) throws IOException { super(inputStream); if (getSmtpHost() == null) setSmtpHost(SMTP_HOST_DEFAULT); if (getSenderName() == null) setSenderName(FROM_NAME_DEFAULT); if (getFromAddress() == null) setFromAddress(FROM_ADDRESS_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "Instance createInstance();", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "private Instantiation(){}", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "public void create(){}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public CMObject newInstance();", "Traditional createTraditional();", "public T newInstance();", "public void create() {\n\t\t\n\t}", "@SuppressWarnings (\"unchecked\")\r\n\t@Override\r\n\tpublic <T> T create ()\r\n\t{\r\n\t\tFxCharmView fxView = new FxCharmView ();\r\n\t\tfxView.registerSpecialType (IntValueView.class, new FxIntDisplayFactory ());\r\n\t\tfxView.registerSpecialType (BooleanView.class, new FxBooleanDisplayFactory ());\r\n\t\tnew Stylesheet (\"skin/platform/tooltip.css\").applyToParent (fxView.getNode ());\r\n\t\treturn (T) fxView;\r\n\t}", "public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}", "protected abstract void construct();", "protected final MareaPesca createInstance() {\n MareaPesca mareaPesca = new MareaPesca();\n return mareaPesca;\n }", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "public abstract void create();", "@Override\n\tpublic IOProcessor create(Interpreter interpreter) {\n\t\tTestCustomIOProc ioProc = new TestCustomIOProc();\n\t\tioProc.interpreter = interpreter;\n\t\tioProc.swigReleaseOwnership();\n\t\treturn ioProc;\n\t}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "@Override\r\n public void instantiate() {\r\n }", "void create(T instance) throws IOException;", "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "T create();", "T create();", "protected Drawing createDrawing() {\n return new StandardDrawing();\n }", "public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }", "@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}", "OBJECT createOBJECT();", "public static TracingHelper create() {\n return new TracingHelper(TracingHelper::classMethodName);\n }", "public Fish create(){\n\t\tMovementStyle style = new NoMovement();\n\t\treturn new Shark(style);\n\t}", "protected abstract S createDefault();", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "Oracion createOracion();", "public abstract TC createStyle();", "protected CayenneWidgetFactory() {\n super();\n }", "public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}", "private Template() {\r\n\r\n }", "DynamicInstance createDynamicInstance();", "public static Custom newOf(Custom custom) {\n\t\tCustom newCustom = Custom.newOf();\n\t\tnewCustom.setTitle(custom.getTitle());\n\t\tnewCustom.setDescription(custom.getDescription());\n\t\tnewCustom.setLocation(StringUtils.prependIfMissing(custom.getLocation(), \"/\", \"/\"));\n\t\tnewCustom.setExtensionName(custom.getExtensionName());\n\t\tnewCustom.setCustomTemplateId(custom.getCustomTemplateId());\n\t\tnewCustom.setSortId(custom.getSortId());\n\t\treturn newCustom;\n\t}", "public IntegerGenotype create() \r\n\t{\n\t\tIntegerGenotype genotype = new IntegerGenotype(1,3);\r\n\t\tgenotype.init(new Random(), Data.numeroCuardillas); \r\n\t\t\r\n\t\treturn genotype;\r\n\t}", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "private StickFactory() {\n\t}", "public ClassTemplate() {\n\t}", "Attribute createAttribute();", "Attribute createAttribute();", "For createFor();", "private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }", "ObjectRealization createObjectRealization();", "Inheritance createInheritance();", "@Override\r\n public VizModels create(String name, Model source) throws SlotAlreadyRegisteredException {\n StyleSetModel palette =\r\n StyleSetFactory.prototype.create(\r\n name + \"style palette\",\r\n SimpleExplicitSlotFactory.prototype);\r\n\r\n // Create the attribute model for the ForestModel\r\n PredicateModel predModel = SimplePredicateViewFactory.prototype.create(name + \"fa\", source);\r\n predModel =\r\n StyledPredicateViewFactory.prototype.configure(\r\n predModel,\r\n palette,\r\n SimpleSlotFactory.prototype);\r\n\r\n // Init Visibility Model for nodes in the Forest\r\n VisibilityModel visModel =\r\n PredicateBasedVisibilityViewFactory.prototype.create(\r\n name + \"Viz Model\",\r\n source,\r\n predModel);\r\n \r\n VizModels vm = new VizModels();\r\n vm.init(palette, predModel, visModel);\r\n return vm;\r\n }", "public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}", "Simple createSimple();", "DescribedClass createDescribedClass();", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public Instance() {\n }", "@Override\n public void Create() {\n\n initView();\n }", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "H create(Method method);", "public Factory() {\n\t\tsuper();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public ArmorTemplate() {\n\t}", "@Override\n\tpublic IProduct factoryMethod() {\n\t\treturn new Toy();\n\t}", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "public static void create() {\r\n render();\r\n }", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "public ControlFactoryImpl() {\n\t\tsuper();\n\t}", "public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }", "private static O11y create(\n Context context, CounterFactory counterFactory, DistributionFactory distributionFactory) {\n return new O11y(\n // throttlingMs is a special counter used by dataflow. When we are having to throttle,\n // we signal to dataflow that fact by adding to this counter.\n // Signaling to dataflow is important so that a bundle isn't categorised as hung.\n counterFactory.get(context.getNamespace(), \"throttlingMs\"),\n // metrics specific to each rpc\n counterFactory.get(context.getNamespace(), \"rpc_failures\"),\n counterFactory.get(context.getNamespace(), \"rpc_successes\"),\n counterFactory.get(context.getNamespace(), \"rpc_streamValueReceived\"),\n distributionFactory.get(context.getNamespace(), \"rpc_durationMs\"),\n // qos wide metrics\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_latencyPerDocumentMs\"),\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_batchCapacityCount\"));\n }", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "void create(T t);", "public abstract void create(T t);", "public abstract T create(T obj);", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic IWidgetInstance createInstance(ISocketInstance socket) {\n\t\treturn this;\n\t}", "private CloneFactory() {\n }", "MeterProvider create();", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "Foco createFoco();", "T newInstance(Object... args);", "Generalization createGeneralization();", "Klassenstufe createKlassenstufe();", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "AliciaLab createAliciaLab();", "@Override\n public void Create() {\n initView();\n initData();\n }", "InstanceModel createInstanceOfInstanceModel();", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "@Override\n\tpublic void create() {\n\t\tthis.playScreen = new PlayScreen<EntityUnknownGame>(this);\n\t\tsetScreen(this.playScreen);\n\t\t\n\t\t//this.shadowMapTest = new ShadowMappingTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.shadowMapTest);\n\t\t\n\t\t//this.StillModelTest = new StillModelTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.StillModelTest);\n\t\t\n//\t\tthis.keyframedModelTest = new KeyframedModelTest<EntityUnknownGame>(this);\n//\t\tsetScreen(this.keyframedModelTest);\n\t}", "public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }", "@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}", "Thing createThing();", "private VegetableFactory() {\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "Component createComponent();" ]
[ "0.6612679", "0.6579362", "0.64664537", "0.64507335", "0.64217156", "0.640061", "0.62952", "0.6247549", "0.6247487", "0.62419647", "0.62174845", "0.6070639", "0.6048356", "0.604459", "0.6034458", "0.60135514", "0.5996018", "0.5995994", "0.59848166", "0.59764457", "0.5967282", "0.5955311", "0.5925753", "0.5890605", "0.5854349", "0.58393615", "0.5825641", "0.58175355", "0.58155257", "0.58155257", "0.5773865", "0.56933755", "0.56778824", "0.56652", "0.56642675", "0.5660723", "0.5643549", "0.56412834", "0.56343156", "0.5607139", "0.56006056", "0.55751383", "0.5570974", "0.55593973", "0.55576766", "0.5552678", "0.5552507", "0.55340624", "0.5533426", "0.55281186", "0.5524616", "0.5515293", "0.5515293", "0.55152756", "0.551261", "0.5509907", "0.5498663", "0.5498585", "0.5498247", "0.5495776", "0.548949", "0.5476323", "0.5467791", "0.5466485", "0.54661644", "0.5463317", "0.54631776", "0.5453854", "0.5446626", "0.543967", "0.54319745", "0.5426007", "0.5421565", "0.54211915", "0.54121846", "0.54092497", "0.5408975", "0.53976643", "0.53878206", "0.53844714", "0.5382882", "0.5382212", "0.5375936", "0.5365444", "0.5356002", "0.53550947", "0.53508526", "0.5349623", "0.53426856", "0.534143", "0.534028", "0.53396964", "0.5334955", "0.53293806", "0.53283256", "0.5325313", "0.5322555", "0.5320981", "0.5310724", "0.530847", "0.53065395" ]
0.0
-1
InterfaceB has a dependency: InterfaceC
public interface InterfaceB extends SuperInterface{ int getB(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InterfaceB {\n\tpublic String getB1();\n\n\tpublic String getB2();\n}", "public interface InterB {\n String a = \"B\";\n}", "public interface B\n{\n String foo();\n}", "public interface ComponentC {\n\n void doSomethingElse();\n\n}", "public interface a extends IInterface {\n}", "public interface InterfaceB {\n public void display();\n}", "public interface B extends A {\n void b();\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface BInf {\n\n void hello();\n\n}", "public interface B{\n String getName();\n}", "public interface ServiceCDepend {\n String getInstrument();\n}", "interface Interface3 {\n\tpublic void getC();\n\n\tpublic void printC();\n}", "public void depend1(Interface1 interface1) {\n interface1.operation1();\n }", "public void depend1(Interface1 interface1) {\n interface1.operation1();\n }", "public interface SampleB {\n void operation1();\n void operation2();\n}", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "public interface C3222n extends IInterface {\n /* renamed from: a */\n void mo13025a() throws RemoteException;\n\n /* renamed from: b */\n void mo13026b() throws RemoteException;\n}", "ISChangePropagationDueToInterfaceDependencies createISChangePropagationDueToInterfaceDependencies();", "public interface bzt extends cdm {\n}", "interface Iface {\n void usedIface();\n}", "public interface C16740s extends IInterface {\n /* renamed from: a */\n void mo43357a(C16726e eVar) throws RemoteException;\n}", "public interface interfaceA extends LocationListener, SensorEventListener {\n}", "interface NewInterface extends Interface1,Interface2,Interface3{\n\n\tpublic void getD();\n\n}", "public interface b {\n}", "public interface b {\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "public interface Page358InterfaceB {\n public void something();\n}", "@Mixins( RMIMixin.class )\npublic interface RemoteInterfaceComposite\n extends RemoteInterface, InvocationCacheAbstractComposite, TransientComposite\n{\n}", "public interface IGraphElement extends IDotElement {\r\n}", "public static interface .cart.interfaces.a.k\n extends b\n{\n\n public abstract void a();\n\n public abstract void a(CartProductShippingModeDetails cartproductshippingmodedetails);\n\n public abstract void a(k k);\n\n public abstract void b();\n}", "interface Interface2 {\n\tpublic void getB();\n\n\tpublic void printB();\n}", "public interface b {\n void a();\n }", "public interface b {\n void a();\n }", "public interface IFaci {\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface IDownloadAidlDepend extends IInterface {\n /* renamed from: a */\n void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a */\n /* compiled from: IDownloadAidlDepend */\n public static abstract class AbstractBinderC7166a extends Binder implements IDownloadAidlDepend {\n public IBinder asBinder() {\n return this;\n }\n\n public AbstractBinderC7166a() {\n attachInterface(this, \"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n }\n\n /* renamed from: a */\n public static IDownloadAidlDepend m42991a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IDownloadAidlDepend)) {\n return new C7167a(iBinder);\n }\n return (IDownloadAidlDepend) queryLocalInterface;\n }\n\n @Override // android.os.Binder\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n BaseException aVar = null;\n DownloadInfo createFromParcel = parcel.readInt() != 0 ? DownloadInfo.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n aVar = BaseException.CREATOR.createFromParcel(parcel);\n }\n mo45684a(createFromParcel, aVar, parcel.readInt());\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n return true;\n }\n }\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a$a */\n /* compiled from: IDownloadAidlDepend */\n private static class C7167a implements IDownloadAidlDepend {\n\n /* renamed from: a */\n private IBinder f30137a;\n\n C7167a(IBinder iBinder) {\n this.f30137a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f30137a;\n }\n\n @Override // com.p803ss.android.socialbase.downloader.p833d.IDownloadAidlDepend\n /* renamed from: a */\n public void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (cVar != null) {\n obtain.writeInt(1);\n cVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (aVar != null) {\n obtain.writeInt(1);\n aVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(i);\n this.f30137a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n }\n}", "public interface c {\n}", "public interface C3803p {\n void mo4312a(C3922o c3922o);\n}", "public interface C1250dr extends IInterface {\n /* renamed from: a */\n void mo12504a(brw brw, C0719a aVar);\n}", "IInterfaceDefinition[] resolveImplementedInterfaces(ICompilerProject project);", "public interface AbstractC03680oI {\n}", "interface C34503a {\n void bMl();\n }", "public interface ComFragMain {\r\n\r\n public void skip(Client1 client);\r\n}", "public interface IfcFaceOuterBound extends IfcFaceBound {\n}", "public interface Cartmanagement extends UcFindCart, UcManageCart {\n\n}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "public interface C0385a {\n }", "public interface b {\n int a();\n }", "interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}", "public interface CommonInterface extends IService {\n\n String contact(String msg);\n}", "public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface BINHaystackWorkerParent extends BInterface\n{\n public static final Type TYPE = Sys.loadType(BINHaystackWorkerParent.class);\n\n /**\n * Handle a network exception that occured when running a chore.\n */\n public void handleNetworkException(WorkerChore chore, CallNetworkException e);\n\n public BStatus getStatus();\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface C4610a extends IInterface {\n\n /* renamed from: com.kwai.filedownloader.c.a$a */\n public static abstract class C4611a extends Binder implements C4610a {\n\n /* renamed from: com.kwai.filedownloader.c.a$a$a */\n private static class C4612a implements C4610a {\n /* renamed from: a */\n private IBinder f15013a;\n\n C4612a(IBinder iBinder) {\n this.f15013a = iBinder;\n }\n\n /* renamed from: a */\n public void mo25008a(MessageSnapshot messageSnapshot) {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n if (messageSnapshot != null) {\n obtain.writeInt(1);\n messageSnapshot.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f15013a.transact(1, obtain, null, 1);\n } finally {\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f15013a;\n }\n }\n\n public C4611a() {\n attachInterface(this, \"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n }\n\n /* renamed from: a */\n public static C4610a m18836a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.kwai.filedownloader.i.IFileDownloadIPCCallback\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C4610a)) ? new C4612a(iBinder) : (C4610a) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n String str = \"com.kwai.filedownloader.i.IFileDownloadIPCCallback\";\n if (i == 1) {\n parcel.enforceInterface(str);\n mo25008a(parcel.readInt() != 0 ? (MessageSnapshot) MessageSnapshot.CREATOR.createFromParcel(parcel) : null);\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(str);\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo25008a(MessageSnapshot messageSnapshot);\n}", "@AssignableSubInterfaces(get={})\n\n@ImplementationClass(get=Brain.class)\n public interface IBrain\n extends ICentralNervousSystem{\n\n}", "public interface C1279b extends C1278a {\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface TestInterface2 {\n}", "public interface IMainModel extends IBaseModel {\n}", "public interface C19588a {\n }", "public interface C22379d {\n}", "@Override\n\tpublic void common() {\n\t\tSystem.out.println(\"hello from common() for MyInterface2,MyInterface1 \");\n\t}", "public interface Comunicator {\n \n\n}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "public interface Interface3 {\n void operation4();\n void operation5();\n}", "public interface Common {\n}", "public interface ICreditRefundBorrow {\n}", "public interface ILayer {\n}", "public interface C32115a {\n}", "public interface C3183a {\n}", "public interface a {\n\n /* compiled from: ISplashAdView */\n public interface a {\n void a();\n }\n\n /* compiled from: ISplashAdView */\n public interface b {\n void a();\n }\n\n void a(@NonNull l lVar);\n}", "public interface OsSystemCycle extends EcucContainer {\n}", "public interface C24717ak {\n}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface BtInterface {\n void Offline(Set<BluetoothDevice> devices);\n void Found(Set<BluetoothDevice> devices);\n}", "public interface ICompilerWorker extends IWorker {\n}", "public interface AnalyticalServiceOperationsRemoteInterface extends AnalyticalServiceOperationsBusinessInterface, EJBObject {\r\n\r\n}", "public interface INotificationPresenter extends IPresenter {\n}", "public interface InputPort extends Component, AbstractConnectionSource {\n}", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "public interface Dependency extends Relationship , java.io.Serializable\n{\n // declare/define something only in the code\n // please fill in/modify the following section\n // -beg- preserve=no 327A646F00E6 detail_begin \"Dependency\"\n\n // -end- 327A646F00E6 detail_begin \"Dependency\"\n\n // -beg- preserve=no 3E423DBE00A1 head327A646F00E6 \"changeClient\"\n public void changeClient(ModelElement oldClient, ModelElement newClient)\n // -end- 3E423DBE00A1 head327A646F00E6 \"changeClient\"\n // declare any checked exceptions\n // please fill in/modify the following section\n // -beg- preserve=no 3E423DBE00A1 throws327A646F00E6 \"changeClient\"\n\n // -end- 3E423DBE00A1 throws327A646F00E6 \"changeClient\"\n ; // empty\n\n // -beg- preserve=no 3E423DCA0134 head327A646F00E6 \"changeSupplier\"\n public void changeSupplier(ModelElement oldSupplier, ModelElement newSupplier)\n // -end- 3E423DCA0134 head327A646F00E6 \"changeSupplier\"\n // declare any checked exceptions\n // please fill in/modify the following section\n // -beg- preserve=no 3E423DCA0134 throws327A646F00E6 \"changeSupplier\"\n\n // -end- 3E423DCA0134 throws327A646F00E6 \"changeSupplier\"\n ; // empty\n\n /** add a Client.\n * \n * @see #removeClient\n * @see #containsClient\n * @see #iteratorClient\n * @see #clearClient\n * @see #sizeClient\n */\n // -beg- preserve=no 33FFE57B03B3 add_head327A646F00E6 \"Dependency::addClient\"\n public void addClient(ModelElement client1)\n // -end- 33FFE57B03B3 add_head327A646F00E6 \"Dependency::addClient\"\n ; // empty\n\n /** disconnect a Client.\n * @see #addClient\n */\n // -beg- preserve=no 33FFE57B03B3 remove_head327A646F00E6 \"Dependency::removeClient\"\n public ModelElement removeClient(ModelElement client1)\n // -end- 33FFE57B03B3 remove_head327A646F00E6 \"Dependency::removeClient\"\n ; // empty\n\n /** tests if a given Client is connected.\n * @see #addClient\n */\n // -beg- preserve=no 33FFE57B03B3 test_head327A646F00E6 \"Dependency::containsClient\"\n public boolean containsClient(ModelElement client1)\n // -end- 33FFE57B03B3 test_head327A646F00E6 \"Dependency::containsClient\"\n ; // empty\n\n /** used to enumerate all connected Clients.\n * @see #addClient\n */\n // -beg- preserve=no 33FFE57B03B3 get_all_head327A646F00E6 \"Dependency::iteratorClient\"\n public java.util.Iterator iteratorClient()\n // -end- 33FFE57B03B3 get_all_head327A646F00E6 \"Dependency::iteratorClient\"\n ; // empty\n\n /** disconnect all Clients.\n * @see #addClient\n */\n // -beg- preserve=no 33FFE57B03B3 remove_all_head327A646F00E6 \"Dependency::clearClient\"\n public void clearClient()\n // -end- 33FFE57B03B3 remove_all_head327A646F00E6 \"Dependency::clearClient\"\n ; // empty\n\n /** returns the number of Clients.\n * @see #addClient\n */\n // -beg- preserve=no 33FFE57B03B3 size_head327A646F00E6 \"Dependency::sizeClient\"\n public int sizeClient()\n // -end- 33FFE57B03B3 size_head327A646F00E6 \"Dependency::sizeClient\"\n ; // empty\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 33FFE57B03B3 _link_body327A646F00E6 \"Dependency::_linkClient\"\n public void _linkClient(ModelElement client1);\n // -end- 33FFE57B03B3 _link_body327A646F00E6 \"Dependency::_linkClient\"\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 33FFE57B03B3 _unlink_body327A646F00E6 \"Dependency::_unlinkClient\"\n public void _unlinkClient(ModelElement client1);\n // -end- 33FFE57B03B3 _unlink_body327A646F00E6 \"Dependency::_unlinkClient\"\n\n /** add a Supplier.\n * \n * @see #removeSupplier\n * @see #containsSupplier\n * @see #iteratorSupplier\n * @see #clearSupplier\n * @see #sizeSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 add_head327A646F00E6 \"Dependency::addSupplier\"\n public void addSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 add_head327A646F00E6 \"Dependency::addSupplier\"\n ; // empty\n\n /** disconnect a Supplier.\n * @see #addSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n public ModelElement removeSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n ; // empty\n\n /** tests if a given Supplier is connected.\n * @see #addSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 test_head327A646F00E6 \"Dependency::containsSupplier\"\n public boolean containsSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 test_head327A646F00E6 \"Dependency::containsSupplier\"\n ; // empty\n\n /** used to enumerate all connected Suppliers.\n * @see #addSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 get_all_head327A646F00E6 \"Dependency::iteratorSupplier\"\n public java.util.Iterator iteratorSupplier()\n // -end- 335C0D7A02E4 get_all_head327A646F00E6 \"Dependency::iteratorSupplier\"\n ; // empty\n\n /** disconnect all Suppliers.\n * @see #addSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 remove_all_head327A646F00E6 \"Dependency::clearSupplier\"\n public void clearSupplier()\n // -end- 335C0D7A02E4 remove_all_head327A646F00E6 \"Dependency::clearSupplier\"\n ; // empty\n\n /** returns the number of Suppliers.\n * @see #addSupplier\n */\n // -beg- preserve=no 335C0D7A02E4 size_head327A646F00E6 \"Dependency::sizeSupplier\"\n public int sizeSupplier()\n // -end- 335C0D7A02E4 size_head327A646F00E6 \"Dependency::sizeSupplier\"\n ; // empty\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 335C0D7A02E4 _link_body327A646F00E6 \"Dependency::_linkSupplier\"\n public void _linkSupplier(ModelElement supplier1);\n // -end- 335C0D7A02E4 _link_body327A646F00E6 \"Dependency::_linkSupplier\"\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 335C0D7A02E4 _unlink_body327A646F00E6 \"Dependency::_unlinkSupplier\"\n public void _unlinkSupplier(ModelElement supplier1);\n // -end- 335C0D7A02E4 _unlink_body327A646F00E6 \"Dependency::_unlinkSupplier\"\n\n /** add a Presentation.\n * \n * @see #removePresentation\n * @see #containsPresentation\n * @see #iteratorPresentation\n * @see #clearPresentation\n * @see #sizePresentation\n */\n // -beg- preserve=no 362409A9000A add_head327A646F00E6 \"ModelElement::addPresentation\"\n public void addPresentation(PresentationElement presentation1)\n // -end- 362409A9000A add_head327A646F00E6 \"ModelElement::addPresentation\"\n ; // empty\n\n /** disconnect a Presentation.\n * @see #addPresentation\n */\n // -beg- preserve=no 362409A9000A remove_head327A646F00E6 \"ModelElement::removePresentation\"\n public PresentationElement removePresentation(PresentationElement presentation1)\n // -end- 362409A9000A remove_head327A646F00E6 \"ModelElement::removePresentation\"\n ; // empty\n\n /** tests if a given Presentation is connected.\n * @see #addPresentation\n */\n // -beg- preserve=no 362409A9000A test_head327A646F00E6 \"ModelElement::containsPresentation\"\n public boolean containsPresentation(PresentationElement presentation1)\n // -end- 362409A9000A test_head327A646F00E6 \"ModelElement::containsPresentation\"\n ; // empty\n\n /** used to enumerate all connected Presentations.\n * @see #addPresentation\n */\n // -beg- preserve=no 362409A9000A get_all_head327A646F00E6 \"ModelElement::iteratorPresentation\"\n public java.util.Iterator iteratorPresentation()\n // -end- 362409A9000A get_all_head327A646F00E6 \"ModelElement::iteratorPresentation\"\n ; // empty\n\n /** disconnect all Presentations.\n * @see #addPresentation\n */\n // -beg- preserve=no 362409A9000A remove_all_head327A646F00E6 \"ModelElement::clearPresentation\"\n public void clearPresentation()\n // -end- 362409A9000A remove_all_head327A646F00E6 \"ModelElement::clearPresentation\"\n ; // empty\n\n /** returns the number of Presentations.\n * @see #addPresentation\n */\n // -beg- preserve=no 362409A9000A size_head327A646F00E6 \"ModelElement::sizePresentation\"\n public int sizePresentation()\n // -end- 362409A9000A size_head327A646F00E6 \"ModelElement::sizePresentation\"\n ; // empty\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 362409A9000A _link_body327A646F00E6 \"ModelElement::_linkPresentation\"\n public void _linkPresentation(PresentationElement presentation1);\n // -end- 362409A9000A _link_body327A646F00E6 \"ModelElement::_linkPresentation\"\n\n /** DONT USE; link management internal\n */\n // -beg- preserve=no 362409A9000A _unlink_body327A646F00E6 \"ModelElement::_unlinkPresentation\"\n public void _unlinkPresentation(PresentationElement presentation1);\n // -end- 362409A9000A _unlink_body327A646F00E6 \"ModelElement::_unlinkPresentation\"\n\n // declare/define something only in the code\n // please fill in/modify the following section\n // -beg- preserve=no 327A646F00E6 detail_end \"Dependency\"\n\n // -end- 327A646F00E6 detail_end \"Dependency\"\n\n}", "Interface getInterface();", "Interface getInterface();", "public interface TestPluginContract {\n interface ITestPluginView extends IContract.IView<TestPluginPresenter> {\n\n }\n\n interface ITestPluginModel extends IContract.IModel {\n\n }\n}", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "public interface C46409a {\n}", "public interface C0670g extends IInterface {\n\n /* compiled from: PackLogService */\n public abstract class C0671a extends Binder implements C0670g {\n public C0671a() {\n attachInterface(this, \"com.huawei.logupload.PackLogService\");\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n switch (i) {\n case 1:\n parcel.enforceInterface(\"com.huawei.logupload.PackLogService\");\n Bundle a = mo2127a();\n parcel2.writeNoException();\n if (a != null) {\n parcel2.writeInt(1);\n a.writeToParcel(parcel2, 1);\n return true;\n }\n parcel2.writeInt(0);\n return true;\n case 1598968902:\n parcel2.writeString(\"com.huawei.logupload.PackLogService\");\n return true;\n default:\n return super.onTransact(i, parcel, parcel2, i2);\n }\n }\n }\n\n Bundle mo2127a();\n}", "public interface IBaseModle {\n\n\n}", "public interface IContractMgtService {\n\n}", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}", "public interface IFactory {\n IProductA getProductA();\n IProductB getProductB();\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface A3 extends A1, A2{\r\n\t\r\n}", "public interface INotificationData extends IServerMessageData {\n}", "public interface InterfaceA {\n\n\tpublic void methodFromInterfaceA();\n\n\t// Before Java 8, the interface only contains method signatures. \n\t// With Java 8 new feature Default Methods or Defender Methods, \n\t// you can include method body within the interface.\n\tdefault void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }\n\t\n\tstatic void someStaticMethod() {\n System.out.println(\"from InterfaceA static method...\");\n }\n\t\n\t/*\n\t * Why do we need to implement a method within the interface?\n\t * \n * Let's say you have an interface which has multiple methods, \n * and multiple classes are implementing this interface. One \n * of the method implementations can be common across the classes, \n * we can make that method as a default method, so that the \n * implementation is common for all classes.\n *\n * How to work with existing interfaces?\n * \n\t * Second scenario where you have already existing application, \n\t * for a new requirement we have to add a method to the existing \n\t * interface. If we add new method then we need to implement it \n\t * through out the implementation classes. By using the Java 8 \n\t * default method we can add a default implementation of that \n\t * method which resolves the problem.\n\t */\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface C31378a {\n /* renamed from: a */\n void mo80555a(MediaChooseResult mediaChooseResult);\n}", "public interface IHead extends IDetail {\n}" ]
[ "0.6722067", "0.6648212", "0.6471276", "0.6392117", "0.6362605", "0.6359771", "0.6356156", "0.6352507", "0.6348536", "0.6300462", "0.6290923", "0.6278549", "0.6265068", "0.6265068", "0.6257292", "0.6251269", "0.62435126", "0.62272024", "0.6218221", "0.62028193", "0.6175206", "0.61636347", "0.6150459", "0.60832596", "0.60832596", "0.6007736", "0.6003986", "0.60039103", "0.59911186", "0.59753793", "0.5974054", "0.59562284", "0.59562284", "0.5946577", "0.5940062", "0.5936137", "0.5898695", "0.5886879", "0.5886231", "0.58732903", "0.58713734", "0.5858048", "0.58194995", "0.5810432", "0.58054465", "0.58015203", "0.58006346", "0.58005995", "0.57943946", "0.5781307", "0.57774466", "0.5772948", "0.5754307", "0.575124", "0.57476526", "0.5747125", "0.5735714", "0.5732907", "0.57260907", "0.57238424", "0.5712975", "0.57045686", "0.5699226", "0.5692713", "0.5683634", "0.5673458", "0.56700015", "0.5656208", "0.5641528", "0.56406045", "0.5640054", "0.56396306", "0.5632725", "0.5632404", "0.5628198", "0.56271863", "0.56223625", "0.56216604", "0.5618524", "0.56184036", "0.5608179", "0.5603876", "0.56007975", "0.56007975", "0.5600475", "0.5600212", "0.5588624", "0.5587541", "0.5585792", "0.5573102", "0.55701756", "0.5565139", "0.55649716", "0.5564085", "0.5560844", "0.5559538", "0.5558636", "0.5558248", "0.55565983", "0.5555431" ]
0.6509245
2
Permet d'ajout d'un bouton a l'interface
public void addButton(Button button, int id) { buttonArray[id] = button; buttonArray[id].setInterface(this); if (id > maxId) maxId = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TipoJogador {\n\n /**\n * Informa para o jogador que uma tecla foi pressionada.\n * \n * @param t Tecla que foi pressionada.\n */\n public void informarTeclaPressionada( Tecla t );\n \n /**\n * Informa para o jogador que uma tecla foi solta.\n * \n * @param t Tecla que foi solta.\n */\n public void informarTeclaSolta( Tecla t );\n \n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "public interface BovinoSalvarInterface {\n\n public void depoisSalvarBovino(String url, String erro);\n}", "public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}", "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "public interface Tigari {\npublic void printDetalii();\n}", "public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "public interface NuevoTesauroForm\r\n{\r\n}", "public interface OnClickAdaptadorDeNoticia{\n public void onClickPosition(int pos);\n }", "public interface OnClickPovratak {\n public void onClickedPovratak();\n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "@Override\n public void atacar(Jinete jinete, Pieza receptor) {\n }", "public interface I_ShowBlueSend {\n /**蓝牙连接提示*/\n void showMessage(String message);\n}", "public void miseAJour();", "public interface AddGoWuCheView {\n public void success(AddGoWuCheBean bean);\n\n public void failuer(String e);\n}", "@Override\n\tpublic void habla() {\n\t\tSystem.out.println(\"Miau, Miau!!\");\n\t}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "public interface ViewChiTietBenh {\n void LayChiTietBenhThanhCong(BenhModel benh, Uri uri);\n void LayChiTietBenhThatBai();\n\n}", "public interface EventosCaixaDialogo {\n\n void onClickPositivo();\n\n void onClickNegativo();\n\n}", "public interface TipoBan {\n\n public void cambiarBan(Usuario u);\n}", "public IJoueur quiEstMonMaitre();", "public interface Plateau {\r\n\r\n\t/**\r\n\t * Pour afficher la solution pendant le jeu\r\n\t * \r\n\t * @param msg\r\n\t * solution à afficher en mode dev\r\n\t */\r\n\tpublic void setMsgDev(String msg); // afficher le code chercher\r\n\r\n\t/**\r\n\t * Effacer le champs de proposition\r\n\t */\r\n\tpublic void cleanProposition();\r\n\r\n\t/**\r\n\t * Rajouter des valeurs dans le tableau de jeu\r\n\t * \r\n\t * @param results\r\n\t * tableau de jeu (propositions et resultats précédents)\r\n\t */\r\n\tpublic void setValues(String[][] results);\r\n\r\n\t/**\r\n\t * Faire une proposition de combinaison\r\n\t * \r\n\t * @param string\r\n\t * combinaison\r\n\t */\r\n\tpublic void setProposition(String string);\r\n\r\n\t/**\r\n\t * valide la combinaison saisie\r\n\t */\r\n\tpublic void validerSaisie();\r\n\r\n\t/**\r\n\t * actualise l'affichage en cas de changement\r\n\t */\r\n\tpublic void actualiserAffichage();\r\n}", "public interface PowerUps {\n\n public void activar(Figura figura);\n}", "public interface IMainView {\n void registeButtonClicked();\n void destroyButtonClicked();\n void updateClientStatus(boolean registered, String registrationId);\n void showProgress();\n void hideProgress();\n void showToast(String msg);\n}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void sal() {\n\t\tSystem.out.println(\"This is implemnts from HomePackage Interface.\");\n\t\t\n\t}", "public InterfaceGraphique() {\n initComponents();\n //par defaut, la connexion est inactive\n this.connecte = false;\n //element du menu de deconnexion grisé\n this.majConnexion();\n //centrage\n this.setLocationRelativeTo(null);\n //titre \n this.setTitle(\"Gestion des étudiants du bts sio\");\n //Par défaut , les vues des utilisateurs sont invisibles\n this.jDesktopPaneEmploye.setVisible(false);\n this.jDesktopPaneResponsable.setVisible(false);\n this.jDesktopPaneDirigeant.setVisible(false);\n\n }", "public void notifyJoueurActif();", "@Override\n\tpublic void einkaufen() {\n\t}", "public interface IObserverPartie {\n\n\t/**\n\t * Notifie aux observers que les attributs des joueurs ont ete modifies\n\t */\n\tpublic void updateJoueurs();\n\t\n}", "public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}", "@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}", "public interface IGlabCapNhatDonHangView {\n void onGlabCapNhatDonHangSuccess(Object object);\n void onGlabCapNhatDonHangError(Object object);\n}", "public interface Najpopulaniji {\n\n public void najpop(Film f);\n\n public void download(ArrayList<Film> lista);\n\n public void downloadPrethodnihFilmova(ArrayList<Film> lista);\n\n}", "@Override\n\tpublic void goi() {\n\n\t}", "public interface Poulet {\n /*DEFINIT le nombre de like effectué par ce poulet */\n public void setnombreLike(int nombre_like);\n\n /*DEFINIT le nombre de match de ce poulet */\n public void setnombreMatch(int nombre_match);\n\n}", "public interface ShouYe_SouSuoView {\n public void success(ShouYe_SouSuoBean bean);\n\n}", "public interface Wilayahlistener {\n\n public void wilayah(List<Wilayah> wilayahs);\n public void getToko(List<TokoEntity> tokoEntities);\n}", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "@Override\n public void action(Jugador jugador) {\n\n }", "public interface AddNoticeViewInterface {\n /**\n * 上传附件完成\n */\n void uploadAttachmentOnComplete(Data data);\n\n /**\n * 显示文件上传的百分比\n *\n * @param value\n */\n void onProgress(int value);\n\n /**\n * 发布公告\n */\n void publishNoticeOnComplete(Notice notice);\n\n}", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "public interface Comunicador {\n\n public void enviarDatos(String titulo,int resultado);\n}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "public interface ControlloGioco {\r\n public boolean ControlDisco(int riga, int colonna, boolean colore);\r\n\r\n}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public interface IBankWorkerAction extends INormalUserAction {\n // 查用户的信用\n void checkUserCredit();\n // 冻结用户账号\n void freezeUserAccount();\n}", "@Override\r\n\tpublic void onAyuda() {\n\t\t\r\n\t}", "public interfaceQH() {\n initComponents();\n \n // -- [ Inicializando variáveis ] --\n allSenhas = new StringBuilder();\n contador = 0;\n //todasSenhas = new LinkedList();\n todasSenhas = new Vector();\n txtStatus.setText(\"Status: Offline\");\n clienteID = 0;\n \n \n try {\n txtIP.setText(\"IP: \"+InetAddress.getLocalHost().getHostAddress());\n } catch (UnknownHostException ex) {\n Logger.getLogger(interfaceQH.class.getName()).log(Level.SEVERE, null, ex);\n } \n }", "public interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public interface ComportementAjout {\n\n\n void ajouterEtudiant(Etudiant e, Promotion p, List<Groupe> l);\n\n}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public interface o {\n void onSupportActionModeFinished(b bVar);\n\n void onSupportActionModeStarted(b bVar);\n\n b onWindowStartingSupportActionMode(a aVar);\n}", "public interface ElevatorControl {\n /**\n *Задать место назначения\n * @param destination этаж\n */\n void addNewDestination(Integer destination);\n}", "@Override\n\tpublic void msgAtBed() {\n\t\t\n\t}", "public interface DownPaiementService {\r\n\r\n\t/**\r\n\t * Envoie d'un paiement vers saphir pour chaque {@link Paiement} reçue.\r\n\t * \r\n\t * @param commande\r\n\t * {@link Commande}.\r\n\t * @param paiement\r\n\t * {@link Paiement}.\r\n\t */\r\n\tpublic void envoiePaiement(Commande commande, Paiement paiement);\r\n\r\n}", "public void afficherMessage();", "public interface UICallBack {\r\n void receiveChatMessage(ChatMessage message);\r\n void receiveAnswer(Answer message);\r\n void setMark(int x, int y, FieldType markType);\r\n void resultWin();\r\n void resultLose();\r\n void resultFriendship();\r\n}", "public interface IZiFenLeiXiang {\n public String getid();\n public void showZiFenLeiXiang(ZiFenLeiXiangBean ziFenLeiXiangBean);\n}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void EjecutaGui() {\n\t\tSystem.out.println(\"Ejecucion en ventana del ejercicio 2 del grupo 3\");\n\t}", "public interface Hablidades {\n\n\n public int velocidad ();\n public int fuerza ();\n public int poderEspecial();\n}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void botonInicio(VideoJuego juego) {\n\t\t\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void trenneVerbindung();", "public interface ChungToiIInterface extends Remote {\n\n /**\n * Este método registra o jogador no jogo\n *\n * @param nome string com o nome do usuário/jogador\n * @return\n * id (valor inteiro) do usuário (que corresponde a um número de identificação único para\n * este usuário durante uma partida); ­1 se este usuário já está cadastrado;\n * ­2 se o número máximo de jogadores tiver sido atingido.\n * @throws RemoteException\n */\n int registraJogador(String nome) throws RemoteException;\n\n /**\n * Este método encerra a partida\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return ­1 (erro);  0 (ok)\n * @throws RemoteException\n */\n int encerraPartida(int id) throws RemoteException;\n\n /**\n * Este método indica se existe partida\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return  ­2 (tempo de espera esgotado);  ­1 (erro); \n * 0 (ainda não há partida);  1 (sim, há partida e o\n * jogador inicia jogando com as peças claras, identificadas, por exemplo, com letras de “C” para\n * deslocamento perpendicular ou “c” para deslocamento diagonal); 2 (sim, há\n * partida e o\n * jogador é o segundo a jogar, com os as peças escuras, identificadas, por exemplo, a letra “E”\n * para deslocamento perpendicular ou “e” para deslocamento diagonal)\n * @throws RemoteException\n */\n int temPartida(int id) throws RemoteException;\n\n /**\n * Este método indica que o jogador está na sua vez\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return\n * ­2 (erro: ainda não há 2 jogadores registrados na partida), ­1 (erro), 0 (não), 1 (sim), 2\n * (é o vencedor), 3 (é o perdedor), 4 (houve empate), 5 (vencedor por WO), 6 (perdedor por WO)\n *\n * @throws RemoteException\n */\n int ehMinhaVez(int id) throws RemoteException;\n\n /**\n * Este método retorna o tabuleiro em uma string\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return string vazio em caso de erro ou string representando o tabuleiro de jogo\n * O tabuleiro pode, por exemplo, ser representado por 9 caracteres indicando respectivamente o\n * estado de cada casa (de 0 até 8) do tabuleiro: 'C' (peça clara no sentido perpendicular), 'c' (peça\n * clara no sentido diagonal), 'E' (peça escura no sentido perpendicular), 'e' (peça escura no sentido\n * diagonal), '.' (casa não ocupada). \n * @throws RemoteException\n */\n String obtemTabuleiro(int id) throws RemoteException;\n\n /**\n * Este método posiciona a peça do jogador no tabuleiro\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @param x posição do tabuleiro onde a\n * peça deve ser posicionada (de 0 até 8, inclusive)\n * @param y posição do tabuleiro onde a\n * peça deve ser posicionada (de 0 até 8, inclusive)\n * @param orientacao orientação da peça (0 correspondendo à\n * orientação perpendicular, e 1 correspondendo à orientação diagonal)\n * @return\n * 2 (partida encerrada, o que ocorrerá caso o jogador demore muito para enviar a sua\n * jogada e ocorra o  time­out \n * de 60 segundos para envio de jogadas), 1 (tudo certo), 0 (posição\n * inválida, por exemplo, devido a uma casa já ocupada), ­1 (parâmetros inválidos), ­2 (partida não\n * iniciada: ainda não há dois jogadores registrados na partida), ­3 (não é a vez do jogador).\n * @throws RemoteException\n */\n int posicionaPeca(int id, int x, int y, int orientacao) throws RemoteException;\n\n /**\n * Este método move a peça do jogador no tabuleiro\n *\n * @param id do usuário (obtido através da chamada registraJogador) \n * @param x posição do tabuleiro onde se\n * encontra a peça que se deseja mover (de 0 até 8, inclusive)\n * @param y posição do tabuleiro onde se\n * encontra a peça que se deseja mover (de 0 até 8, inclusive)\n * @param sentido sentido do deslocamento (0 a 8, inclusive). Para o\n * sentido do deslocamento deve­se usar a seguinte convenção: 0 = diagonal esquerda­superior; 1 =\n * para cima; 2 = diagonal direita­superior; 3 = esquerda; 4 = sem movimento; 5 = direita; 6 =\n * diagonal esquerda­inferior; 7 = para baixo; 8 = diagonal direita­inferior.\n * @param numero_casas número de casas deslocadas (0, 1 ou 2)\n * @param orientacao orientação da peça depois da jogada (0\n * correspondendo a orientação perpendicular, e 1 correspondendo à orientação diagonal)\n * @return\n * 2 (partida encerrada, o que ocorrerá caso o jogador demore muito para enviar a sua\n * jogada e ocorra o time­out de 60 segundos para envio de jogadas), 1 (tudo certo), 0 (movimento\n * inválido, por exemplo, em um sentido e deslocamento que resulta em uma posição ocupada ou\n * fora   do   tabuleiro),   ­1   (parâmetros   inválidos),   ­2   (partida\n *   não   iniciada:   ainda   não   há   dois\n * jogadores registrados na partida), ­3 (não é a vez do jogador).\n * @throws RemoteException\n */\n int movePeca(int id, int x, int y, int sentido, int numero_casas, int orientacao) throws RemoteException;\n\n /**\n * Este método obtem o nome do oponente\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return string vazio para erro ou string com o nome do oponente\n * @throws RemoteException\n */\n String obtemOponente(int id) throws RemoteException;\n}", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public interface ViewTambahTeman {\n void saveData(Teman teman);\n}", "public interface FlyBehevour {\n void fly();\n}", "public interface GestioneAmministratore {\n\t\n\tpublic void aggiungeAmministratore(Amministratore a);\n\n\tpublic void rimuoveAmministratore(Amministratore a);\n\n\tpublic void modificaAmministratore(Amministratore a);\n}", "public interface C12861aa {\n void initOfferwall(Activity activity, String str, String str2, JSONObject jSONObject);\n\n void setInternalOfferwallListener(C12878j jVar);\n}", "@Override\n\tpublic void anular() {\n\n\t}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public interface OkIview {\n\n void getokiview(Bean_ok bean_ok);\n\n}", "public interface ViewInterface extends BaseViewInterface {\n /**\n * Interface method yang diimplement ketika presenter berhasil memcreate/update report\n * @param report balikan berupa object report\n * @param isNew balikan berupa nilai boolean true(jika berupa data baru/insert) atau false(bukan data baru/update)\n */\n void onReportResult(Report report, boolean isNew);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil menghapus report\n * @param report balikan berupa object report\n */\n void onReportDeleted(Report report);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil mendapatkan data report\n * @param reports balikan berupa List report\n * @param sumary balikan berupa summary\n */\n void onGetAllDataReport(List<Report> reports, Sumary sumary);\n }", "public interface IMainView {\n\n\n void msg(String s);\n}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "private UsineJoueur() {}", "public interface ClientInterface {\r\n\r\n //Recebe notificação de operação realizada.\r\n public boolean notifyCompletedOperation(Operacao operacao);\r\n \r\n //Recebe notificação de atualização dos valores da ação de uma empresa.\r\n public void notifyUpdate(Empresa empresaAtualizado);\r\n}", "public interface C0260a {\n boolean onClick();\n }", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n public void comunicar() {\n System.out.println(\"miauuuu\");\n\n }", "public interface TManagerObserver extends ModelObserver {\n\t/**\n\t * Metodo para notificar que se ha avanzado en la partida, y que el jugador que tiene\n\t * el turno actual y el siguiente han cambiado\n\t * @param act Nombre del Integrante de la partida que tiene el turno actual\n\t * @param sig Nombre del Integrante de la partida que tendra el siguiente turno\n\t */\n\tpublic void mostrarTurnos(String act, String sig);\n\t\n\t\n\t/**\n\t * Metodo para notificar a los observadores que se ha comenzado un nuevo turno\n\t * @param mano Lista de fichas a mostrar por Pantalla\n\t */\n\tpublic void nuevoTurno(Integrante i, String act, String sig);\n\n\tpublic void turnoAcabado(String j);\t\n\t\n\t/**\n\t * Metodo para notificar un error a un jugador por la GUI\n\t * @param nick \n\t * @param err\n\t */\n\tpublic void onError(String err, String nick);\t\n\t\n\tpublic void onRegister(String act, String sig);\n\n\n\tpublic void partidaAcabada(String nick);\n\t\n}", "private void mostrarEmenta (){\n }", "public interface IMyNewFirendView {\n\n public void onMyNewFirendGetFriendApplyListSuccess(List<ContactsFriend> datas);\n public void onMyNewFirendGetFriendApplyListFaile(String msg);\n\n public void onMyNewFirendConfirmApplySuccess(int confirm);\n public void onMyNewFirendConfirmApplyFaile(String msg, int confirm);\n\n}", "public interface IDetailView {\n public void setImage(String url);\n\n // mètodes per assignar el nom i cognom\n public void setNom(String text);\n public void setDivisio(String text);\n public void setNivell(String text);\n public void setObjPref(String text);\n public void setTipusAtac(String text);\n /*public void setUrlImatge(String text) ;*/\n}", "public interface BusinView {\n\n void showBusin(BusinBean businBean);\n\n void onBusinErr(String err);\n}", "public interface HowToGo {\n void reachRome();\n}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public interface Zrada\n{\n void accuse();\n}", "public interface Strategie {\n\n\t/**\n\t * choisit un coup selon la strategie a adopter\n\t * @return le coup a jouer\n\t */\n\tpublic Coup coupAJouer();\n\n}", "public interface IBaisiView {\n\n //更新数据\n public void updateData(List<BSDataListBean> mData);\n\n //显示loadingDialog\n public void showLoadingDialog();\n\n //隐藏loadingDiaog\n public void dissmissLoadingDialog();\n\n //没有网络\n public void noNet();\n //获取失败\n public void netError();\n\n\n\n}" ]
[ "0.6668571", "0.6511054", "0.6358657", "0.6358177", "0.63567966", "0.6269692", "0.62633437", "0.622375", "0.620334", "0.6191734", "0.61806375", "0.611795", "0.6105298", "0.61048883", "0.61035573", "0.609351", "0.60845405", "0.6064404", "0.59972", "0.59944075", "0.59930444", "0.5970552", "0.5969115", "0.59688216", "0.59657216", "0.59586364", "0.5957209", "0.59271765", "0.5920091", "0.5919693", "0.591721", "0.5913402", "0.5895648", "0.5892895", "0.58833545", "0.5878676", "0.58670753", "0.58581865", "0.5857933", "0.58520395", "0.5851247", "0.58493435", "0.5835114", "0.5834582", "0.583436", "0.58338416", "0.5833194", "0.5831519", "0.5830547", "0.5828485", "0.5823165", "0.5811704", "0.58102643", "0.5809496", "0.58080065", "0.58070195", "0.580124", "0.57962006", "0.57948554", "0.57925385", "0.57921016", "0.57920164", "0.5791124", "0.57904816", "0.578392", "0.5774356", "0.5768648", "0.57661974", "0.57630527", "0.57610273", "0.5755678", "0.57551366", "0.5747697", "0.57415986", "0.5734358", "0.5733843", "0.5733801", "0.572586", "0.5721104", "0.5718574", "0.5718574", "0.57151574", "0.5709186", "0.5708392", "0.5705732", "0.5702149", "0.56985945", "0.56971973", "0.56967527", "0.5693717", "0.5693031", "0.5692476", "0.56872785", "0.56865185", "0.56863993", "0.568515", "0.568361", "0.5682612", "0.5682385", "0.56723666", "0.5671786" ]
0.0
-1
Permet d'actualiser l'affichage de l'interface
public void show() { for (int id = 0; id <= maxId; id++) { if (buttonArray[id] != null) if (buttonArray[id].isVisible()) buttonArray[id].show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "public interface IFlyAminal {\n void fly();\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface FlyBehevour {\n void fly();\n}", "public interface IFaci {\n}", "interface IFly {\n void fly();\n}", "public interface ICar {\n\n void moveCar();\n\n}", "public interface Zrada\n{\n void accuse();\n}", "public interface Producto {\r\n\tpublic void accion();\r\n}", "public interface AmmoInterface\n{\n\n /*------------------------------------------------------------------------------------*/\n\n /** Throw at target.<br>\n * Should be another version to throw at buildings.\n * @param target the target\n */\n public void throwAt(Player target);\n\n /** Put in hand. Ready to throw().\n */\n public void equip();\n\t\n \n /** Gets the damage inflicted with a bow. -1 if impossible\n * @return bowDamage\n */\n public short getBowDamage();\n\t\n /** Sets the damage inflicted with a bow. -1 if impossible\n * @param bowDamage the new damage inflicted with a bow\n */\n public void setBowDamage(short bowDamage);\n\n\t\n /** Gets the damage inflicted throwed by hand. -1 if impossible\n * @return handThrowDamage\n */\n public short getHandThrowDamage();\n\t\n /** Sets the damage inflicted throwed by hand. -1 if impossible\n * @param handThrowDamage the new damage inflicted with a hand-throw\n */\n public void setHandThrowDamage(short handThrowDamage);\n\n\t\n /** Gets the damage inflicted with a siege weapon. -1 if impossible\n * @return siegeWeaponDamage\n */\n public short getSiegeWeaponDamage();\n\t\n /** Sets the damage inflicted throwed by siege weapon. -1 if impossible\n * @param siegeWeaponDamage the new damage inflicted with a siege weapon\n */\n public void setSiegeWeaponDamage(short siegeWeaponDamage);\n\n\t\n /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/\n\n}", "public interface IGradeMock{\n String getGradeName();\n\n void setGradeName(String gradeName);\n\n IPermissionMock getPermissionMock();\n\n void setPermissionMock(IPermissionMock permissionMock);\n\n int getID();\n\n void setID(int ID);\n}", "public interface IDeneme {\n \n void dene();\n}", "public interface Fly {\n void fly();\n}", "public interface OrderExcuter {\n void excute(IOrder order);\n\n}", "interface Iface {\n void usedIface();\n}", "public interface Flyable{\r\n\tString fly();\r\n}", "public interface Flyable\n{\n public void updateConditions();\n public void registerTower(WeatherTower weatherTower);\n public void unregisterTower(WeatherTower weatherTower);\n}", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "void ModifyInterface(AirPollution airPollution);", "public interface IShopEngine {\n\n\n /**\n * Moves a product from basket to archive basket\n */\n public void doShopping(IBasket basket,IArchiveBasket archiveBasket);\n\n}", "public interface IBuyCar {\n //买车\n void buyCar();\n}", "public interface Poulet {\n /*DEFINIT le nombre de like effectué par ce poulet */\n public void setnombreLike(int nombre_like);\n\n /*DEFINIT le nombre de match de ce poulet */\n public void setnombreMatch(int nombre_match);\n\n}", "public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}", "public interface Ave {\n\n public void voar();\n\n}", "public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}", "public interface PowerUps {\n\n public void activar(Figura figura);\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface IDuck {\n void quack();\n\n void fly();\n}", "Interface getInterface();", "Interface getInterface();", "@Implementable\npublic interface IFuelProvider {\n\n int getBurnTime(IItemStack stack);\n}", "public interface InterfaceController {\n\n void drawInterface();\n}", "public interface ITeslaProduct extends IProduct {\n //@Override\n public abstract void makeProduct();\n}", "public interface FlyBehavior {\n\n /**\n * 飞行的动作\n */\n void fly();\n\n}", "public void setInterface(Class aInterface) { theInterface = aInterface ; }", "@Override\n public boolean isInterface() { return false; }", "public interface ITest {\n}", "public interface IFan {\n void activate(int i);\n}", "public interface Attacker {\n String attack(Vehicle vehicle);\n}", "public interface Animal {\n\n //Animal reproduce();\n\n}", "public interface IsisInterface {\n\n /**\n * Sets interface index.\n *\n * @param interfaceIndex interface index\n */\n void setInterfaceIndex(int interfaceIndex);\n\n /**\n * Sets intermediate system name.\n *\n * @param intermediateSystemName intermediate system name\n */\n void setIntermediateSystemName(String intermediateSystemName);\n\n /**\n * Sets system ID.\n *\n * @param systemId system ID\n */\n void setSystemId(String systemId);\n\n /**\n * Sets LAN ID.\n *\n * @param lanId LAN ID\n */\n void setLanId(String lanId);\n\n /**\n * Sets ID length.\n *\n * @param idLength ID length\n */\n void setIdLength(int idLength);\n\n /**\n * Sets max area addresses.\n *\n * @param maxAreaAddresses max area addresses\n */\n void setMaxAreaAddresses(int maxAreaAddresses);\n\n /**\n * Sets reserved packet circuit type.\n *\n * @param reservedPacketCircuitType reserved packet circuit type\n */\n void setReservedPacketCircuitType(int reservedPacketCircuitType);\n\n /**\n * Sets point to point.\n *\n * @param p2p point to point\n */\n void setP2p(int p2p);\n\n /**\n * Sets area address.\n *\n * @param areaAddress area address\n */\n void setAreaAddress(String areaAddress);\n\n /**\n * Sets area length.\n *\n * @param areaLength area length\n */\n void setAreaLength(int areaLength);\n\n /**\n * Sets link state packet ID.\n *\n * @param lspId link state packet ID\n */\n void setLspId(String lspId);\n\n /**\n * Sets holding time.\n *\n * @param holdingTime holding time\n */\n void setHoldingTime(int holdingTime);\n\n /**\n * Sets priority.\n *\n * @param priority priority\n */\n void setPriority(int priority);\n\n /**\n * Sets hello interval.\n *\n * @param helloInterval hello interval\n */\n void setHelloInterval(int helloInterval);\n}", "public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}", "public interface IICCpuCardPresenter {\n void cardPower();\n void cardHalt();\n void exist();\n void exchangeApdu();\n}", "public interface eit {\n}", "public interface AbstractC03680oI {\n}", "public interface HeroInterface {\n public void saveBeauty();\n public void helpPool();\n}", "public interface FlyBehavior {\n void fly();\n}", "public interface FlyBehavior {\n void fly();\n}", "public interface OrientationWorkshopI {\n\tpublic void construct(OrientationChecklistI orientationChecklist);\n\n}", "public interface IUseCase {\n\n void execute();\n}", "public interface IBaseCustomCard {\r\n\r\n public void initActions();\r\n}", "public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}", "public interface IMvpModel {\n void handModel(String obj, ICallBack callBack);\n}", "@Override\r\n\tpublic void interfaceMethod() {\n\t\tSystem.out.println(\"childClass - interfaceMethod\");\r\n\t\tSystem.out.println(\"Val of variable from interface: \" + DemoInterface.val );\r\n\t}", "public interface RifaMainPresenter {\n void onCreate();\n void onDestroy();\n\n void getRifas();\n void saveFirma(Rifa rifa);\n void removeRifa(Rifa rifa);\n void onEventMainThread(RifaMainEvent event);\n\n RifaMainView getView();\n}", "public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)\n f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);\n \n }", "public interface Vehicle {\n\n double getSpeedLimit();\n}", "interface VehicleOne\n{\n\tint speed=90;\n\tpublic void distance();\n}", "public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}", "public interface Mover {\n\n void move(Fish fish);\n}", "public interface Calisan {\n double oran = 0.7;\n double ucret();\n void calisanBolumu();\n void ucretBelirle(double ucretSabiti);\n}", "public interface IComponent {\n \n double getCosto();\n void setCosto(double valor);\n String getFunciona();\n \n}", "public interface Flyable {\n\t\n\t/**\n\t * A method to be used to launch \n\t */\n\tvoid launch();\n\t\n\tvoid land();\n}", "public interface a extends IInterface {\n}", "public interface ICarFactory {\n}", "public interface IHomoSapiens {\n String getName();\n\n void setName(String name);\n\n IARole getARole();\n\n void setARole(IARole aRole);\n}", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public interface IFruit {\n\n void say();\n}", "public interface I_ParametersLoaded\n{\n public void ParametersLoaded();\n}", "public interface Vehicle {\n\n void applyBrakes();\n void speedUp(int delta);\n void slowDown(int delta);\n}", "public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}", "public interface TestInterface2 {\n}", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "public interface Car {\n\n}", "public interface FlyBehavior {\n public abstract void fly();\n// public abstract void\n}", "public interface ElevatorControl {\n /**\n *Задать место назначения\n * @param destination этаж\n */\n void addNewDestination(Integer destination);\n}", "public interface FlyBehavior {\n String fly();\n}", "public interface TipoJogador {\n\n /**\n * Informa para o jogador que uma tecla foi pressionada.\n * \n * @param t Tecla que foi pressionada.\n */\n public void informarTeclaPressionada( Tecla t );\n \n /**\n * Informa para o jogador que uma tecla foi solta.\n * \n * @param t Tecla que foi solta.\n */\n public void informarTeclaSolta( Tecla t );\n \n}", "public interface IMoveStrategy \n{\n /**\n * sets the actor on which strategy needs to be applied.\n */\n public void setActor(Actor actor);\n \n /**\n * moves the actor forward.\n */\n public void moveActor();\n \n /**\n * rotates the actor\n */\n public void rotateActor();\n \n /**\n * chages the moving speed of actor\n */\n public void changeSpeed(int speed);\n}", "public interface IZiFenLeiXiang {\n public String getid();\n public void showZiFenLeiXiang(ZiFenLeiXiangBean ziFenLeiXiangBean);\n}", "public interface AInterface {\n\n public void say();\n\n}", "public interface Boy {\n\n public void drawMan();\n}", "public interface IConexion\n{\n public void conectar();\n public void desconectar();\n public String getDatos(); \n}", "public interface Engine {\n public void fire();\n}", "public interface IMVPView {\n}", "interface I {}", "public interface user_interface {\n public Double getCredit();\n\n\n public void setCredit(Double credit);\n\n\n public String getName();\n\n public String getType();\n\n public void setFirstName(String name);\n\n public String getSurename();\n\n public void setSurename(String surename);\n\n public String getTypeOfCar();\n\n public String getCarID();\n\n public void setTypeOfCar(String typeOfCar);\n}", "public interface DiscoverIView extends BaseIView {\n\n}", "public interface Car {\n}", "public interface InterfaceB {\n public void display();\n}", "public interface Igual extends ComplexInstruction\n{\n}", "public interface TipoBan {\n\n public void cambiarBan(Usuario u);\n}", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "public interface i {\n}", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public T caseInterface(Interface object)\n {\n return null;\n }", "public interface GestioneAmministratore {\n\t\n\tpublic void aggiungeAmministratore(Amministratore a);\n\n\tpublic void rimuoveAmministratore(Amministratore a);\n\n\tpublic void modificaAmministratore(Amministratore a);\n}", "public interface IEnemyFeature {\n\n}", "public interface UserInterface {\n void update();\n}", "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "public interface AircraftColleague {\n public void startLanding();\n public void finishLanding();\n}" ]
[ "0.67331004", "0.6731736", "0.6650233", "0.65845346", "0.65014327", "0.6465518", "0.6464206", "0.6462107", "0.64602673", "0.64562476", "0.6296711", "0.62904596", "0.6269126", "0.62577754", "0.624086", "0.6234602", "0.62317777", "0.62165684", "0.6212818", "0.6207579", "0.6207206", "0.6197313", "0.61968106", "0.61953205", "0.6194027", "0.6174602", "0.6162691", "0.6160559", "0.6160473", "0.6160473", "0.61540926", "0.6152516", "0.61513644", "0.6133095", "0.6122036", "0.6119967", "0.61195314", "0.6111402", "0.61103857", "0.6094489", "0.60743266", "0.6061062", "0.60601175", "0.6058309", "0.60572296", "0.6056502", "0.605152", "0.605152", "0.60510755", "0.6047065", "0.60424286", "0.60345775", "0.6014694", "0.60099113", "0.6009758", "0.6006102", "0.6005485", "0.60035086", "0.60023683", "0.59991103", "0.59978527", "0.5990189", "0.59875536", "0.5983207", "0.59801954", "0.597951", "0.59794885", "0.597796", "0.5973649", "0.5973113", "0.596728", "0.5951768", "0.5951687", "0.5950761", "0.5949611", "0.5948544", "0.59476346", "0.5947374", "0.59444875", "0.5935604", "0.5934292", "0.5932721", "0.5930826", "0.5929366", "0.5928608", "0.59262395", "0.5921279", "0.59188324", "0.5916385", "0.5913093", "0.591138", "0.59103715", "0.59065527", "0.5901389", "0.59007674", "0.58975416", "0.5896169", "0.58900464", "0.58871305", "0.5886218", "0.5885986" ]
0.0
-1
Permet de recuperer les boutons contenus dans l'interface
public Button[] getButtons() { return buttonArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public interface NCBENU {\n}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public interface IBemListaInteractor {\n\n void buscarBensPorDepartamento(IBemListaPresenter listener);\n void atualizarListaBens(IBemListaPresenter listener);\n void buscarBemTipo(Context context, IBemListaPresenter listener);\n void buscarDadosQrCode(IBemListaPresenter listener);\n\n}", "public interface BleInterface {\n //open ble\n public void openBle(Boolean enable);\n //scan ble,get device list\n public void scanBleDevice(Boolean enable);\n\n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "public interface BluesIWomen {\n public int getType();\n\n public String getRequest();\n}", "public interface Banco<B> {\n \n \n /**\n * Método para inserir um produto no banco de dados\n * @param b Produto a ser cadastrado\n * @return Retorna true para produto cadastrado e\n * false para produto não cadastrado\n */\n boolean cadastrar(B b);\n \n /**\n * Método para remover um produto no banco de dados\n * @param cod Código do produto a ser removido\n * @return Retorna o produto removido\n */\n B remover(int cod);\n \n /**\n * Método para buscar um produto no banco de dados\n * @param cod Código do produto a ser buscado\n * @return Int - Produto buscado\n */\n B buscar(int cod); \n \n /**\n * Método para listar os clientes cadastrados\n * @return Todos os clientes cadastrados\n */\n List<B> listar();\n \n}", "public interface Wilayahlistener {\n\n public void wilayah(List<Wilayah> wilayahs);\n public void getToko(List<TokoEntity> tokoEntities);\n}", "private void initBoutons() {\n bMonterDomaine.setText(null);\n bMonterCompte.setText(null);\n bDescendreDomaine.setText(null);\n bDescendreCompte.setText(null);\n bMonterDomaineMax.setText(null);\n bMonterCompteMax.setText(null);\n bDescendreDomaineMax.setText(null);\n bDescendreCompteMax.setText(null);\n bAjoutDomaine.setText(null);\n bAjoutCompte.setText(null);\n bModificationDomaine.setText(null);\n bModificationCompte.setText(null);\n bSuppressionDomaine.setText(null);\n bSuppressionCompte.setText(null);\n\n // Tootips\n bMonterDomaine.setTooltip(new Tooltip(\"Monter le domaine sélectionné d'une place\"));\n bMonterCompte.setTooltip(new Tooltip(\"Monter le compte sélectionné d'une place\"));\n bDescendreDomaine.setTooltip(new Tooltip(\"Descendre le domaine sélectionné d'une place\"));\n bDescendreCompte.setTooltip(new Tooltip(\"Descendre le compte sélectionné d'une place\"));\n bMonterDomaineMax.setTooltip(new Tooltip(\"Monter le domaine sélectionné jusqu'en première place\"));\n bMonterCompteMax.setTooltip(new Tooltip(\"Monter le compte sélectionné jusqu'en première place\"));\n bDescendreDomaineMax.setTooltip(new Tooltip(\"Descendre le domaine sélectionné jusqu'en dernière place\"));\n bDescendreCompteMax.setTooltip(new Tooltip(\"Descendre le compte sélectionné jusqu'en dernière place\"));\n bAjoutDomaine.setTooltip(new Tooltip(\"Ajouter un nouveau domaine\"));\n bAjoutCompte.setTooltip(new Tooltip(\"Ajouter un nouveau compte\"));\n bModificationDomaine.setTooltip(new Tooltip(\"Modifier le domaine sélectionné\"));\n bModificationCompte.setTooltip(new Tooltip(\"Modifier le compte sélectionné\"));\n bSuppressionDomaine.setTooltip(new Tooltip(\"Supprimer le domaine sélectionné\"));\n bSuppressionCompte.setTooltip(new Tooltip(\"Supprimer le compte sélectionné\"));\n\n // Gestion des activations de boutons\n bMonterDomaine.setDisable(true);\n bMonterCompte.setDisable(true);\n bDescendreDomaine.setDisable(true);\n bDescendreCompte.setDisable(true);\n bMonterDomaineMax.setDisable(true);\n bMonterCompteMax.setDisable(true);\n bDescendreDomaineMax.setDisable(true);\n bDescendreCompteMax.setDisable(true);\n bAjoutCompte.setDisable(true);\n bModificationDomaine.setDisable(true);\n bModificationCompte.setDisable(true);\n bSuppressionDomaine.setDisable(true);\n bSuppressionCompte.setDisable(true);\n\n // Setup les images\n bMonterDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bMonterCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bDescendreDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bDescendreCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bMonterDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bMonterCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bDescendreDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bDescendreCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bAjoutDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bAjoutCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bModificationDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bModificationCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bSuppressionDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n bSuppressionCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n\n // Cas particulier: ecraserFiltre\n bEcraserFiltre.setText(null);\n bEcraserFiltre.setTooltip(new Tooltip(\"Retirer le filtre\"));\n bEcraserFiltre.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n }", "public interface Hablidades {\n\n\n public int velocidad ();\n public int fuerza ();\n public int poderEspecial();\n}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "public interface GetAllNotificationBindr {\n StatusBarNotification[] getAllNotification();\n}", "public interface OnConnectionOptionSelected {\r\n public void onDownloadSelected();\r\n public void onUploadSelected();\r\n}", "public interface IBNDataView {\n //详情View层接口\n public void bnShowData(List<Bn_Bean.SkuBean> bnlist);\n public String getBnId();\n}", "public interface IProtocol {\r\n int ADD_ELEMENT = 2100; // parent, 0, Elements.Extra\r\n\r\n int CLEAR_CHILDREN = 2005; // parent\r\n\r\n int CONTROL_ABOUT = 3001;\r\n\r\n int CONTROL_DELETE_SAVE = 3003;\r\n\r\n // int CONTROL_RESTART = 3004;\r\n int CONTROL_FORCE_CLICK = 3005;\r\n\r\n int CONTROL_HELP = 3002;\r\n\r\n // int UPDATE_SCROLL = 5;\r\n int DISPLAY_TOAST = 2001; // OBJ = text\r\n\r\n int ON_CLICK = 1101; // OBJ = view\r\n\r\n int ON_CREATE = 1001; // OBJ = bundle\r\n\r\n int ON_DESTROY = 1006;\r\n\r\n int ON_PAUSE = 1004;\r\n\r\n int ON_RESUME = 1003;\r\n\r\n int ON_START = 1002;\r\n\r\n int ON_STOP = 1005;\r\n\r\n int ON_TOUCH_EVENT = 1103;\r\n\r\n int SET_THEME = 5001;\r\n\r\n int SHOW_HELP_PAGE = 4001;\r\n\r\n int SHOW_LICENSE = 4002;\r\n\r\n int UPDATE_COLOR = 2;\r\n\r\n int UPDATE_ENABLED = 3;\r\n\r\n int UPDATE_INFLATE = 4;\r\n\r\n int UPDATE_TEXT = 1;\r\n\r\n int UPDATE_VIEW = 0;\r\n}", "public interface RegistroHabilidad {\n\n public void registar(CN_habilidad x);\n public void eliminar(String codigo);\n public ArrayList<CN_habilidad> lista();\n}", "public interface CallBackListadoPlantilla extends CallBackBase {\n void OnSuccess(ArrayList<SearchBoxItem> listadoPlantilla);\n}", "public interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}", "public interface Poulet {\n /*DEFINIT le nombre de like effectué par ce poulet */\n public void setnombreLike(int nombre_like);\n\n /*DEFINIT le nombre de match de ce poulet */\n public void setnombreMatch(int nombre_match);\n\n}", "public interface CanalState {\n \n void SelecionarCanal();\n void ObterInformacoesDoCanal();\n void ObterCanalSelecionado();\n \n}", "Commands getIf_commands();", "public interface AsistenciaInteractor {\n\n void onGetListaAlumnos();\n void onInitListView();\n void changeStateFabButtons(FloatingActionButton btnCurrentState, FloatingActionButton btnAsistio, FloatingActionButton btnFalto, FloatingActionButton btnJustificado);\n}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "public interface clsMakeKotActListener\n{\n void setTableSelectedResult(String strTableNo, String strTableName, String status,String areaCode);\n void setDirectKotItemListSelectedResult1(String strTableNo, String strTableName, String strWaiterNo, String strWaiterName, String status, double kotAmt, double cardBalance, String cardType, int paxNo, String cardNo, String strLinkedWaiterNo,String areaCode);\n void setWaiterSelectedResult(String strWaiterNo, String strWaiterName);\n void funRefreshItemDtl(String strItemCode, String strItemName, String strSubGroupCode, double dblSalePrice);\n void setMenuItemSelectionCodeResult(String strMenuItemCode, String strMenuItemName, String strMenuType);\n void setSelectedPaxResult(int strPaxNo);\n void setSelectedOtherOptionsResult(String strNcKot, String strRemark, String strReasonCode);\n}", "public interface IBBO {\n String getSecurityId();\n\n double getBidPx();\n\n double getOfferPx();\n\n double getBidSize();\n\n double getOfferSize();\n\n String getTradingStatus();\n\n double getLastPx();\n\n double getLastSize();\n\n double getLowPx();\n\n double getHighPx();\n\n double getOpenPx();\n\n double getClosePx();\n\n PerformanceData getPerformanceData();\n\n boolean isInRecovery(IChannelStatus.ChannelType channelType);\n\n boolean isInRecoverySet(IChannelStatus.ChannelType channelType);\n}", "public interface OnBriefSettingListener {\r\n\r\n void OnSetBrief(String brief);\r\n\r\n}", "public interface RelationActivityView extends BaseIView {\n void setFrientData(FrientBaen frientBaen);\n// void setPingBiData(PingbiBean pingBiBaen);\n}", "public interface ShowWeiboModelIntf {\n void getWeibo(final OnLoadWeiboListener listener);\n void getWeiboMore(final OnLoadWeiboListener listener);\n}", "public interface bik extends bie {\n boolean A();\n\n int B();\n\n int C();\n\n void D();\n\n void E();\n\n void F();\n\n String G();\n\n void H();\n\n boolean I();\n\n boolean J();\n\n String K();\n\n boolean L();\n\n void M();\n\n int a(String str);\n\n int a(String str, String str2, int i);\n\n int a(String str, String str2, String str3, int i);\n\n int a(String str, String str2, String str3, String str4);\n\n JsonDatasWithType a(String str, String str2);\n\n void a(int i);\n\n void a(bii bii);\n\n void a(bio bio);\n\n void a(bis bis);\n\n void a(bit bit);\n\n void a(biu biu);\n\n void a(biv biv);\n\n void a(biw biw);\n\n void a(bix bix);\n\n void a(biy biy);\n\n void a(biz biz);\n\n void a(bja bja);\n\n void a(bjc bjc);\n\n void a(JsFunctionCallback jsFunctionCallback);\n\n void a(String str, int i);\n\n void a(String str, bij bij);\n\n void a(String str, String str2, int i, String str3);\n\n void a(boolean z);\n\n int b(String str, String str2, int i);\n\n int b(String str, String str2, String str3, int i);\n\n GirfFavoriteRoute b(String str);\n\n String b(String str, String str2);\n\n void b();\n\n void b(int i);\n\n void b(biy biy);\n\n void b(bja bja);\n\n void b(bjc bjc);\n\n void b(String str, int i);\n\n void b(boolean z);\n\n List<String> c(int i);\n\n List<String> c(String str);\n\n List<String> c(String str, int i);\n\n void c();\n\n void c(biy biy);\n\n void c(String str, String str2);\n\n void c(boolean z);\n\n List<String> d(String str);\n\n void d();\n\n void d(boolean z);\n\n List<String> e(String str);\n\n void e();\n\n void e(boolean z);\n\n GirfFavoritePoint f(String str);\n\n void f();\n\n void f(boolean z);\n\n List<JsonDataWithId> g(String str);\n\n void g(boolean z);\n\n boolean g();\n\n JsonDatasWithType h(String str);\n\n void h(boolean z);\n\n boolean h();\n\n int i(String str);\n\n void i(boolean z);\n\n boolean i();\n\n int j(String str);\n\n void j(boolean z);\n\n boolean j();\n\n void k(boolean z);\n\n boolean k();\n\n boolean k(String str);\n\n int l(String str);\n\n int l(boolean z);\n\n boolean l();\n\n String m(String str);\n\n boolean m();\n\n GirfSyncService n();\n\n boolean n(String str);\n\n List<GirfFavoritePoint> o();\n\n List<GirfFavoritePoint> p();\n\n List<String> r();\n\n List<String> s();\n\n boolean t();\n\n List<String> u();\n\n List<String> v();\n\n boolean w();\n\n String x();\n\n List<String> y();\n\n int z();\n}", "private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}", "public interface EnqueteListListener {\n}", "public interface HotCarListem {\n void success(List<CarBean> homeBannerBeens);\n void error(String msg);\n void start();\n}", "public interface NetClickListener {\n\n void Suesses(BaseBean baseBean);\n void Error(BaseBean baseBean);\n\n}", "public interface BInf {\n\n void hello();\n\n}", "public interface BtInterface {\n void Offline(Set<BluetoothDevice> devices);\n void Found(Set<BluetoothDevice> devices);\n}", "public interface IBookManager extends IInterface {\n //DESCRIPTOR是一个标识来的,生成子类对象(IBookManager的实现者 和 Binder的实现者)时要用到\n static final String DESCRIPTOR = \"com.example.benjious.theart_02.manualbinder.IBookManager\";\n\n static final int TRANSACTION_getBookList = (IBinder.FIRST_CALL_TRANSACTION + 0);\n static final int TRANSACTION_addBook = (IBinder.FIRST_CALL_TRANSACTION + 1);\n\n public List<Book> getBookList() throws RemoteException;\n\n public void addBook(Book book) throws RemoteException;\n}", "public interface bzt extends cdm {\n}", "@Override\n public void addCondiments() {\n System.out.println(\"添加柠檬\");\n }", "public interface IBaisiView {\n\n //更新数据\n public void updateData(List<BSDataListBean> mData);\n\n //显示loadingDialog\n public void showLoadingDialog();\n\n //隐藏loadingDiaog\n public void dissmissLoadingDialog();\n\n //没有网络\n public void noNet();\n //获取失败\n public void netError();\n\n\n\n}", "public interface Bookshelf extends Element {\n\n\t/**\n\t * Zwraca unikalna nazwe polki\n\t * @return nazwa\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Zwraca tutoly ksiazek jakie sie znajduja na tej polce\n\t * @return\n\t */\n\tpublic Set<Title> getValidTitles();\n\n\t/**\n\t * Metoda okresla czy podany tytul jest poprawny dla tej polki\n\t * @param title tytul\n\t * @return\n\t */\n\tpublic boolean isValidTitle(Title title);\n\n\t/**\n\t * Metoda zwraca polozenie miejsca gdzie powinien znajdowac sie robot,\n\t * aby mogl korzystac z polki\n\t * @return\n\t */\n\tpublic Position getRobotPadPosition();\n\n\t/**\n\t * Metoda zwraca kierunek w jakim powinien byc zwrocony robot,\n\t * aby mogl korzystac z polki\n\t * @return\n\t */\n\tpublic Direction getCorrectRobotDirection();\n}", "public interface BrowseService {\n\n\n public List callNumberBrowse(CallNumberBrowseForm callNumberBrowseForm);\n\n public List callNumberBrowsePrev(CallNumberBrowseForm callNumberBrowseForm);\n\n public List callNumberBrowseNext(CallNumberBrowseForm callNumberBrowseForm);\n\n public boolean getPreviosFlag();\n\n public boolean getNextFlag();\n\n public String getPageShowEntries();\n\n public List browse(OLESearchForm oleSearchForm);\n\n public List browseOnChange(OLESearchForm oleSearchForm);\n\n public List browsePrev(OLESearchForm oleSearchForm);\n\n public List browseNext(OLESearchForm oleSearchForm);\n\n public String validateLocation(String locationString);\n}", "public interface BusinView {\n\n void showBusin(BusinBean businBean);\n\n void onBusinErr(String err);\n}", "public interface EventosCaixaDialogo {\n\n void onClickPositivo();\n\n void onClickNegativo();\n\n}", "public Gestionnaire_Bdd(){\n\t\ttry {\n\t\t\t//Chargement driver hsqldb\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\").newInstance();\n\t\t\t\n\t\t\tconnexion = DriverManager.getConnection(\"jdbc:hsqldb:file:BiblioBDD\", \"sa\", \"\");\n\t\t\trequete = connexion.createStatement();\n\t\t\tcreerTables();\n\t\t\t\n\t\t\tselection(new String[]{\"niveau\", \"professeur\"}, \"classes\");\n\t\t\trafraichir_tableau();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ViewBotonesListas() {\n initComponents();\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "public interface SelectBatchSnsListener {\n void ClickBatchSns(String sns, boolean isselected);\n}", "interface Listen_Tool {\n void setStop();\n void setStart(String title,int position,Bitmap img);\n void setPlan(int position);\n void closeService();\n\n}", "public interface Buttion {\n\n void display();\n}", "public interface Tigari {\npublic void printDetalii();\n}", "public interface ControlloGioco {\r\n public boolean ControlDisco(int riga, int colonna, boolean colore);\r\n\r\n}", "public interface IListviewBiz {\n\n void findItem(OnFinishedListener listener);\n\n}", "public interface ChooseUprazneniaTrainingsInterface extends ListFragmentCustomClickListener{\n}", "public interface Bike\r\n{\r\n /**\r\n * An enumeration defining the possible Colour classifications for\r\n * the Bike.\r\n */\r\n public enum Colour {RED, ORANGE, YELLOW, GREEN, BLUE, INDIGO, VIOLET, WHITE, BLACK};\r\n\r\n /**\r\n * Returns the Colour of this Bike\r\n * \r\n * @return the Colour of this Bike\r\n */\r\n public Colour getColour();\r\n \r\n /**\r\n * Sets the Colour of this Bike\r\n * \r\n * @param colour the Colour of this Bike\r\n * @throws UnsupportedOperationException if the implementation of \r\n * the interface is read-only with respect to this property\r\n */\r\n public void setColour(Colour colour);\r\n\r\n /**\r\n * Returns the number of gears this Bike has\r\n * \r\n * @return the number of gears\r\n */\r\n public int getGears();\r\n\r\n /**\r\n * Sets the number of gears this Bike has\r\n * \r\n * @param gears the number of gears\r\n * @throws UnsupportedOperationException if the implementation of \r\n * the interface is read-only with respect to this property\r\n */\r\n public void setGears(int gears);\r\n\r\n /**\r\n * Returns the price of this Bike in pounds Sterling.\r\n * \r\n * @return the price of this Bike\r\n */\r\n public int getValue();\r\n\r\n /**\r\n * Sets the price of this Bike in pounds Sterling\r\n * \r\n * @param price the price of this Bike\r\n * @throws UnsupportedOperationException if the implementation of \r\n * the interface is read-only with respect to this property\r\n */\r\n public void setValue(int value);\r\n}", "public interface ServConstrainsManagement {\n /**\n * Obtien la lista de componentes visuales a los cuales no tendra accesso\n * el rol (perfil) que esta operando el sistema\n * @return Lista de componentes visuales que no tiene acceso\n */\n public List<ViewConstrainsEnum> getViewConstrainsUIComponent();\n \n}", "public interface BNAModelListener{\n\t\n\tpublic void bnaModelChanged(BNAModelEvent evt);\n\n}", "public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)\n f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);\n \n }", "public List<InterfaceBean> readInterface() {\n\t\tlog.info(\"## readInterface() : \");\n\t\treturn sqlSelectForList(\"com.lgcns.ikep4.workflow.engine.model.InterfaceBean.readInterface\");\n\t}", "public interface ILabelPress extends IBasePress {\n\n void getLabelList();\n\n void evaluation();\n}", "public interface BluetoothView {\n void setActionBarTitle(String title);\n void setNavDrawerSelectedItem(int resID);\n void showUnlockLockLayout();\n void disableUnlockLockLayout();\n}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public interface Interfaz_Icon {\n //interfaz de comunicacion entre fragment y activity\n public void select_details(int icon, String text);\n}", "private void defineBotonBuscar() {\r\n tf_buscar.setVisible(false); //establece el textField como oculto al iniciarse la Pantalla\r\n //Manejador del Evento\r\n \r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //SI es presionado ENTER o TAB entonces\r\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }\r\n };\r\n //Se asigna el manejador a ejecutarse cuando se suelta una tecla\r\n tf_buscar.setOnKeyReleased(eh);\r\n }", "private void iniciarComponentesInterface() {\n\t\tPanelchildren panelchildren = new Panelchildren();\r\n\t\tpanelchildren.setParent(this);\r\n\t\tlistBox = new Listbox();\r\n\t\tlistBox.setHeight(\"300px\");\r\n\t\tlistBox.setCheckmark(true);\r\n\t\tlistBox.setMultiple(false);\r\n\t\tlistBox.setParent(panelchildren);\r\n\t\tListhead listHead = new Listhead();\r\n\t\tlistHead.setParent(listBox);\r\n\t\tListheader listHeader = new Listheader(\"Projeto\");\r\n\t\tlistHeader.setParent(listHead);\r\n\r\n\t\t// Botões OK e Cancelar\r\n\t\tDiv div = new Div();\r\n\t\tdiv.setParent(panelchildren);\r\n\t\tdiv.setStyle(\"float: right;\");\r\n\t\tSeparator separator = new Separator();\r\n\t\tseparator.setParent(div);\r\n\t\tButton botaoOK = new Button(\"OK\");\r\n\t\tbotaoOK.addEventListener(\"onClick\", new EventListenerOK());\r\n\t\tbotaoOK.setWidth(\"100px\");\r\n\t\tbotaoOK.setStyle(\"margin-right: 5px\");\r\n\t\tbotaoOK.setParent(div);\r\n\t\tButton botaoCancelar = new Button(\"Cancelar\");\r\n\t\tbotaoCancelar.addEventListener(\"onClick\", new EventListenerCancelar());\r\n\t\tbotaoCancelar.setWidth(\"100px\");\r\n\t\tbotaoCancelar.setParent(div);\r\n\t}", "public interface TipoBan {\n\n public void cambiarBan(Usuario u);\n}", "protected void ACTION_B_SELECT(ActionEvent arg0) {\n\t\tchoseInterface();\r\n\t}", "public interface IRobotConvView {\n void setRobotConvList(List<RobotConversation> robotConvList);\n}", "public interface InterfaceB {\n\tpublic String getB1();\n\n\tpublic String getB2();\n}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public interface OnItemClickListener15 {\n void onItemClick(Delivery_Status item);\n}", "public interface ChangedListener {\n\n\n public void onMenuChanged(List<Menu> menus);\n\n}", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public interface NuevoTesauroForm\r\n{\r\n}", "public void iniciarBatalha() {\r\n\t\trede.iniciarPartidaRede();\r\n\t}", "@Override\n public void onBoomButtonClick(int index) {\n }", "public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}", "@Override\n\tpublic void cargarBateria() {\n\n\t}", "public ObservadorMenu(Boton b) {\n boton = b;//inicializa el boton\n boton.setObservador(this); //le añadimos al boton el observador\n }", "public interface BlockListView {\n void showError(String err);\n\n //void showError(int err);\n void showData(ArrayList<Obj> data);\n}", "public interface BranchContract {\n interface Presenter extends BasePresenter {\n void loadBranchStoryAll(boolean isSelect,int level);\n void loadBranchStoryJoin(BranchStoryJoinEntity entity);\n void searchBranchNews(SearchListEntity name);\n }\n\n interface View extends BaseView {\n void onLoadBranchStoryAllSuccess(ArrayList<BranchStoryAllEntity> entities);\n void onLoadBranchStoryJoin();\n void getBranchNewsSuccess(ArrayList<SearchNewListEntity> searchNewLists);\n }\n}", "private void renderObjetos() {\n // Agrego los botones a la barra\n this.rBotones.add(this.btnOK);\n this.rBotones.add(this.btnCancel);\n }", "public interface IMainFragmentView extends IBaseView {\n\n void updateList(boolean result, List<BmobCostYuri> serverList);\n void updateTitleMoney(String result);\n}", "public interface GarisLurus {\r\n \r\n public int hitungGradien();\r\n \r\n}", "public interface IScreenKView {\n void Showbasket();\n void Showfavorite();\n void Showviewall();\n\n\n}", "public interface TypeVehyclesView extends BaseView{\n\n void onSuccessLoadType(List<TypeVehycle> types);\n}", "String getInterfaces();", "public interface IQuotaConversionView extends IBaseView{\n\n void onNoAutoTransferInfo(ConversionInfoBean o);\n\n void onRefreshApis(UserAssert bankCards);\n\n void onTransfersMoney(QuotaConversionBean o);\n\n void onReconnectTransfer(QuotaConversionBean o);\n\n void onRefreshApi(ApiBean o);\n\n void selectedGame(String bankName,int index);\n\n void onRecovery(HttpResult refreshhApis);\n\n}", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "public interface LabelBureauInterface {\n\n /**\n * Tag for the minimal label format.\n */\n public static final int FMT_MINIMAL = 1;\n\n /**\n * Tag for the short label format.\n */\n public static final int FMT_SHORT = 2;\n\n /**\n * Tag for the full label format.\n */\n public static final int FMT_FULL = 3;\n\n /**\n * Tag for the signed label format.\n */\n public static final int FMT_SIGNED = 4;\n\n /**\n * Get this bureau identifier.\n * A bureau should have a uniq String identifier, which is used by the PICS\n * filter to create it (through the LabelBureauFactory), dump it and \n * restore it.\n */\n public String getIdentifier();\n\n /**\n * Get a label service handler, given its identifier.\n * A service identifier is expected to be its URL, as defined in the PICS\n * specification.\n * @param identifier The service URL identifier.\n * @return An object conforming to the LabelServiceInterface, or \n * <strong>null</strong> if none was found.\n */\n public LabelServiceInterface getLabelService(String identifier);\n}", "public interface IBank {\n //办卡\n void applyBank();\n //挂失\n void loseBank();\n //......\n}", "public interface BottomBarButtonClickState {\n public void FindStationButton();\n public void LiveStation();\n public void ResturentButton();\n public void MyProfileButton();\n public void SettingButton();\n}", "public interface DocumentoInternoSinBinarios {\n Long getId();\n Integer getNivel();\n TipoDocumento getTipo();\n String getCodigo();\n}", "public interface I_ShowBlueSend {\n /**蓝牙连接提示*/\n void showMessage(String message);\n}", "public interface IBasePresent {\n\n void getInfoList(String ctl,int pageSize,String open);\n\n void getLoadMoreInfoList(String ctl,int pageSize,String open);\n\n}", "public IFrmListar() {\n initComponents();\n \n }", "public interface VLabAnsByContragentListener\n// extends+ \n\n// extends- \n{\n /**\n * Invoked just before inserting a VLabAnsByContragentBean record into the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be inserted\n */\n public void beforeInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a VLabAnsByContragentBean record is inserted in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just inserted\n */\n public void afterInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be updated\n */\n public void beforeUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just updated\n */\n public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n}", "public interface OnRCVItemClickListener {\n void onRCVItemClick(String keyword);\n}", "public void listar() {\n\t\t\n\t}" ]
[ "0.6282508", "0.62500465", "0.618067", "0.618067", "0.6160586", "0.60982454", "0.5996636", "0.59670234", "0.59635556", "0.5939069", "0.5933412", "0.58897966", "0.5867026", "0.5843223", "0.5833336", "0.5832105", "0.5831348", "0.58301395", "0.5823743", "0.5803952", "0.57939357", "0.5784152", "0.5778005", "0.57747763", "0.57662284", "0.5764492", "0.5764093", "0.5760138", "0.5759318", "0.57552624", "0.57392275", "0.5717695", "0.570336", "0.56924665", "0.5676791", "0.5663817", "0.5652567", "0.5646298", "0.5638135", "0.5635096", "0.5622605", "0.56185913", "0.56080675", "0.56072444", "0.55992806", "0.5587776", "0.55871725", "0.5570662", "0.55684096", "0.5565654", "0.5563888", "0.556325", "0.55609983", "0.556081", "0.5551929", "0.55385065", "0.5531613", "0.5523244", "0.5522418", "0.55222344", "0.5521805", "0.5518525", "0.5516501", "0.55141103", "0.5511648", "0.5495805", "0.5493751", "0.54902774", "0.54880553", "0.5487984", "0.54765177", "0.5474178", "0.5465764", "0.54577875", "0.54554874", "0.5443349", "0.54376596", "0.54348385", "0.54302996", "0.5427041", "0.5425227", "0.542294", "0.54200107", "0.54087687", "0.54065377", "0.5406068", "0.54049754", "0.5397013", "0.5394003", "0.53874755", "0.5382531", "0.5370106", "0.5369489", "0.5369488", "0.5368492", "0.53675854", "0.53642756", "0.5364266", "0.5360747", "0.53536004", "0.5352508" ]
0.0
-1
function to update all persons in network ones
public void updateNetwork(double infectionChance) { Set<Integer> ids = idToPersons.keySet(); List<Integer> list = new ArrayList<Integer>(ids); Collections.shuffle(list); for (int id : list) { idToPersons.get(id).updateState(infectionChance); } //states = getState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateIdentities() {\n // get a list of the internal conversation addresses\n ArrayList<String> addresses = new ArrayList<>();\n for (int i = 0; i < size(); i++)\n addresses.add(get(i).getFromAddress());\n\n // retrieve and set the identities of the internal addresses\n ArrayList<String> identities = retrieveIdentities(addresses);\n for (int i = 0; i < size(); i++)\n get(i).setIdentity(identities.get(i));\n }", "public void updatePerson() {\n\t\tSystem.out.println(\"update person\");\n\t}", "public void update(NetworkNode networkNode);", "@Override\r\n\tpublic void update(Person person) {\n\r\n\t}", "public void update(NodeInfo[] adv) { synchronized (this.nodedb) {\n\t\tlong myhash = ConfigManager.get().nodehash;\n\t\t\n\t\tfor (NodeInfo n : adv) {\n\t\t\tNodeInfo ni = this.nodedb.get(n.nodehash);\n\t\t\tif (ni != null)\t{ // it does exist\n\t\t\t\tif (ni.timestamp >= n.timestamp)\t// does not supersede this information\n\t\t\t\t\tcontinue;\n\t\t\t} else\t\t// discovered new node\n\t\t\t\tSystem.out.format(\"GOSSIP: Discovered new node at %s:%d responsible for %d\\n\",\n\t\t\t\t\t\tn.nodecomms.getAddress().toString(),\n\t\t\t\t\t\tn.nodecomms.getPort(),\n\t\t\t\t\t\tn.nodehash);\n\t\t\t\n\t\t\tif (n.nodehash == myhash) n.isLocal = true;\n\t\t\t// all other cases require an update\n\t\t\tthis.nodedb.put(n.nodehash, n);\n\t\t\tGossipThread.getInstance().replicateNodeInfo(n);\n\t\t}\n\t}}", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tvoid updateNames () {\n\t\tConnection[] connections = server.getConnections();\r\n\t\t\r\n\t\tArrayList<String> names = new ArrayList<>(connections.length);\r\n\t\tfor (int i = connections.length - 1; i >= 0; i--) {\r\n\t\t\tChatConnection connection = (ChatConnection)connections[i];\r\n\t\t\tnames.add(connection.name);\r\n\t\t}\r\n\t\t// Send the names to everyone.\r\n\t\tUpdateNames updateNames = new UpdateNames();\r\n\t\tupdateNames.names = (String[])names.toArray(new String[names.size()]);\r\n\t\tserver.sendToAll(updateNames, true);\r\n\t}", "@Override\r\n\tpublic void update(Person p) \r\n\t{\n\t\t\r\n\t}", "@Test\n public void testUpdateMayors() {\n System.out.println(\"updateMayors\");\n\n Set<City> cities1 = new HashSet<>();\n cities1.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities1.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities1.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities1.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n\n Set<City> cities2 = new HashSet<>();\n City city0 = (new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n city0.setMayor(new User(\"nick2\", \"[email protected]\"));\n cities2.add(city0);\n City city1 = (new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n city1.setMayor(new User(\"nick6\", \"[email protected]\"));\n cities2.add(city1);\n City city2 = (new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n city2.setMayor(new User(\"nick2\", \"[email protected]\"));\n cities2.add(city2);\n City city3 = (new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities2.add(city3);\n city3.setMayor(new User(\"nick8\", \"[email protected]\"));\n\n SocialNetwork sn = new SocialNetwork(sn10.getUsersList(), cities1);\n sn.updateMayors();\n\n List<User> result = new LinkedList<>();\n for (City city : sn.getCitiesList()) {\n result.add(city.getMayor());\n }\n List<User> expResult = new LinkedList<>();\n for (City city : cities2) {\n expResult.add(city.getMayor());\n }\n assertEquals(expResult, result);\n }", "private void updatePeople() {\n \tArrayList<Device> keyfobs = alertMe.retrieveDevices(Device.KEYFOB);\n \tint personCount = 0;\n \tint total = keyfobs.size();\n \tfor(Device keyfob: keyfobs) {\n \t\tif (keyfob.attributes.containsKey(AlertMeConstants.STR_PRESENCE)) {\n \t\t\tString pres = (String) keyfob.attributes.get(AlertMeConstants.STR_PRESENCE);\n \t\t\tif (pres!=null) {\n \t\t\t\tpres = pres.trim().toLowerCase();\n \t\t\tpersonCount += (pres.equals(AlertMeConstants.STR_TRUE))? 1: 0;\n \t\t\t}\n \t\t}\n \t}\n \tupdateScreenPeople(personCount, total);\n }", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }", "@Test\n public void testUpdatePerson() {\n final AuthenticationToken myToken = login(\"[email protected]\", \"finland\");\n final Group memberGroup = findMemberGroup(myToken);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroup.getGroupId());\n groupRequest.setUsersToFetch(FetchGroupRequest.UserFetchType.ACTIVE);\n final FetchGroupResponse groupResponse1 = administration.fetchGroup(myToken, groupRequest);\n assertThat(groupResponse1.isOk(), is(true));\n assertThat(groupResponse1.getMembers().size(), is(1));\n\n // Now, let's update the Object, and send it into the IWS\n final User myself = groupResponse1.getMembers().get(0).getUser();\n final Person person = myself.getPerson();\n final Address address = new Address();\n address.setStreet1(\"Mainstreet 1\");\n address.setPostalCode(\"12345\");\n address.setCity(\"Cooltown\");\n address.setState(\"Coolstate\");\n person.setAddress(address);\n person.setFax(\"My fax\");\n person.setBirthday(new Date(\"01-JAN-1980\"));\n person.setMobile(\"+1 1234567890\");\n person.setGender(Gender.UNKNOWN);\n person.setPhone(\"+1 0987654321\");\n person.setUnderstoodPrivacySettings(true);\n person.setAcceptNewsletters(false);\n myself.setPerson(person);\n final UserRequest updateRequest = new UserRequest();\n updateRequest.setUser(myself);\n final Response updateResult = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResult.isOk(), is(true));\n\n // Let's find the account again, and verify that the updates were applied\n final FetchUserRequest userRequest = new FetchUserRequest();\n userRequest.setUserId(myself.getUserId());\n final FetchUserResponse userResponse = administration.fetchUser(myToken, userRequest);\n assertThat(userResponse.isOk(), is(true));\n final User myUpdate = userResponse.getUser();\n final Person updatedPerson = myUpdate.getPerson();\n assertThat(updatedPerson.getAlternateEmail(), is(person.getAlternateEmail()));\n assertThat(updatedPerson.getBirthday(), is(person.getBirthday()));\n assertThat(updatedPerson.getFax(), is(person.getFax()));\n assertThat(updatedPerson.getGender(), is(person.getGender()));\n assertThat(updatedPerson.getMobile(), is(person.getMobile()));\n assertThat(updatedPerson.getPhone(), is(person.getPhone()));\n assertThat(updatedPerson.getUnderstoodPrivacySettings(), is(person.getUnderstoodPrivacySettings()));\n assertThat(updatedPerson.getAcceptNewsletters(), is(person.getAcceptNewsletters()));\n\n final Address updatedAddress = updatedPerson.getAddress();\n assertThat(updatedAddress.getStreet1(), is(address.getStreet1()));\n assertThat(updatedAddress.getStreet2(), is(address.getStreet2()));\n assertThat(updatedAddress.getPostalCode(), is(address.getPostalCode()));\n assertThat(updatedAddress.getCity(), is(address.getCity()));\n assertThat(updatedAddress.getState(), is(address.getState()));\n\n // Wrapup... logout\n logout(myToken);\n }", "@Override\n public void updateBys() { updateLabelLists(getRTParent().getEntityTagTypes()); fillCommonRelationshipsMenu(); }", "private void updateUserInEvents(Person target, Person editedPerson) {\n for (Event event : versionedAddressBook.getEventList()) {\n boolean changed = event.updatePerson(target, editedPerson);\n if (changed) {\n versionedAddressBook.updateEvent(event, event);\n }\n }\n }", "public void updateClientParty()\n\t{\n\t\tfor(int i = 0; i < getParty().length; i++)\n\t\t\tupdateClientParty(i);\n\t}", "@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}", "public void updateUserLists()\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tcell.updateUserList();\n\t\t}\n\t}", "private void updateMNetwork() {\n\t\t/*\n\t\t Having applied the network inputs, update the brain simulation.\n\t\t */\n\t\tmsimulation.step();\n\t}", "public void updatePersonList(String deadPerson) {\n for (int i = 0; i < config.personList.size(); i++) {\n if (config.personList.get(i).getName().equals(deadPerson)) {\n config.personList.remove(i--);\n if (i < 0) {\n i = 0;\n }\n alivePerson--;\n }\n }\n\n }", "public void updatePerson(){\r\n\r\n // Generally update is performed after search \r\n // need to find out which record is going to update \r\n\r\n if (recordNumber >= 0 && recordNumber < personsList.size())\r\n {\r\n PersonInfo person = (PersonInfo)personsList.get(recordNumber);\r\n\r\n int id = person.getId();\r\n\r\n\t /*get values from text fields*/ \r\n\t name = tfName.getText();\r\n\t address = tfAddress.getText();\r\n\t phone = Integer.parseInt(tfPhone.getText());\r\n email = tfEmail.getText();\r\n\r\n\t /*update data of the given person name*/\r\n\t person = new PersonInfo(id, name, address, phone, email);\r\n pDAO.updatePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Person info record updated successfully.\"); \r\n }\r\n else\r\n { \r\n JOptionPane.showMessageDialog(null, \"No record to Update\"); \r\n }\r\n }", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "@Override\r\n\tpublic void update(List<GroupMember> list) {\n\t\tif(list == null) return;\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t\tupdate(list.get(i));\r\n\t}", "private void update(){\n\t\tIterator it = lList.iterator();\r\n\t\tString out=\"\"; // it used for collecting all members\r\n\t\tint count = 0;\r\n\t\twhile (it.hasNext()){\r\n\t\t\tObject element = it.next();\r\n\t\t\tout += \"\\nPERSON \" + count + \"\\n\";\r\n\t\t\tout += \"=============\\n\";\r\n\t\t\tout += element.toString();\r\n\t\t\t++count;\r\n\t\t}\t\t\r\n\t\toutputArea.setText(out); \r\n\t}", "private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}", "private void broadcast(ArrayList<Integer> update){\n for (Player p : players.values()){\n p.sendModel(update);\n }\n }", "public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }", "private void rebind() {\n\t\tnotaryServers = Client.locateNotaries();\n\t\tconnectToUsers();\n\t\t//lookUpUsers();\n\n\t}", "public void updateUser(Person user) {\n\t\t\n\t}", "public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "public void updated(ServerList list);", "void add_to_network(Town town, List<Town> connectedTowns);", "public void updateFakeEntities() { \n for(ViewableEntity playerEntity : replicatedEntites.values()) {\n playerEntity.update();\n }\n }", "private static void assignMembersOwnersToMemberships(Collection<Object[]> membershipArrays) {\r\n for (Object[] membershipArray : GrouperUtil.nonNull(membershipArrays)) {\r\n assignMemberOwnerToMembership(membershipArray);\r\n } \r\n }", "private void updateText() {\n pers = new PersonManager();\n //Is this every contact or a single person?\n if (this.surnameCombo.isVisible()) {\n if (this.personValid()) {\n Person myPers = getPerson();\n if (pers.getCountryList(myPers).size() > 0) {\n contactModel.removeData();\n contactModel.add(new PersonManager().getCountryList(myPers));\n }\n }\n } else {\n contactModel.removeData();\n contactModel.add(myCountries.getContactedCountryList());\n }\n }", "void updateInformation();", "private void update() {\n for (ArrayList<String> pair: list) {\n String username = pair.get(0);\n String val = pair.get(1);\n ref.child(username).setValue(val);\n }\n }", "private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}", "private static Person updatePerson(Request req) {\n int id = Integer.parseInt(req.params(\"id\"));\n Person personRequested = gson.fromJson(req.body(), Person.class);\n \n // get the data from personRequested keeping the id\n Person personFound = findPersonById(id);\n int index = persons.lastIndexOf(personFound);\n\n personFound = personRequested;\n personFound.setId(id);\n\n persons.set(index, personRequested);\n\n System.out.println(personRequested);\n return personRequested;\n }", "protected abstract void updateInfos();", "public void serviceUpdated(BNode n) {\n }", "@Override\r\n\tpublic void update(Responsible p) {\n\t\t\r\n\t}", "public static void update() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket2 = new ServerSocket(50000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket connection = serverSocket2.accept();\n\n\t\t\t\t\t\tString out = \"\";\n\t\t\t\t\t\tDataOutputStream output = new DataOutputStream(\n\t\t\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\t\t\t\tout += j + \"::\" + b[j].getText() + \" /:\"; // (index,username)\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.writeBytes(out + \"\\n\");\n\t\t\t\t\t\tconnection.close();\n\n\t\t\t\t\t}\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}.start();\n\t}", "public void update(Address a) {\n\r\n\t}", "void update(Member member);", "public void update(PersonEntity person) {\n new Thread(new UpdateRunnable(dao, person)).start();\n }", "int updateNameNmNameLast(String nmNameLast, int idName, int idPerson);", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "public void batchUpdateWeights() {\n\t\tObject[] keys = nextLayerNodes.keySet().toArray();\n\t\tfor (Object key : keys) {\n\t\t\tNode nextLayerNode = (Node) key;\n\t\t\t// System.out.printf(\"Updating weight from %f to %f%n\", nextLayerNodes.get(nextLayerNode), nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble oldWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tnextLayerNodes.put(nextLayerNode, nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble newWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tdouble deltaWeight = oldWeight-newWeight;\n\t\t\tSystem.out.printf(\"Changed from %f to %f%n\", oldWeight, newWeight);\n\t\t\tif (deltaWeight > 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf (\"Increased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t} else if (deltaWeight < 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Decreased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t}\n\t\t}\n\t}", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}", "protected static void updateName(Company company, String newName) {\n String followersString = \"{\";\n for (User follower : company.getFollowersList()) {\n followersString += follower.getUsername() + \",\";\n }\n followersString = Utils.removeStartEndChars(followersString);\n String [] strings = Utils.splitCommas(followersString);\n\n for (String follower : strings) {\n try {\n Connection connection = DriverManager.getConnection(secrets.getUrl(), secrets.getUsername(), secrets.getPassword());\n Statement statement = connection.createStatement();\n String query = String.format(\"SELECT * FROM users WHERE username='%s'\", follower);\n ResultSet result = statement.executeQuery(query);\n\n while (result.next()) {\n String companiesList = result.getString(\"companies\");\n companiesList = Utils.parseString(companiesList);\n String [] companies = Utils.splitCommas(Utils.removeStartEndChars(companiesList));\n companiesList = \"{\";\n\n for (int j=0; j<companies.length; j++) {\n if (companies[j].equals(company.getName())) companies[j] = newName;\n\n companiesList += companies[j] + \",\";\n }\n companiesList = Utils.removeEndChar(companiesList) + \"}\";\n query = String.format(\"UPDATE users SET companies='%s' WHERE username='%s'\", companiesList, follower);\n updateDBWithQuery(query);\n }\n\n // close connection to db\n connection.close();\n } catch (Exception e) {\n e.printStackTrace();\n\n return;\n }\n }\n\n String networksList = \"{\";\n for (Company network : company.getNetworksList()) {\n networksList += network.getName() + \",\";\n }\n\n networksList = Utils.removeStartEndChars(networksList);\n String [] networks = Utils.splitCommas(networksList);\n\n for (String networkName : networks) {\n try {\n Connection connection = DriverManager.getConnection(secrets.getUrl(), secrets.getUsername(), secrets.getPassword());\n Statement statement = connection.createStatement();\n String query = String.format(\"SELECT * FROM companies WHERE name='%s'\", networkName);\n ResultSet result = statement.executeQuery(query);\n\n while (result.next()) {\n String networksNetworksList = result.getString(\"network_list\");\n networksNetworksList = Utils.parseString(networksNetworksList);\n String [] companies = Utils.splitCommas(Utils.removeStartEndChars(networksNetworksList));\n networksNetworksList = \"{\";\n\n for (int j=0; j<companies.length; j++) {\n if (companies[j].equals(company.getName())) companies[j] = newName;\n\n networksNetworksList += companies[j] + \",\";\n }\n networksNetworksList = Utils.removeEndChar(networksNetworksList) + \"}\";\n query = String.format(\"UPDATE companies SET network_list='%s' WHERE name='%s'\", networksNetworksList, networkName);\n updateDBWithQuery(query);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n\n return;\n }\n }\n\n String query = String.format(\"UPDATE companies SET name='%s' WHERE name='%s'\", newName, company.getName());\n updateDBWithQuery(query);\n }", "private void updateOriginalNodesInMirror() {\n for (Node node : originalGraph.nodes()) {\n if (!mirrorGraph.has(node)) {\n mirrorGraph.add(node);\n }\n originalAttributesToMirror(node);\n }\n }", "@Override\r\n\tpublic PersonneDTO updatePersonne(PersonneDTO personneDTO) {\n\t\treturn daoPersonne.updatePersonne(personneDTO);\r\n\t}", "@Override\r\n public boolean update(Person old, Person updated) {\n return false;\r\n }", "public void update() {\n System.out.print(\"What do you want to update? A person, address, house, reunion, \" +\n \"or relationship? \");\n Scanner scan = new Scanner(System.in);\n String toUpdate = scan.nextLine();\n if (toUpdate.equalsIgnoreCase(\"person\")) {\n updatePerson();\n }\n else if (toUpdate.equalsIgnoreCase(\"address\")) {\n updateAddress();\n }\n else if (toUpdate.equalsIgnoreCase(\"house\")) {\n updateHouse();\n }\n else if (toUpdate.equalsIgnoreCase(\"reunion\")) {\n // show all reunions\n this.updateReunion();\n }\n else if (toUpdate.equalsIgnoreCase(\"relationship\")) {\n // show all reunions\n this.updateRelationship();\n }\n }", "private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}", "@Override\n\tpublic int update_all(Object[] party_array) {\n\t\t\n\t\tint res =0;\n\t\tint update=0;\n\t\t\n\t\t\n\t\tfor(int i=0; i<party_array.length;i++)\n\t\t{\n\t\t\tPartyVo vo = (PartyVo)party_array[i];\n\t\t\tupdate = session.update(\"party.update_party_full\",vo);\n\t\t\tres +=update;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn res;\n\t}", "private void updateOwnedShips(JSONObject profile)\n {\n JSONObject ships = Utils.getJsonObject(profile, \"ships\");\n\n for (Object o : ships.keySet())\n {\n String shipId = (String) o;\n\n JSONObject ship = Utils.getJsonObject(ships, shipId);\n\n if (ship != null)\n {\n long cost = getShipCost(ship);\n String shipName = getShipName(ship);\n\n String tmp = \"break;\";\n }\n }\n }", "public void updateOwners() {\n\t\tbuyOrder.getOwner().executedOrder(buyOrder,this);\n\t\tsellOrder.getOwner().executedOrder(sellOrder,this);\n\t}", "public void updateUser(Person person){\n\t\tem.merge(person);\n\t}", "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "@Override\n\tpublic void updateObservateur() {\n\t\tfor (Observateur obs : this.listObservateur)\n\t\t\tobs.update(hour);\n\n\t}", "public static void upsertPerson(NodePerson p) {\n ArangoDatabase db = client.db(dbName);\n db.query(p.upsertAql(vertexColls[1]), null);\n }", "public void updateNetworkWeights(int particleIndex) {\n int x=0;\r\n double[] weights;\r\n // loops through all nodes in first hidden layer, setting weights (there is a weight associated with each input)\r\n for (int j=0; j<layers.get(0); j++) {\r\n weights = new double[numberOfInputs+1];\r\n for (int k=0; k<numberOfInputs+1; k++) {\r\n weights[k] = particles.get(particleIndex).coordinates.get(x);\r\n x++;\r\n }\r\n n.net.get(0).get(j).setWeights(weights);\r\n }\r\n // loops through all nodes in each subesquent layer, setting weights (there is a weight associated with each node from the layer below\r\n for (int i=1; i<layers.size(); i++) {\r\n for (int j=0; j<layers.get(i); j++) {\r\n weights = new double[layers.get(i-1)+1];\r\n for (int k=0; k<layers.get(i-1); k++) {\r\n weights[k] = particles.get(particleIndex).coordinates.get(x);\r\n x++;\r\n }\r\n n.net.get(i).get(j).setWeights(weights);\r\n }\r\n }\r\n \r\n }", "void updatePartnerInfo(int[] partner_ids, int[] enjoyment_gained) {\n\t\tif(single_all_the_way) return;\n\t\tint new_couples = 0;\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(enjoyment_gained[i] == 6){\n\t\t\t\tif(relation[i][partner_ids[i]] != 1) {\n\t\t\t\t\t//arrange destination for newly found couples\t\t\t\t\t\n\t\t\t\t\tPoint des1 = this.pits[this.pits.length - 1 - this.couples_found].pos;\n\t\t\t\t\tPoint des2 = this.pits[this.pits.length - 2 - this.couples_found].pos;\n\t\t\t\t\tdancers[i].des_pos = findNearestActualPoint(des1,des2);\n\t\t\t\t\tdancers[i].pit_id = this.pits.length - 1 - this.couples_found;\n\t\t\t\t\tdancers[partner_ids[i]].des_pos = findNearestActualPoint(des2,des1);\n\t\t\t\t\tdancers[partner_ids[i]].pit_id = this.pits.length - 2 - this.couples_found;\n\t\t\t\t\tthis.connected = false;\n\t\t\t\t\tthis.couples_found += 2;\n\t\t\t\t\tnew_couples += 2;\n\t\t\t\t}\n\t\t\t\trelation[i][partner_ids[i]] = 1;\n\t\t\t\trelation[partner_ids[i]][i] = 1;\n\t\t\t\tdancers[i].soulmate = partner_ids[i];\n\t\t\t}\n\t\t\telse if(enjoyment_gained[i] == 4){\n\t\t\t\trelation[i][partner_ids[i]] = 2;\n\t\t\t}\n\t\t\telse if(enjoyment_gained[i] == 3){\n\t\t\t\trelation[i][partner_ids[i]] = 3;\n\t\t\t}\n\t\t\tdanced[i][partner_ids[i]] += 6;\n\t\t}\n\t\t//if(new_couples != 0) System.out.println(\"new couples: \" + new_couples);\n\t}", "public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}", "public void Update_Person(final String name, final String new_name){\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm bgRealm) {\n\n Person user = bgRealm.where(Person.class).equalTo(\"name\", name).findFirst();\n\n user.setName(new_name);\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n // Original queries and Realm objects are automatically updated.\n //puppies.size(); // => 0 because there are no more puppies younger than 2 years old\n //managedDog.getAge(); // => 3 the dogs age is updated\n }\n });\n }", "public void updateLista(Persona updated, int index) {\r\n\t\t\tlista.update(updated, index);\r\n\t}", "protected abstract void rebuildNetwork(int numNodes);", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "public void mod(AddrBean ad) {\n\t\tString nm = ad.getUsername();\n\t\tfor (AddrBean addrBean : addrlist) {\n\t\t\tif (nm.equals(addrBean.getUsername())) {\n\t\t\t\taddrBean.setEmail(ad.getEmail());\n\t\t\t\taddrBean.setGender(ad.getGender());\n\t\t\t\taddrBean.setTel(ad.getTel());\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void updateExtensionUsingName(String surname, String newNumber) {\n for (int i=0; i<members.size(); i++) {\n if (members.get(i).getSurname().equals(surname)) {\n members.get(i).setExtension(newNumber);\n }\n }\n\n }", "public void updatePerson() {\n\t\tSystem.out.println(\"****Update Record****\");\n\t\tSystem.out.println(\"Enter contact no.\");\n\t\tlong contactSearch = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == contactSearch) {\n\t\t\t\tSystem.out.println(details[i].getFirstName());\n\t\t\t\tSystem.out.println(\"Please select field you need to edit\");\n\t\t\t\tSystem.out.println(\"1. Address\");\n\t\t\t\tSystem.out.println(\"2. City\");\n\t\t\t\tSystem.out.println(\"3. State\");\n\t\t\t\tSystem.out.println(\"4. Zipcode\");\n\t\t\t\tSystem.out.println(\"5. Phone Number\");\n\t\t\t\tint choiceUpdate = sc.nextInt();\n\t\t\t\tswitch (choiceUpdate) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Enter your Address\");\n\t\t\t\t\tString addressUpdate = sc.next();\n\t\t\t\t\tdetails[i].setAddress(addressUpdate);\n\t\t\t\t\tSystem.out.println(\"Address Updated\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"Enter your City \");\n\t\t\t\t\tString cityUpdate = sc.next();\n\t\t\t\t\tdetails[i].setCity(cityUpdate);\n\t\t\t\t\tSystem.out.println(\"City Updated\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Enter your State\");\n\t\t\t\t\tString stateUpdate = sc.next();\n\t\t\t\t\tdetails[i].setState(stateUpdate);\n\t\t\t\t\tSystem.out.println(\"State Updated\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Enter Your Zipcode\");\n\t\t\t\t\tint zipcodeUpdate = sc.nextInt();\n\t\t\t\t\tdetails[i].setZip(zipcodeUpdate);\n\t\t\t\t\tSystem.out.println(\"Zipcode Updated\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"Enter Phone Number\");\n\t\t\t\t\tlong phoneUpdate = sc.nextLong();\n\t\t\t\t\tdetails[i].setPhoneNo(phoneUpdate);\n\t\t\t\t\tSystem.out.println(\"Phone Number Updated\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Update Invalid choive! Enter again..\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void update(Member mem) {\n\t\t\n\t}", "private void updateWeights(Hashtable<NeuralNode, Double> nodeValues, double learnRate, double momentum) {\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\toutput.updateWeights(null, nodeValues, learnRate, momentum);\r\n\t\t}\r\n\t}", "public void updateConnectedPlayers(ArrayList<Player> connectedPlayers) throws RemoteException{\n match.setPlayers(connectedPlayers);\n for (int i=0;i<match.getPlayers().size();i++){\n System.out.println(\"[LOBBY]: Player \"+ match.getPlayers().get(i).getNickname()+ \" is in lobby\");\n }\n System.out.println(\"[LOBBY]: Refreshing Lobby..\");\n Platform.runLater(() -> firstPage.refreshPlayersInLobby());// Update on JavaFX Application Thread\n }", "public List <Person> editUser(List <Person> listOfPerson)\n\t{\n\t System.out.println(\"Enter the First Name you want to make changes in: \");\n\t String fname = Utility.inputString();\n\t for(int i = 0; i < listOfPerson.size(); i++)\n\t {\n\t \tif(listOfPerson.get(i).getFname().equals(fname))\n\t \t{\n\t \t\tPerson temp = listOfPerson.get(i);\n\t do {\n\t\t System.out.println(\"Enter the detail you want to edit: \");\n\t\t System.out.println(\"Enter 1 to edit Last Name: \");\n\t\t System.out.println(\"Enter 2 to edit Address: \");\n\t\t System.out.println(\"Enter 3 to edit City: \");\n\t\t System.out.println(\"Enter 4 to edit State: \");\n\t\t System.out.println(\"Enter 5 to edit Zip code: \");\n\t\t System.out.println(\"Enter 6 to edit Phone Number: \");\n\t\t int choice = Utility.inputInteger();\n\t\t switch(choice)\n\t\t {\n\t\t case 1:\n\t\t\t System.out.println(\"Enter the new Last Name\");\n\t\t\t temp.setLname(Utility.inputString()); \n\t\t\t System.out.println(\"Details saved successfully\");\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t \t System.out.println(\"Enter the New Address\");\n\t\t \t temp.setAddress(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 3:\n\t\t \t System.out.println(\"Enter the New City\");\n\t\t \t temp.setCity(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 4:\n\t\t \t System.out.println(\"Enter the New State\");\n\t\t \t temp.setState(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 5:\n\t\t \t System.out.println(\"Enter the new Zip code\");\n\t\t \t temp.setZip(Utility.inputInteger());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 6:\n\t\t \t System.out.println(\"Enter the New Phone Number\");\n\t\t \t temp.setPhn(Utility.inputLong());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t \t default:\n\t\t \t\t System.out.println(\"Invaild choice\");\n\t\t \t\t break;\n\t\t } \n\t\t listOfPerson.add(temp);\n\t\t return listOfPerson;\n\t }while(Utility.inputBoolean());\n\t }\n\t }\n\t return listOfPerson;\n\t}", "public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }", "public void updateByObject()\r\n\t{\n\t}", "public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "void lookupAndSaveNewPerson();", "private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}", "@Transactional \n\tpublic void updateAll() {\n\t\t\n\t\tIterator<Pharmacy> newList = pharmacyRepository1.getAllEntity().iterator();\n\t\twhile (newList.hasNext()) {\n\t\t\tPharmacy pharmacy = newList.next();\n\t\t\tlistStockInPharmacy(pharmacy);\n\t\t\t}\n\t\t\n\t}", "void nodeUpdated(Node n) throws RepositoryException;", "public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}", "public void updateParticipants(ArrayList<Participant> participants) throws RemoteException{\n if(mainPanel != null)\n mainPanel.updateParticipants(participants);\n }", "private void sendUpdates() {\n\n List<PeerUpdateMessage.Part> parts = new ArrayList<PeerUpdateMessage.Part>();\n for (ActivePlayer peer : player.getSavedNeighbors()) {\n PeerUpdateMessage.Part part = new PeerUpdateMessage.Part(\n peer.character.id, peer.character.getExtrapolatedMotionState());\n parts.add(part);\n }\n\n if (!parts.isEmpty()) {\n PeerUpdateMessage msg = new PeerUpdateMessage(parts);\n new ToClientMessageSink(player.session).sendWithoutConfirmation(msg);\n }\n }", "public void updateServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestInfo();\n pair.getValue().requestPlayers();\n pair.getValue().requestRules();\n }\n }", "public void update() {\r\n for (SGSystem sys : systems.toArray(new SGSystem[0])) {\r\n sys.update();\r\n }\r\n }", "public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "public Person updatePerson(Person pr){\t\n\t\tPerson old_p = new Person(pr.getId());\n\t\tPerson new_p = new Person(pr.getId(), pr.getFirstName(), pr.getLastName(),\n\t\t\t\tpr.getRelationship(),pr.getAddress(),pr.getPhone(),pr.getEmail(),pr.getComment(),pr.getUser_id());\n\t\tSystem.out.println(\"new_p : \" +new_p);\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager();\n\t\ttry {\n\t\t\told_p = PersonDBManager.getInstance().GetPersonByID(con.getConnectionFromPool(), old_p.getId());\n\t\t\tSystem.out.println(\"old_p :\" + old_p);\n\t\t\tif(old_p !=null){\n\t\t\tSystem.out.println(\"second new_p to update :\" +new_p);\n\t\t\tPersonDBManager.getInstance().UpdateAPerson(con.getConnectionFromPool(), new_p);\n\t\t\tExpensesDBManager.getInstance().updatePersonParamOnExpensesTable(con.getConnectionFromPool(),\n\t\t\t\t\tnew_p.getFirstName(), new_p.getLastName(), new_p.getId(), new_p.getUser_id());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"GetPersonByID Not Found\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn old_p;\n\t\t\n\t}", "public IonJoeModifications(List<Graph> pags) {\n for (Graph pag : pags) {\n this.input.add(pag);\n\n }\n for (Graph pag : input) {\n for (Node node : pag.getNodes()) {\n if (!variables.contains(node.getName())) {\n this.variables.add(node.getName());\n }\n }\n for (Triple triple : getAllTriples(pag)) {\n if (pag.isDefNoncollider(triple.getX(), triple.getY(), triple.getZ())) {\n pag.addUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n }\n }\n }", "void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}", "void update(Employee nurse);", "@Transactional\n public abstract void updateNode(OnmsNode node);" ]
[ "0.65415955", "0.64962345", "0.62363553", "0.6194639", "0.6162046", "0.6106044", "0.6071999", "0.6024623", "0.6022322", "0.59785837", "0.5935309", "0.592671", "0.58965063", "0.58698016", "0.57689154", "0.5761705", "0.56965643", "0.5687665", "0.56784636", "0.5663807", "0.5644738", "0.561598", "0.557241", "0.55682874", "0.55651146", "0.55557615", "0.5541018", "0.5534177", "0.5517757", "0.55175245", "0.5515875", "0.5498873", "0.5491489", "0.54893994", "0.548165", "0.5472559", "0.540536", "0.5394471", "0.538532", "0.53790945", "0.5378761", "0.53755355", "0.53730875", "0.5371605", "0.53680885", "0.5367738", "0.53594273", "0.5353464", "0.5352633", "0.5348012", "0.5343161", "0.53283787", "0.532737", "0.5321058", "0.53193825", "0.53135026", "0.53026485", "0.52921754", "0.5276438", "0.5266513", "0.5265972", "0.5258346", "0.52571714", "0.52499473", "0.5249156", "0.5242955", "0.5240046", "0.5236593", "0.52268195", "0.52265793", "0.5218799", "0.5217862", "0.52173674", "0.52062243", "0.520311", "0.51792055", "0.5179049", "0.5173775", "0.51728594", "0.5171846", "0.51632756", "0.5160469", "0.5152791", "0.51519984", "0.51379037", "0.51330805", "0.5132256", "0.51270413", "0.51146775", "0.5111604", "0.51105404", "0.5110127", "0.51087135", "0.5107711", "0.5104673", "0.5092911", "0.50865", "0.50818276", "0.507858", "0.5078486" ]
0.6407718
2
Create a new EntityBundle
public EntityBundleCreate() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}", "Entity createEntity();", "public EntityBundleCreate(JSONObjectAdapter initializeFrom) throws JSONObjectAdapterException {\n\t\tthis();\n\t\tinitializeFromJSONObject(initializeFrom);\n\t}", "T createEntity();", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "void create(E entity);", "protected abstract ENTITY createEntity();", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "void create(T entity);", "protected abstract EntityBase createEntity() throws Exception;", "E create(E entity);", "E create(E entity);", "@POST\n @Path(\"/new\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response createNewBlah(\n BlahPayload entity,\n @Context UriInfo uri,\n @Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final String authorId = BlahguaSession.ensureAuthenticated(request, true);\n if (!BlahguaSession.isAuthenticatedClient(request))\n throw new InvalidAuthorizedStateException();\n entity = getBlahManager().createBlah(LocaleId.en_us, authorId, entity);\n final Response response = RestUtilities.make201CreatedResourceResponse(entity, new URI(uri.getAbsolutePath() + entity.getId()));\n getSystemManager().setResponseTime(CREATE_BLAH_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (InvalidRequestException e) {\n return RestUtilities.make400InvalidRequestResponse(request, e);\n } catch (ResourceNotFoundException e) {\n return RestUtilities.make404ResourceNotFoundResponse(request, e);\n } catch (StateConflictException e) {\n return RestUtilities.make409StateConflictResponse(request, e);\n } catch (InvalidAuthorizedStateException e) {\n return RestUtilities.make401UnauthorizedRequestResponse(request, e);\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "T newTagEntity(String tag);", "public static Bundles initBundleObject(){\n Bundles test_bundle = new Bundles(\"testArtifact\", \"testGroup\", \"1.0.0.TEST\", 1); \n Host test_Host = new Host(\"test1\", 1);\n test_bundle.setHostAssociated(test_Host);\n return test_bundle;\n }", "void create(T entity) throws Exception;", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static RekenmoduleAanvraag createEntity(EntityManager em) {\n RekenmoduleAanvraag rekenmoduleAanvraag = new RekenmoduleAanvraag()\n .rekenmoduleAanvraagFileName(DEFAULT_REKENMODULE_AANVRAAG_FILE_NAME);\n return rekenmoduleAanvraag;\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response createBlah(\n BlahPayload entity,\n @Context UriInfo uri,\n @Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final String authorId = BlahguaSession.ensureAuthenticated(request, true);\n\n entity = getBlahManager().createAdminBlah(LocaleId.en_us, authorId, entity);\n final Response response = RestUtilities.make201CreatedResourceResponse(entity, new URI(uri.getAbsolutePath() + entity.getId()));\n getSystemManager().setResponseTime(CREATE_BLAH_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (InvalidRequestException e) {\n return RestUtilities.make400InvalidRequestResponse(request, e);\n } catch (ResourceNotFoundException e) {\n return RestUtilities.make404ResourceNotFoundResponse(request, e);\n } catch (StateConflictException e) {\n return RestUtilities.make409StateConflictResponse(request, e);\n } catch (InvalidAuthorizedStateException e) {\n return RestUtilities.make401UnauthorizedRequestResponse(request, e);\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\n }", "@Override\n\tprotected Entity createNewEntity(final Object baseObject) {\n\t\tProductAssociation productAssociation = getBean(ContextIdNames.PRODUCT_ASSOCIATION);\n\t\tproductAssociation.setGuid(new RandomGuidImpl().toString());\n\t\tproductAssociation.setCatalog(this.getImportJob().getCatalog());\n\t\treturn productAssociation;\n\t}", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static TypeIntervention createEntity(EntityManager em) {\n TypeIntervention typeIntervention = new TypeIntervention()\n .libelle(DEFAULT_LIBELLE);\n return typeIntervention;\n }", "boolean generateBundle();", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "ID create(T entity);", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }", "private EntityFactory() {}", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "public Persona newEntity(String nome, String cognome) {\n return newEntity(nome, cognome, \"\", \"\", (Address) null);\n }", "public static Bien createEntity(EntityManager em) {\n Bien bien = new Bien()\n .adresse(DEFAULT_ADRESSE)\n .npa(DEFAULT_NPA)\n .localite(DEFAULT_LOCALITE)\n .anneeConstruction(DEFAULT_ANNEE_CONSTRUCTION)\n .nbPieces(DEFAULT_NB_PIECES)\n .description(DEFAULT_DESCRIPTION)\n .photo(DEFAULT_PHOTO)\n .photoContentType(DEFAULT_PHOTO_CONTENT_TYPE)\n .prix(DEFAULT_PRIX);\n return bien;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public AgenteViaHistoricoEntity createRegistro(AgenteViaHistoricoEntity entity)\n {\n LOGGER.log(Level.INFO,\"Inicia proceso de crear un registro\");\n return persistence.create(entity);\n }", "protected void entityInit() {}", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public Entity build();", "void create(Student entity);", "@Override\n public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEntityRecognizer(request);\n }", "@Override\r\n public void onNewBundle(Bundle args) {\r\n super.onNewBundle(args);\r\n\r\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public static SiegeLesions createEntity(EntityManager em) {\n SiegeLesions siegeLesions = new SiegeLesions().typeSiegeDeLesions(DEFAULT_TYPE_SIEGE_DE_LESIONS);\n return siegeLesions;\n }", "public static RADComponent createEntityManager(FormModel model, String puName) throws Exception {\n assert EventQueue.isDispatchThread();\n FileObject formFile = FormEditor.getFormDataObject(model).getFormFile();\n Class<?> emClass = ClassPathUtils.loadClass(\"javax.persistence.EntityManager\", formFile); // NOI18N\n RADComponent entityManager = new RADComponent();\n entityManager.initialize(model);\n entityManager.initInstance(emClass);\n entityManager.getPropertyByName(\"persistenceUnit\").setValue(puName); // NOI18N\n renameComponent(entityManager, false, puName + \"EntityManager\", \"entityManager\"); // NOI18N\n model.addComponent(entityManager, null, true);\n return entityManager;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public static BonCommande createEntity(EntityManager em) {\n BonCommande bonCommande = new BonCommande()\n .numero(DEFAULT_NUMERO)\n .dateEmission(DEFAULT_DATE_EMISSION)\n .dateReglement(DEFAULT_DATE_REGLEMENT)\n .acheteurId(DEFAULT_ACHETEUR_ID);\n return bonCommande;\n }", "T create() throws PersistException;", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public void generate(Object entity) throws AAException;", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Comuna createEntity(EntityManager em) {\n Comuna comuna = new Comuna()\n .nombre(DEFAULT_NOMBRE);\n return comuna;\n }", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "EntityManager createEntityManager();", "@Override public EntityCommand createFromParcel(Parcel source) { return null; }", "public static Book createEntity(EntityManager em) {\n Book book = new Book()\n .bookId(DEFAULT_BOOK_ID)\n .bookName(DEFAULT_BOOK_NAME)\n .bookPrice(DEFAULT_BOOK_PRICE)\n .publisher(DEFAULT_PUBLISHER)\n .language(DEFAULT_LANGUAGE)\n .isbn10(DEFAULT_ISBN_10)\n .isbn13(DEFAULT_ISBN_13)\n .productDimensions(DEFAULT_PRODUCT_DIMENSIONS)\n .shippingWeight(DEFAULT_SHIPPING_WEIGHT)\n .ranking(DEFAULT_RANKING)\n .averageRanking(DEFAULT_AVERAGE_RANKING)\n .author(DEFAULT_AUTHOR)\n .subject(DEFAULT_SUBJECT)\n .bookDescription(DEFAULT_BOOK_DESCRIPTION);\n return book;\n }", "public <T> T initialize(T entity);", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "public NamedEntity() {}", "public static TranslatedName createEntity(EntityManager em) {\n TranslatedName translatedName = new TranslatedName()\n .language(DEFAULT_LANGUAGE)\n .name(DEFAULT_NAME)\n .slug(DEFAULT_SLUG);\n return translatedName;\n }", "public ClaimBundle() {\n }", "public ClassBundle() {\n }", "@Override\n\tpublic void initEntity() {\n\n\t}", "public static SuiviModule createEntity(EntityManager em) {\n SuiviModule suiviModule = new SuiviModule()\n .semestre(DEFAULT_SEMESTRE)\n .descriptif(DEFAULT_DESCRIPTIF)\n .observations(DEFAULT_OBSERVATIONS)\n .date(DEFAULT_DATE)\n .debutCreneau(DEFAULT_DEBUT_CRENEAU)\n .finCreneau(DEFAULT_FIN_CRENEAU)\n .duree(DEFAULT_DUREE);\n return suiviModule;\n }", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "default void create(Iterable<E> entities)\n throws TechnicalException, ConflictException {\n entities.forEach(this::create);\n }", "public static FlowApplicationSequence createEntity(EntityManager em) {\n FlowApplicationSequence flowApplicationSequence = new FlowApplicationSequence()\n .appSequence(DEFAULT_APP_SEQUENCE);\n return flowApplicationSequence;\n }", "public Camp newEntity() { return new Camp(); }", "Article createArticle();", "public FMISComLocal create() throws javax.ejb.CreateException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "protected Object create(Object entity, Class clazz) {\r\n\r\n try {\r\n EntityTransaction transaction = entityManager.getTransaction();\r\n transaction.begin();\r\n entityManager.persist(entity);\r\n transaction.commit();\r\n return entity;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao criar Entidade \" + e.getMessage());\r\n }\r\n return null;\r\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "private Module createModule() throws Exception\n {\n Map headerMap = m_archive.getCurrentRevision().getManifestHeader();\n\n // Create the module instance.\n ModuleImpl module = new ModuleImpl(\n getFramework().getLogger(),\n getFramework().getConfig(),\n getFramework().getResolver(),\n this,\n Long.toString(getBundleId())\n + \".\" + m_archive.getCurrentRevisionNumber().toString(),\n headerMap,\n m_archive.getCurrentRevision().getContent(),\n getFramework().getBundleStreamHandler(),\n getFramework().getBootPackages(),\n getFramework().getBootPackageWildcards());\n\n // Verify that the bundle symbolic name + version is unique.\n if (module.getManifestVersion().equals(\"2\"))\n {\n Version bundleVersion = module.getVersion();\n bundleVersion = (bundleVersion == null) ? Version.emptyVersion : bundleVersion;\n String symName = module.getSymbolicName();\n\n Bundle[] bundles = getFramework().getBundles();\n for (int i = 0; (bundles != null) && (i < bundles.length); i++)\n {\n long id = ((BundleImpl) bundles[i]).getBundleId();\n if (id != getBundleId())\n {\n String sym = bundles[i].getSymbolicName();\n Version ver = ((ModuleImpl)\n ((BundleImpl) bundles[i]).getCurrentModule()).getVersion();\n if ((symName != null) && (sym != null) && symName.equals(sym) && bundleVersion.equals(ver))\n {\n throw new BundleException(\n \"Bundle symbolic name and version are not unique: \"\n + sym + ':' + ver, BundleException.DUPLICATE_BUNDLE_ERROR);\n }\n }\n }\n }\n\n return module;\n }", "public static Provinces createEntity(EntityManager em) {\n Provinces provinces = new Provinces()\n .provinceName(DEFAULT_PROVINCE_NAME);\n // Add required entity\n Countries countryName = CountriesResourceIntTest.createEntity(em);\n em.persist(countryName);\n em.flush();\n provinces.setCountryName(countryName);\n return provinces;\n }", "EntityBeanDescriptor createEntityBeanDescriptor();", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static BII createEntity() {\n BII bII = new BII()\n .name(DEFAULT_NAME)\n .type(DEFAULT_TYPE)\n .biiId(DEFAULT_BII_ID)\n .detectionTimestamp(DEFAULT_DETECTION_TIMESTAMP)\n .sourceId(DEFAULT_SOURCE_ID)\n .detectionSystemName(DEFAULT_DETECTION_SYSTEM_NAME)\n .detectedValue(DEFAULT_DETECTED_VALUE)\n .detectionContext(DEFAULT_DETECTION_CONTEXT)\n .etc(DEFAULT_ETC)\n .etcetc(DEFAULT_ETCETC);\n return bII;\n }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "@Override\n\tpublic boolean create(TagsReq entity) {\n\t\tTags tags = new Tags();\n\t\ttags.setTagName(entity.getTagName());\n\t\tTagsRes.save(tags);\n\t\treturn true;\n\t}", "protected abstract E createEntity(String line);", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static RegistreNaissance createEntity(EntityManager em) {\n RegistreNaissance registreNaissance = new RegistreNaissance()\n .numero(DEFAULT_NUMERO)\n .anneeRegistre(DEFAULT_ANNEE_REGISTRE);\n // Add required entity\n Extrait extrait = ExtraitResourceIntTest.createEntity(em);\n em.persist(extrait);\n em.flush();\n registreNaissance.setExtrait(extrait);\n return registreNaissance;\n }", "protected BundleItem createBundleItem(File calendarServiceObjectFile, File metadataFile, String filename)\n throws Exception {\n\n ServiceDate minServiceDate = null;\n ServiceDate maxServiceDate = null;\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n BundleMetadata meta = null;\n\n meta = mapper.readValue(metadataFile, BundleMetadata.class);\n\n // Convert metadata String Dates to Date Objects\n Date fromDate = new Date(Long.parseLong(meta.getServiceDateFrom()));\n Date toDate = new Date(Long.parseLong(meta.getServiceDateTo()));\n\n // Convert Date Objects to ServiceDate Objects\n minServiceDate = new ServiceDate(fromDate);\n maxServiceDate = new ServiceDate(toDate);\n\n\n } catch (Exception e) {\n _log.error(e.getMessage());\n _log.error(\"Deserialization of metadata.json in local bundle \" + filename + \"; skipping.\");\n throw new Exception(e);\n }\n\n _log.info(\"Found local bundle \" + filename + \" with service range \" +\n minServiceDate + \" => \" + maxServiceDate);\n\n BundleItem bundleItem = new BundleItem();\n bundleItem.setId(filename);\n bundleItem.setName(filename);\n\n bundleItem.setServiceDateFrom(minServiceDate);\n bundleItem.setServiceDateTo(maxServiceDate);\n\n\n\n DateTime lastModified = new DateTime(calendarServiceObjectFile.lastModified());\n\n bundleItem.setCreated(lastModified);\n bundleItem.setUpdated(lastModified);\n\n return bundleItem;\n }", "public static Allegato createEntity(EntityManager em) {\n Allegato allegato = new Allegato()\n .nomeAttachment(DEFAULT_NOME_ATTACHMENT)\n .algoritmoCompressione(DEFAULT_ALGORITMO_COMPRESSIONE)\n .formatoAttachment(DEFAULT_FORMATO_ATTACHMENT)\n .descrizioneAttachment(DEFAULT_DESCRIZIONE_ATTACHMENT)\n .attachment(DEFAULT_ATTACHMENT);\n return allegato;\n }", "public void generate(Object entity, Context ormContext) throws AAException;", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }" ]
[ "0.6681949", "0.66488373", "0.6489961", "0.62103873", "0.6127442", "0.6112449", "0.60845435", "0.6055986", "0.59749997", "0.5896636", "0.58280486", "0.58280486", "0.57774216", "0.5710668", "0.562579", "0.5622142", "0.56189835", "0.56128454", "0.56108457", "0.56108457", "0.5498", "0.5416202", "0.54125184", "0.5391859", "0.53890723", "0.5370651", "0.5361796", "0.5342374", "0.53292197", "0.5318776", "0.5283775", "0.5269624", "0.5266935", "0.5261202", "0.5254644", "0.5227293", "0.5219343", "0.52101445", "0.5209612", "0.52060467", "0.520536", "0.5195793", "0.51732665", "0.5163108", "0.5152768", "0.5150242", "0.5150228", "0.5147633", "0.51333773", "0.51222634", "0.51216054", "0.51181227", "0.51157314", "0.5115135", "0.5107566", "0.5104249", "0.50877357", "0.5084857", "0.50775737", "0.50770223", "0.50761855", "0.5073726", "0.5071758", "0.5052294", "0.50521564", "0.505118", "0.5050025", "0.50477004", "0.50476736", "0.50461584", "0.50397193", "0.5014257", "0.50136554", "0.5011426", "0.5005201", "0.49986732", "0.4987174", "0.49871022", "0.49823135", "0.49754867", "0.49734706", "0.49686897", "0.49657506", "0.49653405", "0.496035", "0.4958587", "0.49585795", "0.49554247", "0.4943627", "0.49382624", "0.49268484", "0.49169374", "0.49148992", "0.490714", "0.49064207", "0.4904094", "0.49007815", "0.49005166", "0.48988852", "0.48950568" ]
0.8049568
0
Create a new EntityBundle and initialize from a JSONObjectAdapter.
public EntityBundleCreate(JSONObjectAdapter initializeFrom) throws JSONObjectAdapterException { this(); initializeFromJSONObject(initializeFrom); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EntityBundleCreate() {}", "@Override\n public X fromJson(EntityManager em, JSONValue jsonValue) {\n final ErraiEntityManager eem = (ErraiEntityManager) em;\n\n Key<X, ?> key = keyFromJson(jsonValue);\n\n X entity = eem.getPartiallyConstructedEntity(key);\n if (entity != null) {\n return entity;\n }\n\n entity = newInstance();\n try {\n eem.putPartiallyConstructedEntity(key, entity);\n for (Attribute<? super X, ?> a : getAttributes()) {\n ErraiAttribute<? super X, ?> attr = (ErraiAttribute<? super X, ?>) a;\n JSONValue attrJsonValue = jsonValue.isObject().get(attr.getName());\n\n // this attribute did not exist when the entity was originally persisted; skip it.\n if (attrJsonValue == null) continue;\n\n switch (attr.getPersistentAttributeType()) {\n case ELEMENT_COLLECTION:\n case EMBEDDED:\n case BASIC:\n parseInlineJson(entity, attr, attrJsonValue, eem);\n break;\n\n case MANY_TO_MANY:\n case MANY_TO_ONE:\n case ONE_TO_MANY:\n case ONE_TO_ONE:\n if (attr instanceof ErraiSingularAttribute) {\n parseSingularJsonReference(entity, (ErraiSingularAttribute<? super X, ?>) attr, attrJsonValue, eem);\n }\n else if (attr instanceof ErraiPluralAttribute) {\n parsePluralJsonReference(entity, (ErraiPluralAttribute<? super X, ?, ?>) attr, attrJsonValue.isArray(), eem);\n }\n else {\n throw new PersistenceException(\"Unknown attribute type \" + attr);\n }\n }\n }\n return entity;\n } finally {\n eem.removePartiallyConstructedEntity(key);\n }\n }", "public abstract void fromJson(JSONObject jsonObject);", "private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public <T> T initialize(T entity);", "@Override\n\tpublic void initEntity() {\n\n\t}", "public static Bundles initBundleObject(){\n Bundles test_bundle = new Bundles(\"testArtifact\", \"testGroup\", \"1.0.0.TEST\", 1); \n Host test_Host = new Host(\"test1\", 1);\n test_bundle.setHostAssociated(test_Host);\n return test_bundle;\n }", "protected void entityInit() {}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "protected abstract JSONObject build();", "public JSONLoader( LoadingManager manager ) {}", "JsonEntity(JSONObject body) throws UnsupportedEncodingException {\n super(body.toString(), HTTP.UTF_8);\n\n this.setContentType(CONTENT_TYPE);\n }", "void initializeEntity(EntityType entity)\n throws IllegalArgumentException, UnsupportedOperationException;", "@Override\n\tpublic void setObjectFromJSON(JSONObject j) throws JSONException{\n\t\tsetID(Integer.parseInt(j.getString(KEY_ID)));\n\t\tsetVehicleID(Integer.parseInt(j.getString(KEY_VEHICLE_IDVEHICLE)));\n\t\tsetItemID(Integer.parseInt(j.getString(KEY_ITEMS_IDITEMS)));\n\t\tsetReceiptID(Integer.parseInt(j.getString(KEY_RECEIPT_IDRECEIPT)));\n\t\tsetMileage(Integer.parseInt(j.getString(KEY_WORKMILEAGE)));\n\t\tsetNotes(j.getString(KEY_WORKNOTES));\n\t\t\n\t}", "public Builder(Entity entity) throws ValidationServiceException {\n\t\t\tthis.entityId = new JsonObject();\n\t\t\tfor (EntityId id : entity.getIds()) {\n\t\t\t\tthis.entityId.getAsJsonObject().addProperty(id.getPrimaryKey(), id.getValue());\n\t\t\t}\n\t\t\tthis.entityType = entity.getType();\n\t\t\tthis.entityLink = entity.getEntityLink();\n\t\t\tthis.resourceVersion = entity.getResourceVersion().orElse(null);\n\t\t\ttry {\n\t\t\t\tmessageDigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\tthrow new ValidationServiceException(ValidationServiceError.MESSAGE_DIGEST_ERROR, e);\n\t\t\t}\n\t\t}", "public JSONLoader() {}", "protected void initializeComponent() throws JSONException {\n }", "private void loadFromBundle() {\n Bundle data = getIntent().getExtras();\n if (data == null)\n return;\n Resource resource = (Resource) data.getSerializable(PARAMETERS.RESOURCE);\n if (resource != null) {\n String geoStoreUrl = data.getString(PARAMETERS.GEOSTORE_URL);\n loadGeoStoreResource(resource, geoStoreUrl);\n }\n\n }", "public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n if(bundle != null){\n //open bundle to set saved instance states\n openBundle(bundle);\n }\n\n mClientItem = mBoss.getClient();\n\n mStrInfo = mActivity.getString(R.string.client_info);\n mStrSchedule = mActivity.getString(R.string.client_schedule);\n mStrHistory = mActivity.getString(R.string.client_history);\n\n }", "public void init(JSONObject config) throws Exception {\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public void buildFromCursor(Cursor cursor) throws JSONException {\n\t\tthis.id = cursor.getString(cursor.getColumnIndex(\"id\"));\n\t\tthis.access_token = cursor.getString(cursor.getColumnIndex(\"access_token\"));\n\t\tthis.service = cursor.getString(cursor.getColumnIndex(\"service\"));\n\t\tthis.action = cursor.getString(cursor.getColumnIndex(\"action\"));\n\t\tthis.create_date = cursor.getString(cursor.getColumnIndex(\"create_date\"));\n\n\t\tthis.objects = new JSONObject(cursor.getString(cursor.getColumnIndex(\"objects\")));\n\t}", "public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}", "public PluginEntity(AdiPluginResources pluginResources, APluginEntityTree pluginEntityTree, String entityURI) {\r\n\t\tthis.pluginResources = pluginResources;\r\n\t\tthis.pluginEntityTree = pluginEntityTree;\r\n\t\tthis.entityURI = entityURI;\r\n\t}", "@Test\n public void fromJson() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(options);\n }", "protected HttpEntity convertToHttpEntity(ClientEntity entity) {\r\n ByteArrayOutputStream output = new ByteArrayOutputStream();\r\n OutputStreamWriter writer = null;\r\n try {\r\n writer = new OutputStreamWriter(output, Constants.UTF8);\r\n final ODataSerializer serializer = odataClient.getSerializer(org.apache.olingo.commons.api.format.ContentType.JSON);\r\n serializer.write(writer, odataClient.getBinder().getEntity(entity));\r\n HttpEntity httpEntity = new ByteArrayEntity(output.toByteArray(),\r\n org.apache.http.entity.ContentType.APPLICATION_JSON);\r\n return httpEntity;\r\n } catch (Exception e) {\r\n throw new HttpClientException(e);\r\n } finally {\r\n IOUtils.closeQuietly(writer);\r\n }\r\n }", "T newTagEntity(String tag);", "public LUISCompositeEntity(JSONObject JSONcompositeEntity) {\n parentType = JSONcompositeEntity.optString(\"parentType\");\n value = JSONcompositeEntity.optString(\"value\");\n children = new ArrayList<>();\n\n JSONArray JSONcompositeEntityChildren = JSONcompositeEntity.optJSONArray(\"children\");\n for (int i = 0; JSONcompositeEntityChildren != null\n && i < JSONcompositeEntityChildren.length(); i++) {\n JSONObject JSONcompositeEntityChild = JSONcompositeEntityChildren.optJSONObject(i);\n if (JSONcompositeEntityChild != null) {\n LUISCompositeEntityChild compositeEntityChild =\n new LUISCompositeEntityChild(JSONcompositeEntityChild);\n children.add(compositeEntityChild);\n }\n }\n }", "public static Asset createEntity(EntityManager em) {\n Asset asset = new Asset()\n .name(DEFAULT_NAME)\n .type(DEFAULT_TYPE)\n .fullPath(DEFAULT_FULL_PATH)\n .comments(DEFAULT_COMMENTS)\n .resourceId(DEFAULT_RESOURCE_ID);\n return asset;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "Entity createEntity();", "public STDataController(Context context, Bundle savedInstanceState) {\n this(context);\n if (savedInstanceState != null) {\n personNames = savedInstanceState.getStringArrayList(\"personNames\");\n personIds = savedInstanceState.getStringArrayList(\"personIds\");\n for (String id : personIds) {\n personPhotos.add(getBitmapFromId(context, id));\n }\n \n ArrayList<String> selectionsStrings = savedInstanceState.getStringArrayList(\"personSelections\");\n for (String selectionsString : selectionsStrings) {\n HashSet<Integer> selections = new HashSet<Integer>();\n if (!selectionsString.equals(\"\")) {\n for (String selection : selectionsString.split(\",\")) {\n selections.add(Integer.valueOf(selection));\n }\n }\n personSelections.add(selections);\n }\n \n menuItemNames = savedInstanceState.getStringArrayList(\"menuItemNames\");\n double[] prices = savedInstanceState.getDoubleArray(\"menuItemPrices\");\n for (double price : prices) {\n menuItemPrices.add(Double.valueOf(price));\n }\n \n tax = savedInstanceState.getDouble(\"tax\");\n tip = savedInstanceState.getDouble(\"tip\");\n } else {\n this.addDefaultPerson();\n }\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "public EntityAdapter(List<String> entityList, Context mContext){\n this.entityList = entityList;\n this.mContext = mContext;\n }", "public static JSONObject loadJSONObjectFromAsset(Context context) {\n String jsonStr = null;\n JSONObject jsonObject = null;\n try {\n //here we need context to access ASSETS --> ANDROID TUTORIAL / codeBlock - Patterns / Application.java\n InputStream is = context.getAssets().open(\"listHomeItem.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n jsonStr = new String(buffer, \"UTF-8\");\n\n jsonObject = new JSONObject(jsonStr);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n return jsonObject;\n }", "protected CategoryModel createFromJSON(JSONObject json, boolean useServer) throws JSONException {\n\t\treturn CategoryModel.fromJSON(json, useServer);\n\t}", "public static Tweet fromJSON(JSONObject jsonObject) throws JSONException{\n Tweet tweet = new Tweet();\n\n //extract the values from JSON\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getLong(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n tweet.tweetId = Long.parseLong(jsonObject.getString(\"id_str\"));\n //tweet.extendedEntities = ExtendedEntities.fromJSON\n return tweet;\n\n }", "Person addPerson(JSONObject person);", "public JSONModel() {\n jo = new JSONObject();\n }", "public static Bien createEntity(EntityManager em) {\n Bien bien = new Bien()\n .adresse(DEFAULT_ADRESSE)\n .npa(DEFAULT_NPA)\n .localite(DEFAULT_LOCALITE)\n .anneeConstruction(DEFAULT_ANNEE_CONSTRUCTION)\n .nbPieces(DEFAULT_NB_PIECES)\n .description(DEFAULT_DESCRIPTION)\n .photo(DEFAULT_PHOTO)\n .photoContentType(DEFAULT_PHOTO_CONTENT_TYPE)\n .prix(DEFAULT_PRIX);\n return bien;\n }", "private <T> HttpEntity createHttpEntityForJson(T body) {\r\n\t\tString dataForEntity;\r\n\t\tif (!(body instanceof String)) {\r\n\t\t\tdataForEntity = gson.toJson(body);\r\n\t\t} else {\r\n\t\t\tdataForEntity = (String) body;\r\n\t\t}\r\n\t\t// try {\r\n\t\treturn new StringEntity(dataForEntity, Charset.forName(\"utf-8\"));\r\n\t\t// } catch (UnsupportedEncodingException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// return null;\r\n\t}", "protected abstract EntityBase createEntity() throws Exception;", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public static SenseiRequest fromJSON(JSONObject json)\n throws Exception\n {\n return fromJSON(json, null);\n }", "public ClaimBundle() {\n }", "@Override\n\tpublic void init(BundleContext context, DependencyManager manager)\n\t\t\tthrows Exception {\n\t\t\n\t}", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "public void fromJSON(String json) throws JSONException;", "public EntityHierarchyItem() {\n }", "protected abstract ENTITY createEntity();", "public ClientDetailsEntity() {\n\t\t\n\t}", "public AudioEntity createFromParcel(Parcel in) {\n AudioEntity audioEntity = new AudioEntity();\n audioEntity.readFromParcel(in);\n return audioEntity;\n }", "@Override\n\tpublic JSONObject readFrom(Class<JSONObject> arg0, Type arg1, Annotation[] arg2, MediaType arg3,\n\t\t\tMultivaluedMap<String, String> arg4, InputStream arg5) throws IOException, WebApplicationException {\n\t\ttry {\n\t\t\treturn new JSONObject(IOUtils.toString(arg5));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public NamedEntity() {}", "public void load(JSONObject obj);", "@Override public EntityCommand createFromParcel(Parcel source) { return null; }", "public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;", "protected Book load(JSONObject from) throws JSONException {\n return null;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "private void initValues(){\n\t\tProduct p = GetMockEnitiy.getProduct();\n\t\t\n\t\tString s = JSONhelper.toJSON(p);\n\t\ttvJSON.setText(s);\n\t\t\n\t}", "@Override\n public void initialize(Object entity) {\n entity.hashCode();\n }", "private void setupJsonAdapter(RestAdapter.Builder builder) {\n Gson gson = new GsonBuilder()\n .setExclusionStrategies(new ExclusionStrategy() {\n @Override\n public boolean shouldSkipField(FieldAttributes f) {\n return false;\n }\n\n @Override\n public boolean shouldSkipClass(Class<?> clazz) {\n return false;\n }\n })\n .excludeFieldsWithoutExposeAnnotation()\n .registerTypeAdapterFactory(new ItemTypeAdapterFactory())\n .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\n .create();\n\n builder.setConverter(new GsonConverter(gson));\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "private Recipe mapToRecipeObject(RecipeEntity recipeEntity) {\n\t\tRecipe recipe = new Recipe();\n\t\t//Map primitive fields\n\t\trecipe.setId(recipeEntity.getId());\n\t\trecipe.setName(recipeEntity.getName());\n\t\trecipe.setType(recipeEntity.getType());\n\t\trecipe.setServingCapacity(recipeEntity.getServingCapacity());\n\t\t\n\t\t//Format creation date time to required format\n\t\tif(recipeEntity.getCreationDateTime() != null)\n\t\t\trecipe.setCDateTimeString(Util.formatDateTime(recipeEntity.getCreationDateTime()));\n\t\trecipe.setCreationDateTime(recipeEntity.getCreationDateTime());\n\t\t\n\t\t//Convert ingredients string into list and set to recipe object \n\t\tlog.debug(\"Ingredients String from DB: \"+recipeEntity.getIngredients());\n\t\tList<Ingredient> ingredientsList = Util.convertJSONStringToIngredientsList(recipeEntity.getIngredients());\n\t\tlog.debug(\"Ingredients List size after conversion: \"+ingredientsList.size());\n\t\trecipe.setIngredientsList(ingredientsList);\n\n\t\trecipe.setInstructions(recipeEntity.getInstructions());\n\n\t\treturn recipe;\n\t}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static Item createItemFromJSON(final JSONObject itemJson) throws JSONException {\n\t\tif (itemJson.getString(\"type\").equals(\"variable\")) {\n\t\t\treturn Helper.createVariableFromJSON(itemJson);\n\t\t} else {\n\t\t\treturn Helper.createLiteralFromJSON(itemJson);\n\t\t}\n\t}", "public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }", "public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}", "public UserFacebookConverter() {\n entity = new UserFacebook();\n }", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "public static void initClient() {\n BundleEvents.register();\n }", "public static JobDetais createEntity(EntityManager em) {\n JobDetais jobDetais = new JobDetais()\n .jobItemPrice(DEFAULT_JOB_ITEM_PRICE)\n .jobItemQty(DEFAULT_JOB_ITEM_QTY);\n return jobDetais;\n }", "protected BundleItem createBundleItem(File calendarServiceObjectFile, File metadataFile, String filename)\n throws Exception {\n\n ServiceDate minServiceDate = null;\n ServiceDate maxServiceDate = null;\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n BundleMetadata meta = null;\n\n meta = mapper.readValue(metadataFile, BundleMetadata.class);\n\n // Convert metadata String Dates to Date Objects\n Date fromDate = new Date(Long.parseLong(meta.getServiceDateFrom()));\n Date toDate = new Date(Long.parseLong(meta.getServiceDateTo()));\n\n // Convert Date Objects to ServiceDate Objects\n minServiceDate = new ServiceDate(fromDate);\n maxServiceDate = new ServiceDate(toDate);\n\n\n } catch (Exception e) {\n _log.error(e.getMessage());\n _log.error(\"Deserialization of metadata.json in local bundle \" + filename + \"; skipping.\");\n throw new Exception(e);\n }\n\n _log.info(\"Found local bundle \" + filename + \" with service range \" +\n minServiceDate + \" => \" + maxServiceDate);\n\n BundleItem bundleItem = new BundleItem();\n bundleItem.setId(filename);\n bundleItem.setName(filename);\n\n bundleItem.setServiceDateFrom(minServiceDate);\n bundleItem.setServiceDateTo(maxServiceDate);\n\n\n\n DateTime lastModified = new DateTime(calendarServiceObjectFile.lastModified());\n\n bundleItem.setCreated(lastModified);\n bundleItem.setUpdated(lastModified);\n\n return bundleItem;\n }", "public JSONUtils() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsuper.Init(mObjHandler, this.getClass().getName());\n\t}", "public Metadata(String _JSONString) {\n mJSONObject = new JSONObject();\n mJSONObject = (JSONObject) JSONValue.parse(_JSONString);\n\n // TODO: Maybe raise a 'malformed json string exception'\n if (mJSONObject == null) {\n \tLOGGER.info(\"Invalid JSON String received. new object was created, but its NULL.\");\n }\n }", "public static TypeIntervention createEntity(EntityManager em) {\n TypeIntervention typeIntervention = new TypeIntervention()\n .libelle(DEFAULT_LIBELLE);\n return typeIntervention;\n }", "private HabitEvent createHabitEventFromBundle(Bundle bundle) {\n AddHabitEventDialogInformationGetter getter =\n new AddHabitEventDialogInformationGetter(bundle);\n String title = getter.getTitle();\n String comment = getter.getComment();\n Location location = getter.getLocation();\n Date date = getter.getDate();\n String eventImage = getter.getImage();\n byte[] decodedByteArray = Base64.decode(eventImage, Base64.URL_SAFE | Base64.NO_WRAP);\n Bitmap image = BitmapFactory.decodeByteArray(decodedByteArray, 0, decodedByteArray.length);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.JPEG, 50, byteArrayOutputStream);\n byte[] byteArray = byteArrayOutputStream.toByteArray();\n String encodedString = Base64.encodeToString(byteArray, Base64.URL_SAFE | Base64.NO_WRAP);\n return new HabitEvent(comment, encodedString, location, date, title, userAccount.getId().toString());\n }", "public JsonFactory() { this(null); }", "T fromJson(Object source);", "public ClaseJson() {\n }", "@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }", "Answerable(JSONObject object) throws JSONFormatException {\n JSONSpec.testObject(jsonSpec, object);\n\n JSONObject definition = (JSONObject) object.get(\"definition\");\n this.name = (String) definition.get(\"name\");\n\n JSONArray questions = (JSONArray) definition.get(\"questions\");\n JSONArray completed = (JSONArray) object.get(\"completed\");\n questions.forEach(question -> addQuestionFromJSON((JSONObject) question));\n completed.forEach(responses -> addCompletedFromJSON((JSONArray) responses));\n }", "protected void init(JSONObject json) throws EInvalidData {\n\t\ttry {\n\t\t\t_id = json.getString(\"id\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No id found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_name = json.getString(\"name\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No name found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_created_at = new Date(json.getLong(\"created_at\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No created_at found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_status = json.getString(\"status\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No status found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash_type = json.getString(\"hash_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash = json.getString(\"hash\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_request = new Date(json.getLong(\"last_request\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_request = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_success = new Date(json.getLong(\"last_success\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_success = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_type = json.getString(\"output_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No output_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_params.clear();\n\t\t\t_output_params.parse(json.getJSONObject(\"output_params\"));\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No valid output_params found\");\n\t\t}\n\t}", "public Bundle toBundle() {\n Bundle bundle = new Bundle();\n bundle.putString(KEY_ID, mId);\n bundle.putInt(KEY_FLAGS, mFlags);\n if (mMetadata != null) {\n bundle.putBundle(KEY_METADATA, mMetadata.toBundle());\n }\n bundle.putString(KEY_UUID, mUUID.toString());\n return bundle;\n }", "public Asset createMinimalAssetForJSON() throws IllegalArgumentException, IllegalAccessException {\n Asset ass = new Asset();\n for (Field f : Asset.class.getDeclaredFields()) {\n if (f.isAnnotationPresent(JSONIncludeForFile.class)) {\n f.set(ass, f.get(this));\n }\n }\n return ass;\n }", "public MinecraftJson() {\n }", "Object toExternal (Object entity, Settings settings);", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}", "public static Horraires createEntity(EntityManager em) {\n Horraires horraires = new Horraires()\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .description(DEFAULT_DESCRIPTION);\n return horraires;\n }", "public static Info createEntity(EntityManager em) {\n Info info = new Info()\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .etablissement(DEFAULT_ETABLISSEMENT);\n return info;\n }", "private void setBundles(Bundle bundle, Intent intent) {\n bundle.putString(getString(R.string.uuid_key), mUserId);\n bundle.putString(getString(R.string.password_key), mPasswordInput.getText().toString());\n intent.putExtra(getString(R.string.uuid_key), mUserId);\n intent.putExtra(getString(R.string.password_key), mPasswordInput.getText().toString());\n }", "@Override\n\tpublic void extend(JSONItem obj)\n\t\t\tthrows ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException,\n\t\t\tIllegalAccessException, IllegalArgumentException, InvocationTargetException, JSONValidationException {\n\n\t\tfor (int i = 0; i < obj.length(); ++i) {\n\t\t\ttry {\n\t\t\t\tJSONItem item = obj.getJSON(i);\n\n\t\t\t\t// extendValidator.validate (item);\n\n\t\t\t\tString clss = item.getString(\"class\");\n\t\t\t\tClass<?> cls = Class.forName(clss);\n\n\t\t\t\tObject instance = null;\n\t\t\t\tif (item.has(\"params\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObject params = item.getJSON(\"params\");\n\t\t\t\t\t\tConstructor<?> ctor = cls.getConstructor(JSONItem.class);\n\t\t\t\t\t\tinstance = ctor.newInstance(params);\n\t\t\t\t\t} catch (JSONValidationException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tConstructor<?> ctor = cls.getConstructor();\n\t\t\t\t\tinstance = ctor.newInstance();\n\t\t\t\t}\n\t\t\t\tString key = item.getString(\"name\");\n\t\t\t\textend(key, instance);\n\t\t\t} catch (JSONValidationException 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}", "@Override\n public void parseJSON(JSONObject jsonObject) {\n if (jsonObject.has(\"business\"))\n try {\n JSONObject businessJsonObject = jsonObject.getJSONObject(\"business\");\n this.businessId = businessJsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"_id\"))\n try {\n this.foodlogiqId = jsonObject.getString(\"_id\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"name\"))\n try {\n this.name = jsonObject.getString(\"name\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"associateWith\"))\n try {\n this.associateWith = jsonObject.getString(\"associateWith\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (jsonObject.has(\"attributes\"))\n try {\n this.attributes = new ArrayList<>();\n JSONArray attributesJson = jsonObject.getJSONArray(\"attributes\");\n for (int i = 0; i < attributesJson.length(); i++) {\n JSONObject attributeJson = attributesJson.getJSONObject(i);\n CustomAttribute attribute = new CustomAttribute();\n attribute.parseJSON(attributeJson);\n this.attributes.add(attribute);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static Quote createQuotesFromJsonObject(JSONObject _jsonObject) throws JSONException {\n //Parse fields\n\n int quotesQuoteId = _jsonObject.getInt(\"QuoteId\");\n int quotesMinPrice = _jsonObject.getInt(\"MinPrice\");\n boolean quotesDirect = _jsonObject.getBoolean(\"Direct\");\n JourneyLeg quotesOutboundLeg = parseJourneyLeg(_jsonObject.getJSONObject(\"OutboundLeg\"));\n JourneyLeg quotesInboundLeg = null;\n if (_jsonObject.has(\"InboundLeg\")) {\n quotesInboundLeg = parseJourneyLeg(_jsonObject.getJSONObject(\"InboundLeg\"));\n }\n String quotesQuoteDateTime = _jsonObject.getString(\"QuoteDateTime\");\n\n //Construct result\n Quote result = new Quote(quotesQuoteId, quotesMinPrice, quotesDirect, quotesOutboundLeg,\n quotesInboundLeg, quotesQuoteDateTime);\n\n return result;\n }", "@Override\r\n\tprotected void onManagedInitialize(final IEntity pEntity) {\r\n\r\n\t}", "public <T> EntityReader<T> newEntityReader(ReadableContext context, EntityType<T> entityType) throws\n UnsupportedMediaType {\n Converter<T, Object> converter = getConverter(context.getMediaType(), entityType.getRawType(),\n entityType.getActualTypeArguments());\n return converter.getFormat().newEntityReader(context, entityType, converter);\n }" ]
[ "0.5990991", "0.58024436", "0.5651081", "0.5558827", "0.54746044", "0.534245", "0.53281397", "0.5255276", "0.52353734", "0.5187156", "0.51612264", "0.5122305", "0.5106344", "0.5051231", "0.50273734", "0.49594027", "0.49125272", "0.49108842", "0.48715293", "0.4864151", "0.48310068", "0.4799732", "0.4794923", "0.47758666", "0.47523892", "0.4741139", "0.47333562", "0.472726", "0.47224995", "0.47151223", "0.4686318", "0.46810877", "0.46753335", "0.46729073", "0.46680972", "0.46567094", "0.46542674", "0.46511558", "0.46467957", "0.46452922", "0.4643734", "0.46410185", "0.46280882", "0.4617702", "0.46124658", "0.46027315", "0.4602692", "0.46021333", "0.45988452", "0.45944086", "0.45837384", "0.4583144", "0.45783392", "0.45726216", "0.4567919", "0.45646346", "0.45579764", "0.45346442", "0.45330817", "0.45329493", "0.45287523", "0.4523558", "0.45183417", "0.45155513", "0.45084193", "0.45032212", "0.44995078", "0.44989964", "0.4491964", "0.4486126", "0.4474", "0.4459577", "0.44594494", "0.4449221", "0.443865", "0.44304186", "0.44290456", "0.4425213", "0.44156456", "0.44139656", "0.44132155", "0.44095597", "0.44014362", "0.43983182", "0.439764", "0.4396162", "0.4395926", "0.4391519", "0.43900776", "0.4389824", "0.4389473", "0.43880314", "0.43828362", "0.43822137", "0.43815628", "0.43675032", "0.4367431", "0.43587685", "0.43576336", "0.43573943" ]
0.7948429
0
Get the Entity in this bundle.
public Entity getEntity() { return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E getEntity() {\n return this.entity;\n }", "public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "public EntityBase getEntity() {\n return entity;\n }", "public org.openejb.config.ejb11.Entity getEntity() {\n return this._entity;\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "public E getEntity();", "protected T getEntity() {\r\n\t\treturn entity;\r\n\t}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public final String getEntity() {\n\t\treturn entity;\n\t}", "public ClassName entity() {\n return ClassName.get(this.getEntityPack(), this.getClassName());\n }", "EntityType getEntity();", "public Entity getComponent() {\n return component;\n }", "public T getSelectedEntity() {\n return selectedEntity;\n }", "public MapEntity getEntity() {\n\t\treturn _entity;\n\t}", "com.google.cloud.videointelligence.v1p2beta1.Entity getEntity();", "public EntityManager getEM() {\n\t\treturn this.entity;\n\t}", "public BE getBukkitEntity() {\n if (!bukkitEntity.isValid()) {\n final BE foundEntity = (BE) EntityUtils.findBy(getKey(), chunk);\n if (foundEntity != null) {\n this.bukkitEntity = foundEntity;\n }\n }\n return bukkitEntity;\n }", "public Entity getEntity(int index){\n return entityList.get(index);\n }", "public AbstractEntity getEntity() {\n if (entityClass == null) {\n return null;\n }\n try {\n AbstractEntity ent = entityClass.newInstance();\n if (value > -1) {\n ent.setSpriteValue(value);\n }\n return ent;\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(CursorInfo.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@XmlTransient\n public UserFacebook getEntity() {\n if (entity.getIdUserFacebook() == null) {\n UserFacebookConverter converter = UriResolver.getInstance().resolve(UserFacebookConverter.class, uri);\n if (converter != null) {\n entity = converter.getEntity();\n }\n }\n return entity;\n }", "public Entity returnEntityHere() {\n \n return entityHere_;\n \n }", "public Entity getEntity(int index)\n\t{\n\t\treturn this.entities.get(index);\n\t}", "public Entity getEntityByName(String name) {\n return this.entity_list_.get(name);\n }", "public String getEntity()\n\t\t{\n\t\t\treturn endpointElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}", "public String getEntityName() {\n return entityName;\n }", "public Bundle getBundle() {\n \t\tcheckValid();\n \n \t\treturn getBundleImpl();\n \t}", "public String getEntity()\n\t\t{\n\t\t\treturn userElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}", "public EntityData getEntityData() {\n return this.entityData;\n }", "@XmlTransient\n public LikesFacebook getEntity() {\n if (entity.getIdLikesFacebook() == null) {\n LikesFacebookConverter converter = UriResolver.getInstance().resolve(LikesFacebookConverter.class, uri);\n if (converter != null) {\n entity = converter.getEntity();\n }\n }\n return entity;\n }", "public IEntity getLeashedEntity() {\n return getEntity(source.getLeashedEntity());\n }", "Entity getEntityById(Long id);", "public Entity getEntity(String name) {\r\n\r\n for (int i = 0; i < entities.size(); i++) {\r\n if (name.equals(entities.get(i).nume)) {\r\n\r\n return entities.get(i);\r\n }\r\n }\r\n return null;\r\n }", "public abstract V getEntity();", "public Git.Entry getObject() { return ent; }", "public EntityPlayerMP getEntity()\n\t{\n\t\tif(isOnline())\n\t\t{\n\t\t\tentity = PlayerManager.getPlayer(name);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tItemInWorldManager itemInWorldManager = new ItemInWorldManager(Server.getServer().worldServerForDimension(0));\n\t\t\tentity = new EntityPlayerMP(Server.getServer(), Server.getServer().worldServerForDimension(0), name, itemInWorldManager);\n\t\t\tServer.getConfigurationManager().readPlayerDataFromFile(entity);\n\t\t}\n\t\treturn entity;\n\t}", "protected final Class<?> getEntityClass() {\n return entityClass;\n }", "public Class<?> getEntityClass() {\r\n\t\treturn entityClass;\r\n\t}", "private Entity ce() {\n return clientgui.getClient().getGame().getEntity(cen);\n }", "public INamedReference<IEntity> getEntityRef();", "protected SourceInterestMap getEntity() {\n EntityManager em = PersistenceService.getInstance().getEntityManager();\n try {\n return (SourceInterestMap) em.createQuery(\"SELECT e FROM SourceInterestMap e where e.id = :id\").setParameter(\"id\", id).getSingleResult();\n } catch (NoResultException ex) {\n throw new WebApplicationException(new Throwable(\"Resource for \" + uriInfo.getAbsolutePath() + \" does not exist.\"), 404);\n }\n }", "@Override\n\tpublic Image loadEntity() {\n\t\ttry {\n\t\t\tImage entityImage = new Image(new FileInputStream(IMAGE_LOCATION));\n\t\t\treturn entityImage;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\treturn null;\n\t\t}\n\t}", "String getEntity();", "String getEntity();", "public LivingEntity getLivingEntity() {\n return eliteMob;\n }", "public Entity get_entity(String uid) {\n for (int layer_id: layer_ent_list.keySet()){\n Entity ent = get_entity(uid, layer_id);\n if (ent!=null){\n return ent;\n }\n }\n return null;\n }", "public E getEntidade() {\n\n\t\treturn this.entidade;\n\t}", "public String getEntity()\n\t{\n\t\treturn conferenceInfo.getAttribute(ENTITY_ATTR_NAME);\n\t}", "public EntityInterface getDynamicExtensionsEntity()\r\n\t{\r\n\t\treturn entityInterface;\r\n\t}", "@Override\r\n\tpublic EntityManager getEntityManger() {\n\t\treturn em;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic AEntityMetaModel<?> getEntityMetaModel() {\r\n\t\tif (null == entityMetaModel) {\r\n\t\t\ttry {\r\n\t\t\t\tString entityMMClassName = pluginResources.getClassName(getEntityKeys()[2], getEntityKeys()[1]);\r\n\t\t\t\tGencodePath gencodePath = pluginResources.getGencodePath();\r\n\t\t\t\tentityMetaModel = (AEntityMetaModel<T>) gencodePath.instantiateClass(gencodePath.getClazz(entityMMClassName, true),\r\n\t\t\t\t\t\tnew Class[] { PluginEntity.class }, new Object[] { this });\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn entityMetaModel;\r\n\t}", "public java.lang.Object getEntityNumber() {\n return entityNumber;\n }", "public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}", "public String getEntityName() {\n\t\treturn entityName;\n\t}", "@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}", "public abstract Object get(String entityName, Serializable id);", "@Override\n\tpublic Serializable getEntity() {\n\t\treturn this.studentcard;\n\t}", "public EntityType getEntity_type() {\n return this.entity_type;\n }", "public Entity getEntity(Entity defaultVal) {\n return get(ContentType.EntityType, defaultVal);\n }", "public Object getObject() {\n return getObject(null);\n }", "public Entity getEntity(Position position) {\n Entity entity = board.getElement(position);\n if (entity != null) {\n return entity.clone();\n }\n return null;\n }", "public int getEntityId ( ) {\n\t\treturn invokeSafe ( \"getEntityId\" );\n\t}", "public EntityMetadata get(String appl, String entityName) {\n return get(appl, entityName, false);\n }", "public static Representation getResourceResponseEntity() {\n return getResourceResponse() == null ? null : getResourceResponse().getEntity();\n }", "protected abstract Serializable getEntity();", "public NativeEntity getSourceEntity() \n\t{\n\treturn fSource;\n\t}", "abstract E getEntityManager();", "public EntityManager getEntityManager() {\n return this.em;\n }", "public abstract Integer getEntity();", "public TEntityType getEntityType() {\n return (TEntityType) this.getElement();\n }", "public Entidad getEntidad() {\n return entidad;\n }", "public SolidifyPackage getEntityPackage() {\n\t\tif (entityPackage == null) {\n\t\t\tentityPackage = new SolidifyPackage(this,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_BUSINESSCLASS,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_BUSINESSCLASS_DISPLAYNAME);\n\t\t\tentityPackage.setStereotype(getStereotype());\n\t\t}\n\t\treturn entityPackage;\n\t}", "@EntityInstance\n public int getInstance(@Entity int entity) {\n return nGetInstance(mNativeObject, entity);\n }", "public Entity getVehicle ( ) {\n\t\treturn extract ( handle -> handle.getVehicle ( ) );\n\t}", "public String getEntityURI() {\r\n\t\treturn entityURI;\r\n\t}", "public String getEntityId() {\r\n\t\treturn EngineTools.getEntityId(getEntityKeys()[2]);\r\n\t}", "com.google.ads.googleads.v14.services.AudienceInsightsEntity getEntity();", "public ArrayList<IMobile> getmEntity() {\r\n\t\treturn this.mEntity;\r\n\t}", "public interface GearyEntity {\n\n /**\n * Get the underlying data holder for this entity.\n */\n PersistentDataHolder getDataHolder();\n\n /**\n * Gets the contained component of type {@code T} or null if this entity does not contain {@code\n * T}\n */\n <T extends Component> T getComponent(Class<T> componentClass);\n\n /**\n * Adds the provided component to this entity. Adding the same type of component a second time\n * overwrites the first one.\n */\n void addComponent(Component component);\n\n /**\n * Removes the component with this type from this entity. Noop if the component is not contained.\n */\n void removeComponent(Class<? extends Component> componentClass);\n\n /**\n * Returns true if this entity has a component with this type.\n */\n boolean hasComponent(Class<? extends Component> componentClass);\n\n /**\n * Gets the ItemStack this entity is attached to, if it exists.\n */\n Optional<ItemStack> getItemStack();\n\n /**\n * Gets this entities UUID.\n */\n UUID getUUID();\n\n /**\n * Gets the entity version this entity was created using.\n */\n long getVersion();\n\n /**\n * Gets the Player this entity is held by, if it exists.\n */\n Optional<Player> getHoldingPlayer();\n\n /**\n * Gets all components within this entity.\n */\n Set<Component> getComponents();\n}", "Note getOneEntity(Long id);", "<T> T get(Class<T> entityClass, Serializable id);", "@Override\n public GameLogEntity readEntity(final GameLogEntity entity) {\n return this.getEntityManager().\n find(GameLogEntity.class, entity.getId());\n }", "@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getEntityClass() {\n \t\treturn getMinecraftClass(\"Entity\");\n \t}", "@Override\n\tpublic EntityDescriptor getEntityDescriptor() {\n\t\ttry {\n\t\t\treturn DAOSystem.getEntityDescriptor(getEntityClass().getName());\n\t\t} catch (ConfigurationException e) {\n\t\t\tthrow new DataAccessException(\"Can not load EntityDescriptor\", e);\n\t\t}\n\t}", "@Override\n public String getEntId() {\n init();\n return entid;\n }", "@Override\n\tpublic Class<Object> getEntityClass() {\n\t\treturn null;\n\t}", "public com.unitedtote.schema.totelink._2008._06.result.PriceEntity getPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public EntityObject getEntityObject(String prefix) {\n\t\tEntityObject r = null;\n\t\tfor (EntityObject eo: entities) {\n\t\t\tif (eo.getInternalValuePrefix().equals(prefix)) {\n\t\t\t\tr = eo;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}", "@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}", "@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}", "public IBasicEntity get(EntityIdentifier entityID) throws CachingException {\n return EntityCachingServiceLocator.getEntityCachingService()\n .get(entityID.getType(), entityID.getKey());\n }", "public Item getItem() {\n return Bootstrap.getInstance().getItemRepository().fetchAll().stream()\n .filter(i -> i.getId() == this.itemId)\n .findFirst().orElse(null);\n }", "@Override\n\tpublic Class<?> getEntityClass() {\n\t\treturn null;\n\t}", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "@Override\n\tpublic Class<E> getEntityClass() {\n\t\treturn null;\n\t}", "private Entity getObjectByObject(final Entity entity){\n\t\tDBProperty dbProperty = entity.getDbProperty();\t\n\t\tEntity result = entity;\n\t\tAbstractDao<Entity> aDao = new AbstractDao<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Class getEntityClass() {\n\t\t\t\t\treturn entity.getClass();\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tresult = aDao.findById(entity.getId());\n\t\t\t} catch (DAOTechnicalException e) {\n\t\t\t\tLOG.debug(e.getMessage());\n\t\t\t}\n\t\t\treturn result;\n\t\t}" ]
[ "0.77452976", "0.77246624", "0.7612421", "0.7594287", "0.7594287", "0.7594287", "0.75526875", "0.7529337", "0.737567", "0.73083335", "0.7278687", "0.72247225", "0.7082409", "0.70753515", "0.6969998", "0.6941074", "0.6840487", "0.66856205", "0.6664377", "0.6580098", "0.6579662", "0.6532793", "0.6453841", "0.64350104", "0.641788", "0.6399946", "0.63751996", "0.6277967", "0.6256789", "0.61744815", "0.616689", "0.6165205", "0.61204356", "0.6120117", "0.61049575", "0.60855204", "0.6085217", "0.6083789", "0.60807884", "0.6077579", "0.60553706", "0.60438204", "0.6043102", "0.6029698", "0.602489", "0.6007147", "0.60033894", "0.60033894", "0.59946597", "0.59673834", "0.5963871", "0.5961694", "0.59533584", "0.5939209", "0.5934302", "0.5899134", "0.58938205", "0.58881235", "0.58681285", "0.58613986", "0.58532727", "0.58331203", "0.5824915", "0.58220184", "0.5808673", "0.5805687", "0.5803386", "0.5801172", "0.5797922", "0.57886964", "0.5777689", "0.5773516", "0.57728213", "0.5758536", "0.5750701", "0.5708068", "0.5702499", "0.5702445", "0.56940925", "0.5693941", "0.5692101", "0.56916744", "0.568721", "0.5681128", "0.5677702", "0.5666367", "0.5631742", "0.5628446", "0.56282985", "0.5618643", "0.56157213", "0.5609879", "0.5604576", "0.56035006", "0.559536", "0.55825925", "0.55803144", "0.5572479", "0.5571564", "0.55703235" ]
0.76432043
2
Set the Entity in this bundle.
public void setEntity(Entity entity) { this.entity = entity; String s = entity.getClass().toString(); // trim "Class " from the above String entityType = s.substring(s.lastIndexOf(" ") + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }", "public void setEntity(String parName, Object parVal) throws HibException;", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "public void setEntity(EntityBase entity) {\n if (((entity != null) && !entity.equals(this.entity)) ||\n ((this.entity != null) && !this.entity.equals(entity))) {\n reset();\n }\n this.entity = entity;\n }", "public void setEntity(String entity) {\n\t\tthis.setEntity(entity, false);\n\t}", "public final void setEntity(final String cEntity) {\n\t\tthis.entity = cEntity;\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setEm(EntityManager em) {\n\t\tthis.entity = em;\n\t}", "@Override\n\tpublic void set(int id, Post entity) {\n\t\t\n\t}", "public void setEntity(String entity)\n\t{\n\t\tif (entity == null || entity.equals(\"\"))\n\t\t\tconferenceInfo.removeAttribute(ENTITY_ATTR_NAME);\n\t\telse\n\t\t\tconferenceInfo.setAttribute(ENTITY_ATTR_NAME, entity);\n\t}", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tendpointElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tendpointElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "public void setEntityId(long entityId);", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tuserElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tuserElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "public void setEntityContext(EntityContext ctx) {\n _ctx = ctx;\n }", "public void setEntity(String name, Class<? extends AbstractEntity> entclass) {\n entityClass = entclass;\n //label.setText(name);\n }", "public void setEntidade(final E entidade) {\n\n\t\tthis.entidade = entidade;\n\t}", "public void set(CoreEntity coreEntity, CoreMorphComponent coreMorphComponent) {\r\n CoreJni.setInCoreMorphComponentManager1(this.agpCptrMorphComponentMgr, this, CoreEntity.getCptr(coreEntity), coreEntity, CoreMorphComponent.getCptr(coreMorphComponent), coreMorphComponent);\r\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }", "public void setEntidad(T entidad) {\r\n this.entidad = entidad;\r\n fillData(entidad);\r\n }", "public void setSelectedItem( final T selectedEntity ) {\n this.selectedEntity = selectedEntity;\n }", "@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }", "public void setEntityBinding(String name, ActiveEntity ent, boolean local) {\n Namespace ns = locateEntityBinding(name, local);\n if (ns == null) {\n if (entities == null && (local || nameContext == null))\n\tentities = new BasicEntityTable();\n ns = getEntities();\n } \n ns.setBinding(name, ent);\n }", "void setOwner(Entity owner);", "public void setEntityId(String entityId) {\n this.entityId = entityId;\n }", "public abstract void setEntityManager(EntityManager em);", "public void setEntity(String entity, boolean add) {\n\t\tif(!add)\n\t\t{\n\t\t\tthis.entities.clear();\n\t\t}\n\t\tthis.entities.add(entity);\n\t}", "public void setEntityContext(final EntityContext ctx) {\n ejbContext = ctx;\n testAllowedOperations(\"setEntityContext\");\n }", "public void setEntityClass(final Class<T> entityClass)\n\t{\n\t\tthis.entityClass = entityClass;\n\t}", "public void setHasEntity(Boolean setTo) {\n \n hasEntity_ = setTo;\n \n }", "public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "@PersistenceContext\r\n public void setEntityManager(EntityManager em) {\r\n this.em = em;\r\n }", "@PersistenceContext\r\n\tpublic void setEntityManager(EntityManager em) {\r\n\t\tthis.em = em;\r\n\t}", "public void setEntityManager(EntityManager em) {\n\t\tthis.em = em;\n\t}", "public void setEntityManager(final EntityManager em) {\n this.em = em;\n }", "@Override\n\tpublic void initEntity() {\n\n\t}", "public void setRequestEntity(RequestEntity entity) {\n assertNotExecuted();\n if(method instanceof PostMethod) {\n ((PostMethod) method).setRequestEntity(entity);\n }\n }", "@Override\n public void setRequestEntity(String entity) {\n setRequestEntity(new StringRequestEntity(entity));\n }", "public void setEntityValue(String name, NodeList value, boolean local) {\n ActiveEntity binding = getEntityBinding(name, local);\n if (binding != null) {\n binding.setValueNodes(this, value);\n } else {\n if (entities == null && (local || nameContext == null))\n\tentities = new BasicEntityTable();\n Tagset ts = this.getTopContext().getTagset();\n getEntities().setBinding(name, ts.createActiveEntity(name, value));\n } \n }", "public void setEntities(ArrayList<Entity> entities) {\n this.entities = entities;\n }", "void setAssociatedObject(IEntityObject relatedObj);", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void setEntities(LazyDataModel<BasicEntity> entities) {\n this.entities = entities;\n }", "public void setPriceEntity(com.unitedtote.schema.totelink._2008._06.result.PriceEntity priceEntity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null)\n {\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().add_element_user(PRICEENTITY$0);\n }\n target.set(priceEntity);\n }\n }", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "public void setEntities(ArrayList<Entity> entities) {\n\t\tthis.entities = entities;\n\t}", "public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }", "@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}", "public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}", "public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}", "private void attachEntity(Usuario entity) {\n }", "public void setEntities(org.LexGrid.concepts.Entities entities) {\n this.entities = entities;\n }", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;\r\n }", "public void updateEntity();", "public void setEntityType(StageableEntity entityType) {\n\t\tthis.entityType = entityType;\n\t}", "protected void entityInit() {}", "public void setUser(UserEntity user) {\n this.user = user;\n }", "public void setSong(SongEntity song)\r\n {\r\n this.song = song;\r\n }", "public void faceEntity(int index) {\n this.setFaceIndex(index);\n this.getFlags().flag(Flag.FACE_ENTITY);\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public void setCliente(ClienteEntity cliente) {\r\n this.cliente = cliente;\r\n }", "@PersistenceContext(unitName=\"microrest-persistence\")\n public void setPersistenceContext(EntityManager em)\n {\n this.em = em;\n }", "public void setEntityHelper(EntityHelper helper) {\n\t\tthis.entityHelper = helper;\n\t}", "public void setEntityNumber(java.lang.Object entityNumber) {\n this.entityNumber = entityNumber;\n }", "public void setEntityManager(AV3DEntityManager entityManager) {\n\t}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public void update(E entity);", "public void Alterar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.merge(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}", "@PersistenceContext(unitName = \"persistenceUnit\", type = PersistenceContextType.TRANSACTION)\n public void setEntityManager(EntityManager entityManager) {\n Helper.checkNull(entityManager, \"entityManager\");\n this.entityManager = entityManager;\n }", "public T setObject(int key, T ob) throws PersistenceException, NullObjectException {\n if(ob == null) {\n throw new NullObjectException(\"Unable to save object. The object passed is null\");\n }\n return (super.setObjectInKey(key, ob));\n }", "public void setEnemy(Enemy enemy){\n this.enemy = enemy;\n enemy.setXGrid(getXGrid());\n enemy.setYGrid(getYGrid());\n setEntity(enemy);\n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "public void entityReference(String name);", "public void setEntityName(String entityName) {\n\t\t\n\t\tthis.entityName = entityName;\n\t}", "final protected void setEntityState(int newState)\n {\n state = newState;\n }", "protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "public void setProduct(entity.APDProduct value);", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "void entityValueChange(String name, String value);", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "@Override\n\tpublic void setObject(TemplateDeDescripcion objeto, int profundidadActual,\n\t\t\tint profundidadDeseada) {\n\n\t}", "public void setEntityName(String entityName) {\n\t\tthis.entityName = entityName;\n\t}", "public void setEntityName(String entityName) {\n\t\tthis.entityName = entityName;\n\t}", "public abstract void setContentObject(Object object);", "void initializeEntity(EntityType entity)\n throws IllegalArgumentException, UnsupportedOperationException;", "public void setEntitystatus(int entitystatus);", "public E getEntity() {\n return this.entity;\n }", "public org.openejb.config.ejb11.Entity getEntity() {\n return this._entity;\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public void setElement(Object e) {\n element = e;\n }", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public <T> T initialize(T entity);", "@Override\r\n public void setObject(ExecutionContext ec, PreparedStatement ps, int[] exprIndex, Object value, DNStateManager ownerSM, int fieldNumber)\r\n {\r\n ApiAdapter api = ec.getApiAdapter();\r\n if (api.isPersistable(value))\r\n {\r\n // Assign a StateManager to the serialised object if none present\r\n DNStateManager embSM = ec.findStateManager(value);\r\n if (embSM == null || api.getExecutionContext(value) == null)\r\n {\r\n embSM = ec.getNucleusContext().getStateManagerFactory().newForEmbedded(ec, value, false, ownerSM, fieldNumber, PersistableObjectType.EMBEDDED_PC);\r\n }\r\n }\r\n\r\n DNStateManager sm = null;\r\n if (api.isPersistable(value))\r\n {\r\n // Find SM for serialised PC object\r\n sm = ec.findStateManager(value);\r\n }\r\n\r\n if (sm != null)\r\n {\r\n sm.setStoringPC();\r\n }\r\n getColumnMapping(0).setObject(ps, exprIndex[0], value);\r\n if (sm != null)\r\n {\r\n sm.unsetStoringPC();\r\n }\r\n }", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}" ]
[ "0.747561", "0.7139193", "0.7061833", "0.6868596", "0.6843529", "0.6595692", "0.6478199", "0.6416444", "0.64108986", "0.6376406", "0.6341988", "0.6311947", "0.63020754", "0.62939215", "0.6272553", "0.6203309", "0.61152697", "0.6081097", "0.6081097", "0.6081097", "0.6081097", "0.6063493", "0.6039132", "0.6016098", "0.60126823", "0.5998907", "0.5974564", "0.5970853", "0.5907842", "0.5902426", "0.5850357", "0.584994", "0.5842817", "0.5795365", "0.5795365", "0.5795365", "0.5784667", "0.57636005", "0.5758222", "0.5738046", "0.5717419", "0.5716439", "0.57140636", "0.5653312", "0.56307703", "0.55839753", "0.5574615", "0.55737185", "0.5567319", "0.55663884", "0.55329615", "0.5526757", "0.5523913", "0.55204207", "0.55204207", "0.5507611", "0.5498722", "0.5490275", "0.54865676", "0.5477281", "0.547348", "0.5450499", "0.5413163", "0.54034764", "0.540143", "0.53972834", "0.5394201", "0.5377283", "0.5353624", "0.53517216", "0.5350439", "0.5347878", "0.5332752", "0.5331153", "0.53238297", "0.5313815", "0.5308628", "0.5277386", "0.5259023", "0.5230692", "0.52294505", "0.521849", "0.52012974", "0.51918894", "0.5176779", "0.5171618", "0.5162393", "0.51595", "0.51595", "0.5157662", "0.51518285", "0.514001", "0.51386833", "0.5136917", "0.513328", "0.5133031", "0.5126108", "0.5119126", "0.5111264", "0.51093525" ]
0.6884044
3
Get the Annotations for the Entity in this bundle.
public Annotations getAnnotations() { return annotations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}", "public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }", "public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "DataMap getCustomAnnotations();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeExpression != null && typeExpression instanceof J.AnnotatedType) {\n allAnnotations.addAll(((J.AnnotatedType) typeExpression).getAnnotations());\n }\n return allAnnotations;\n }", "public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}", "Set<String> annotations();", "public String getAnnotation();", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeParameters != null) {\n allAnnotations.addAll(typeParameters.getAnnotations());\n }\n if (returnTypeExpression instanceof AnnotatedType) {\n allAnnotations.addAll(((AnnotatedType) returnTypeExpression).getAnnotations());\n }\n allAnnotations.addAll(name.getAnnotations());\n return allAnnotations;\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n allAnnotations.addAll(kind.getAnnotations());\n return allAnnotations;\n }", "public Annotation getAnnotation() {\n return annotation;\n }", "public abstract Annotations getClassAnnotations();", "public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }", "Annotation getAnnotation();", "<T extends Annotation> IList<Object> getAnnotatedObjects(Class<T> type);", "@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }", "public List<String> getAnnotations() {\n return applicationIdentifiers;\n }", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public String getAnnotation () {\n return annotation;\n }", "@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}", "public String getAnnotation() {\n return annotation;\n }", "public org.tigr.microarray.mev.cgh.CGHDataObj.ICGHDataRegion[][] getAnnotations();", "public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}", "public AnnotationLocation getAnnotationLocation() {\n return annotationLocation;\n }", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "public List<AnnotationVertex> getAllAnnotations() {\n final List<AnnotationVertex> annotations = new ArrayList<>();\n annotations.addAll(getAnnotations());\n getParentMethod().ifPresent(m -> annotations.addAll(m.getAnnotations()));\n getParentClass().ifPresent(c -> annotations.addAll(c.getAllAnnotations()));\n return annotations;\n }", "public String[] getAllFilledAnnotationFields();", "com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata();", "public List<AnnotationVertex> getAnnotations() {\n return previousLineAnnotations.get();\n }", "public static Map<String, String> annotations(HasMetadata resource) {\n return annotations(resource.getMetadata());\n }", "public List<Annotation> getMembers();", "@Override\n\tpublic Annotation[] getDeclaredAnnotations() {\n\t\treturn null;\n\t}", "String[] getSupportedAnnotationPackages();", "@Override\n\tpublic List<String> getAllAuditedEntitiesNames() {\n\t\tif (this.allAuditedEntititesNames != null) {\n\t\t\t// return this.allAuditedEntititesNames;\n\t\t}\n\t\t//\n\t\tList<String> result = new ArrayList<>();\n\t\tSet<EntityType<?>> entities = entityManager.getMetamodel().getEntities();\n\t\tfor (EntityType<?> entityType : entities) {\n\t\t\tif (entityType.getJavaType() == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// get entities methods and search annotation Audited in fields.\n\t\t\tif (getAuditedField(entityType.getJavaType().getDeclaredFields())) {\n\t\t\t\tresult.add(entityType.getJavaType().getCanonicalName());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//\n\t\t\t// TODO: add some better get of all class annotations\n\t\t\tAnnotation[] annotations = null;\n\t\t\ttry {\n\t\t\t\tannotations = entityType.getJavaType().newInstance().getClass().getAnnotations();\n\t\t\t} catch (InstantiationException | IllegalAccessException e) {\n\t\t\t\t// class is not accessible\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// entity can be annotated for all class\n\t\t\tif (getAuditedAnnotation(annotations)) {\n\t\t\t\tresult.add(entityType.getJavaType().getCanonicalName());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// sort entities by name\n\t\tCollections.sort(result);\n\t\t//\n\t\tthis.allAuditedEntititesNames = result;\n\t\treturn result;\n\t}", "com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder\n getAnnotationMetadataOrBuilder();", "@Override\n protected Annotations extractAnnotations(ObjectNode deviceNode, CodecContext context) {\n ObjectNode annotationsNode = get(deviceNode, \"annotations\");\n if (annotationsNode != null) {\n // add needed fields to the annotations of the Device object\n if (deviceNode.get(AVAILABLE) != null) {\n annotationsNode.put(AVAILABLE, deviceNode.get(AVAILABLE).asText());\n }\n return context.codec(Annotations.class).decode(annotationsNode, context);\n } else {\n return DefaultAnnotations.EMPTY;\n }\n }", "int getAnnotationCount();", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public Vector getSampleAnnotationFieldNames();", "public List<AnnotationInfo> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public List<AnnotationInfoList> getSuffixTypeAnnotationInfo() {\n return suffixTypeAnnotations;\n }", "@Override\n\tpublic int getNbAnnotations() {\n\t\treturn annotationSetItem.getNbAnnotationItems();\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "Set<? extends Class<? extends Annotation>> annotations();", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation> \n getLabelAnnotationsList();", "@Override\n\tpublic AnnotationSetItem getAnnotationSetItem() {\n\t\treturn annotationSetItem;\n\t}", "public java.util.List<Annotation> note() {\n return getList(Annotation.class, FhirPropertyNames.PROPERTY_NOTE);\n }", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>\n getLabelAnnotationsList();", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation> \n getObjectAnnotationsList();", "public Framework_annotation<T> build_annotation();", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public java.util.List<Annotation> note() {\n return getList(Annotation.class, FhirPropertyNames.PROPERTY_NOTE);\n }", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "java.util.List<? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> \n getLabelAnnotationsOrBuilderList();", "public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }", "private List<EntityAnnotation> sciGraphAnnotate(String text) throws AnnotationException\n {\n List<EntityAnnotation> entities;\n try {\n StringReader reader = new StringReader(text);\n EntityFormatConfiguration.Builder builder = new EntityFormatConfiguration.Builder(reader);\n builder.includeCategories(CATEGORIES);\n builder.longestOnly(false);\n builder.includeAbbreviations(false);\n builder.includeAncronyms(false);\n builder.includeNumbers(false);\n entities = wrapper.annotate(builder.get());\n } catch (IOException e) {\n throw new AnnotationException(e.getMessage());\n }\n return entities;\n }", "@PropertyGetter(role = ANNOTATION)\n\t<A extends Annotation> CtAnnotation<A> getAnnotation(\n\t\t\tCtTypeReference<A> annotationType);", "public static Map<String, String> annotations(PodTemplateSpec podSpec) {\n return annotations(podSpec.getMetadata());\n }", "public org.LexGrid.concepts.Entities getEntities() {\n return entities;\n }", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "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}", "@SuppressWarnings(\"unchecked\")\n public <A extends Annotation> A[] getAnnotationsByType(AnnotationBinding[] annoInstances, Class<A> annotationClass) {\n A[] result = getAnnotations(annoInstances, annotationClass, false);\n return result == null ? (A[]) Array.newInstance(annotationClass, 0) : result;\n }", "@Internal\n @NonNull\n AbstractAnnotationMetadataBuilder<?, ?> getAnnotationMetadataBuilder();", "java.util.List<? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>\n getLabelAnnotationsOrBuilderList();", "java.util.List<? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> \n getShotAnnotationsOrBuilderList();", "public String\n getAnnotationName() \n {\n return pAnnotationName;\n }", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.VideoSegment> \n getShotAnnotationsList();", "public final List<EAnnotation> annotations() throws RecognitionException {\n List<EAnnotation> anns = null;\n\n\n EAnnotation e = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:761:5: ( ^( ANNOTATIONS (e= annotation )* ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:762:5: ^( ANNOTATIONS (e= annotation )* )\n {\n\n anns = new ArrayList();\n\n\n match(input, ANNOTATIONS, FOLLOW_ANNOTATIONS_in_annotations2293);\n\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // parser/flatzinc/FlatzincFullExtWalker.g:765:23: (e= annotation )*\n loop50:\n do {\n int alt50 = 2;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt50 = 1;\n }\n break;\n\n }\n\n switch (alt50) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:765:24: e= annotation\n {\n pushFollow(FOLLOW_annotation_in_annotations2298);\n e = annotation();\n\n state._fsp--;\n\n\n anns.add(e);\n\n }\n break;\n\n default:\n break loop50;\n }\n } while (true);\n\n\n match(input, Token.UP, null);\n }\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return anns;\n }", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>\n getObjectAnnotationsList();", "public List<EntityMapping> entityMappings() {\n return this.innerProperties() == null ? null : this.innerProperties().entityMappings();\n }", "public org.chartacaeli.model.AnnotationStraight[] getAnnotationStraight() {\n org.chartacaeli.model.AnnotationStraight[] array = new org.chartacaeli.model.AnnotationStraight[0];\n return this.annotationStraightList.toArray(array);\n }", "java.util.List<? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder> \n getObjectAnnotationsOrBuilderList();", "@NotNull\r\n Entity[] getEntities();", "int getAnnotationsLimit();", "<E extends CtElement> List<E> getAnnotatedChildren(\n\t\t\tClass<? extends Annotation> annotationType);", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "public String[] getAnnotationList(String annotationKeyType);", "private int checkAllEntityAnnotations(MGraph g) {\n Iterator<Triple> entityAnnotationIterator = g.filter(null,\n RDF_TYPE, ENHANCER_ENTITYANNOTATION);\n int entityAnnotationCount = 0;\n while (entityAnnotationIterator.hasNext()) {\n UriRef entityAnnotation = (UriRef) entityAnnotationIterator.next().getSubject();\n // test if selected Text is added\n checkEntityAnnotation(g, entityAnnotation);\n entityAnnotationCount++;\n }\n return entityAnnotationCount;\n }", "int getObjectAnnotationsCount();", "int getObjectAnnotationsCount();", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_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 (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "java.util.List<com.google.cloud.videointelligence.v1p3beta1.VideoSegment>\n getShotAnnotationsList();", "java.util.List<? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>\n getShotAnnotationsOrBuilderList();", "boolean hasAnnotationMetadata();", "AnnotationProvider getClassAnnotationProvider();", "java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> \n getAnnotationList();", "public interface Annotator {\n\n\t/**\n\t * @param pamDataBlock Annotated datablock\n\t * @return the number of annotations\n\t */\n\tpublic int getNumAnnotations(PamDataBlock pamDataBlock);\n\t\n\t/**\n\t * Get an Annotation\n\t * @param pamDataBlock Annotated datablock\n\t * @param iAnnotation annotation number\n\t * @return Annotation\n\t */\n\tpublic Annotation getAnnotation(PamDataBlock pamDataBlock, int iAnnotation);\n}", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "public abstract Annotations mo30682c();", "public SolidifyPackage getAnnotationPackage() {\n\t\tif (annotationPackage == null) {\n\t\t\tannotationPackage = new SolidifyPackage(this,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_ANNOTATION,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_ANNOTATION_DISPLAYNAME);\n\t\t\tannotationPackage.setStereotype(getStereotype());\n\t\t}\n\t\treturn annotationPackage;\n\t}", "public interface ISVNAnnotations {\n\n\t/**\n\t * Get the date of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return date of last change\n\t */\n\tpublic abstract Date getChanged(int lineNumber);\n\n\t/**\n\t * Get the revision of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the revision of last change\n\t */\n\tpublic abstract long getRevision(int lineNumber);\n\n\t/**\n\t * Get the author of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the author of last change or null\n\t */\n\tpublic abstract String getAuthor(int lineNumber);\n\n\t/**\n\t * Get the content (line itself) of the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the line content\n\t */\n\tpublic abstract String getLine(int lineNumber);\n\n\t/**\n\t * Get an input stream providing the content of the file being annotated.\n\t * \n\t * @return an inputstream of the content of the file\n\t */\n\tpublic abstract InputStream getInputStream();\n\n\t/**\n\t * Get the number of annotated lines\n\t * \n\t * @return number of lines of file being annotated\n\t */\n\tpublic abstract int numberOfLines();\n}" ]
[ "0.7222245", "0.6900468", "0.68609005", "0.6671639", "0.6610458", "0.65504014", "0.65153617", "0.64512", "0.64355576", "0.63783485", "0.6354708", "0.6337083", "0.63139355", "0.6271566", "0.62517226", "0.6235617", "0.61987746", "0.618424", "0.6158214", "0.6144501", "0.6128284", "0.61153436", "0.6078833", "0.6054955", "0.60027474", "0.5970333", "0.596976", "0.59539783", "0.5929199", "0.58663815", "0.5824281", "0.57471335", "0.5729556", "0.57069564", "0.56476164", "0.5641687", "0.5639635", "0.5615024", "0.557979", "0.55621517", "0.55502385", "0.54593444", "0.54296666", "0.5423393", "0.5420548", "0.54192764", "0.53974897", "0.5384021", "0.5378625", "0.5377072", "0.5348473", "0.5332502", "0.53258145", "0.53224206", "0.53151745", "0.5261057", "0.5258809", "0.5252455", "0.52455217", "0.5227877", "0.52273613", "0.5208591", "0.5193605", "0.51925904", "0.51866794", "0.5185937", "0.5177072", "0.51708806", "0.51621604", "0.51542634", "0.51256794", "0.512049", "0.51181716", "0.5116615", "0.5115882", "0.5114217", "0.510409", "0.5101117", "0.51011115", "0.5097099", "0.509631", "0.50889313", "0.5086243", "0.5042296", "0.5036739", "0.503228", "0.50322145", "0.49904516", "0.49904516", "0.4988607", "0.49798873", "0.49797368", "0.49727818", "0.49595034", "0.4955814", "0.49524328", "0.4944679", "0.4932248", "0.49320194", "0.49179366" ]
0.7101485
1
Set the Annotations for this bundle. Should correspond to the Entity in the bundle.
public void setAnnotations(Annotations annotations) { this.annotations = annotations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public Builder setAnnotations(final Annotations value) {\n _annotations = value;\n return this;\n }", "Set<String> annotations();", "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}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_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 (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_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 (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_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 (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_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 (getPerformanceNote_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 (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_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 (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "protected void createMimoentframeAnnotations() {\n\t\tString source = \"mimo-ent-frame\";\n\t\taddAnnotation\n\t\t (invoiceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContactMechEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Contact Mechanism\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceContentTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Association\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemAssocTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceItemTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Item Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"dictionary\", \"AccountingEntityLabels\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (invoiceTypeAttrEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Invoice Type Attribute\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t}", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);", "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}", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "DataMap getCustomAnnotations();", "Set<? extends Class<? extends Annotation>> annotations();", "public void onAnnotationsModified(Map<Annot, Integer> annots, Bundle extra) {\n/* 348 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 354 */ JSONObject result = prepareAnnotSnapshot(annots, AnnotAction.MODIFY, this.mPreModifyAnnotRect, this.mPreModifyPageNum);\n/* 355 */ this.mPreModifyAnnotRect = null;\n/* 356 */ takeAnnotSnapshot(result);\n/* 357 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 358 */ this.mToolManager.getAnnotManager().onLocalChange(\"modify\");\n/* */ }\n/* */ }", "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_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 (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\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 (getPartySkill_SkillLevel(),\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 (getPartySkill_YearsExperience(),\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 (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_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 (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_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 (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_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 (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_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 (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "public abstract Annotations getClassAnnotations();", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.edu.jhu.cvrg.waveform.main.dbpersistence.model.AnnotationInfo\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AnnotationInfo>> listenersList = new ArrayList<ModelListener<AnnotationInfo>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AnnotationInfo>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void set(int start, int end, ReadableStringMap<V> annotations,\n ReadableStringMap<V> diffFromPrevious) {\n Preconditions.checkPositionIndexes(start, end, Integer.MAX_VALUE);\n Preconditions.checkNotNull(annotations, \"annotations must not be null\");\n Preconditions.checkNotNull(diffFromPrevious, \"diffFromPrevious must not be null\");\n if (start >= end) {\n throw new IllegalArgumentException(\"Attempt to set AnnotationInterval to zero length\");\n }\n this.start = start;\n this.end = end;\n this.annotations = annotations;\n this.diffFromLeft = diffFromPrevious;\n }", "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}", "@Override\n\tpublic AnnotationSetItem getAnnotationSetItem() {\n\t\treturn annotationSetItem;\n\t}", "protected void createMimoentframeAnnotations() {\n\t\tString source = \"mimo-ent-frame\";\n\t\taddAnnotation\n\t\t (partyQualEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Party Qualification\"\n\t\t });\n\t\taddAnnotation\n\t\t (partyQualTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Party Qualification Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (partyResumeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Resume\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfRatingTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Rating Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Employee Performance Review\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewItemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Review Item\"\n\t\t });\n\t\taddAnnotation\n\t\t (perfReviewItemTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"title\", \"Performance Review Item Type\",\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (responsibilityTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (skillTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (trainingClassTypeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"formula\", \"description\"\n\t\t });\n\t}", "protected void createMimoentslotconstraintsAnnotations() {\n\t\tString source = \"mimo-ent-slot-constraints\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceStatuses(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"statusDate\", \"*NOW\"\n\t\t });\n\t}", "private void addEntityViews(TextAnnotation ta, ACEDocumentAnnotation docAnnotation, File file) {\n SpanLabelView entityView =\n new SpanLabelView(ViewNames.MENTION_ACE,\n ACEReader.class.getCanonicalName(), ta, 1.0f, true);\n CoreferenceView corefHeadView =\n new CoreferenceView(ViewNames.COREF_HEAD, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n CoreferenceView corefExtentView =\n new CoreferenceView(ViewNames.COREF_EXTENT, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n\n for (ACEEntity entity : docAnnotation.entityList) {\n List<Constituent> corefMentions = new ArrayList<>(docAnnotation.entityList.size());\n List<Constituent> corefMentionHeads = new ArrayList<>(docAnnotation.entityList.size());\n\n for (ACEEntityMention entityMention : entity.entityMentionList) {\n int extentStartTokenId =\n ta.getTokenIdFromCharacterOffset(entityMention.extentStart);\n int extentEndTokenId = ta.getTokenIdFromCharacterOffset(entityMention.extentEnd);\n\n if (extentStartTokenId < 0 || extentEndTokenId < 0\n || extentStartTokenId > extentEndTokenId + 1) {\n logger.error(\"Incorrect Extent Token Span for mention - \" + entity.id + \" \"\n + entityMention.id);\n continue;\n }\n\n Constituent extentConstituent =\n new Constituent(entity.type, ViewNames.MENTION_ACE, ta, extentStartTokenId, extentEndTokenId + 1);\n extentConstituent.addAttribute(EntityTypeAttribute, entity.type);\n extentConstituent.addAttribute(EntityIDAttribute, entity.id);\n extentConstituent.addAttribute(EntityMentionIDAttribute, entityMention.id);\n extentConstituent.addAttribute(EntityMentionTypeAttribute, entityMention.type);\n extentConstituent.addAttribute(EntityClassAttribute, entity.classEntity);\n\n String entitySubType = (entity.subtype != null) ? entity.subtype : entity.type;\n extentConstituent.addAttribute(EntitySubtypeAttribute, entitySubType);\n\n if (entityMention.ldcType != null) {\n extentConstituent.addAttribute(EntityMentionLDCTypeAttribute, entityMention.ldcType);\n }\n\n // ACE Annotation have character offsets inclusive of start/end.\n // Converting them to a one-after-then-end.\n extentConstituent.addAttribute(EntityHeadStartCharOffset, entityMention.headStart + \"\");\n extentConstituent.addAttribute(EntityHeadEndCharOffset, entityMention.headEnd + 1 + \"\");\n\n entityView.addConstituent(extentConstituent);\n\n Constituent corefExtentConstituent =\n extentConstituent.cloneForNewViewWithDestinationLabel(\n ViewNames.COREF_EXTENT, entity.id);\n corefMentions.add(corefExtentConstituent);\n\n Constituent corefHeadConstituent =\n getEntityHeadForConstituent(corefExtentConstituent, ta,\n ViewNames.COREF_HEAD);\n if (corefHeadConstituent != null) {\n corefMentionHeads.add(corefHeadConstituent);\n }\n }\n\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n Constituent canonicalMention = null;\n double[] scores = new double[corefMentions.size()];\n for (int i = 0; i < corefMentions.size(); i++) {\n Constituent cons = corefMentions.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentions.size() > 0) {\n corefExtentView.addCorefEdges(canonicalMention, corefMentions, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n\n // Processing Coref Head Constituents\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n canonicalMention = null;\n scores = new double[corefMentionHeads.size()];\n for (int i = 0; i < corefMentionHeads.size(); i++) {\n Constituent cons = corefMentionHeads.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentionHeads.size() > 0) {\n corefHeadView.addCorefEdges(canonicalMention, corefMentionHeads, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n }\n\n ta.addView(ViewNames.MENTION_ACE, entityView);\n ta.addView(ViewNames.COREF_HEAD, corefHeadView);\n ta.addView(ViewNames.COREF_EXTENT, corefExtentView);\n }", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}", "public EntityAnnotator_V2(){\n init();\n //TODO modify reg_v2.xml to deal with paragraphs. at the moment, it only works if this file has only regulations.\n }", "@Override\n\tpublic int getNbAnnotations() {\n\t\treturn annotationSetItem.getNbAnnotationItems();\n\t}", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "Annotations(int location_x, int location_y, String annotation) {\r\n super(ANNOTATIONS_WIDTH, ANNOTATIONS_LENGTH, location_x, location_y, annotation);\r\n this.isVisible = false;\r\n this.getComponent().setBackground(Color.GREEN);\r\n this.getComponent().setOpaque(true);\r\n this.getComponent().setVisible(false);\r\n }", "public Framework_annotation<T> build_annotation();", "@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "@Override\n public void annotate(Annotation annotation) {\n if (VERBOSE) {\n System.err.print(\"Tokenizing ... \");\n }\n\n if (annotation.has(CoreAnnotations.TextAnnotation.class)) {\n String text = annotation.get(CoreAnnotations.TextAnnotation.class);\n Reader r = new StringReader(text);\n // don't wrap in BufferedReader. It gives you nothing for in-memory String unless you need the readLine() method!\n\n List<CoreLabel> tokens = getTokenizer(r).tokenize();\n // cdm 2010-05-15: This is now unnecessary, as it is done in CoreLabelTokenFactory\n // for (CoreLabel token: tokens) {\n // token.set(CoreAnnotations.TextAnnotation.class, token.get(CoreAnnotations.TextAnnotation.class));\n // }\n\n annotation.set(CoreAnnotations.TokensAnnotation.class, tokens);\n if (VERBOSE) {\n System.err.println(\"done.\");\n System.err.println(\"Tokens: \" + annotation.get(CoreAnnotations.TokensAnnotation.class));\n }\n } else {\n throw new RuntimeException(\"Tokenizer unable to find text in annotation: \" + annotation);\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}", "protected void sequence_Annotation(ISerializationContext context, Annotation semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_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 (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "protected void sequence_APP_AppAnnotation(ISerializationContext context, APP semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "protected void setupAnnotationToggling() {\r\n\t\tgetWWD().addSelectListener(new SelectListener() {\r\n\t\t\tpublic void selected(SelectEvent event) {\r\n\t\t\t\tif (event.getEventAction().equals(SelectEvent.LEFT_CLICK)) {\r\n\t\t\t\t\tif (event.hasObjects()) {\r\n\t\t\t\t\t\tObject obj = event.getTopObject();\r\n\t\t\t\t\t\tif (obj instanceof ToggleAnnotation) {\r\n\t\t\t\t\t\t\tToggleAnnotation annotation = (ToggleAnnotation) obj;\r\n\t\t\t\t\t\t\tannotation.toggleText();\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}", "public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "public void onAnnotationsPreModify(Map<Annot, Integer> annots) {\n/* 297 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* 301 */ this.mPreModifyPageNum = 0;\n/* 302 */ this.mPreModifyAnnotRect = null;\n/* */ \n/* 304 */ for (Map.Entry<Annot, Integer> pair : annots.entrySet()) {\n/* 305 */ Annot annot = pair.getKey();\n/* 306 */ Integer pageNum = pair.getValue();\n/* 307 */ if (this.mPreModifyPageNum != 0 && this.mPreModifyPageNum != pageNum.intValue()) {\n/* 308 */ this.mPreModifyPageNum = 0;\n/* 309 */ this.mPreModifyAnnotRect = null;\n/* */ return;\n/* */ } \n/* 312 */ this.mPreModifyPageNum = pageNum.intValue();\n/* */ try {\n/* 314 */ if (annot != null && annot.isValid()) {\n/* */ Rect annotRect;\n/* 316 */ if (annot.getType() == 19) {\n/* */ \n/* 318 */ Widget widget = new Widget(annot);\n/* 319 */ Field field = widget.getField();\n/* 320 */ annotRect = field.getUpdateRect();\n/* */ } else {\n/* 322 */ annotRect = this.mPdfViewCtrl.getPageRectForAnnot(annot, pageNum.intValue());\n/* */ } \n/* 324 */ annotRect.normalize();\n/* 325 */ if (this.mPreModifyAnnotRect != null) {\n/* 326 */ this.mPreModifyAnnotRect.setX1(Math.min(this.mPreModifyAnnotRect.getX1(), annotRect.getX1()));\n/* 327 */ this.mPreModifyAnnotRect.setY1(Math.min(this.mPreModifyAnnotRect.getY1(), annotRect.getY1()));\n/* 328 */ this.mPreModifyAnnotRect.setX2(Math.max(this.mPreModifyAnnotRect.getX2(), annotRect.getX2()));\n/* 329 */ this.mPreModifyAnnotRect.setY2(Math.max(this.mPreModifyAnnotRect.getY2(), annotRect.getY2())); continue;\n/* */ } \n/* 331 */ this.mPreModifyAnnotRect = annotRect;\n/* */ }\n/* */ \n/* 334 */ } catch (Exception e) {\n/* 335 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ } \n/* */ }", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "@Override\npublic void setAttributes() {\n\t\n}", "private static void addAnnotatedClass(final Configuration conf) {\n // add anottations class\n // conf.addAnnotatedClass(Person.class);\n }", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "@NoProxy\n @NoWrap\n public void setOverrides(final Collection<BwEventAnnotation> val) {\n overrides = val;\n }", "public List<String> getAnnotations() {\n return applicationIdentifiers;\n }", "int getAnnotationsLimit();", "public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}", "public void setEntities(org.LexGrid.concepts.Entities entities) {\n this.entities = entities;\n }", "public void setExtras(Bundle extras) {\n mBundle.putBundle(KEY_EXTRAS, extras);\n }", "public final void mT__86() throws RecognitionException {\r\n try {\r\n int _type = T__86;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:83:7: ( 'annotation' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:83:9: 'annotation'\r\n {\r\n match(\"annotation\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "protected void setRDFforSemSimSubmodelAnnotations(){\n\t\t\n\t\tfor(Submodel sub : semsimmodel.getSubmodels()){\n\t\t\tsetRDFforSubmodelAnnotations(sub);\n\t\t}\n\t}", "public final Set<Annotation> annotations() throws RecognitionException {\n Set<Annotation> annotations = null;\n\n\n Annotation annotation201 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:3: ( ^( I_ANNOTATIONS ( annotation )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:5: ^( I_ANNOTATIONS ( annotation )* )\n {\n HashMap<String, Annotation> annotationMap = Maps.newHashMap();\n match(input, I_ANNOTATIONS, FOLLOW_I_ANNOTATIONS_in_annotations3421);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:21: ( annotation )*\n loop39:\n while (true) {\n int alt39 = 2;\n int LA39_0 = input.LA(1);\n if ((LA39_0 == I_ANNOTATION)) {\n alt39 = 1;\n }\n\n switch (alt39) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:22: annotation\n {\n pushFollow(FOLLOW_annotation_in_annotations3424);\n annotation201 = annotation();\n state._fsp--;\n\n\n Annotation anno = annotation201;\n Annotation old = annotationMap.put(anno.getType(), anno);\n if (old != null) {\n throw new SemanticException(input, \"Multiple annotations of type %s\", anno.getType());\n }\n\n }\n break;\n\n default:\n break loop39;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n\n if (annotationMap.size() > 0) {\n annotations = ImmutableSet.copyOf(annotationMap.values());\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return annotations;\n }", "void removeAnnotations() {\n if (currentIndicators.isEmpty()) {\n return;\n }\n // remove annotations from the model\n synchronized (annotationModelLockObject) {\n if (annotationModel instanceof IAnnotationModelExtension) {\n ((IAnnotationModelExtension) annotationModel).replaceAnnotations(\n currentIndicators.toArray(new Annotation[currentIndicators.size()]),\n null);\n } else {\n for (Annotation annotation : currentIndicators) {\n annotationModel.removeAnnotation(annotation);\n }\n }\n currentIndicators = Lists.newArrayList();\n }\n }", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public final void annotations() throws RecognitionException {\n int annotations_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"annotations\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(527, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 70) ) { return ; }\n // Java.g:528:5: ( ( annotation )+ )\n dbg.enterAlt(1);\n\n // Java.g:528:9: ( annotation )+\n {\n dbg.location(528,9);\n // Java.g:528:9: ( annotation )+\n int cnt88=0;\n try { dbg.enterSubRule(88);\n\n loop88:\n do {\n int alt88=2;\n try { dbg.enterDecision(88);\n\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==73) ) {\n int LA88_2 = input.LA(2);\n\n if ( (LA88_2==Identifier) ) {\n int LA88_3 = input.LA(3);\n\n if ( (synpred128_Java()) ) {\n alt88=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(88);}\n\n switch (alt88) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: annotation\n \t {\n \t dbg.location(528,9);\n \t pushFollow(FOLLOW_annotation_in_annotations2704);\n \t annotation();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt88 >= 1 ) break loop88;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(88, input);\n dbg.recognitionException(eee);\n\n throw eee;\n }\n cnt88++;\n } while (true);\n } finally {dbg.exitSubRule(88);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 70, annotations_StartIndex); }\n }\n dbg.location(529, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"annotations\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "public Annotation getAnnotation() {\n return annotation;\n }", "protected void loadGeneAnnotation(RectData tempVector) {\n\t\tprintln(\"loading Gene Annotations\");\n\t\tString [] genePrefix = new String[nGenePrefix];\n\t\tString [][] gHeaders = new String [nGene][nGenePrefix];\n\t\t\n\t\tString [] firstLine = (String []) tempVector.elementAt(0);\n\t\tfor (int i = 0; i < nGenePrefix; i++) {\n\t\t\tgenePrefix[i] = firstLine[i];\n\t\t}\n\t\tsetLength(nGene);\n\t\tfor (int i = 0; i < nGene; i++) {\n\t\t\tsetValue(i);\n//\t\t\tString [] tokens = (String []) tempVector.elementAt(i + nArrayPrefix);\n\t\t\tfor (int j = 0; j < nGenePrefix; j++) {\n//\t\t\t\tgHeaders[i][j] = tokens[j];\n\t\t\t\tgHeaders[i][j] = tempVector.getString(i+nExprPrefix-1,j);\n\t\t\t}\n\t\t}\n\t\ttargetModel.setGenePrefix(genePrefix);\n\t\ttargetModel.setGeneHeaders(gHeaders);\n\t}", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "protected void createOrgAnnotations() {\r\n\t\tString source = \"org.eclipse.emf.ecp.editor\";\r\n\t\taddAnnotation(getIssue_Proposals(), source, new String[] { \"priority\",\r\n\t\t\t\t\"21.0\", \"position\", \"left\" });\r\n\t\taddAnnotation(getIssue_Solution(), source, new String[] { \"priority\",\r\n\t\t\t\t\"20.0\", \"position\", \"left\" });\r\n\t\taddAnnotation(getIssue_Criteria(), source, new String[] { \"priority\",\r\n\t\t\t\t\"22.0\", \"position\", \"left\" });\r\n\t\taddAnnotation(getIssue_Activity(), source, new String[] { \"priority\",\r\n\t\t\t\t\"9.5\", \"position\", \"left\" });\r\n\t\taddAnnotation(getIssue_Assessments(), source, new String[] {\r\n\t\t\t\t\"priority\", \"30\", \"position\", \"bottom\" });\r\n\t\taddAnnotation(getProposal_Assessments(), source, new String[] {\r\n\t\t\t\t\"priority\", \"10.0\", \"position\", \"right\" });\r\n\t\taddAnnotation(getProposal_Issue(), source, new String[] { \"priority\",\r\n\t\t\t\t\"10.0\", \"position\", \"left\" });\r\n\t\taddAnnotation(getSolution_UnderlyingProposals(), source, new String[] {\r\n\t\t\t\t\"priority\", \"10.0\", \"position\", \"right\" });\r\n\t\taddAnnotation(getSolution_Issue(), source, new String[] { \"priority\",\r\n\t\t\t\t\"10.0\", \"position\", \"left\" });\r\n\t\taddAnnotation(getCriterion_Assessments(), source, new String[] {\r\n\t\t\t\t\"priority\", \"10.0\", \"position\", \"right\" });\r\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\n\t\taddAnnotation\n\t\t (unsignedIntEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (unsignedIntegerEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"minInclusive\", \"0\",\n\t\t\t \"maxInclusive\", \"4294967295\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"baseType\", \"http://www.w3.org/2001/XMLSchema#decimal\"\n\t\t });\n\t\taddAnnotation\n\t\t (idEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"[a-zA-Z0-9_]([a-zA-Z0-9_\\\\-.$])*\"\n\t\t });\n\t\taddAnnotation\n\t\t (namespaceEDataType,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"pattern\", \"([^\\\\s#])*(#|/)\",\n\t\t\t \"minLength\", \"2\"\n\t\t });\n\t}", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "public String getAnnotation();", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "public Annotation(int min, int max) {\n annotMin = min;\n annotMax = max;\n checkAnnotation();\n }", "void addAnnotatedClass( Class clazz );", "public static void mixinJsonAnnotations() {\n LOG.info(\"Mixing in JSON annotations for PigJob and Job into Job\");\n JSONUtil.mixinAnnotatons(Job.class, AnnotationMixinClass.class);\n }", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.ATTENDEE,\n jname = \"attendee\",\n adderName = \"attendee\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VOTER,\n jname = \"voter\",\n adderName = \"voter\",\n vpollProperty = true)})\n public void setAttendees(final Set<BwAttendee> val) {\n attendees = val;\n }", "public void annotate(CoreDocument document){\r\n for(int i=0;i<document.tokens().size();i++){\r\n CoreLabel token = document.tokens().get(i);\r\n if(token.word().equals(sch))\r\n token.set(SearchAnnotation.class,i);\r\n }\r\n }", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public void setEntities(ArrayList<Entity> entities) {\n this.entities = entities;\n }" ]
[ "0.67835945", "0.62915033", "0.62572753", "0.6183986", "0.5830604", "0.5677121", "0.5573415", "0.5560196", "0.5548937", "0.5528556", "0.5454672", "0.53604656", "0.53522515", "0.5338841", "0.5328543", "0.53226066", "0.5281621", "0.52625364", "0.523781", "0.5222636", "0.52019227", "0.516804", "0.51630694", "0.5139946", "0.5123409", "0.5113759", "0.510475", "0.50976866", "0.5090581", "0.50891787", "0.5084345", "0.50575286", "0.5044818", "0.5031127", "0.5019047", "0.500457", "0.5003939", "0.4955536", "0.49481308", "0.49358255", "0.49352375", "0.49346286", "0.49309242", "0.49293992", "0.49262702", "0.49001554", "0.4898358", "0.48941463", "0.48939666", "0.48650393", "0.48645353", "0.48604417", "0.48530832", "0.4844017", "0.484253", "0.4840849", "0.4832127", "0.48235074", "0.4810183", "0.480958", "0.4793055", "0.47907126", "0.47717285", "0.47704467", "0.4752659", "0.47515026", "0.47487366", "0.47379187", "0.47349727", "0.47267294", "0.4713296", "0.47075415", "0.47022194", "0.47002771", "0.46958986", "0.46872568", "0.4680693", "0.467872", "0.46751994", "0.4671736", "0.46550438", "0.46505305", "0.464979", "0.46492168", "0.46464676", "0.46454555", "0.4643374", "0.46415317", "0.46382156", "0.46328953", "0.4631128", "0.46200818", "0.46125087", "0.46078825", "0.46055138", "0.45991415", "0.4596162", "0.45935166", "0.45867896", "0.45777404" ]
0.6855715
0
Get the AccessControlList for the Entity in this bundle.
public AccessControlList getAccessControlList() { return acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AccessControlList getAcl()\n {\n return acl;\n }", "AccessPoliciesClient getAccessPolicies();", "ImmutableList<SchemaOrgType> getAccessibilityControlList();", "public List<ServiceAccessPolicyEntry> accessPolicies() {\n return this.accessPolicies;\n }", "@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }", "public List<Permission> getPermissionList() {\n return permissionList;\n }", "List<Permission> getPermissions();", "public List<ChunkData> getAccess() {\n return access;\n }", "ArrayList<Ability> getAbilities() throws RemoteException;", "java.util.List<java.lang.String>\n getPermissionsList();", "public abstract List<String> getAdditionalAccessions();", "@ElementCollection\r\n @CollectionTable(\r\n name = \"ACCESS_LIMITATIONS\",\r\n joinColumns=@JoinColumn(name=\"CODE_ID\")\r\n )\r\n @Column (name=\"ACCESS_LIMITATION\")\r\n public List<String> getAccessLimitations() {\r\n return this.accessLimitations;\r\n }", "public List<AccessDetailVO> getLockList(){\r\n \t\r\n \tList<AccessDetailVO> pageLocks = new ArrayList<AccessDetailVO>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue();\r\n \t\tpageLocks.add(currLock);\r\n \t}\r\n \t\r\n \tCollections.sort(pageLocks);\r\n \treturn pageLocks;\r\n }", "public List<ACR> getAcrs() {\n return acrs;\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<Access> getTypeBoundList() {\n List<Access> list = (List<Access>)getChild(2);\n list.getNumChild();\n return list;\n }", "@Override\r\n\tpublic List<Area> getAreaList() {\n\t\tList<Area> areaList = areaDao.selectArea();\r\n\t\tSystem.out.println(areaList);\r\n\t\t\r\n\t\treturn areaList;\r\n\t}", "List<BillingPermissionsProperties> permissions();", "java.util.List<com.google.cloud.networksecurity.v1beta1.AuthorizationPolicy> \n getAuthorizationPoliciesList();", "public List<TipoAccesoContable> getListaTipoAccesoContable()\r\n/* 265: */ {\r\n/* 266:326 */ if (this.listaTipoAccesoContable == null)\r\n/* 267: */ {\r\n/* 268:327 */ this.listaTipoAccesoContable = new ArrayList();\r\n/* 269:328 */ for (TipoAccesoContable tipoAccesoContable : TipoAccesoContable.values()) {\r\n/* 270:329 */ this.listaTipoAccesoContable.add(tipoAccesoContable);\r\n/* 271: */ }\r\n/* 272: */ }\r\n/* 273:332 */ return this.listaTipoAccesoContable;\r\n/* 274: */ }", "public List<ControlAcceso> findAll() {\n\t\treturn controlA.findAll();\n\t}", "@Override\n\tpublic List<Area> getAreaList() {\n\t\treturn areaDao.queryArea();\n\t}", "@Override\n\tpublic List<AccessLog> list() throws Exception {\n\t\treturn mapper.list();\n\t}", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "AccessPoliciesStatus getAccessPoliciesStatus();", "public AccessRights getAccessRights() {\r\n\t\treturn accessRights;\r\n\t}", "public List<ApplicationProviderAuthorization> authorizations() {\n return this.authorizations;\n }", "public List<AccessControlDsRpc> findByAccessControl(\r\n\t\t\tAccessControl accessControl);", "public java.util.List<MetadataEntry> getAuthList() {\n if (authBuilder_ == null) {\n return java.util.Collections.unmodifiableList(auth_);\n } else {\n return authBuilder_.getMessageList();\n }\n }", "public List<Permission> getPermissions()\r\n/* */ {\r\n/* 228 */ return this.permissions;\r\n/* */ }", "protected List getAllowableCheckinModes() throws DfException\r\n {\n IDfSessionManager smgr = this.getSessionManager();\r\n /*-dbg-*/Lg.dbg(\"getting app config\");\r\n String docbase = this.getSession().getDocbaseName();\r\n /*-dbg-*/Lg.dbg(\"get doctype/appname\");\r\n String doctype = this.getTypeName();\r\n /*-dbg-*/Lg.dbg(\"doc type: %s\",doctype);\r\n String appname = this.getString(\"m_application\");\r\n /*-dbg-*/Lg.dbg(\"app name: %s\",appname);\r\n MdtConfigService cs = MdtConfigService.getConfigService(smgr, docbase);\r\n /*-dbg-*/Lg.dbg(\"get lcname\");\r\n String lcname = this.getPolicyName();\r\n /*-dbg-*/Lg.dbg(\" --lc: %s\",lcname);\r\n /*-dbg-*/Lg.dbg(\"get state\");\r\n String statename = this.getCurrentStateName();\r\n /*-dbg-*/Lg.dbg(\" --state: %s\",statename);\r\n \r\n /*-dbg-*/Lg.dbg(\"get app's configuration from ConfigService\");\r\n Map config = (Map)cs.getAppConfig(appname);\r\n try { \r\n /*-dbg-*/Lg.dbg(\"get lc defs\");\r\n Map lifecycles = (Map)config.get(\"Lifecycles\");\r\n /*-dbg-*/Lg.dbg(\"get lc for docment\");\r\n Map lcycle = (Map)lifecycles.get(lcname);\r\n /*-dbg-*/Lg.dbg(\"get state defs\");\r\n Map states = (Map)lcycle.get(\"States\");\r\n /*-dbg-*/Lg.dbg(\"get state\");\r\n Map statedef = (Map)states.get(statename);\r\n /*-dbg-*/Lg.dbg(\"get checkin config for state\");\r\n Map checkininfo = (Map)statedef.get(\"Checkin\");\r\n /*-dbg-*/Lg.dbg(\"get state list\");\r\n List allowablemodes = (List)checkininfo.get(\"AllowableModes\");\r\n return allowablemodes;\r\n } catch (NullPointerException npe) {\r\n /*-dbg-*/Lg.dbg(\"state %s for lifecycle %s not configured for checkin controls, returning null\",statename,lcname); \r\n return null;\r\n } \r\n }", "List<UserContentAccess> findContentAccess();", "public List<Privilege> get() throws Exception {\n\t\treturn get(null);\r\n\t}", "public List<Accessory> getAllAccessories() throws PersistenceException {\n return dao.findAll();\n }", "List<Long> getAuthorisedList( Long id) ;", "public LegalValueSet getAccountChoices() {\n return IltdsUtils.getAccountList();\n }", "public String getAccessControlList(Section sec) {\n\t\tString lst = accessControlLists.get(sec);\n\t\treturn lst != null ? lst : accessControlLists.get(BROWSE_SECTION);\n\t}", "@SuppressWarnings(\"removal\")\n final AccessControlContext getAccessControlContext() {\n if (acc == null) {\n throw new SecurityException(\n \"MenuComponent is missing AccessControlContext\");\n }\n return acc;\n }", "List<ObjectType> getObjectTypes() throws AccessDeniedException;", "public AccessLevel getAccessLevel(){\n return this.accessLevel;\n }", "public abstract Ability[] getAbilities();", "public static List<Ability> getAbilities() {\n return Collections.unmodifiableList(new ArrayList<>(ABILITIES.values()));\n }", "ImmutableList<SchemaOrgType> getAccessibilityAPIList();", "public ACL getACL() {\n return folderACL;\n }", "public java.util.List<MetadataEntry> getAuthList() {\n return auth_;\n }", "public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }", "public List<Permission> getPermissions(String objectId) throws UserManagementException;", "ImmutableList<SchemaOrgType> getAccessibilityFeatureList();", "@Generated(hash = 96040862)\n public List<Account> getAccounts() {\n if (accounts == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n AccountDao targetDao = daoSession.getAccountDao();\n List<Account> accountsNew = targetDao._queryType_Accounts(id);\n synchronized (this) {\n if (accounts == null) {\n accounts = accountsNew;\n }\n }\n }\n return accounts;\n }", "java.util.List<? extends com.google.cloud.networksecurity.v1beta1.AuthorizationPolicyOrBuilder> \n getAuthorizationPoliciesOrBuilderList();", "Collection<? extends GrantedAuthority> getAuthorities();", "@XmlTransient\r\n public List<Account> getAccountList() {\r\n return accountList;\r\n }", "public List<AccessControlDsRpc> findByAccessControlId(String accessControlId);", "ImmutableList<SchemaOrgType> getAccessibilityHazardList();", "@Override\r\n\tpublic List getAccountList() {\n\t\treturn null;\r\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "java.util.List<Role>\n getRolesList();", "java.util.List<Role>\n getRolesList();", "@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "private JList getControlledBy() {\r\n\t\tif (controlledBy == null) {\r\n\t\t\tcontrolledBy = new JList();\r\n\t\t\tcontrolledBy.setBackground(SystemColor.control);\r\n\t\t}\r\n\t\treturn controlledBy;\r\n\t}", "public List<SecGroupright> getAllGroupRights();", "@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "public List<String> getAuthorizedCollections() {\n return getAuthorizedCollections(RoleType.READ);\n }", "public List getAllowedRolesList() {\n if ( StringUtils.isBlank(this.allowedRoles) ) {\n return null;\n }\n if ( this.allowedRolesList == null ) {\n this.allowedRolesList = new ArrayList();\n final StringTokenizer tokenizer = new StringTokenizer(this.allowedRoles, \",\");\n while ( tokenizer.hasMoreElements() ) {\n String token = (String)tokenizer.nextElement();\n this.allowedRolesList.add(token);\n }\n if ( this.allowedRolesList.size() == 0 ) {\n this.allowedRoles = null;\n this.allowedRolesList = null;\n }\n }\n return this.allowedRolesList;\n }", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "@Transactional(readOnly = true)\n\tList<Acondicionador> getAcondicionadoresForCombobox();", "public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"ArendaMainEconomist\");\n\troles.add(\"ArendaEconomist\");\n\troles.add(\"administrator\");\n\treturn roles;\n}", "public List<AuthorizationItem> getAuthorizationsExternal() {\n List sortedList = new ArrayList(getAuthorizations());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n return permissions_;\n }", "public final List getList()\n {\n return this.list;\n }", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<Object[]> getApplicants() {\n\t\treturn dao.getApplicants();\n\t}", "public List<String> getPermissions() {\n return this.permissions;\n }", "ImmutableList<SchemaOrgType> getAwardsList();", "ImmutableList<SchemaOrgType> getAudienceList();", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<ApplicantEntity> getApplicantList() {\n\t\tList<ApplicantEntity> applicantList = new ArrayList<>();\n\t\tStringBuilder builder = new StringBuilder(\"from ApplicantEntity\");\n\t\tQuery statement = entityManager.createQuery(builder.toString());\n\t\tapplicantList = statement.getResultList();\n\t\treturn applicantList;\n\t}", "public ArrayList getList() {\n \t\treturn list;\n \t}", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<Access> getTypeBoundListNoTransform() {\n return (List<Access>)getChildNoTransform(2);\n }", "public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n permissions_.makeImmutable();\n return permissions_;\n }", "public List<Choice> getChoiceList() {\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<Choice> cq = cb.createQuery(Choice.class);\n cq.select(cq.from(Choice.class));\n return em.createQuery(cq).getResultList(); \n }", "public List controls(){\n return controls;\n }", "public final int access_list() throws RecognitionException {\n int value = 0;\n\n\n CommonTree ACCESS_SPEC15 = null;\n\n\n value = 0;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:3: ( ^( I_ACCESS_LIST ( ACCESS_SPEC )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:5: ^( I_ACCESS_LIST ( ACCESS_SPEC )* )\n {\n match(input, I_ACCESS_LIST, FOLLOW_I_ACCESS_LIST_in_access_list248);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:228:7: ( ACCESS_SPEC )*\n loop4:\n while (true) {\n int alt4 = 2;\n int LA4_0 = input.LA(1);\n if ((LA4_0 == ACCESS_SPEC)) {\n alt4 = 1;\n }\n\n switch (alt4) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:229:9: ACCESS_SPEC\n {\n ACCESS_SPEC15 = (CommonTree) match(input, ACCESS_SPEC, FOLLOW_ACCESS_SPEC_in_access_list266);\n\n value |= AccessFlags.getAccessFlag(ACCESS_SPEC15.getText()).getValue();\n\n }\n break;\n\n default:\n break loop4;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }", "@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\tSimpleGrantedAuthority authority = new SimpleGrantedAuthority(appUserRole.name());\n\t\treturn Collections.singletonList(authority);\n\t}", "public java.util.ArrayList getEditRoles() {\n\t\tjava.util.ArrayList roles = new java.util.ArrayList();\n\t\troles.add(\"ArendaMainEconomist\");\n\t\troles.add(\"ArendaEconomist\");\n\t\troles.add(\"administrator\");\n\t\treturn roles;\n\t}", "public List<IPermissionOwner> getAllPermissionOwners();", "public java.util.List<Reference> account() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_ACCOUNT);\n }", "List<Accessprofile> listAll();", "@NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }", "List<String> getAvailablePermissions() throws GWTJahiaServiceException;", "@JsonIgnore public Collection<Organization> getAuthenticators() {\n final Object current = myData.get(\"authenticator\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Organization>) current;\n }\n return Arrays.asList((Organization) current);\n }", "public List<Client> findAll() throws DataAccessLayerException {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.READ));\n return super.findAll(Client.class);\n } catch (AccessControlException e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "public Enumeration permissions();", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"administrator\");\n\troles.add(\"StorageManager\");\n\treturn roles;\n}", "ImmutableList<SchemaOrgType> getAwardList();", "public List<ACL> build() {\n List<ACL> result = new ArrayList<>();\n if (world != null) {\n result.add(world);\n }\n if (auth != null) {\n result.add(auth);\n }\n for (Map<String, ACL> m : asList(digests, hosts, ips)) {\n if (m != null) {\n result.addAll(m.values());\n }\n }\n return result;\n }", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n List<GrantedAuthority> grantedAuthorityList = new ArrayList<>();\n //make a List of the roles\n List<Role> userRoles = user.getRoles();\n //add each role to the grantedAuthorityList\n for (Role role: userRoles) {\n grantedAuthorityList.add(new SimpleGrantedAuthority(role.getName()));\n }\n // then return grantedAuthority instances\n return grantedAuthorityList;\n }", "@RequestMapping(value = \"/rest/accesss\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Access> getAll() {\n log.debug(\"REST request to get all Accesss\");\n return accessRepository.findAll();\n }" ]
[ "0.70645857", "0.6046871", "0.60455185", "0.5949111", "0.5774467", "0.55799425", "0.55588865", "0.5530349", "0.54978675", "0.5480873", "0.5459186", "0.545824", "0.54226214", "0.5386894", "0.5382769", "0.5380677", "0.536963", "0.5357505", "0.5354256", "0.5338804", "0.53129244", "0.52930427", "0.5288115", "0.5288115", "0.5254582", "0.5254113", "0.52236843", "0.51931965", "0.5185864", "0.5176171", "0.5168735", "0.5166704", "0.5166042", "0.5148804", "0.514322", "0.51397216", "0.51336765", "0.5124831", "0.5119989", "0.51132756", "0.5111747", "0.509755", "0.5095357", "0.5088168", "0.5082924", "0.5077545", "0.507349", "0.50692946", "0.5062516", "0.5061293", "0.5060745", "0.5060537", "0.5044332", "0.5042815", "0.50392324", "0.5024572", "0.5017723", "0.5017723", "0.5010004", "0.5004362", "0.50003946", "0.49973574", "0.49952894", "0.49833092", "0.4965489", "0.496287", "0.49627152", "0.4952047", "0.49430135", "0.49422505", "0.49383715", "0.4933696", "0.4923676", "0.49179828", "0.49178287", "0.49099267", "0.4903154", "0.48965505", "0.48889306", "0.4888196", "0.48818836", "0.48815453", "0.4880211", "0.48760885", "0.48747566", "0.48691434", "0.48626453", "0.48622167", "0.48610744", "0.48558477", "0.48500046", "0.48430067", "0.4842992", "0.48387486", "0.48376283", "0.48364028", "0.4834168", "0.48331028", "0.48307675", "0.4829138" ]
0.67993814
1
Set the AccessControlList for this bundle. Should correspond to the Entity in this bundle.
public void setAccessControlList(AccessControlList acl) { this.acl = acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAcl(AccessControlList acl)\n {\n this.acl = acl;\n }", "public void setTypeBoundList(List<Access> list) {\n setChild(list, 2);\n }", "public void setAclDAO(AccessControlListDAO aclDAO);", "public void setAcrs(List<ACR> acrList) {\n this.acrs = acrList;\n }", "public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }", "public static void setList(CustomerList list){\n\t\tUserInterface.list = list;\n\t}", "public void setPermissionList(List<Permission> permissionList) {\n this.permissionList = permissionList;\n }", "public AccessControlList getAccessControlList() {\n\t\treturn acl;\n\t}", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public AccessControlList getAcl()\n {\n return acl;\n }", "public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }", "@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }", "void setPermittedModules(ArrayList<Integer> permittedModules);", "public void setAccessLimitations(List<String> limitations) {\r\n this.accessLimitations = this.CleanList(limitations);\r\n }", "public void setAccountList(List<Account> accountList) {\r\n this.accountList = accountList;\r\n }", "public void setConstraintList(List<ContextConstraint> list) {\n setChild(list, 1);\n }", "public void setAdvisors(List<Professor> list) {\r\n advisors = list;\r\n }", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "public void setList(List<Integer> list) {\n this.list = list;\n }", "protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }", "public void setRoles(RoleList list) {\n if (list != null) {\n\n roleList = new RoleList();\n\n for (Iterator<?> roleIter = list.iterator();\n roleIter.hasNext();) {\n Role currRole = (Role)(roleIter.next());\n roleList.add((Role)(currRole.clone()));\n }\n } else {\n roleList = null;\n }\n return;\n }", "public SetAclTResponse setAcl(String path, TSetAclAction action, List<TAclEntry> entries, SetAclTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "public final int access_list() throws RecognitionException {\n int value = 0;\n\n\n CommonTree ACCESS_SPEC15 = null;\n\n\n value = 0;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:3: ( ^( I_ACCESS_LIST ( ACCESS_SPEC )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:5: ^( I_ACCESS_LIST ( ACCESS_SPEC )* )\n {\n match(input, I_ACCESS_LIST, FOLLOW_I_ACCESS_LIST_in_access_list248);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:228:7: ( ACCESS_SPEC )*\n loop4:\n while (true) {\n int alt4 = 2;\n int LA4_0 = input.LA(1);\n if ((LA4_0 == ACCESS_SPEC)) {\n alt4 = 1;\n }\n\n switch (alt4) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:229:9: ACCESS_SPEC\n {\n ACCESS_SPEC15 = (CommonTree) match(input, ACCESS_SPEC, FOLLOW_ACCESS_SPEC_in_access_list266);\n\n value |= AccessFlags.getAccessFlag(ACCESS_SPEC15.getText()).getValue();\n\n }\n break;\n\n default:\n break loop4;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }", "public void setProperties(Properties setList);", "private void initialiseAcronymList(ArrayList<String> pAcronymList) {\n\t\tthis.acronymList = new HashSet<String>(pAcronymList);\t\t\n\t}", "public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }", "public void setUserList(CopyOnWriteArrayList<User> userList) {\r\n\t\tBootstrap.userList = userList;\r\n\t}", "void setListProperty(Object name, List<Object> list) throws JMSException;", "public CreateOptions setAcl(AccessControlList acl) {\n mAcl = acl;\n return this;\n }", "@Override\n\tpublic void setRoles(List<IRole> arg0) {\n\t\t\n\t}", "public void setCountries(ObservableList<Place> placeList) {\n this.countries.setCountries(placeList);\n indicateModified();\n }", "public void setAttractionsList(ArrayList attractionsList) {\n this.attractionsList = attractionsList;\n }", "public void setControlVars(java.util.List<Object> controlValues);", "public void setMashStepList(ArrayList<MashStep> list) {\n this.mashSteps = list;\n for (MashStep s : this.mashSteps) {\n s.setRecipe(this.recipe);\n }\n Collections.sort(this.mashSteps, new FromDatabaseMashStepComparator());\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccounts(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public void setList(DList2 list1){\r\n list = list1;\r\n }", "@Override\r\n\tpublic void setAbilities() {\n\t\t\r\n\t}", "public void setCourseList (Course courseList)\n\n {\n\n // courseList is added to courseList.\n this.courseList.add (courseList);\n\n }", "public void setAccessRights(AccessRights accessRights) {\r\n\t\tthis.accessRights = accessRights;\r\n\t}", "public static void setAccessMode(boolean writeAccessAllowed) {\r\n\t\tWRITE_ACCESS_ALLOWED = writeAccessAllowed;\r\n\t\tKTcDfl tcDfl = dfl;\r\n\t\tif (tcDfl != null) {\r\n\t\t\ttcDfl.client.setWriteAccess(writeAccessAllowed);\r\n\t\t}\r\n\t}", "public void setDeviceList(DeviceUserAuthorization[] deviceList) {\n this.deviceList = deviceList;\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //this.roomList = roomList;\r\n\t }", "public setAcl_args setEntries(List<TAclEntry> entries) {\n this.entries = entries;\n return this;\n }", "public void setListProperty(List<Integer> t) {\n\n\t\t}", "public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }", "public void setCardList(ArrayList<DestinationCard> list) {\n destinationCards = list;\n }", "public final native void setAllowMultiple(boolean allowMultiple) /*-{\r\n\t\tthis.allowMultiple = allowMultiple;\r\n\t}-*/;", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;", "public void setListaCreditoTributarioSRI(List<CreditoTributarioSRI> listaCreditoTributarioSRI)\r\n/* 136: */ {\r\n/* 137:149 */ this.listaCreditoTributarioSRI = listaCreditoTributarioSRI;\r\n/* 138: */ }", "public void setContratos(List<ContratoDTO> contratos) {\r\n this.contratos = contratos;\r\n }", "public void setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n }", "public void setCourses(ArrayList value);", "public void setContributingOrganizations(List<ContributingOrganization> list) {\r\n this.contributingOrganizations = list;\r\n }", "public void setListaMotivoLlamadoAtencion(LazyDataModel<MotivoLlamadoAtencion> listaMotivoLlamadoAtencion)\r\n/* 129: */ {\r\n/* 130:136 */ this.listaMotivoLlamadoAtencion = listaMotivoLlamadoAtencion;\r\n/* 131: */ }", "public AAccessLevel() {\n initComponents();\n }", "public void setSacche(List<Sacca> sacche) {\n this.sacche = sacche;\n }", "public abstract void setList(List<T> items);", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setIndependentParameters(ParameterList list);", "public void buildSanitizedAcl() {\n _sanitizedAcl =\n _sanitizedLines == null\n ? _acl\n : IpAccessList.builder().setName(getName()).setLines(_sanitizedLines).build();\n }", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "@Override\n\tpublic final void setListUsers(final IntListUsers list) {\n\t\tthis.listUsers = list;\n\t}", "public setAcl_args(setAcl_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetAction()) {\n this.action = other.action;\n }\n if (other.isSetEntries()) {\n List<TAclEntry> __this__entries = new ArrayList<TAclEntry>(other.entries.size());\n for (TAclEntry other_element : other.entries) {\n __this__entries.add(new TAclEntry(other_element));\n }\n this.entries = __this__entries;\n }\n if (other.isSetOptions()) {\n this.options = new SetAclTOptions(other.options);\n }\n }", "public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }", "public void setItems(List<T> value) {\n getElement().setItems(SerDes.mirror(value).cast());\n }", "public void setCodeList(CodeList codeList) {\r\n\t\tthis.codeList = codeList;\r\n\t}", "public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }", "public void setBonusList(BonusList bonusList) {\r\n/* 372 */ this._bonusList = bonusList;\r\n/* */ }", "private List<IPSAcl> testSave(List<IPSAcl> aclList) throws Exception\n {\n // modify and add something\n List<IPSGuid> aclGuids = new ArrayList<IPSGuid>();\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n aclGuids.add(aclImpl.getGUID());\n aclImpl.setDescription(\"modified\");\n for (IPSAclEntry entry : aclImpl.getEntries())\n entry.addPermission(PSPermissions.DELETE);\n\n PSAclEntryImpl newEntry = new PSAclEntryImpl();\n newEntry.setPrincipal(new PSTypedPrincipal(\"test1\",\n PrincipalTypes.ROLE));\n newEntry.addPermission(PSPermissions.DELETE);\n aclImpl.addEntry(newEntry);\n }\n\n IPSAclService aclService = PSAclServiceLocator.getAclService();\n aclService.saveAcls(aclList);\n List<IPSAcl> loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // check basic roundtrip\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // remove a permission\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n for (IPSAclEntry entry : aclImpl.getEntries())\n {\n entry.removePermission(PSPermissions.DELETE);\n assertFalse(entry.checkPermission(PSPermissions.DELETE));\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n List<IPSAclEntry> entries = new ArrayList<IPSAclEntry>(\n aclImpl.getEntries());\n for (IPSAclEntry entry : entries)\n {\n if (!aclImpl.isOwner(entry.getPrincipal()))\n {\n aclImpl.removeEntry((PSAclEntryImpl)entry);\n assertTrue(aclImpl.findEntry(entry.getPrincipal()) == null);\n }\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAcls(aclGuids);\n assertEquals(aclList, loadList);\n\n return loadList;\n }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "public void setRobots(List<Robot> listaRobots) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setRobots(listaRobots);\n\t}", "public void setList(Node in_adjacentcyList[]){\n adjacentcyList = in_adjacentcyList;\n }", "public AccessRightListTag(\n ) throws OSSException\n {\n super (AccessRightDataDescriptor.class);\n }", "public void setLicenseList(OrderLicenses licenses) {\n\t\tthis.orderLicenseList = licenses;\n\t\t// Save totalPages for access later by calling class\n\t\tint count = licenses.getTotalRowCount();\n\t\tthis.displayItems = licenses.getDisplayRowCount();\n\n\t\tint resultsPerPage = spec.getResultsPerPage();\n\t\tthis.totalPages = count / resultsPerPage;\n\t\tint mod = count % resultsPerPage;\n\t\tif (mod > 0) {\n\t\t\tthis.totalPages += 1;\n\t\t}\n\t\tthis.setTotalPages(this.totalPages);\n\t}", "public void setFileList(List<TbomFile> fileList) {\n\t\tthis.fileList = fileList;\n\t}", "public void setAs(ElementList<E> list) {\r\n\t\tthis.makeEmpty();\r\n\t\theader.next = list.first();\r\n\t\tlast = list.last;\r\n\t}", "public void setBannedList(boolean b){\n useList = b;\n }", "public void setOwnerList(Collection<OwnerModel> ownerList)\r\n\t{\r\n\t\tthis.ownerList = ownerList;\r\n\t}", "public void setCsgListValue(YangString csgListValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"csg-list\",\n csgListValue,\n childrenNames());\n }", "public void setSpecimenList(Collection<List<NameValueBean>> specimenList)\r\n\t{\r\n\t\tthis.specimenList = specimenList;\r\n\t}", "public void setPolicy(String policy) {\r\n if (policy != null && !policy.equals(\"\")) {\r\n String[] rules = policy.trim().split(\",\");\r\n if (rules != null && rules.length > 0) {\r\n emptyPolicy();\r\n \r\n for (String s : rules) {\r\n addRule(new AccessRule(s));\r\n }\r\n }\r\n }\r\n }", "public void setItems(ObservableList<T> value) {\n\n this.getWrappedControl().setItems(value);\n }", "public void setSegmentList(SegmentList segmentList)\n\t{\n\t\tthis.segmentList = segmentList;\n\t}", "public Boolean saveAll(List<ControlAcceso> list) {\n\t\treturn null;\n\t}", "public final void setBannersList(final List<HeroBean> aBannersList) {\r\n this.bannersList = (List<HeroBean>) aBannersList;\r\n }", "public void setLista(List<Rectangulo> lista) {\n this.lista = lista;\n }", "public void setStudents(ArrayList value);", "public void setStudentList(ArrayList<Student> studentList) {\r\n this.studentList = studentList;\r\n }", "public void setListObserver(List listObserver) {\n\t\tthis.listObserver = listObserver;\n\t}", "public void setStatesList(ArrayList<State<T>> statesList) {\r\n\t\tthis.statesList = statesList;\r\n\t}", "public void setAllowableValues(List<ValueDefinition> allowableValues) {\n this.allowableValues = allowableValues;\n }", "protected void setListContext(MessageListContext listContext) {\n if (Objects.equal(listContext, mListContext)) {\n return;\n }\n\n if (Email.DEBUG && Logging.DEBUG_LIFECYCLE) {\n Log.i(Logging.LOG_TAG, this + \" setListContext: \" + listContext);\n }\n mListContext = listContext;\n }", "public void setGrupoUsuarioGrupoUsuarioMenuList(List<GrupoUsuarioMenuDTO> grupoUsuarioGrupoUsuarioMenuList) {\n this.grupoUsuarioGrupoUsuarioMenuList = grupoUsuarioGrupoUsuarioMenuList;\n }", "public setAcl_args setAction(TSetAclAction action) {\n this.action = action;\n return this;\n }", "public static <E extends Ordinal> void setOrdinals(List<E> list) {\r\n\t\tif(list != null && list.stream().allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<list.size(); i++) {\r\n\t\t\t\tlist.get(i).setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setSiteList(ArrayList<Site> theSiteList) {\n theSiteList = siteList;\n }", "boolean hasSetAcl();", "public void setMenu_list(LinkedList<Menu_Item> menu_list) {\n\t\tthis.menu_list = menu_list;\n\t}" ]
[ "0.60360634", "0.5912559", "0.58434653", "0.56877106", "0.5297201", "0.5242436", "0.52025986", "0.50886285", "0.50785196", "0.5056301", "0.50511163", "0.50387096", "0.5016692", "0.49926135", "0.49460876", "0.49342597", "0.49333727", "0.49103853", "0.48728526", "0.48620084", "0.48554704", "0.4849704", "0.48466468", "0.48282984", "0.48050913", "0.4804588", "0.48014614", "0.47800907", "0.47593534", "0.4754163", "0.4753972", "0.47381145", "0.47196198", "0.47037777", "0.4696795", "0.46736047", "0.46644503", "0.4657683", "0.46302375", "0.46262398", "0.46253523", "0.46222857", "0.46170485", "0.46065345", "0.45995334", "0.45923278", "0.45920762", "0.45880264", "0.45833996", "0.45796317", "0.4572631", "0.4568237", "0.45640758", "0.45601708", "0.45544934", "0.453605", "0.45342904", "0.4533354", "0.45330223", "0.45286974", "0.4518658", "0.4517954", "0.4512576", "0.4512417", "0.4510332", "0.45038027", "0.45032826", "0.45026386", "0.45002025", "0.4494415", "0.4486554", "0.44802842", "0.44792613", "0.44781935", "0.44776502", "0.44759887", "0.4475943", "0.4466556", "0.4463574", "0.44585878", "0.44568765", "0.44563487", "0.4455572", "0.44463962", "0.44367203", "0.4433669", "0.44334987", "0.44196466", "0.4411109", "0.44070274", "0.4401294", "0.44011873", "0.43975934", "0.43967953", "0.4392816", "0.43900588", "0.43878388", "0.43871137", "0.4385248", "0.43780488" ]
0.64031196
0
Gets the range property.
public HttpRange getRange() { return range; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRange() {\n return this.range;\n }", "public double getRange(){\n\t\treturn range;\n\t}", "public int getRange() {\n return mRange;\n }", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "@JSProperty(\"range\")\n double getRange();", "public Range ageRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_AGE_RANGE);\n }", "public Uri getRange()\n {\n return range;\n }", "public long getRangeStart() {\n return mRangeStart;\n }", "public AddressInfo getRange() {\r\n return range;\r\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "public boolean isRange() {\r\n return range;\r\n }", "public Range onsetRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_ONSET_RANGE);\n }", "public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public double[] getRange() \n{\n\treturn range;\n}", "public RangeDate<Vente> getDateRange() {\n return dateRange;\n }", "int getRange();", "public Location getRangeBottomLeft() {\n\t\treturn rangeBottomLeft;\n\t}", "public int getRangeStart() {\n return currentViewableRange.getFrom();\n }", "public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }", "public RangeInteger<MoreTypesDemo> getNumberIntRange() {\n return numberIntRange;\n }", "public Range getTimeRange() {\r\n\t\treturn timeRange;\r\n\t}", "public double getMinRange() {\n return minRange;\n }", "public int getRangeActive(){\n\t\treturn rangeActive;\n\t}", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "@JSProperty(\"minRange\")\n double getMinRange();", "VocNoun getRange();", "public int getMinRange() {\r\n return fMinRange;\r\n }", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public Range getXRange() {\r\n\t\treturn xRange;\r\n\t}", "public String getSalaryRange() {\r\n return salaryRange;\r\n }", "public VersionRange getVersionRange()\n {\n return versionRange;\n }", "public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}", "public Location getRangeTopRight() {\n\t\treturn rangeTopRight;\n\t}", "@JSProperty(\"range\")\n void setRange(double value);", "public ResultSet getItemRangeResultSet() {\n\t\treturn this.itemRangeResultSet;\n\t}", "public double[] getRange();", "public RealRange getReferenceRange(RealRange referenceRange);", "public RangeInteger<TdProductShipment> getProductShipmentIdRange(){\n return productShipmentIdRange;\n }", "public int getRangeEnd() {\n return currentViewableRange.getTo();\n }", "public VisibleRangeViewModel getVisibleRange() {\n return getParent().getVisibleRange();\n }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "public int getEffectiveRange() {\n return effectiveRange;\n }", "public DateRange getDateRange();", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "@Override\n\tpublic NoteValueRange getNoteValueRange() {\n\t\tinKeyNoteValueRange.setLowestNote(lowestNote.getNoteValue());\n\t\tinKeyNoteValueRange.setHighestNote(highestNote.getNoteValue());\n\t\treturn inKeyNoteValueRange;\n\t}", "public String getAssessRange() {\r\n return assessRange;\r\n }", "public double getLethalRange()\n {\n return this.lethal_range;\n }", "public int getStartRange() {\r\n\t\treturn lookupValue(Params.START_RANGE);\r\n\t}", "public String getDynamicRangeControl() {\n return this.dynamicRangeControl;\n }", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "public float getTargetRange() {\n\t\treturn targetRange;\n\t}", "public double getXRangeMin() {\n return xRangeMin;\n }", "public Bounds get() {\n\treturn bounds;\n }", "RangeValue createRangeValue();", "public double getYRangeMin() {\n return yRangeMin;\n }", "public double getXRangeIncr() {\n return xRangeIncr;\n }", "public boolean isAutoRange() { return this.autoRange; }", "String getEndRange();", "String getBeginRange();", "@JSProperty(\"maxRange\")\n double getMaxRange();", "public List<Object> getValueOrRange() {\n if (valueOrRange == null) {\n valueOrRange = new ArrayList<>();\n }\n return this.valueOrRange;\n }", "com.google.ads.googleads.v14.common.AgeRangeInfo getAgeRange();", "String getRoleRangeRaw();", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "public String returnTrackingRange(){\n\t\treturn (String) trackingRange.getSelectedItem();//Return the tracking range options\n\t}", "public SelectedRangeViewModel getSelectedRange() {\n return getParent().getSelectedRange();\n }", "public float getPitchRange() {\n\treturn range;\n }", "public Range getYRange() {\r\n\t\treturn yRange;\r\n\t}", "@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}", "public JkVersionRange versionRange() {\n return versionRange;\n }", "public int getEndRange() {\r\n\t\treturn lookupValue(Params.END_RANGE);\r\n\t}", "public int getRangeHeight();", "public Range getLayerRange() {\r\n\t\treturn layerRange;\r\n\t}", "public InventoryRange getGrid() {\n \t\treturn this.grid;\n \t}", "protected static ARTResource getPropertyRange(SKOSXLModel skosXLModel, ARTURIResource prop)\r\n\t\t\tthrows ModelAccessException {\r\n\t\tARTResource result = null;\r\n\t\tARTResourceIterator innerIT;\r\n\t\tinnerIT = skosXLModel.getOWLModel().listPropertyRanges(prop, true, NodeFilters.MAINGRAPH);\r\n\t\tif (innerIT.streamOpen())\r\n\t\t\tresult = innerIT.getNext();\r\n\t\tinnerIT.close();\r\n\t\tif (result != null)\r\n\t\t\treturn result;\r\n\t\telse {\r\n\t\t\t// System.out.println(\"trying to get property domain from superproperties\");\r\n\t\t\tARTURIResourceIterator innerURIIT = ((DirectReasoning) skosXLModel.getOWLModel())\r\n\t\t\t\t\t.listDirectSuperProperties(prop, NodeFilters.MAINGRAPH);\r\n\t\t\tARTURIResource superProp = null;\r\n\t\t\tif (innerURIIT.streamOpen())\r\n\t\t\t\tsuperProp = innerURIIT.getNext();\r\n\t\t\tinnerURIIT.close();\r\n\t\t\tif (superProp != null && (!superProp.equals(prop)))\r\n\t\t\t\treturn getPropertyRange(skosXLModel, superProp);\r\n\t\t\telse\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange getSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().find_element_user(SLDRG$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<Range>();\n }\n }\n }\n return r;\n }", "public double interval() {\n return interval;\n }", "public Rectangle getBounds() {\r\n return bounds;\r\n }", "public double getXRangeMax() {\n return xRangeMax;\n }", "public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }", "public String getTradeAmtRangeMin( ) {\n\t\treturn this.tradeAmtRangeMin;\n\t}", "public Range[] getRanges() {\n return (Range[]) ranges.toArray(new Range[ranges.size()]);\n }", "Range createRange();", "public double getYRangeIncr() {\n return yRangeIncr;\n }", "public int bombRange() {\r\n return bombRange;\r\n }", "@Override\n public Map<SquadronConfig, Integer> getRange() {\n return configuration\n .stream()\n .map(this::buildRange)\n .collect(Collectors.toMap(Pair::getKey, Pair::getValue));\n }", "public Set<T> getRanges();", "@Override\r\n\tpublic String getApp_activity_range() {\n\t\treturn super.getApp_activity_range();\r\n\t}", "protected abstract R getRange(E entry);", "protected Point getRowRange( Property property )\n {\n if(treeTable == null)\n {\n return null;\n }\n Point result = null;\n JTree tree = treeTable.getTree();\n String name = property.getCompleteName();\n\n TreePath path;\n Property p;\n boolean found = false;\n for ( int i = 1; i < tree.getRowCount(); i++ )\n {\n path = tree.getPathForRow( i );\n p = ( Property )path.getLastPathComponent();\n if ( p.getCompleteName().startsWith( name ) )\n {\n if ( found )\n {\n result.y = i;\n }\n else\n {\n found = true;\n result = new Point( i, i );\n }\n }\n else if ( found )\n {\n return result;\n }\n }\n\n return result;\n }", "public abstract ucar.array.RangeIterator getRangeIterator();", "public abstract double getRangeSize();", "Integer getPortRangeStart();", "abstract public Range createRange();", "public String getPortRangeMin() {\n return portRangeMin;\n }", "public double getMaxRange() {\n return maxRange;\n }" ]
[ "0.8252797", "0.8160694", "0.8100774", "0.80877423", "0.78318524", "0.77816993", "0.77394223", "0.76054245", "0.7596207", "0.75371605", "0.7474023", "0.723196", "0.72277415", "0.7157969", "0.70140857", "0.7010035", "0.6929956", "0.6839515", "0.6829206", "0.6817399", "0.67893654", "0.67724687", "0.67394114", "0.67202914", "0.66988206", "0.66578406", "0.66369134", "0.6622242", "0.6612114", "0.6611601", "0.6590248", "0.65586317", "0.6552132", "0.65349364", "0.6509857", "0.64983225", "0.6491585", "0.6474948", "0.6473911", "0.644073", "0.6422159", "0.6420882", "0.6411481", "0.6354382", "0.63487166", "0.6337188", "0.6314815", "0.62748295", "0.6274774", "0.62653434", "0.6253535", "0.6247359", "0.6235353", "0.6234659", "0.62337554", "0.6225036", "0.62047905", "0.62005067", "0.61947775", "0.6193416", "0.6191367", "0.6166057", "0.61531097", "0.6150572", "0.61457753", "0.6129489", "0.61114144", "0.6090156", "0.60665107", "0.6053401", "0.60412186", "0.60237503", "0.6023164", "0.5992779", "0.59896725", "0.5968969", "0.5951048", "0.5940544", "0.5939872", "0.59381616", "0.5934867", "0.59172463", "0.5914292", "0.5899621", "0.589179", "0.5887834", "0.587826", "0.58763844", "0.5865359", "0.58599687", "0.58571786", "0.5852285", "0.5852098", "0.58467674", "0.5831391", "0.5809682", "0.58029103", "0.5791848", "0.57909673", "0.57900715" ]
0.74793345
10
Gets whether the range is cleared.
public boolean isClear() { return this.isClear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\r\n return lastCursor - firstCursor == 1;\r\n }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}", "public boolean isEmpty() {\n return doIsEmpty();\n }", "public boolean isEmpty() {\n return start == null;\n }", "public boolean isEmpty() {\n return front == back;\n }", "public boolean isEmpty() {\n return cell == null;\n }", "public boolean empty() {\n return q.isEmpty();\n }", "public boolean empty() {\n return q.isEmpty();\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn start == null; // returns to null if true.\r\n\t}", "public boolean isEmpty(){ return Objects.isNull(this.begin ); }", "public boolean isEmpty() {\n return front == last ? true : false;\n }", "public boolean isFilled() {\n return filled;\n }", "public boolean isEmpty()\n {\n return start == null;\n }", "public boolean empty()\n {\n return isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public boolean isEmpty() {\n return pointsSet.isEmpty();\n }", "public boolean currentIsEmpty() {\n Object o = evaluateCurrent();\n if (o == Util.nullValue || o == null) {\n return true;\n }\n final RolapCube measureCube = getMeasureCube();\n if (measureCube == null) {\n return false;\n }\n // For other cell values (e.g. zero), the cell is deemed empty if the\n // number of fact table rows is zero.\n final int savepoint = savepoint();\n try {\n setContext(measureCube.getFactCountMeasure());\n o = evaluateCurrent();\n } finally {\n restore(savepoint);\n }\n return o == null\n || (o instanceof Number && ((Number) o).intValue() == 0);\n }", "public boolean isEmpty(){\n return this.start == null;\n }", "public boolean empty() {\n return queue.isEmpty() && forReverse.isEmpty();\n }", "public boolean isFilled() {\n return isFilled;\n }", "boolean isEmpty() {\n return (bottom < top.getReference());\n }", "public boolean isEmpty()\n\n {\n\n return start == null;\n\n }", "public boolean isFilled() {\r\n return this.filled;\r\n }", "public boolean empty() {\r\n\t\treturn empty;\r\n\t}", "public boolean isEmpty() {\n return mPoints.isEmpty();\n }", "public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }", "public boolean isRange() {\r\n return range;\r\n }", "public boolean empty()\r\n\t{\r\n\t\treturn currentSize == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn front == -1 && rear==-1;\r\n\t}", "public boolean isFilled() \n\t{\n\t\treturn filled;\n\t}", "public boolean empty() {\n return s.isEmpty();\n }", "public final boolean isEmpty()\n {\n return this.pointer == 0;\n }", "public boolean isEmpty() {\r\n\t\treturn rear==-1 || front==-1;\r\n\t}", "public boolean empty();", "public boolean isEmpty() {\n return indexedEvents.isEmpty();\n }", "public boolean isEmpty() {\n return lo > hi;\n }", "public boolean isEmpty() {\n return mValues.isEmpty();\n }", "public synchronized boolean isEmpty() {\r\n return super.isEmpty();\r\n }", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "public boolean isEmpty() {\n return front == tail;\n }", "protected void clearRangeTest() {\n\tneedRangeTest = false;\n }", "public boolean empty() {\n\t return s.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}", "public boolean isEmpty(){\n\t\treturn start == null;\n\t}", "public boolean isEmpty() {\n\t\treturn front == rear; //-+\n\t}", "public boolean isEmpty() { return (dequeSize == 0); }", "boolean clear();", "public boolean isEmpty() {\n return gestures.isEmpty();\n\n }", "public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }", "public boolean isEmpty() {\n return qSize == 0;\n }", "public boolean isEmpty() {\r\n return empty;\r\n }", "public boolean isEmpty() {\n return values.isEmpty();\n }", "public boolean isEmpty() {\n return map.isEmpty();\n }", "public boolean isEmpty() {\n return points.isEmpty();\n }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean isEmpty() {\n return history.size() == 0;\n }", "public boolean empty() {\n return q1.isEmpty();\n }", "public boolean empty() {\n return q1.isEmpty();\n }", "public boolean empty() {\n return q1.isEmpty();\n }", "public boolean empty() {\n return q1.isEmpty();\n }", "public boolean empty() {\n return q1.isEmpty();\n }", "public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean empty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() {\r\n\t\treturn isEmpty;\r\n\t}", "public boolean isReset()\n\t{\n\t\treturn m_justReset;\n\t}", "public boolean empty() {\n return nums.isEmpty() && temp.isEmpty();\n }", "public synchronized boolean fempty() {\n return table.isEmpty( ); // return if table is empty\n }", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean empty() {\n return size == 0;\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean isEmpty() {\n return mCrimes.isEmpty();\n }", "public boolean getEmpty() {\n return empty;\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n return queue.isEmpty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public boolean roomIsEmpty(){\n return this.isEmpty;\n }", "public boolean empty() {\n return size <= 0;\n }", "public boolean empty() {\n return normalQueue.isEmpty() && reverseQueue.isEmpty();\n }", "public boolean isEmpty() {\n \n return point2DSET.isEmpty();\n }", "public boolean isEmpty() {\n return helpers.isEmpty();\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "public boolean empty() {\n return data.size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn front == null;\n\t}", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }" ]
[ "0.68582827", "0.6533457", "0.6498329", "0.643964", "0.6426092", "0.64253724", "0.64089227", "0.6398486", "0.63793695", "0.63642323", "0.63607055", "0.63543403", "0.6352302", "0.63390917", "0.63302207", "0.6329416", "0.63243914", "0.6322524", "0.6313528", "0.6313288", "0.6302048", "0.6298056", "0.6296723", "0.62892854", "0.62866473", "0.6277214", "0.6264601", "0.6255902", "0.62532", "0.6250875", "0.62501365", "0.62367386", "0.622974", "0.62224454", "0.6222418", "0.622112", "0.6217921", "0.6216029", "0.6200888", "0.6192875", "0.6192473", "0.6192438", "0.6187413", "0.61869395", "0.6185841", "0.6183253", "0.61803985", "0.61781347", "0.6171747", "0.61704093", "0.6167478", "0.61630225", "0.6154695", "0.6153762", "0.614389", "0.6138227", "0.6135173", "0.61239207", "0.61239207", "0.61239207", "0.61239207", "0.61239207", "0.6121271", "0.6120098", "0.6115119", "0.6115119", "0.6115119", "0.6115119", "0.6115119", "0.6115119", "0.6115119", "0.6108295", "0.61061335", "0.60997796", "0.6097116", "0.6090691", "0.6088799", "0.60845625", "0.60845625", "0.60818076", "0.60813963", "0.60807544", "0.60807544", "0.60807544", "0.60807544", "0.60807544", "0.6078332", "0.60774714", "0.607698", "0.607509", "0.60740036", "0.6065977", "0.60645044", "0.6063956", "0.6063956", "0.6063381", "0.606154", "0.6060701", "0.6060289", "0.6058126" ]
0.71168566
0
TODO Autogenerated method stub
@Override public boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@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
TODO Autogenerated method stub
@Override public HttpUriRequest getRedirect(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException { return null; }
{ "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
make cookie store from key and value arrary
public static CookieStore getCookieStore(String[] ks, String[] vs){ CookieStore cookieStore = new BasicCookieStore(); for(int i=0; i<ks.length; i++ ){ BasicClientCookie ck = new BasicClientCookie(ks[i] ,vs[i]); ck.setDomain(".weibo.com"); ck.setPath("/"); cookieStore.addCookie(ck); } return cookieStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildCookie(Map<String,String> map){\n map.put(\"PHPSESSID\", cookie);\n }", "public void part2(){\n Cookie c1 = new Cookie(\"uid\", \"2018\", 1800,false);\n Cookie c2 = new Cookie(\"PICK_KEY\", \"ahmd13ldsws8cw\",10800,true);\n Cookie c3 = new Cookie(\"REMEMBER_ME\",\"true\",10800,true);\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n public native void set(String key, String value) /*-{\n $doc.cookie = @org.jboss.pressgang.belay.oauth2.gwt.client.OAuthCookieStoreImpl::COOKIE_PREFIX +\n encodeURIComponent(key) + '=' + encodeURIComponent(value);\n }-*/;", "public void createCookie(final String cookie);", "Cookie[] getCookies();", "public void storeCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain from where these cookies are being sent\n\t\tString domain = getDomainFromHost(conn.getURL().getHost());\n\n\t\tMap<String, Map<String, String>> domainStore; // this is where we will\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store cookies for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// this domain\n\n\t\t// now let's check the store to see if we have an entry for this domain\n\t\tif (store.containsKey(domain)) {\n\t\t\t// we do, so lets retrieve it from the store\n\t\t\tdomainStore = store.get(domain);\n\t\t} else {\n\t\t\t// we don't, so let's create it and put it in the store\n\t\t\tdomainStore = new HashMap<String, Map<String, String>>();\n\t\t\tstore.put(domain, domainStore);\n\t\t}\n\n\t\t// OK, now we are ready to get the cookies out of the URLConnection\n\n\t\tString headerName = null;\n\t\tfor (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {\n\t\t\tif (headerName.equalsIgnoreCase(SET_COOKIE)) {\n\t\t\t\tMap<String, String> cookie = new HashMap<String, String>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(\n\t\t\t\t\t\tconn.getHeaderField(i), COOKIE_VALUE_DELIMITER);\n\n\t\t\t\t// the specification dictates that the first name/value pair\n\t\t\t\t// in the string is the cookie name and value, so let's handle\n\t\t\t\t// them as a special case:\n\n\t\t\t\tif (st.hasMoreTokens()) {\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tString name = token.substring(0,\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR));\n\t\t\t\t\tString value = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\tdomainStore.put(name, cookie);\n\t\t\t\t\tcookie.put(name, value);\n\t\t\t\t}\n\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString t1 = \"\";\n\t\t\t\t\tString t2 = \"\";\n\t\t\t\t\tString token = st.nextToken();\n\t\t\t\t\tint seperatorPosition = token.indexOf(NAME_VALUE_SEPARATOR);\n\t\t\t\t\tif (seperatorPosition >= 0) {\n\t\t\t\t\t\tt1 = token.substring(0,\n\t\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR))\n\t\t\t\t\t\t\t\t.toLowerCase();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt1 = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tt2 = token.substring(\n\t\t\t\t\t\t\ttoken.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t\t\ttoken.length());\n\t\t\t\t\t/*\n\t\t\t\t\t * cookie.put(token.substring(0,\n\t\t\t\t\t * token.indexOf(NAME_VALUE_SEPARATOR)).toLowerCase(),\n\t\t\t\t\t * token.substring(token.indexOf(NAME_VALUE_SEPARATOR) + 1,\n\t\t\t\t\t * token.length()));\n\t\t\t\t\t */\n\t\t\t\t\tcookie.put(t1, t2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void createCookie(final String cookie, final String options);", "CookieValue(Cookie cookie)\n {\n valuesAsString = cookie.getValue();\n /* XXX Not sure if this works */\n if (DBG.isDebugEnabled()) DBG.debug(\"Cookie values: \" +\n valuesAsString);\n if (valuesAsString.indexOf('=') != -1) \n {\n Map hashValues = ParseQueryString.parse(valuesAsString);\n /* Lowercase the value keys */\n for (Iterator i = hashValues.keySet().iterator(); i.hasNext();)\n {\n String key = (String)i.next();\n String value[] = (String[])hashValues.get(key);\n if (DBG.isDebugEnabled()) {\n DBG.debug(\"Key: \" + key);\n DBG.debug(\"Value: \" + value[0]);\n }\n cookieValues.put(new IdentNode(key), value[0]);\n }\n }\n }", "GroupKey appCookie();", "private String createCookies() {\n\n String bengLoginID = uid + \"\";\n String timeStr = MyApplication.getInstance().authorTime;\n ToastUtil.toast(timeStr + \"\");\n String cookes = MyApplication.getInstance().bengLoginId + \"; \" + MyApplication.getInstance().userHit + \"; \" + MyApplication.getInstance().authorID + \"; \" + timeStr + \"; \" + MyApplication.getInstance().phpSessid;\n ToastUtil.toast(cookes);\n return cookes;\n\n }", "@Override\r\n\tpublic void setCookie(Date expirationDate, String nameAndValue, String path, String domain, boolean isSecure) {\n\t}", "public abstract Cookie[] getResponseCookies();", "public Cookie create_cookie(String name, String value){\n Cookie cookie = new Cookie(name,value);\n cookie.setHttpOnly(true);\n cookie.setMaxAge(-cookieExpiration);\n cookie.setPath(\"/\");\n return cookie;\n }", "public void setCookies(Series<Cookie> cookies) {\n this.cookies = cookies;\n }", "public Builder cookies(final Map<String, String> cookies) {\n this.cookies.putAll(cookies);\n return this;\n }", "@Override\r\n public void getCookie(String name)\r\n {\n\r\n }", "@Override\n public void addCookie(Cookie arg0) {\n\n }", "void encryptStateInCookie(HttpServletResponse response, Map<String, String> cleartext) throws EncryptionException;", "public final void addSessionCookie(Map<String, String> headers) {\n\t\tString[] projection = { CookieTable.COLUMN_ID,\n\t\t\t\tCookieTable.COLUMN_MOBILE, CookieTable.COLUMN_P };\n\t\tCursor cursor = getApplicationContext().getContentResolver().query(GeneralContentProvider.COOKIE_CONTENT_URI, projection, null,\n\t\t\t\tnull, null);\n\t\tif (cursor != null && cursor.moveToFirst()) {\n\t\t\tif (cursor.getCount() > 0) {\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tLong uid = (long) cursor.getInt(cursor.getColumnIndexOrThrow(CookieTable.COLUMN_ID));\n\t\t\t\tString mobile = cursor.getString(cursor.getColumnIndexOrThrow(CookieTable.COLUMN_MOBILE));\n\t\t\t\tString p = cursor.getString(cursor.getColumnIndexOrThrow(CookieTable.COLUMN_P));\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tbuilder.append(\"uid=\");\n\t\t\t\tbuilder.append(uid);\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t\tbuilder.append(\"p=\");\n\t\t\t\tbuilder.append(p);\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t\tif (mCookie_T != null) {\n\t\t\t\t\tbuilder.append(\"t=\");\n\t\t\t\t\tbuilder.append(mCookie_T);\n\t\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbuilder.append(\"mobile=\");\n\t\t\t\tbuilder.append(mobile);\n\n\t\t\t\theaders.put(GlobalConstants.COOKIE_KEY, builder.toString());\n\t\t\t\tLogcat.d(TAG, headers.toString());\n\t\t\t} else {\n\t\t\t\tLogcat.d(TAG, \" < 000000000000000000\");\n\t\t\t}\n\t\t\t// always close the cursor\n\t\t\tcursor.close();\n\t\t}\n\t\t\n\t}", "public static byte[] createData(byte objHandle[])\n {\n return addLengthOctet(COOKIE + \" \" + new String(Base64.encode(objHandle)));\n }", "HttpClientRequest addCookie(Cookie cookie);", "public Builder cookie(final String name, final String value) {\n cookies.put(name, value);\n return this;\n }", "static Map<String, Cookie> parseCookies(Headers headers) {\n\t\tMap<String, String> params = parseHeaderParams(headers.get(HeaderName.COOKIE));\n\t\tMap<String, Cookie> cookies = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, String> entry : params.entrySet()) {\n\t\t\tif (!entry.getValue().isEmpty()) {\n\t\t\t\tcookies.put(entry.getKey(), new Cookie(entry.getKey(), entry.getValue()));\n\t\t\t}\n\t\t}\n\t\treturn cookies;\n\t}", "public Cookies cookies() {\n return new Cookies() {\n @Override\n public Optional<Cookie> get(String name) {\n return cookies.stream().filter(c -> c.name().equals(name)).findFirst();\n }\n\n @Override\n public Iterator<Cookie> iterator() {\n return cookies.iterator();\n }\n };\n }", "UserSettings store(String key, String value);", "public JsonResponse<?> addCookie(String name, String value) {\n return addCookie(new NewCookie(name, value));\n }", "@Override\r\n public void getAllCookies()\r\n {\n\r\n }", "Builder withCookie(long cookie);", "public Cookie(String name, String value, String path, String domain,\n long expires) {\n super(name, value);\n this.path = path;\n this.domain = domain;\n this.expires = expires;\n }", "public void setCookies(String[] cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n for (int i = 0; i < cookies.length - 1; i += 2) {\r\n setCookie(cookies[i], cookies[i + 1]);\r\n }\r\n }", "public Map<String, String> getCookies() {\r\n return _cookies;\r\n }", "private int storeCookies(URLConnection con) {\n\t\tString headerName = null;\n\n\t\tint totalNewCookies = 0;\n\n\t\tfor (int i = 1; (headerName = con.getHeaderFieldKey(i)) != null; i++) if (headerName.equals(\"Set-Cookie\")) totalNewCookies += addCookie(con.getHeaderField(i)); //add to the total the number of new cookies found by add cookie for each cookie\n\n\t\treturn totalNewCookies;\n\t}", "private void createLoginCookie(HttpServletResponse response, String userName, String password) {\n Cookie appCookie = new Cookie(\"costsManager\", userName + \"_\" + password);\n appCookie.setMaxAge(99999);\n response.addCookie(appCookie);\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.967 -0500\", hash_original_method = \"D5A9FC7DDB356B7F9D175C82B50A2AF1\", hash_generated_method = \"24C7574FF957618A543446AAAEE4BC4D\")\n \nprivate void setCookies(String url, String value) {\n if (value.contains(\"\\r\") || value.contains(\"\\n\")) {\n // for security reason, filter out '\\r' and '\\n' from the cookie\n int size = value.length();\n StringBuilder buffer = new StringBuilder(size);\n int i = 0;\n while (i != -1 && i < size) {\n int ir = value.indexOf('\\r', i);\n int in = value.indexOf('\\n', i);\n int newi = (ir == -1) ? in : (in == -1 ? ir : (ir < in ? ir\n : in));\n if (newi > i) {\n buffer.append(value.subSequence(i, newi));\n } else if (newi == -1) {\n buffer.append(value.subSequence(i, size));\n break;\n }\n i = newi + 1;\n }\n value = buffer.toString();\n }\n CookieManager.getInstance().setCookie(url, value);\n }", "public static String getCookiesFromWebkitSqlite(String cookieFile, final String domain, String[] hosts, String[] paths, Object dbLockObject) throws ClassNotFoundException, SQLException {\r\n\t\tStringBuilder sbSQLQuery = new StringBuilder(\"SELECT * FROM cookies WHERE (host_key = '\" + domain + \"' OR \");\r\n\t\tfor (int i = 0; i < hosts.length; i++) {\r\n\t\t\tsbSQLQuery.append(\"host_key = '\" + hosts[i] + \"'\");\r\n\t\t\tif (i < hosts.length - 1) {\r\n\t\t\t\tsbSQLQuery.append(\" OR \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tsbSQLQuery.append(\") AND (\");\r\n\t\tfor (int i = 0; i < paths.length; i++) {\r\n\t\t\tsbSQLQuery.append(\"path = '\" + paths[i] + \"'\");\r\n\t\t\tsbSQLQuery.append(\" OR \");\r\n\t\t\tsbSQLQuery.append(\"path = '\" + paths[i] + \"/'\");\r\n\t\t\tif (i < paths.length - 1) {\r\n\t\t\t\tsbSQLQuery.append(\" OR \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tsbSQLQuery.append(\")\");\r\n\t\tString sqlQuery = sbSQLQuery.toString();\r\n\r\n\t\tClass.forName(\"org.sqlite.JDBC\");\r\n\r\n\t\tList<String[]> v = new ArrayList<>();\r\n\r\n\t\tsynchronized (dbLockObject) {\r\n\t\t\tlogger.debug(\"SQL-Query: \" + sqlQuery);\r\n\t\t\ttry (Connection con = DriverManager.getConnection(\"jdbc:sqlite:\" + cookieFile)) {\r\n\t\t\t\ttry (Statement stat = con.createStatement()) {\r\n\t\t\t\t\ttry (ResultSet rs = stat.executeQuery(sqlQuery)) {\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * 1: id\r\n\t\t\t\t\t\t\t * 2: name\r\n\t\t\t\t\t\t\t * 3: value\r\n\t\t\t\t\t\t\t * 4: host\r\n\t\t\t\t\t\t\t * 5: path\r\n\t\t\t\t\t\t\t * 6: expiry\r\n\t\t\t\t\t\t\t * 7: lastAccessed\r\n\t\t\t\t\t\t\t * 8: isSecure\r\n\t\t\t\t\t\t\t * 9: isHttpOnly\r\n\t\t\t\t\t\t\t * 10: encrypted value\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tString[] cookie = new String[9];\r\n\t\t\t\t\t\t\tcookie[0] = rs.getString(\"name\");\r\n\t\t\t\t\t\t\tcookie[1] = rs.getString(\"value\");\r\n\t\t\t\t\t\t\tcookie[2] = rs.getString(\"host_key\");\r\n\t\t\t\t\t\t\tcookie[3] = rs.getString(\"path\");\r\n\t\t\t\t\t\t\tcookie[4] = rs.getString(\"expires_utc\");\r\n\t\t\t\t\t\t\tcookie[5] = rs.getString(\"last_access_utc\");\r\n\t\t\t\t\t\t\tcookie[6] = rs.getString(\"secure\");\r\n\t\t\t\t\t\t\tcookie[7] = rs.getString(\"httponly\");\r\n\t\t\t\t\t\t\tbyte[] encryptedValue = rs.getBytes(\"encrypted_value\");\r\n\t\t\t\t\t\t\tcookie[8] = decryptValue(encryptedValue, cookie[0], cookie[2]);\r\n\t\t\t\t\t\t\tv.add(cookie);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlogger.debug(\"Found cookies: \" + v.size());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tlogger.error(\"Could not read cookies from file: {}\", cookieFile, se);\r\n\t\t\t\tthrow se;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Sort Cookies\r\n\t\tCollections.sort(v, cookieComparator);\r\n\r\n\t\tStringBuilder sbCookies = new StringBuilder();\r\n\t\tfor (String[] cookiex : v) {\r\n\t\t\tif (sbCookies.length() > 0) {\r\n\t\t\t\tsbCookies.append(\"; \");\r\n\t\t\t}\r\n\t\t\tif (!cookiex[8].isEmpty()) {\r\n\t\t\t\tsbCookies.append(cookiex[0] + \"=\" + cookiex[8]);\r\n\t\t\t} else {\r\n\t\t\t\tsbCookies.append(cookiex[0] + \"=\" + cookiex[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sbCookies.toString();\r\n\t}", "public void put(Object key, Object value) throws AspException\n {\n throw new AspReadOnlyException(\"Request.Cookies\");\n }", "public void put(Object key, Object value) throws AspException\n {\n throw new AspReadOnlyException(\"Request.Cookies\");\n }", "public String toString()\n {\n return \"{CookieValue(\" + cookieValues + \")}\";\n }", "@Override\n\t\tpublic void addCookie(Cookie cookie) {\n\t\t\t\n\t\t}", "public void remember(String key, Object value) {\n if (value instanceof Map map) {\n map.forEach((entryKey, entryValue) -> remember(key + OBJECT_KEY_SEPARATOR + entryKey.toString(), entryValue));\n }\n if (value instanceof List list) {\n range(0, list.size()).forEach(i -> remember(key + String.format(LIST_ITEM_FORMAT, i), list.get(i)));\n }\n context.put(key, value);\n }", "private native String native_ks(long cookie, byte[] userKey);", "void addCookie(HttpServletResponse response, Cookie cookie);", "private List<HttpCookie> parseCookiesFromHeaders(HttpHeaders httpHeaders) {\n List<HttpCookie> cookies = Lists.newArrayList();\n List<String> cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n\n cookieHeaders = httpHeaders.get(HttpHeaders.SET_COOKIE2);\n if (cookieHeaders != null) {\n cookieHeaders.forEach(header -> cookies.addAll(HttpCookie.parse(header)));\n }\n return cookies;\n }", "CookieValue()\n {\n valuesAsString = null;\n }", "protected String createCookie(String name,\n String value,\n String path,\n String domain) {\n\n String contextCookie = name + \"=\" + value;\n // Setting a specific path restricts the browsers\n // to return a cookie only to the web applications\n // listening on that specific context path\n if (path != null) {\n contextCookie += \";Path=\" + path;\n }\n\n // Setting a specific domain further restricts the browsers\n // to return a cookie only to the web applications\n // listening on the specific context path within a particular domain\n if (domain != null) {\n contextCookie += \";Domain=\" + domain;\n }\n\n if (stateTimeToLive > 0) {\n // Keep the cookie across the browser restarts until it actually expires.\n // Note that the Expires property has been deprecated but apparently is\n // supported better than 'max-age' property by different browsers\n // (Firefox, IE, etc)\n Instant expires = Instant.ofEpochMilli(System.currentTimeMillis() + stateTimeToLive);\n String cookieExpires =\n HttpUtils.getHttpDateFormat().format(Date.from(expires.atZone(ZoneOffset.UTC).toInstant()));\n contextCookie += \";Expires=\" + cookieExpires;\n }\n\n //TODO: Consider adding an 'HttpOnly' attribute\n\n return contextCookie;\n }", "public void addCookie(Cookie cookie) {\n\t\t\n\t}", "Cookie(){\n number = 0;\n bakeTemp = 0;\n bakeTime = 0;\n isReady = false;\n\n }", "public void setAuthHash(String serverCookies){\r\n\t\tif(serverCookies != null){\r\n String[] cookies = serverCookies.split(\";\");\r\n for(String s : cookies){\t \t \r\n s = s.trim();\r\n if(s.split(\"=\")[0].equals(\"authash\")){\r\n \t this.authHash = s.split(\"=\")[1];\r\n break;\r\n }\r\n }\r\n }\t\t\r\n\t}", "public void saveLocalCookie(HttpServletResponse response,\r\n\t\tString ckName, String ckValue) {\r\n\t\tCookie ck = new Cookie(ckName, ckValue);\r\n\t\tck.setDomain(\".bccard.com\");\r\n\t\tck.setPath(\"/\");\r\n\t\tck.setMaxAge(60*60*24*365*10);\r\n\t\tresponse.addCookie(ck);\r\n\t}", "private void setCookies(HttpServletRequest request, HttpServletResponse response, int currentPage, int recordsOnPage) {\n CookieManager cookieManager = new CookieManager(request);\n String currentPageString = Integer.toString(currentPage);\n response.addCookie(cookieManager.makeCookie(CookieName.USERS_CURRENT_PAGE, currentPageString));\n\n String recordsOnPageString = Integer.toString(recordsOnPage);\n response.addCookie(cookieManager.makeCookie(CookieName.RECORDS_ON_USERS_PAGE, recordsOnPageString));\n }", "public Object get(Object obj) throws AspException\n {\n IdentNode strValue = new IdentNode(Types.coerceToString(obj));\n if (!cookieValues.containsKey(strValue)) {\n return emptyCookie;\n }\n return cookieValues.get(strValue);\n }", "Cookie deleteOrder(int id, String [] cookiesval, String [] cookiesname);", "public static String formatCookie(String[] values) {\n return StringUtils.join(values, RAW_COOKIE_DELIMITER);\n }", "UserSettings store(HawkularUser user, String key, String value);", "@GetMapping(\"/createcookie\")\n\tpublic String createCookie(HttpServletResponse response) {\n\t\tCookie cookie = new Cookie(\"name\", \"Akshay\");\n\t\tresponse.addCookie(cookie);\n\t\treturn \"createcookie\";\n\t}", "public Cookie(String name, String value)\n\t\t{\n\t\t\tthis.name = name;\n\t\t\tthis.value = value;\n\t\t}", "public Series<Cookie> getCookies() {\n // Lazy initialization with double-check.\n Series<Cookie> c = this.cookies;\n if (c == null) {\n synchronized (this) {\n c = this.cookies;\n if (c == null) {\n this.cookies = c = new CookieSeries();\n }\n }\n }\n return c;\n }", "public void setCookies(Map<String, String> cookies) throws IOException {\r\n if (cookies == null)\r\n return;\r\n this.cookies.putAll(cookies);\r\n }", "public ServerCookie() {\n\n }", "protected static void addCookies(HttpURLConnection urlConnection) {\n for (String cookie : cookies) {\n urlConnection.addRequestProperty(\"Cookie\", cookie.split(\";\", 2)[0]);\n }\n }", "@Override\n\tpublic void addCookie(Cookie cookie) {\n\t}", "protected abstract void _set(String key, Object obj, Date expires);", "public DefaultCookie(String name, String value) {\n this(name);\n \tthis.value = value;\n }", "private void setCookies(URLConnection conn) {\n\t\tif (cookies.isEmpty()) {conn.setRequestProperty(\"Cookie\", \"\"); return;}\n\n\t\tconn.setRequestProperty(\"Cookie\", cookies);\n\t\tprocessor.printSys(\"Cookies Set: \" + cookies);\n\t}", "private Collection<C> createSessionJwtCookies(Map<String, Object> jwtParameters)\n throws AuthenticationException {\n\n KeystoreManager keystoreManager = new KeystoreManager(keystoreType, keystoreFile, keystorePassword);\n\n Key publicKey = keystoreManager.getPublicKey(keyAlias);\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.set(Calendar.MILLISECOND, 0);\n final Date now = calendar.getTime();\n calendar.add(Calendar.SECOND, maxTokenLife);\n final Date exp = calendar.getTime();\n Date nbf = now;\n Date iat = now;\n calendar.setTime(now);\n calendar.add(Calendar.SECOND, tokenIdleTime);\n Date tokenIdleTime = calendar.getTime();\n String jti = UUID.randomUUID().toString();\n\n JwtClaimsSet claimsSet = jwtBuilderFactory.claims()\n .jti(jti)\n .exp(exp)\n .nbf(nbf)\n .iat(iat)\n .claim(TOKEN_IDLE_TIME_IN_SECONDS_CLAIM_KEY, tokenIdleTime.getTime() / 1000L)\n .claims(jwtParameters)\n .build();\n\n String jwtString = buildJwtString(claimsSet, publicKey);\n\n return createCookies(jwtString, getCookieMaxAge(now, exp), \"/\");\n }", "public Cookie[] getCookieObjects() {\n\t\tCookie[] result = request.getCookies();\n\t\treturn result != null ? result : new Cookie[0];\n\t}", "public int[] randomCookieGen(){\r\n SecureRandom secrand = new SecureRandom();\r\n IntStream cookie = secrand.ints(128);\r\n return cookie.toArray();\r\n }", "public void storeDataForCashePrefrenceArray(SharedPreferences spinnerPrefs, Set<String> arrayOFSpinnersValue){//for new version\n SharedPreferences.Editor prefsEditor = spinnerPrefs.edit();\n prefsEditor.putStringSet(\"inputspinner_prefrance_set_for_cashe\",arrayOFSpinnersValue);\n prefsEditor.commit();\n }", "public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }", "public static void saveCookie(String cookieName,String cookieValue,HttpServletResponse response) {\r\n\t\tCookie cookie =new Cookie(cookieName, cookieValue);\r\n\t\tcookie.setDomain(COOKIE_DOMAIN);\r\n\t\tcookie.setHttpOnly(true);\r\n\t\tcookie.setPath(\"/\");//代表设置在根目录\r\n\t\t //单位是秒。\r\n //如果这个maxage不设置的话,cookie就不会写入硬盘,而是写在内存。只在当前页面有效\r\n\t\tcookie.setMaxAge(60 * 60 * 24 * 360); ////如果是-1,代表永久\r\n\t\tlog.info(\"write cookieName:{},cookieValue:{}\",cookie.getName(),cookie.getValue());\r\n\t response.addCookie(cookie);\r\n\t}", "Map<K,V> readFromStore(Collection<K> keys);", "@RequestMapping(\"/\")\n public String home(HttpServletResponse response){\n CookieGenerator cookieGenerator = new CookieGenerator();\n cookieGenerator.setCookieName(\"myTestCookie\");\n cookieGenerator.addCookie(response, \"myValue\");\n\n return \"cookie\";\n }", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "public Object get(Object value) throws AspException\n {\n IdentNode iValue = new IdentNode(Types.coerceToString(value));\n if (!cookieValues.containsKey(iValue)) {\n return Constants.undefinedValueNode;\n }\n Object res = cookieValues.get(iValue);\n if (DBG.isDebugEnabled())\n DBG.debug(\"Get key: \" + res);\n return res;\n }", "public List<Cookie> parse(HeaderElement[] headerElementArr, CookieOrigin cookieOrigin) throws MalformedCookieException {\n return createCookies(headerElementArr, adjustEffectiveHost(cookieOrigin));\n }", "public static void addCookie(String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly) {\n HttpResponse response = ResteasyProviderFactory.getContextData(HttpResponse.class);\n StringBuffer cookieBuf = new StringBuffer();\n ServerCookie.appendCookieValue(cookieBuf, 1, name, value, path, domain, comment, maxAge, secure, httpOnly);\n String cookie = cookieBuf.toString();\n response.getOutputHeaders().add(HttpHeaders.SET_COOKIE, cookie);\n }", "public void setCookie(String name, String value) throws IOException {\r\n cookies.put(name, value);\r\n }", "protected abstract boolean _setIfAbsent(String key, Object value, Date expires);", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "HttpChannel addResponseCookie(Cookie cookie);", "@JavascriptInterface\n public void saveValues(String key, String value) {\n }", "public ShoppingCartPersisterImpl(final CookieTuplizer cookieTuplizer) {\r\n this.cookieTuplizer = cookieTuplizer;\r\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();", "public interface CookieConstant {\n\n String TOKEN = \"token\";\n\n Integer EXPIRE = 7200;\n}", "public RCCookie(String name, String value, Integer maxAge, String domain, String path) {\r\n\t\t\tsuper();\r\n\t\t\tthis.name = name;\r\n\t\t\tthis.value = value;\r\n\t\t\tthis.domain = domain;\r\n\t\t\tthis.path = path;\r\n\t\t\tthis.maxAge = maxAge;\r\n\t\t}", "private int addCookie(String cookie) {\n\t\tif (cookies.contains(cookie)) return 0; //we have this exact cookie\n\n\t\tString newCookieName = cookie.split(\"=\")[0];\n\t\tif (cookies.contains(newCookieName)) replaceCookies(newCookieName); //we have a cookie with the same name as the new cookie, swap them\n\n\t\tprocessor.printSys(\"New Cookie: \" + cookie);\n\t\tcookies += (cookie + \"; \"); //add the new cookie followed by a semicolon\n\n\t\treturn 1;\n\t}", "public HttpsConnection addCookie(final String cookie) {\n return setHeader(\"Cookie\", this.mHeaders.get(\"Cookie\") + \"; \");\n }", "public void setCookies(URLConnection conn) throws IOException {\n\n\t\t// let's determine the domain and path to retrieve the appropriate\n\t\t// cookies\n\t\tURL url = conn.getURL();\n\t\tString domain = getDomainFromHost(url.getHost());\n\t\tString path = url.getPath();\n\n\t\tMap<String, Map<String, String>> domainStore = store.get(domain);\n\t\tif (domainStore == null)\n\t\t\treturn;\n\t\tStringBuffer cookieStringBuffer = new StringBuffer();\n\n\t\tIterator<String> cookieNames = domainStore.keySet().iterator();\n\t\twhile (cookieNames.hasNext()) {\n\t\t\tString cookieName = cookieNames.next();\n\t\t\tMap<String, String> cookie = (Map<String, String>) domainStore\n\t\t\t\t\t.get(cookieName);\n\t\t\t// check cookie to ensure path matches and cookie is not expired\n\t\t\t// if all is cool, add cookie to header string\n\t\t\tif (comparePaths((String) cookie.get(PATH), path)\n\t\t\t\t\t&& isNotExpired((String) cookie.get(EXPIRES))) {\n\t\t\t\tcookieStringBuffer.append(cookieName);\n\t\t\t\tcookieStringBuffer.append(\"=\");\n\t\t\t\tcookieStringBuffer.append((String) cookie.get(cookieName));\n\t\t\t\tif (cookieNames.hasNext())\n\t\t\t\t\tcookieStringBuffer.append(SET_COOKIE_SEPARATOR);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tconn.setRequestProperty(COOKIE, cookieStringBuffer.toString());\n\t\t} catch (java.lang.IllegalStateException ise) {\n\t\t\tIOException ioe = new IOException(\n\t\t\t\t\t\"Illegal State! Cookies cannot be set on a URLConnection that is already connected. \"\n\t\t\t\t\t\t\t+ \"Only call setCookies(java.net.URLConnection) AFTER calling java.net.URLConnection.connect().\");\n\t\t\tthrow ioe;\n\t\t}\n\t}", "public static String retrieveLoginCookies(HashMap<String, String> params) throws IOException {\n String url = Constants.LOGIN_URL;\n CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));\n HttpURLConnection con = null;\n try {\n URL obj = new URL(url);\n con = (HttpURLConnection) obj.openConnection();\n } catch (UnknownHostException e) {\n //try to fix broken url\n con = (HttpURLConnection) new URL(\"http://\" + url).openConnection();\n }\n\n //add request header\n con.setRequestMethod(\"POST\");\n //just for fun\n con.setRequestProperty(\"Accept-Language\", \"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2\");\n\n String urlParameters = \"\";\n\n for (Map.Entry<String, String> e : params.entrySet()) {\n urlParameters += e.getKey() + \"=\" + e.getValue() + \"&\";\n }\n\n //send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n\n // temporary to build request cookie header\n String sessionCookie = \"\";\n // find the cookies in the response header from the first request\n List<String> cookies = con.getHeaderFields().get(\"Set-Cookie\");\n if (cookies != null) {\n for (String cookie : cookies) {\n // only want the first part of the cookie header that has the value\n String value = cookie.split(\";\")[0];\n sessionCookie += value + \";\";\n }\n }\n return sessionCookie;\n }", "public void addSetCookie(Cookie cookie, ZonedDateTime expires, Path path, \n\t\t\tboolean httpOnly, boolean secure)\n\t{\n\t\tif (cookie == null)\n\t\t\treturn;\n\t\t\n\t\tStringBuilder s = new StringBuilder(cookie.toString());\n\t\t\n\t\tif (expires != null)\n\t\t\ts.append(\"; \" + expires.format(DateTimeFormatter.RFC_1123_DATE_TIME));\n\t\tif (path != null)\n\t\t\ts.append(\"; /\" + path.toString());\n\t\tif (httpOnly)\n\t\t\ts.append(\"; HttpOnly\");\n\t\tif (secure)\n\t\t\ts.append(\"; Secure\");\n\t\t\n\t\taddHeader(SET_COOKIE, s.toString());\n\t}", "public static void appendEncodedCookieValue( StringBuffer buf,\n\t\t\t\t\t int version,\n\t\t\t\t\t String name,\n\t\t\t\t\t String value,\n\t\t\t\t\t String path,\n\t\t\t\t\t String domain,\n\t\t\t\t\t String comment,\n\t\t\t\t\t int maxAge,\n\t\t\t\t\t boolean isSecure) {\n appendCookieValue(buf, version, name, value, path, domain, comment,\n maxAge, isSecure, true);\n }", "public ServerCookie bakeCookie(int playerID)\n\t{\n\t\tServerCookie newcookie = new ServerCookie(playerID);\n\t\tcookies.put(newcookie.getCookieText(), newcookie);\n\t\treturn newcookie;\n\t}", "public Session getSessionbyCookie(int cookie);", "public Cookie() {\n }", "private List<String> getSessionIdFromCookie()\n //----------------------------------------------------------------\n {\n String name = null;\n String value = null;\n PageContext pageContext = null;\n HttpServletRequest httpRequest = null;\n Cookie[] cookies = null;\n pageContext = (PageContext) this.getJspContext();\n List<String> sessionList = null;\n\n /*\n * There might be multiple Cookies with the same name\n * Get the value for each Cookie and store it in the List\n */\n\n sessionList = new LinkedList<String>();\n\n if (pageContext != null)\n {\n httpRequest = (HttpServletRequest) pageContext.getRequest();\n if (httpRequest != null)\n {\n cookies = httpRequest.getCookies();\n if (cookies != null)\n {\n for (Cookie cookie : cookies)\n {\n if (cookie != null)\n {\n name = cookie.getName();\n if (name != null && name.length() > 0 && name.equals(COOKIE_NAME))\n {\n value = cookie.getValue();\n if (value != null && value.length() > 0)\n {\n sessionList.add(value);\n }\n }\n }\n }\n }\n }\n }\n\n return sessionList;\n }", "Node.Cookie getCookie( Class type ) {\n return null;\n }", "public List<Cookie> getCookies() {\n return cookies == null ? Collections.EMPTY_LIST : cookies;\n }", "private static Cookie getCookie() {\n if (cookie == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (cookie == null) {\n cookie = new Cookie(cookieName, getAppTokenId());\n }\n }\n }\n return cookie;\n }", "private Cookie getLoginCookie(boolean rememberMe,String login){\r\n\t\tCookie loginCookie=null;\r\n\t\tif(rememberMe)\r\n\t\t{\r\n\t\t\tloginCookie = new Cookie(CookieKeys.LOGIN, login);\r\n\t\t\tloginCookie.setPath(\"/\");\r\n\t\t\tloginCookie.setMaxAge(CookieKeys.MAX_AGE);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tloginCookie = new Cookie(CookieKeys.LOGIN, null);\r\n\t\t\tloginCookie.setMaxAge(0);\r\n\t\t}\r\n\t\treturn loginCookie;\r\n\t}", "private ApplicationPersistentToken getPersistentToken(String[] cookieTokens) {\n if (cookieTokens.length != 2) {\n throw new InvalidCookieException(\"Cookie token did not contain \" + 2 +\n \" tokens, but contained '\" + Arrays.asList(cookieTokens) + \"'\");\n }\n\n final String presentedSeries = cookieTokens[0];\n final String presentedToken = cookieTokens[1];\n\n ApplicationPersistentToken token = getToken(presentedSeries);\n\n if (token == null) {\n // No series match, so we can't authenticate using this cookie\n throw new RememberMeAuthenticationException(\"No persistent token found for series id: \" + presentedSeries);\n }\n\n // We have a match for this user/series combination\n log.info(\"presentedToken={} / tokenValue={}\", presentedToken, token.getTokenValue());\n if (!presentedToken.equals(token.getTokenValue())) {\n // Token doesn't match series value. Delete this session and throw an exception.\n persistentTokenRepository.delete(token);\n throw new CookieTheftException(\"Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack.\");\n }\n\n if (token.getTokenDate().plusDays(TOKEN_VALIDITY_DAYS).isBefore(LocalDate.now())) {\n persistentTokenRepository.delete(token);\n throw new RememberMeAuthenticationException(\"Remember-me login has expired\");\n }\n return token;\n }" ]
[ "0.6513234", "0.6241373", "0.6183567", "0.6113243", "0.61033887", "0.6028575", "0.5818639", "0.577329", "0.5717901", "0.5708054", "0.5574696", "0.55107266", "0.5492158", "0.54790723", "0.5476231", "0.5394758", "0.5390662", "0.5353614", "0.53485626", "0.53392684", "0.53381515", "0.53164667", "0.5316375", "0.5266958", "0.5225023", "0.5174743", "0.51626724", "0.5161544", "0.515223", "0.51515126", "0.5117167", "0.51050645", "0.51023495", "0.5099927", "0.50989866", "0.5085372", "0.50547177", "0.503391", "0.50085056", "0.49838373", "0.4980376", "0.49609625", "0.49549046", "0.4952873", "0.49371368", "0.48866528", "0.48828417", "0.48704618", "0.485598", "0.48542094", "0.48535213", "0.4845655", "0.48270896", "0.48232105", "0.48220378", "0.4817271", "0.48107332", "0.48093003", "0.4798975", "0.47922894", "0.4785343", "0.47844812", "0.47494352", "0.47436196", "0.47405243", "0.4739163", "0.47375447", "0.47368908", "0.4719974", "0.47183964", "0.4693611", "0.46911365", "0.4685045", "0.46826315", "0.4676128", "0.46750197", "0.46732208", "0.46560347", "0.4641888", "0.4632653", "0.46235496", "0.46136695", "0.46088973", "0.4590463", "0.45877093", "0.45804387", "0.4576894", "0.4574352", "0.45729968", "0.45721436", "0.4572", "0.45665246", "0.45618084", "0.45574105", "0.4550227", "0.45346466", "0.45298454", "0.45168215", "0.45124948", "0.45122957" ]
0.6751586
0
go to the Game and start playing
public void onPlay(View view){ Intent intent = new Intent(WelcomeActivity.this,MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "public final void playGame() {\n\t\tSystem.out.println(\"Welcome to \"+nameOfGame+\"!\");\n\t\tsetup(numberOfPlayers);\n\t\tfor(int i = 0; !isGameOver(); i = (i+1) % numberOfPlayers) {\n\t\t\ttakeTurn(i+1);\n\t\t}\n\t\tfinishGame();\n\t}", "public void play() {\n\n init();\n while (isGameNotFinished()) {\n log.info(\"*** Starting next turn\");\n for (Player player : getPlayers()) {\n executeTurn(player);\n }\n }\n log.info(\"*** Game Finished\");\n }", "private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n gameEnded = true;\n return;\n }\n \n moveCycle();\n \n if (!game.validateGame()) \n {\n IllegalBoardPenalty();\n }\n \n String gameOverMessage = game.isGameOver();\n if (gameOverMessage != null) \n {\n //TODO: ConsoleUtils.message(gameOverMessage);\n gameEnded = true;\n }\n \n game.switchPlayer();\n }", "public void playGame() {\n\t\t\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tplayRoundOne();\r\n\t\t}\r\n\t\t\r\n\t}", "public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n break;\r\n }\r\n\r\n turn++;\r\n display.displayBoard();\r\n\r\n if (turn % 2 == 1) {\r\n player1.makeMove(gamestate);\r\n } else {\r\n player2.makeMove(gamestate);\r\n }\r\n\r\n }\r\n\r\n if (finished) {\r\n\r\n display.displayBoard();\r\n\r\n switch (gamestate.getWinner()) {\r\n case Connect4GameState.RED:\r\n System.out.println(\"R wins\");\r\n break;\r\n case Connect4GameState.YELLOW:\r\n System.out.println(\"Y wins\");\r\n break;\r\n default:\r\n System.out.println(\"No one wins\");\r\n }\r\n\r\n finished = false;\r\n\r\n }\r\n\r\n if (display instanceof Connect4ConsoleDisplay) {\r\n quit = true;\r\n }\r\n\r\n }\r\n\r\n }", "public void startPlaying() {\n\t\t\n\t\t// make the player travel to its home base\n\t\ttravelTo(Location.Home);\n\t\t\n\t\t// once it has travelled to its home base, start performing \n\t\t// the appropriate tasks -- whether that is attack or defend\n\t\tif (role == Role.Defender) defend();\n\t\telse if (role == Role.Attacker) attack();\n\t\t\n\t}", "public void startGame() {\n \t\tcontroller = new GameController(gameConfig, players);\n \t\tcontroller.LOG = controller.LOG + \"#MPClient\";\n \n controller.setCurrentPlayer(firstTurnPid);\n \n \t\tsendStartGame();\n \t}", "public void startGame() {\r\n this.setupGame();\r\n }", "public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "public void startGame()\n {\n while (true)\n {\n WebElement start = driver.findElement(By.cssSelector(\"#index > div.btns > button\"));\n if (start.isDisplayed())\n {\n start.click();\n return;\n }\n }\n }", "public static void startGamePlay() {\r\n\t\tif(!STATUS.equals(Gamestatus.PREPARED)) {\r\n\t\t\tSystem.err.println(\"Invalid Gamestatus! Cannot start unprepared gameplay\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\tSTATUS = Gamestatus.RUNNING;\r\n\t\tclock = new GameClock();\r\n\t\tclock.start(GameTickExecutor.DEFAULT_GAMETICK);\r\n\t}", "public void launchTurn() {\n \twhile (getCurrentPlayer() instanceof AbstractIA) {\n \t\tSystem.out.println(\"Some thing happen or nothing\");\n \t\tjouerIA();\n \t\tendTurn();\n \t\t//setCurrentPlayer(getJoueur1());\t\n \t}\n \t\n }", "private static void continueGame()\r\n\t{\r\n\t\tString name = \"\";\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tname = scan(\"Write the name of your game: \");\r\n\t\t\t\r\n\t\t\tif(GameManager.instance().players().contains(name)) break;\r\n\t\t}\r\n\t\t\r\n\t\tGameManager.instance().setCurrentPlayer(name);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tGameManager.instance().loadGame();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tSystem.out.println(\"Something happened\");\r\n\t\t}\r\n\t}", "void startGame() {\n if (getHealth() <= 0) {\n startAgain();\n }\n int level = getLevel();\n if (level == 1) {\n Intent intent = new Intent(this, Level1Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n } else if (level == 2) {\n Intent intent = new Intent(this, Level2Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n } else if (level == 3) {\n Intent intent = new Intent(this, Level3Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n }\n }", "public void runTheGame() {\n\t\txPlayer.setOpponent(oPlayer);\n\t\toPlayer.setOpponent(xPlayer);\n\t\tboard.display();\n\t\txPlayer.play();\n\t}", "private void startGame() {\n gameCountDownTimer = getGameTimer();\n gameCountDownTimer.start();\n animateBalloonView(balloon1, true);\n animateBalloonView(balloon2, true);\n animateBalloonView(balloon3, true);\n animateBalloonView(balloon4, true);\n animateBalloonView(balloon5, true);\n currentScreenGameState = GameState.PLAYING;\n String controlButtonTitle = getResources().getString(R.string.pause_btn);\n conttroler.setText(controlButtonTitle);\n setCurrentScreenCover();\n invalidateOptionsMenu();\n }", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }", "public void play() {\n\t\t\r\n\t}", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "public void startGame() {\n\t\tinitChips();\n\t\tassignAndStartInitialProjects();\n\t}", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "public void startGame() {\n\t\tif (chordImpl.getPredecessorID().compareTo(chordImpl.getID()) > 0) {\n\t\t\tGUIMessageQueue.getInstance().addMessage(\"I Start!\");\n\t\t\tshoot();\n\t\t}\n\t}", "public void play() {\r\n int ii = 0;\r\n\r\n System.out.println(\"****************************************************************\");\r\n System.out.println(\"Play game: a move is expressed as \\\"row#,col#\\\", such as \\\"1,2\\\"\");\r\n System.out.println(\"Computer: X Person: O\");\r\n System.out.println(\"****************************************************************\");\r\n while(!isGameEnded()) {\r\n if (ii >= MAX_MOVE_NUMBER) {\r\n\tbreak;\r\n }\r\n\r\n nextMove();\r\n ii++;\r\n }\r\n\r\n if (isPersonWin()) {\r\n System.out.println(\"Person Wins!\");\r\n saveLoseRecord();\r\n }\r\n else if (isComputerWin()) {\r\n System.out.println(\"Computer Wins!\");\r\n }\r\n else {\r\n System.out.println(\"Tie!\");\r\n }\r\n\r\n }", "public void start() {\n ArrayList<String> names = new ArrayList<>();\n game.initialize(names);\n //game.play(this.mainPkmn, this.attack);\n\n }", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n\n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "private void startGame() {\r\n setGrid();\r\n setSnake();\r\n newPowerUp();\r\n timer.start();\r\n }", "private void startGame() {\r\n gameRunning = true;\r\n gameWindow.getStartButton().setText(\"Stop\");\r\n gameThread = new Thread(new GameLoopThread());\r\n gameThread.start();\r\n }", "public void playGame() {\n show();\n while (gameStatus) {\n if (canPut(players.get((state.getTurn())))) {\n int choice = -1;\n while (gameStatus) {\n choice = controls.get(state.getTurn()).putCard(currentCard);\n if (validInput(players.get((state.getTurn())), choice)) {\n System.out.println(players.get(state.getTurn()).getCards().get(choice).toString());\n try{Thread.sleep(1000);}catch(InterruptedException ignored){}\n break;\n }\n }\n decide(players.get(state.getTurn()), players.get(state.getTurn()).getCards().get(choice));\n }\n try{Thread.sleep(500);}catch(InterruptedException ignored){}\n checkFinish();\n if (gameStatus) {\n state.nextTurn();\n show();\n }\n }\n }", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "void startGame();", "void startGame();", "void startGame();", "public void startNewGame() {\n\t\tif (this.currentPlayer != -1) {\n\t\t\tthrow new RuntimeException(\"The game has already started.\");\n\t\t}\n\n\t\tif (this.players.size() == 0) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"The game cannot be started with a single player\");\n\t\t}\n\n\t\tthis.currentPlayer = 0;\n\n\t\tstartTurn();\n\t}", "public void play() {\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Play\");\r\n\t\t\r\n\t\t// Start game\r\n\t\tif (state == GameState.CREATED) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.PLAYING;\r\n\t\t\t\r\n\t\t\t// Start scheduling thread\r\n\t\t\tstart();\r\n\t\t}\r\n\t\t// Resume game\r\n\t\telse if (state == GameState.PAUSED || state == GameState.WAITING_FRAME) {\r\n\t\t\t// Change state\r\n\t\t\tstate = GameState.PLAYING;\r\n\t\t\t\r\n\t\t\t// Wake scheduling thread up\r\n\t\t\twakeUp();\r\n\t\t}\r\n\t}", "public void startGame(View view) {\n\t\tstartActivity(new Intent(this, Game.class));\n\t}", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if(currentRoom == win)\n {\n finished = true;\n }\n if (timer > 10)\n {\n currentRoom = fail;\n System.out.println(currentRoom.getLongDescription());\n finished = true;\n }\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "private void playGame() {\n do {\n new Round(this);\n } while (!winner.isPresent());\n }", "public void play() \n { \n if (!gameLoaded)\n {\n String msg = \"The game has not been loaded\";\n System.out.println(msg);\n SystemLog.getErrorLog().writeToLog(msg);\n SystemLog.saveAllLogs();\n return;\n }\n \n // Setup Timer\n timer = new Timer();\n timer.schedule(timeHolder, 0, 1000);\n \n // Setup user input\n parser = new Parser();\n }", "public void actionPerformed(ActionEvent e){\n\t\t\tstartGame();\n\t\t}", "public void startGame(View view) {\n Intent intent = new Intent(this, Game.class);\n startActivity(intent);\n }", "public void startGame() {\n status = Status.COMPLETE;\n }", "public void play() {\n\n int turn = 1;\n\n while (!isCheckMate()) {\n System.out.println(\"Turn \" + turn++);\n board.print();\n playTurn(whitePlayer);\n board.print();\n playTurn(blackPlayer);\n }\n }", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "private void startNewGame()\n {\n \n \t//this.mIsSinglePlayer = isSingle;\n \n \tmGame.clearBoard();\n \n \tfor (int i = 0; i < mBoardButtons.length; i++)\n \t{\n \t\tmBoardButtons[i].setText(\"\");\n \t\tmBoardButtons[i].setEnabled(true);\n \t\tmBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n \t\t//mBoardButtons[i].setBackgroundDrawable(getResources().getDrawable(R.drawable.blank));\n \t}\n \n \t\tmPlayerOneText.setText(\"Player One:\"); \n \t\tmPlayerTwoText.setText(\"Player Two:\"); \n \n \t\tif (mPlayerOneFirst) \n \t{\n \t\t\tmInfoTextView.setText(R.string.turn_player_one); \n \t\tmPlayerOneFirst = false;\n \t}\n \telse\n \t{\n \t\tmInfoTextView.setText(R.string.turn_player_two); \n \t\tmPlayerOneFirst = true;\n \t}\n \t\n \n \tmGameOver = false;\n }", "public void playTurn() {\r\n\r\n }", "public void startGame(){\n\t\tSystem.out.println(\"UNI: nas2180\\n\" +\n\t\t\t\t\"Hello, lets play Rock Paper Scissors Lizard Spock!\\n\");\n\t\tSystem.out.println(\"Rules:\\n Scissors cuts Paper\\n \" +\n\t\t\t\t\"Paper covers Rock\\n \" +\n\t\t\t\t\"Rock crushes Lizard\\n \" +\n\t\t\t\t\"Lizard poisons Spock\\n \" +\n\t\t\t\t\"Spock smashes Scissors\\n \" +\n\t\t\t\t\"Scissors decapitates Lizard\\n \" +\n\t\t\t\t\"Lizard eats Paper\\n \" +\n\t\t\t\t\"Paper disproves Spock\\n \" +\n\t\t\t\t\"Spock vaporizes Rock\\n \" +\n\t\t\t\t\"(and as it always has) Rock crushes Scissors\\n\");\n\t\tthisGame = new GameResult();\n\t\tplayRound();\n\t}", "public void play() { player.resume();}", "public void startNewGame();", "private void playGame() throws IOExceptionFromController {\n for (Player player : players) {\n if (player.getGodCard().hasAlwaysActiveModifier()) game.addModifier(player.getGodCard());\n }\n while (!game.hasWinner()) {\n if (!running.get()) return;\n Player currentPlayer = players.get(game.getActivePlayer());\n for (Card modifier : game.getActiveModifiers()) {\n if (!modifier.hasAlwaysActiveModifier() && modifier.getController().getPlayer().equals(currentPlayer))\n game.removeModifier(modifier);\n }\n\n broadcastGameInfo(\"turnStart\");\n String result = playerControllers.get(game.getActivePlayer()).playTurn();\n switch (result) {\n case \"next\":\n checkWorkers();\n game.nextPlayer();\n break;\n case \"outOfMoves\":\n case \"outOfBuilds\":\n case \"outOfWorkers\":\n eliminatePlayer(currentPlayer, result);\n game.nextPlayer();\n break;\n case \"winConditionAchieved\":\n case \"godConditionAchieved\":\n setWinner(currentPlayer, result);\n break;\n default:\n logError(\"invalid turn\");\n break;\n }\n }\n gameOver();\n }", "public Game startGame(Game game);", "private void startGame()\n {\n if (heroPlayer != null && antagonistPlayer != null && location != null && currentPlayerName != \"null\")\n {\n gameStarted = true;\n }\n }", "public void startGame() {\n loadPlayersIntoQueueOfTurns();\n nextPlayerInTurn();\n eventListener.addEventObject(new RoundEvent(EventNamesConstants.GameStarted));\n }", "void play();", "public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}", "public void startGame() {\n \t\ttimeGameStarted = System.nanoTime();\n \t\tisStarted = true;\n \n \t}", "public void playGame() {\t\t\r\n\t\tthis.printWelcomeMessage();\r\n\r\n\t\t// While the game hasn't finished yet. \r\n\t\twhile (!board.isGameWon()) {\r\n\t\t\tthis.printMoveText(\"What piece would you like to move: \", \"\\n-- PLEASE ENTER A VALID PIECE --\", true);\r\n\t\t\tthis.printSeparator();\r\n\t\t\tthis.printMoveText(\"Where would you like to move this piece: \", \"\\n-- PLEASE ENTER A VALID LOCATION --\",\r\n\t\t\t\t\tfalse);\r\n\t\t\tthis.printSeparator();\r\n\t\t}\r\n\t\tSystem.out.println(board.toString());\r\n\t\tSystem.out.println(\"Level Complete - Congratulations!\");\r\n\t}", "public static void setupNewGamePlay() {\r\n\t\tSTATUS = Gamestatus.PREPARED;\r\n\t\tGameplay.getInstance().start();\r\n\t\tgui.setMenu(new GameplayMenu(), true);\r\n\t}", "public void play(){\n\t\t\n\t}", "public void play() {\n Selection selection;\n if ((selection = master.getWindowManager().getMain().getSelection()) == null) {\n startPlay();\n playShow(nextStartTime, -1 / 1000.0);\n } else {\n playSelection(selection);\n playShow(selection.start, selection.duration);\n }\n }", "@Override\r\n\tpublic void playGame() {\n\t\tSystem.out.println(\"SmartPhone具有玩游戏的功能\");\r\n\t}", "public void play() {\n field.draw();\n userTurn();\n if(! field.isFull()) {\n computerTurn();\n }\n }", "private void playGame() {\n\t\t\n\t\t/* take 1$ from the wallet to play game */\n\t\tsetWallet(-1);\n\t\t\n\t\t/* generate 3 random slots */\n\t\tslot1 = getSlot();\n\t\tslot2 = getSlot();\n\t\tslot3 = getSlot();\n\t\tslotBox1 = getSlotBox(slot1);\n\t\tslotBox2 = getSlotBox(slot2);\n\t\tslotBox3 = getSlotBox(slot3);\n\t\t\n\t\t/* draw slots on the screen and compute result*/\n\t\tadd(slotBox1, 100, 100);\n\t\tadd(slotBox2, 250, 100);\n\t\tadd(slotBox3, 400, 100);\n\t\t\n\t\tString result = gameOutcome(slot1, slot2, slot3);\n\t\ttopText = new GLabel(result);\n\t\tmidText = new GLabel(\"You now have \" + getWallet() + \"$.\");\n\t\tbotText = new GLabel(\"Click to play\");\n\t\ttopText.setFont(\"Serif-24\");\n\t\tmidText.setFont(\"Serif-24\");\n\t\tbotText.setFont(\"Serif-24\");\n\t\tadd(topText, 100, 250);\n\t\tadd(midText, 100, 280);\n\t\tadd(botText, 100, 310);\n\n\t}", "public void startOpponent() {\n\t\tthis.opponent.start();\n\t\tthis.timer.start();\n\t}", "public void startGame() {\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.println(\"* Medieval Warriors *\\n* the adventure *\");\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.print(\"Enter your name: \");\n\n\t\tthis.playern = new Player(sc.nextLine());\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.println(\"Welcome \" + playern.getName() + \" The Warrior\\n\");\n\t\t\n\t\tint input = -1;\n\t\twhile (!wonGame && !lostGame) {\n\t\t\tprintMainMenu();\n\t\t\tSystem.out.print(\"> \");\n\t\t\tinput = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tswitch(input) {\n\t\t\t\tcase 1:\n\t\t\t\t\tgoAdventure();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tgoToTavern();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tgoCharacter();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Bye!\");\n\t\t\t\t\tlostGame = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (wonGame) {\n\t\t\tSystem.out.println(\"Congratulations! You won The Game!\");\n\t\t}\n\n\t}", "public void playOneTurn() {\r\n //the number of balls in the game\r\n this.ballCounter = new Counter(this.levelInformation.numberOfBalls());\r\n Sleeper sleeper = new Sleeper();\r\n\r\n this.runner = new AnimationRunner(gui, 60, sleeper);\r\n this.paddle.getRectangle().setUpperLeft(new Point(WIDTH_SCREEN / 2 - (this.levelInformation.paddleWidth() / 2),\r\n HI_SCREEN - 40));\r\n //initialize the balls\r\n initializeBall();\r\n\r\n //start the game by counting down\r\n if (this.sprites != null) {\r\n this.runner.run(new CountdownAnimation(2, 4, this.sprites));\r\n }\r\n //run the game\r\n this.running = true;\r\n this.runner.run(this);\r\n\r\n }", "void startGame() {\n System.out.println(\"What game do you want to play?\\n\" + \"1. Lotto\\n\" + \"2. Small Lotto\\n\" + \"3. Quit\");\n input = scanner.next();\n changeGame();\n }", "public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }", "public void GameStart()\n\t\t{\n\t\t\tplayers_in_game++;\n\t\t}", "public void resume() {\n playing = true;\n gameThread = new Thread(this);\n gameThread.start();\n }", "public void playGame() {\n Command command;\t\t// the last command entered by the user\n\n // some hello words...\n System.out.println();\n printWelcome();\n // repeatedly read commands and execute them until the game is over\n while (!finished) {\n System.out.println();\n System.out.println(currentRoom.longDescription());\n System.out.println();\n command = parser.getCommand();\n processCommand(command);\n }\n // some bye bye words...\n printGoodbye();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tplayer.start();\r\n\t\t\t}", "void askStartGame();", "public void play()\n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n\n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n //System.out.println(command==null);\n String output = processCommand(command);\n finished = (null == output);\n if (!finished)\n { \n System.out.println(output);\n }\n\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public void run() {\n if (this.gui.getPauseState()) {\n this.gui.goHome();\n }\n }", "public void startGame() {\n\t\tfor(Chess.RowConfiguration rowConfiguration : Chess.getRowConfigurations()) {\n\t\t\tint row = rowConfiguration.row;\n\t\t\tClass[] pieceClasses = rowConfiguration.pieces;\n\t\t\tChess.Color sideColor = rowConfiguration.sideColor;\n\n\t\t\tfor(int col = 0; col < Chess.NUM_COLS; col++) {\n\t\t\t\taddPiece(pieceClasses[col], sideColor, board.getSpot(row, col));\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.inPlay = true;\n\t\t\n\t\tstartNewTurn();\n\t\t\n\t\tif(eventListener != null) {\n\t\t\teventListener.onGameStarted();\n\t\t}\n\t}", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}", "public void playOneTurn() {\n // set running to be true\n this.running = true;\n // create 2 balls and add them to the game using function.\n this.createBalls();\n //create the paddle and place it in the bottom of the screen, middle of line.\n Paddle pad = this.createPaddle();\n //add paddle to game.\n pad.addToGame(this);\n // countdown before turn starts\n this.runner.run(new CountdownAnimation(2, 3, this.sprites));\n // use our runner to run the current animation -- which is one turn of the game\n this.runner.run(this);\n //finally remove pad before the next turn.\n pad.removeFromGame(this);\n }", "public void play() throws FileNotFoundException, IOException, Throwable {\n Time time = new Time();\n initGame();\n printWelcome();\n time.start();\n data.logWrite(System.lineSeparator() + System.lineSeparator() + \" >>> Starting new game <<< \" + System.lineSeparator() + System.lineSeparator());\n\n boolean finished = false;\n\n while (!finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n time.stopTime();\n System.out.println(\"Thank you for playing. Good bye.\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game\");\n //added to shutdown\n System.exit(0);\n }", "private void myTurn()\n\t{\n\t\t\n\t\tif (canPlay())\n\t\t{\n\t\t\tif (isTop())\n\t\t\t{\n\t\t\t\traise();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequal();\n\t\t\t}\n\t\t}\n\t\ttable.nextPlayer();\n\t\t\n\t}", "public void start() {\n // set player number\n playerNumber = clientTUI.getInt(\"set player number (2-4):\");\n while (true) {\n try {\n game = new Game();\n game.setPlayerNumber(playerNumber - 1);\n host = this.clientTUI.getString(\"server IP address:\");\n port = this.clientTUI.getInt(\"server port number:\");\n clientName = this.clientTUI.getString(\"your name:\");\n player = clientTUI.getBoolean(\"are you human (or AI): (true/false)\") ?\n new HumanPlayer(clientName) : new ComputerPlayer(clientName);\n game.join(player);\n // initialize the game\n game.init();\n while (clientName.indexOf(' ') >= 0) {\n clientName = this.clientTUI.getString(\"re-input your name without space:\");\n }\n this.createConnection();\n this.sendJoin(clientName);\n this.handleJoin();\n if (handshake) {\n run();\n } else {\n if (!this.clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n } catch (ServerUnavailableException e) {\n clientTUI.showMessage(\"A ServerUnavailableException error occurred: \" + e.getMessage());\n if (!clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n }\n clientTUI.showMessage(\"Exiting...\");\n }", "boolean play();", "@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\tstartGame();\n\t\t\t\t\t\t\t\t}", "public static void startGame() {\r\n\t\tfor (MovingUnit mu : _players) {\r\n\t\t\t((WinningInterface) mu).startUnit();\r\n\t\t}\r\n\t}", "public boolean gameStart() {\r\n if (game == null) {\r\n board = new Board();\r\n if (ai) {\r\n Logging.log(\"Starting as AI\");\r\n player = new BaasAI(this, \"14ply.book\");\r\n } else {\r\n Logging.log(\"Starting as Human\");\r\n player = new HumanPlayer(this);\r\n }\r\n game = new Game(this);\r\n game.start();\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public void startGame() {\n\t\t\n\t\tPlayer p1;\n\t\tPlayer p2;\n\t\t\n\t\tif(player1.getSelectionModel().getSelectedItem().equals(_HUMAN)) {\n\t\t\tp1 = new Human(1, main);\n\t\t}\n\t\telse {\n\t\t\tString difficulty = player1Diff.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tint diff = difficulty.equals(_DIFFICULTY1) ? 1 : difficulty.equals(_DIFFICULTY2) ? 2 : 3;\n\t\t\t\n\t\t\tp1 = new AI(1, diff, main);\n\t\t}\n\t\t\n\t\t\n\t\tif(player2.getSelectionModel().getSelectedItem().equals(_HUMAN)) {\n\t\t\tp2 = new Human(2, main);\n\t\t}\n\t\telse {\n\t\t\tString difficulty = player2Diff.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tint diff = difficulty.equals(_DIFFICULTY1) ? 1 : difficulty.equals(_DIFFICULTY2) ? 2 : 3;\n\t\t\t\n\t\t\tp2 = new AI(2, diff, main);\n\t\t}\n\t\t\n\t\t\n\t\tmain.startGame(p1, p2);\n\t\t\n\t}", "public void playGame()\n\t{\n\t\t// Playing a new round; increase round id\n\t\troundId += 1;\n\n\t\tint diceRoll = 1 + dice.nextInt(6);\n\t\t\n\t\tif(diceRoll <= 3)\n\t\t{\n\t\t\tbranchId = 0;\n\t\t\tresult = 0;\n\t\t\tSystem.out.println(\"Roll = \" + diceRoll + \", result = 0\");\n\t\t\tsendMessage(diceRoll, roundId, branchId, result);\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbranchId = 1;\n\t\t\tresult = 6;\n\t\t\tSystem.out.println(\"Roll = \" + diceRoll + \", result = 6\");\n\t\t\tsendMessage(diceRoll, roundId, branchId, result);\t\t\t\t\n\t\t}\n\t\t\n\t}", "synchronized void resumeGame() {\n try {\n myGamePause = false;\n if (!myShouldPause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public static void startGame()\r\n\t{\r\n\t\tnew ModeFrame();\r\n\t}", "public void Play();", "public void run() {\n \twhile(true) {\n \t \tsetupGame();\n \tplayGame();\n \t}\n }", "@Override\n public void onClick(View view) {\n stopPlaying();\n startGameActivity();\n }", "public void play() \n { \n printWelcome(); \n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished && alive == true) {\n checkHealth();\n command = parser.getCommand();\n finished = processCommand(command);\n setPlayerRoom();\n enemyEncounter(); \n checkVictory();\n deathRoom();\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public void loadGame() {\n\t\tmanager.resumeGame();\n\t}", "public void play(Player p) {\n\t\tthis.player=p;\n\t\tplayer.setActualRoom(this.currentRoom);\n\t\twhile (!this.isFinished()) {\n\t\t\tthis.currentRoom=p.getActualRoom();\n\t\t\tif (this.GameOver()) {\n\t\t\t\tSystem.out.println(\"You LOOSE !\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (this.isFinished()) {\n\t\t\t\tSystem.out.println(\"You WIN !\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tp.act();\n\t\t}\n\t\tif (this.isFinished()) {\n\t\t\tSystem.out.println(\"You WIN !\");\n\t\t}\n\t\n\t\t\n\t}" ]
[ "0.7847721", "0.7831907", "0.7792536", "0.7764042", "0.7718144", "0.75410753", "0.75260985", "0.74700326", "0.73442036", "0.7343971", "0.73252904", "0.7320066", "0.72783023", "0.7271179", "0.72488606", "0.72480875", "0.72437316", "0.72357243", "0.72179747", "0.7170004", "0.7161544", "0.715669", "0.7155068", "0.7141632", "0.71143615", "0.71097416", "0.7095073", "0.7085733", "0.70804703", "0.7074629", "0.7072743", "0.7069118", "0.7067619", "0.7059132", "0.70537245", "0.7049287", "0.7049287", "0.7049287", "0.70286816", "0.7010248", "0.70074815", "0.7005798", "0.6999221", "0.6998347", "0.6997245", "0.6996611", "0.6995815", "0.69876194", "0.69794804", "0.69720435", "0.6965824", "0.69638187", "0.6959661", "0.6954975", "0.6952042", "0.6951751", "0.6939506", "0.69325596", "0.69318694", "0.69154525", "0.69113666", "0.69106215", "0.69073427", "0.69062406", "0.6900264", "0.68925494", "0.6879977", "0.68781674", "0.68781054", "0.686873", "0.68662834", "0.68639463", "0.68610674", "0.6856254", "0.6856052", "0.6847044", "0.68393654", "0.68273556", "0.68194747", "0.68177104", "0.68170154", "0.68094915", "0.6782855", "0.6781437", "0.67722297", "0.6771651", "0.6768137", "0.6764668", "0.6758521", "0.67575365", "0.6755144", "0.675384", "0.6743117", "0.6741912", "0.6740401", "0.67396253", "0.6737511", "0.6737451", "0.6732794", "0.6727017", "0.6726452" ]
0.0
-1
write your code here
public static void main(String[] args) { Account act; act = new Account(100); int myInt; System.out.println("Classloader of Account class:" + Account.class.getClassLoader()); System.out.println("Classloader of int: " + int.class.getClassLoader()); System.out.println("The start balance is: " + act.getBalance()); System.out.println("Customer added 50."); act.deposit(50); System.out.println("Now balance is: " + act.getBalance()); System.out.println("Customer got 25 from the account."); act.withdraw(25); System.out.println("Now balance is: " + act.getBalance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@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 orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \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 crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
Create a thread associated to a BlockingQueue.
public CancellableBlockingQueueTask(String name, Consumer<Cancellable<T>> consumer) { this.consumer = consumer; queue = new ArrayBlockingQueue<>(10000); queueThread = new Thread(() -> internalStart(), name); queueThread.setDaemon(true); disposed = new AtomicBoolean(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IThread createThread() throws IllegalWriteException, BBException;", "WorkProcessor(BlockingQueue<Integer> queue) {\n this.queue = queue;\n ThreadFactoryBuilder builder = new ThreadFactoryBuilder();\n builder.setNameFormat(\"Thread-%d\");\n builder.setUncaughtExceptionHandler((t, e) -> logError(\"Error \\t\" + e.getMessage(), e));\n executor = Executors.newFixedThreadPool(NUM_THREAD, builder.build());\n }", "public ThreadQueue newThreadQueue(boolean transferPriority) \n\t{\n\t\treturn new PriorityQueue(transferPriority);\n\t}", "public MessageSelectingQueueChannel(BlockingQueue<Message<?>> queue) {\n super(queue);\n \n this.queue = queue;\n }", "public ThreadQueue newThreadQueue(boolean transferPriority) {\n return new PriorityQueue(transferPriority);\n }", "DownloadThread(BlockingQueue<DownloadRequest> queue,\n DownloadRequestQueue.CallBackDelivery delivery) {\n mQueue = queue;\n mDelivery = delivery;\n\n }", "public Queue() {}", "public ThreadPoolExecutor create_blocking_thread_pool( String name, int threads, int queue_size )\n {\n NamedThreadPoolExecutor ret = new NamedThreadPoolExecutor( name, queue_size, threads, threads, 60, TimeUnit.MINUTES);\n \n pool_list.add( ret );\n\n return ret;\n }", "public void createThread() {\n }", "private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }", "public WorkerThread(EventHandler<T> eh, BlockingEventQueue<Object> q) {\n\t\thandler = eh;\n\t\tqueue = q;\n\t}", "public static <T> ConcurrentLinkedQueue<T> createConcurrentLinkedQueue() {\n \t\treturn new ConcurrentLinkedQueue<T>();\n \t}", "public static <T> FCQueue<T> createFCQueue() {\n \t\treturn new FCQueue<T>();\n \t}", "public BlockingQueue(int maxSize) {\r\n\t\tthis.maxSize = maxSize;\r\n\t\tqueue = new LinkedList<T>();\r\n\t}", "public <T> ArrayBlockingQueue<T> create(int size){\n return new ArrayBlockingQueue<T>(size);\n }", "public JobQueue() {\n this.thread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!Thread.interrupted()) {\n if (stopped && deque.isEmpty()) {\n break;\n }\n DelayedJob job;\n try {\n pause.acquire();\n pause.release();\n job = deque.take();\n } catch (final InterruptedException exc) {\n break;\n }\n try {\n job.execute();\n } catch (final Exception exc) {\n // TODO: Maybe use a logger\n exc.printStackTrace(System.err);\n } finally {\n final long repeat = job.repeat();\n if (repeat > 0 && !stopped) {\n repeat(job.getJob(), repeat, TimeUnit.NANOSECONDS);\n }\n }\n }\n started = false;\n stop.countDown();\n }\n });\n }", "public OneTimeJob(BlockingQueue<?> queue, BlockingQueue<Results> results){\n \tthis.queue = queue;\n //System.out.println(\"OneTimeJob thread with ID = \n\t\t//\t\t\t\" + this.getId() + \" has been started!\");\n this.results = results;\n }", "public ProducerThread() {\n }", "public MyQueue() {\n\n }", "public static <T> LockFreeQueue<T> createLockFreeQueue() {\n \t\treturn new LockFreeQueue<T>();\n \t}", "public MyQueue() {\n \n }", "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}", "public Queue(){ }", "public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }", "public ProducerThread(String name) {\n super(name);\n }", "public RandomizedQueue() { }", "public KThread nextThread() \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n\t\t\tif (waitQueue.isEmpty())\n\t\t\t{\n\t\t\t\towner=null;\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\towner=waitQueue.peek(); //Set the head of the waitQueue as owner\n\t\t\tThreadState waiterState = getThreadState(owner);\n\t\t\tgetThreadState(owner).acquire(this); //Make the new owner acquire the queue\n\t\t\treturn waitQueue.poll(); //return next thread\n\t\t}", "static WeakOrderQueue newQueue(Recycler.Stack<?> stack, Thread thread)\r\n/* 233: */ {\r\n/* 234:260 */ WeakOrderQueue queue = new WeakOrderQueue(stack, thread);\r\n/* 235: */ \r\n/* 236: */ \r\n/* 237:263 */ stack.setHead(queue);\r\n/* 238:264 */ return queue;\r\n/* 239: */ }", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "public WaitablePQueue() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\n\t}", "myQueue(){\n }", "public MyQueue() {\n\n }", "public MyQueue() {\n\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n createQueuedResource(com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), request);\n }", "public Queue()\n\t{\n\t\tsuper();\n\t}", "public EventQueue(){}", "public com.google.longrunning.Operation createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request);\n }", "public CoalescingBufferQueue(Channel channel)\r\n/* 15: */ {\r\n/* 16:40 */ this(channel, 4);\r\n/* 17: */ }", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}", "public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }", "public AsyncQueueBroker(int capacity, int timeoutDuration)\n {\n super(capacity, timeoutDuration);\n queue = new ArrayBlockingQueue<V>(100);\n }", "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "void runQueue();", "public NamedThreadFactory(String name)\n {\n this(name, null);\n }", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "@Override\n public BlueRun create(StaplerRequest request) {\n job.checkPermission(Item.BUILD);\n if (job instanceof Queue.Task) {\n ScheduleResult scheduleResult;\n\n List<ParameterValue> parameterValues = getParameterValue(request);\n int expectedBuildNumber = job.getNextBuildNumber();\n if(parameterValues.size() > 0) {\n scheduleResult = Jenkins.get()\n .getQueue()\n .schedule2((Queue.Task) job, 0, new ParametersAction(parameterValues),\n new CauseAction(new Cause.UserIdCause()));\n }else {\n scheduleResult = Jenkins.get()\n .getQueue()\n .schedule2((Queue.Task) job, 0, new CauseAction(new Cause.UserIdCause()));\n }\n // Keep FB happy.\n // scheduleResult.getItem() will always return non-null if scheduleResult.isAccepted() is true\n final Queue.Item item = scheduleResult.getItem();\n if(scheduleResult.isAccepted() && item != null) {\n return new QueueItemImpl(\n pipeline.getOrganization(),\n item,\n pipeline,\n expectedBuildNumber, pipeline.getLink().rel(\"queue\").rel(Long.toString(item.getId())),\n pipeline.getLink()\n ).toRun();\n } else {\n throw new ServiceException.UnexpectedErrorException(\"Queue item request was not accepted\");\n }\n } else {\n throw new ServiceException.NotImplementedException(\"This pipeline type does not support being queued.\");\n }\n }", "ThreadStart createThreadStart();", "public static void main(String[] args) throws InterruptedException {\n SynchronousQueue<String> queue = new SynchronousQueue<>(true);\n\n for (int i = 0; i < 5; i++) {\n // new 5 个线程去 take,会阻塞直到有线程 put\n new Thread(() -> {\n String threadName = Thread.currentThread().getName();\n System.out.println(threadName + \" begin...\");\n try {\n System.out.println(threadName + \" take: \" + queue.take());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(threadName + \" end...\");\n }, \"thread-\" + i).start();\n TimeUnit.MILLISECONDS.sleep(200);\n }\n\n // new 一个线程 put 5 个元素,take 的线程会被依次唤醒\n new Thread(() -> {\n System.out.println(\"put thread begin\");\n for (int i = 0; i < 5; i++) {\n try {\n queue.put(\"element\" + i);\n TimeUnit.MILLISECONDS.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"put thread end\");\n }).start();\n }", "public ListQueue() {\n \n }", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "public PQueue() {\n this(0,null);\n }", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "private void initThread() {\r\n\t\tthreadPreviewDataToImageData = new ThreadPreviewDataToImageData();\r\n\t\t// threadPreviewDataToFakePictureImageData = new\r\n\t\t// ThreadPreviewDataToFakePictureImageData();\r\n\t\t// threadPreviewYUVDecode = new ThreadPreviewYUVDecode();\r\n\r\n\t\tthreadPreviewDataToImageData.start();\r\n\t\t/*\r\n\t\t * if (CameraConfigure.isUseFakeImageData) { //\r\n\t\t * threadPreviewDataToFakePictureImageData.start(); } else {\r\n\t\t * //threadPreviewYUVDecode.start(); }\r\n\t\t */\r\n\r\n\t\t/** preview callback to ThreadPreviewDataToImageData */\r\n\t\tif (null == BlockingQueuePreviewData.getBlockingQueuePreviewData()) {\r\n\t\t\tnew BlockingQueuePreviewData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadQRcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteData.getBlockingQueueGrayByteData()) {\r\n\t\t\tnew BlockingQueueGrayByteData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBarcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteDataArray\r\n\t\t\t\t.getBlockingQueueGrayByteDataArray()) {\r\n\t\t\tnew BlockingQueueGrayByteDataArray();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBCardScanning */\r\n\t\tif (null == BlockingQueueGrayByteDataPreviewData\r\n\t\t\t\t.getBlockingQueueGrayByteDataPreviewData()) {\r\n\t\t\tnew BlockingQueueGrayByteDataPreviewData();\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueByteArray.getBlockingQueueByteArray()) { new\r\n\t\t * BlockingQueueByteArray(); }\r\n\t\t */\r\n\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueFakePictureImageData\r\n\t\t * .getBlockingQueueFakePictureImageData()) { new\r\n\t\t * BlockingQueueFakePictureImageData(); }\r\n\t\t */\r\n\t}", "@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }", "myQueue(int size){\n }", "public static void main(String[] args) throws Exception{\n\n BlockingQueue<String> blockingQueue = new ArrayBlockingQueue<>(3);\n\n /*System.out.println(blockingQueue.offer(\"a\"));\n System.out.println(blockingQueue.offer(\"b\"));\n System.out.println(blockingQueue.offer(\"c\"));\n System.out.println(blockingQueue.offer(\"x\"));\n\n System.out.println(blockingQueue.peek());\n\n System.out.println(blockingQueue.poll());\n System.out.println(blockingQueue.poll());\n System.out.println(blockingQueue.poll());\n System.out.println(blockingQueue.poll()); */\n\n /*blockingQueue.put(\"a\");\n blockingQueue.put(\"a\");\n blockingQueue.put(\"a\");\n System.out.println(\"===============\");\n// blockingQueue.put(\"x\");\n\n blockingQueue.take();\n blockingQueue.take();\n blockingQueue.take();\n blockingQueue.take();*/\n\n System.out.println(blockingQueue.offer(\"a\", 2L, TimeUnit.SECONDS));\n System.out.println(blockingQueue.offer(\"a\", 2L, TimeUnit.SECONDS));\n System.out.println(blockingQueue.offer(\"a\", 2L, TimeUnit.SECONDS));\n System.out.println(blockingQueue.offer(\"a\", 2L, TimeUnit.SECONDS));\n\n }", "public TaskQueue(PrintWriter stdout, PrintWriter stderr){\n this(stdout, stderr, DEFAULT_CONCURRENT_ACTIONS);\n }", "public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "public ConcurrentRingBuffer(int size, String disabledMessage){\r\n\tbuf = new ArrayBlockingQueue<E>(size);\r\n\tenabled = true;\r\n\tdisabledMsg = disabledMessage;\r\n}", "@NotNull\n public static <T> Queue<T> queue() {\n try {\n return new ArrayDeque<T>();\n } catch (NoClassDefFoundError nce) {\n return new LinkedList<T>();\n }\n }", "<T> IMessageFetcher<T> createFetcher(String queueName, Consumer<T> itemConsumer);", "public QueueNode(T element) {\n\t\t//TODO - fill in implementation\n\t\t//TODO - write unit tests\n\t}", "default CompletableFuture<ServerThreadChannel> createThreadForMessage(Message message, String name,\n Integer autoArchiveDuration) {\n return new ServerThreadChannelBuilder(message, name).setAutoArchiveDuration(autoArchiveDuration).create();\n }", "public MyQueue() {\n stack = new Stack<>();\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "public LevelBuilder(int row, int column, BlockingQueue<Level> q)\t{\n\t\tthis.row = row;\n\t\tthis.column = column;\n\t\tthis.queue = q;\n\t}", "public interface TaskQueueFactory {\n\n\t/**\n\t * Creates a {@link com.twilio.sdk.resource.instance.taskrouter.TaskQueue}.\n\t *\n\t * @param params the params list\n\t * @return a TaskQueue\n\t * @throws com.twilio.sdk.TwilioRestException\n\t */\n\tpublic TaskQueue create(Map<String, String> params) throws TwilioRestException;\n\n\t/**\n\t * Creates a {@link com.twilio.sdk.resource.instance.taskrouter.TaskQueue}.\n\t *\n\t * @param params the params list\n\t * @return a TaskQueue\n\t * @throws TwilioRestException\n\t */\n\tpublic TaskQueue create(List<NameValuePair> params) throws TwilioRestException;\n}", "public void start() {\n\t\tcheckIsDisposed();\n\n\t\tif (isStarted)\n\t\t\treturn;\n\n\t\tqueueThread.start();\n\t\tisStarted = true;\n\t}", "public Consumer createConsumer(String queueName) {\n if (StringUtils.isEmpty(queueName)) {\n throw new IllegalArgumentException(\"Null queue name specified\");\n }\n String target = String.format(\"%s.%s\", endpointId, queueName);\n CAMQPTargetInterface receiver = CAMQPEndpointManager.createTarget(session, queueName, target, new CAMQPEndpointPolicy());\n return new Consumer(target, receiver);\n }", "public ThreadPoolExecutorTracer(int corePoolSize, int maximumPoolSize, long keepAliveTime,\n TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory);\n }", "static WeakOrderQueue allocate(Recycler.Stack<?> stack, Thread thread)\r\n/* 248: */ {\r\n/* 249:277 */ return reserveSpace(stack.availableSharedCapacity, Recycler.LINK_CAPACITY) ? \r\n/* 250:278 */ newQueue(stack, thread) : null;\r\n/* 251: */ }", "public LinkedBlockingQueue<Run> getStartQueue() {\n\t\treturn new LinkedBlockingQueue<Run>(startQueue);\n\t}", "default CompletableFuture<ServerThreadChannel> createThreadForMessage(Message message, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThreadForMessage(message, name, autoArchiveDuration.asInt());\n }", "@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tqueue.get();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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}", "public SQueue(){\n\n\t}", "public void createFCFSQueue(String name) {\n queues.putIfAbsent(name, new FCFSQueue(name));\n }", "public static OutputQueue createOutputThread() {\n\tfinal OutputQueue queue = new OutputQueue();\n\tThread t = new Thread() {\n\t public void run() {\n\t\tUtterance utterance = null;\n\t\tdo {\n\t\t utterance = queue.pend();\n\t\t if (utterance != null) {\n\t\t\tVoice voice = utterance.getVoice();\n\t\t\tvoice.log(\"OUT: \" + utterance.getString(\"input_text\"));\n voice.outputUtterance(utterance, voice.threadTimer);\n\t\t }\n\t\t} while (utterance != null);\n\t }\n\t};\n\tt.setDaemon(true);\n\tt.start();\n\treturn queue;\n }", "public MessageReader(TCPConnection connection, BlockingQueue<BufferQueueElement<Message>> queue) throws IOException {\n\t\tthis.messageIO = new MessageInput(connection.getClientSocket());\n\t\tthis.queue = queue;\n\t}", "public CoalescingBufferQueue(Channel channel, int initSize)\r\n/* 20: */ {\r\n/* 21:44 */ this(channel, initSize, false);\r\n/* 22: */ }", "public Channel(String name) {\n this.name = name;\n q = new ArrayBlockingQueue(1);\n senderMonitor = new Object();\n\n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tBlockingQueue<Integer> questionQueue = new ArrayBlockingQueue<Integer>(5);\n\t\t\n\t\tThread t1 = new Thread(new Producer(questionQueue));\n\t\tThread t2 = new Thread(new Consumer(questionQueue));\n\t\t\n\t\tt1.start();\n\t\tt2.start();\n\t}", "public Queue getQueue() {\n return new Queue();\n }", "@Test\n public void testQueueCodeExamples() throws Exception {\n logger.info(\"Beginning testQueueCodeExamples()...\");\n\n // Allocate an empty queue\n Queue<Integer> queue = new Queue<>(256); // capacity of 256 elements\n\n // Start up some consumers\n Consumer consumer1 = new Consumer(queue);\n new Thread(consumer1).start();\n Consumer consumer2 = new Consumer(queue);\n new Thread(consumer2).start();\n\n // Start up a producer\n Producer producer = new Producer(queue);\n new Thread(producer).start();\n\n // Wait for them to process the messages\n Thread.sleep(200);\n\n logger.info(\"Completed testQueueCodeExamples().\\n\");\n }", "public RandomizedQueue() {\r\n\t\tqueue = (Item[]) new Object[1];\r\n\t}", "public void createQueuedResource(\n com.google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), null);\n }", "public RandomizedQueue() {\n queue = (Item[]) new Object[1];\n }", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration,\n Boolean inviteable) {\n return new ServerThreadChannelBuilder(this, channelType, name)\n .setAutoArchiveDuration(autoArchiveDuration)\n .setInvitableFlag(inviteable).create();\n }", "private WeakOrderQueue(Recycler.Stack<?> stack, Thread thread)\r\n/* 222: */ {\r\n/* 223:250 */ this.head = (this.tail = new Link(null));\r\n/* 224:251 */ this.owner = new WeakReference(thread);\r\n/* 225: */ \r\n/* 226: */ \r\n/* 227: */ \r\n/* 228: */ \r\n/* 229:256 */ this.availableSharedCapacity = stack.availableSharedCapacity;\r\n/* 230: */ }", "public LinkQueue(){\n }", "public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "public BoundedQueue(int size){\n queueArray = (T[]) new Object[size];\n tail = 0;\n }", "QueueDto createQueue(String queueName) throws IOException, MlmqException;", "default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration,\n Boolean inviteable) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), inviteable);\n }", "public static void main(String[] args) {\n\t\tCreate_queue new_queue= new Create_queue();\n\t\tnew_queue.enqueu(12);\n\t\tnew_queue.enqueu(5);\n\t\tnew_queue.enqueu(36);\n\t\tnew_queue.enqueu(5);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(10);\n\t\tnew_queue.enqueu(8);\n\t\tnew_queue.enqueu(2);\n\t\tnew_queue.enqueu(14);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(32);\n\t\tnew_queue.enqueu(11);\n\t\tnew_queue.enqueu(21);\n\t\tnew_queue.enqueu(44);\n\t\tnew_queue.enqueu(46);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(50);\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue);\n\t\tnew_queue.enqueu(100);\n\t\tSystem.out.println(new_queue);\n\t\tSystem.out.println(new_queue.peek());\n\t\tnew_queue.dequeu();\n\t\tSystem.out.println(new_queue.peek());\n\t\t\n\t\t\n\t}" ]
[ "0.60933894", "0.5949398", "0.5835442", "0.57755053", "0.5725059", "0.5719356", "0.56817764", "0.56648874", "0.5632984", "0.5628766", "0.555241", "0.55506146", "0.5523614", "0.5518746", "0.55177456", "0.54659003", "0.5439002", "0.54278916", "0.53875834", "0.5332576", "0.53069276", "0.5274856", "0.52682775", "0.52559364", "0.5236254", "0.52193475", "0.52181387", "0.5183548", "0.51805204", "0.5143291", "0.51340455", "0.5129419", "0.5129419", "0.5126041", "0.5113138", "0.50929743", "0.50320816", "0.5025885", "0.502521", "0.50110763", "0.49605283", "0.49358845", "0.49275365", "0.49274606", "0.4898369", "0.48835763", "0.48762724", "0.48748374", "0.48747602", "0.4873328", "0.4861972", "0.48602128", "0.4858775", "0.48458737", "0.48276943", "0.48260236", "0.48237273", "0.48224005", "0.48223302", "0.4800898", "0.478665", "0.47861695", "0.4785078", "0.47793457", "0.47792473", "0.47740307", "0.477166", "0.4766755", "0.47609323", "0.47608635", "0.47596937", "0.4751517", "0.4749456", "0.47469023", "0.47372466", "0.4734974", "0.47294882", "0.47224522", "0.47216448", "0.4697968", "0.46850178", "0.46767816", "0.4673038", "0.46715757", "0.4671109", "0.46653742", "0.4664897", "0.4660044", "0.46577194", "0.4641722", "0.46329474", "0.46299946", "0.46226898", "0.46178424", "0.46093318", "0.46014363", "0.45983332", "0.45934168", "0.45890114", "0.4587921" ]
0.5210197
27
Start the underlying thread in order to perform an action when an element is added.
public void start() { checkIsDisposed(); if (isStarted) return; queueThread.start(); isStarted = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotify() {\n\t\tsuper.addNotify();\n\t\tif (thread == null) {\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t}\n\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public void startListener(){\n new Thread(() -> this.run()).start();\n }", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "public void start(){\n thread.start();\n }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "public void start() {\n LOG.entering(CLASS_NAME, \"start\");\n if (state.compareAndSet(STOPPING, STARTED)) {\n // Keep same thread running if STOPPING\n }\n else if (state.compareAndSet(STOPPED, STARTED)) {\n new Thread(this, \"XoaEventProcessor\").start();\n }\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "private void newListener() {\n (new Thread(this)).start();\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "public synchronized void start() {\n\t\tif(! alive) {\n\t\t\talive = true;\n\t\t\tthread.start();\n\t\t}\n\t}", "private void threadRun ()\n {\n\tfor (;;)\n\t{\n\t String str;\n\n\t synchronized (myToBeAppended)\n\t {\n\t\tint len = myToBeAppended.length ();\n\t\tif (len < NO_WAIT_BUFFER_SIZE)\n\t\t{\n\t\t try\n\t\t {\n\t\t\tif (len == 0)\n\t\t\t{\n\t\t\t myToBeAppended.wait ();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t myToBeAppended.wait (WAIT_TIME);\n\t\t\t}\n\t\t }\n\t\t catch (InterruptedException ex)\n\t\t {\n\t\t\t// ignore it\n\t\t }\n\t\t int newlen = myToBeAppended.length ();\n\t\t if (newlen == 0)\n\t\t {\n\t\t\tcontinue;\n\t\t }\n\t\t if ( (newlen > len)\n\t\t\t&& (newlen < NO_WAIT_BUFFER_SIZE))\n\t\t {\n\t\t\tcontinue;\n\t\t }\n\t\t}\n\t\tstr = myToBeAppended.toString ();\n\t\tmyToBeAppended.setLength (0);\n\t }\n\n\t synchronized (myDocument)\n\t {\n\t\ttry\n\t\t{\n\t\t int insertAt = myDocument.getLength ();\n\t\t myDocument.insertString (insertAt, str, myNormalStyle);\n\t\t myDocument.setLogicalStyle (insertAt + 1, myNormalStyle);\n\t\t}\n\t\tcatch (BadLocationException ex)\n\t\t{\n\t\t new ShouldntHappenException (ex).printStackTrace ();\n\t\t}\n\t }\n\n\t if (myWindow != null)\n\t {\n\t\tAsEvent.setVisible (myWindow, true);\n\t }\n\t}\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void start() {\n\n\t\tif (worker.isAlive()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Worker thread is still alive, unexpected.\");\n\t\t}\n\n\t\tif (runflag.get()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t \"Runflag is inconsistant with thread, unexpected.\");\n\t\t}\n\n\t\trunflag.set(true);\n\t\tworker.start();\n\t}", "public static void addedThread(ThreadXML threadXML) {\n }", "public void startThread() {\n\t\tpm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n\t\twl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"My Tag\");\n\t\twl.acquire();\n\t\tthread = new FrameworkThread((Context) this);\n\t\tthread.start();\n\t}", "void startThread();", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "public synchronized void start() {\n\t\tstartSuspended();\r\n\t\tsetRunnable(true);\r\n\t}", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "public void add() {\n\t\tthis.inferior.addThread(this);\n\t\tthis.manager.addThread(this);\n\t\tstate.addChangeListener((oldState, newState, pair) -> {\n\t\t\tmanager.event(() -> manager.listenersEvent.fire.threadStateChanged(this, newState,\n\t\t\t\tpair.cause, pair.reason), \"threadState\");\n\t\t});\n\t}", "public void start () {\r\n // Declaras un hilo\r\n Thread th = new Thread (this);\r\n // Empieza el hilo\r\n th.start ();\r\n }", "public void ThreadStart()\r\n\t{\r\n\t\tthread_running=true;\r\n\t\tNewBallTheard.start();\r\n\t}", "public void start() {\n\t\ttrackerThread.start();\n\t}", "@Override\n\tpublic synchronized void start() {\n\t\tif (estimationThread.running == false) {\n\t\t\t// Start the thread\n\t\t\testimationThread.running = true;\n\t\t\testimationThread.run();\n\t\t}\n\t}", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }", "public void run(\r\n ) {\r\n \tboolean isActive = true;\r\n \tStringBuilder aBuffer = new StringBuilder( 256 );\r\n \t\r\n \twhile( isActive ) {\r\n \t\tsynchronized( this ) {\r\n\t \t\tif ( mLoadingScene == null ) try {\r\n\t \t\t\tthis.wait();\r\n\t \t\t} catch( InterruptedException ex ) {\r\n\t \t\t\tisActive = false;\r\n\t \t\t\tmLoadingScene = null;\r\n\t \t\t}\r\n \t\t}\r\n \t\taBuffer.setLength( 0 );\r\n \t\tStringBuilder reportString = null;\r\n \t\ttry {\r\n \t\t\treportString = loadElement( mLoadingScene, aBuffer );\r\n \t\t} catch( CSGConstructionException ex ) {\r\n \t\t\treportString = CSGConstructionException.reportError( ex, \" // \", aBuffer );\r\n \t\t}\r\n \t\tmLoadingScene = null;\r\n \t\t\r\n \t\tif ( reportString != null ) {\r\n \t\t\tmPostText.push( reportString.toString() );\r\n \t\t\tmRefreshText = true;\r\n \t\t}\r\n \t}\r\n }", "public void start() {\n // Declaras un hilo\n Thread th = new Thread(this);\n // Empieza el hilo\n th.start();\n }", "@Override\n public void addNotify(){\n super.addNotify();\n\n animator = new Thread(this);\n animator.start();\n }", "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "protected void onThreadStart() {\n\t\tparent.startLock.countDown();\n\t\t//wait for all other threads ready\n\t\ttry {\n\t\t\tparent.startLock.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthreadStartTime = new Date();\n\t}", "public void run(){\n //logic to execute in a thread \n }", "public void start() {\n this.leftover = 0L;\n this.lastTick = System.nanoTime();\n if (stopped.getAndSet(false)) {\n startThread();\n }\n }", "public void start()\n {\n animator = new Thread(this);\n animator.start();\n }", "public ThreadAvnet(Element element) {\n this.element = element;\n // run();\n }", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "@Override\n public void start() throws Exception {\n running = true;\n executionThread = new Thread(this, \"subMan\");\n executionThread.start();\n System.out.println(\"SUBSCRIPTION MANAGER THREAD STARTED!\");\n }", "public void touch() {\n\t\tif (isRunning){\n\t\t\tisRunning =false;\n\t\t}else{\n\t\t\tisRunning = true;\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t\n\t\t}\n\t\t\n\t}", "public void start()\r\n {\r\n if (_keepGoing) return;\r\n\r\n _keepGoing = true;\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n }", "private synchronized void startEventThread() {\n if (eventThread == null) {\n eventThread = new EventHandlingThread(context);\n eventThread.setDaemon(true);\n eventThread.start();\n }\n }", "public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "private synchronized void execute(TestRunnerThread testRunnerThread) {\n boolean hasSpace = false;\n while(!hasSpace) {\n threadLock.lock();\n try {\n hasSpace = currentThreads.size()<capacity;\n }\n finally {\n threadLock.unlock();\n }\n }\n \n //Adding thread to list and executing it\n threadLock.lock();\n try {\n currentThreads.add(testRunnerThread);\n testRunnerThread.setThreadPoolListener(this);\n Thread thread = new Thread(testRunnerThread);\n //System.out.println(\"Starting thread for \"+testRunnerThread.getTestRunner().getTestName());\n thread.start();\n }\n finally {\n threadLock.unlock();\n }\n }", "public synchronized void start() {\r\n\t\tif(type == TYPE_DELAY) {\r\n\t\t\tdate = new Date(System.currentTimeMillis() + delay);\r\n\t\t}\r\n\t\tif(started) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tstarted = true;\r\n\t\ttm.addStartedTimers(this);\t\t\r\n//\t\ttm.getHandler().post(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tdoCancel();\r\n//\t\t\t\tdoStart();\r\n//\t\t\t}\r\n//\t\t});\r\n\t}", "public void start() {\r\n\t\trunning = true;\r\n\t\trun();\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}", "public synchronized void start() {\n\t\tif (running) {\n\t\t\treturn;\n\t\t}\n\t\trunning = true; // thread\n\t\tthread = new Thread(this);\n\t\tthread.start(); // calls run method, where majority of game code wil go\n\t}", "public void beginInvoke(Runnable task) {\r\n synchronized (taskLock) {\r\n tasks.add(task);\r\n // Do not wakeup the Selector thread by calling selector.wakeup().\r\n // Doing so generates too much contention on the selector internal lock.\r\n // Instead, the selector will periodically poll the array with tasks\r\n }\r\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "@Override\n\tpublic void run() {\n\t\tfor(int i=0;i<10;i++) {\n\t\t\tl.addElement(1);\n\t\t}\n\t}", "public void startWatching(){\n this.listWatcher.start();\n }", "public void start() {\n\t\tdata = new SharedData(output, input); // handles all shared data\n\t\ttimer = new Thread(new TimeHandler(data)); \n\t\tbuttons = new Thread(new ButtonHandler(input, data, signal));\n\n\t\ttimer.start();\n\t\tbuttons.start();\n\t}", "public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }", "@Override\n public void threadStarted() {\n }", "@Override\n public void addNotify() {\n super.addNotify();\n if (thread == null) {\n thread = new Thread(this);\n addKeyListener(this);\n thread.start();\n }\n }", "public void startTaskRunnerThread() {\n canRunTaskThread.set(true);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n log(\"Starting task: \" + getClassName());\n task();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n log(\"Finished task: \" + getClassName());\n canRunTaskThread.set(false);\n }\n }\n }).start();\n }", "ThreadStart createThreadStart();", "@Override\npublic void run() {\n perform();\t\n}", "private void go() {\n\n new Thread(this).start();\n }", "public synchronized void start() throws Exception {\n if (_runningThread != null) {\n throw new Exception(\"Node already running!\");\n }\n _runningThread = new Thread(this);\n _runningThread.start();\n }", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "public synchronized void start() throws Exception {\r\n\t\twhile (true) {\r\n\t\t\tterminal.println(\"Waiting for contact\");\r\n\t\t\tsendQueue();\r\n\t\t\tthis.wait();\r\n\t\t}\r\n\t}", "@Override\n public synchronized void start()\n {\n if (run)\n return;\n run = true;\n super.start();\n }", "private void startRetrieve() {\n final Thread retrieveThread = new Thread(new FutureThread());\n retrieveThread.start();\n }", "private void start()\n {\n _taskThread.start();\n _state = ActivityState.RUNNING;\n }", "public void startTaskTriggerCheckerThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n canRunEnqueueTaskThread.set(true);\n while(canRunEnqueueTaskThread.get()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(taskEnqueued.get() || canRunTaskThread.get()) { //do not enqueue the task if an instance of that task is already enqueued or running.\n continue;\n //log(PrioritizedReactiveTask.this.getClass().getSimpleName() + \" already in queue or is currently executing\");\n } else if(shouldTaskActivate()) {\n System.out.println(\"Thread \" + Thread.currentThread().getId() + \" enqueued task: \" + this.getClass().getSimpleName());\n taskQueue.add(PrioritizedReactiveTask.this);\n activeTasks.add(PrioritizedReactiveTask.this);\n taskEnqueued.set(true);\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }).start();\n }", "@Override\n public void run() {\n add10000();\n }", "private void start() {\n \t\tisFinished = false;\n \t\trunning = true;\n \t\tpluginHandler.startAll();\n \t\tThread engine = new Thread(this, \"engine\");\n \t\tengine.start();\n \t\tissueHandler.checkAllIssues();\n \t}", "public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//REPLY GUI\n\t\t\t\tgui.onEvent(className, XNode.NEW_USER_CREATED, null);\n\t\t\t}", "public synchronized void start() {\n\t\tif(isRunning) return; //If the game is already running, exit method\n\t\tisRunning = true; //Set boolean to true to show that it is running\n\t\tthread = new Thread(this); //Create a new thread\n\t\tthread.start(); //Start the thread\n\t}", "public void startEventHandler() {\n Thread eventThread = new Thread(this, \"Nxt Event Handler\");\n eventThread.setDaemon(true);\n eventThread.start();\n }", "void start() {\n this.wsThread.start();\n this.wrThread.start();\n }", "public void startTask() {\n\t}", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "void notifyStart();", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void thread() {\n\t\tnew Thread(first).start();\n\t\trest.thread();\n\t}" ]
[ "0.66330785", "0.6369982", "0.6314335", "0.6251108", "0.6187781", "0.61718756", "0.61632055", "0.6141166", "0.61315453", "0.6119275", "0.61115223", "0.6097249", "0.60838723", "0.6058376", "0.60452574", "0.60436815", "0.6038598", "0.6038598", "0.60354", "0.5994322", "0.598993", "0.5976381", "0.5975684", "0.596597", "0.5959288", "0.5947651", "0.59329814", "0.59141034", "0.5906456", "0.5890241", "0.58587265", "0.5830862", "0.58223933", "0.5808782", "0.5797006", "0.5750812", "0.57443774", "0.57431626", "0.5726573", "0.5715907", "0.5709787", "0.56981725", "0.56834847", "0.56637853", "0.56538403", "0.56517434", "0.5651669", "0.5646671", "0.56465083", "0.56308216", "0.56166804", "0.5602761", "0.5588361", "0.558118", "0.55788875", "0.55726814", "0.55611193", "0.5551843", "0.5538705", "0.5527221", "0.5525291", "0.5519159", "0.5511238", "0.5503152", "0.54964125", "0.54882777", "0.54764706", "0.5474233", "0.54659593", "0.5463305", "0.5460905", "0.54532593", "0.545257", "0.543252", "0.5423848", "0.54101586", "0.5405024", "0.53973997", "0.5396965", "0.5392406", "0.53864187", "0.5375452", "0.5367967", "0.5364375", "0.53599036", "0.53589517", "0.53346854", "0.53328186", "0.5332064", "0.5329808", "0.53255147", "0.5317427", "0.5311601", "0.5307269", "0.53026336", "0.52922493", "0.5289245", "0.5288515", "0.52873415", "0.5287133" ]
0.6118623
10
Appends the given element in the underlying blocking queue in order to perform an action asynchronously.
public Cancellable<T> add(T e) { checkIsDisposed(); Cancellable<T> element = new Cancellable<T>(e); queue.add(element); return element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "public void append(Serializable message){\n taskQueue.addLast(message);\n unlockWaiter();//unblocks for taskQueue\n unlockPoolWaiter();//unblocks for threadPool\n }", "public void enqueue (E element);", "public void enqueue(T element);", "public void enqueue(E element) {\n\t\tadd(element);\n\t}", "ListenableFuture<String> add(Element element);", "public RingBuffer<T> put(T element) throws InterruptedException {\n if(element == null)\n return this;\n lock.lock();\n try {\n while(count == buf.length)\n not_full.await();\n\n buf[wi]=element;\n if(++wi == buf.length)\n wi=0;\n count++;\n not_empty.signal();\n return this;\n }\n finally {\n lock.unlock();\n }\n }", "@Override\n public void enqueue(E e) {\n array.addLast(e);\n }", "public void push(E e) throws InterruptedException {\n while (!isFree) {\n synchronized (this) {\n wait();\n }\n }\n\n synchronized (this) {\n if (queue != null) {\n queue.add(e);\n }\n isFree = true;\n notifyAll();\n }\n }", "public void enqueue(int element) {\n\tr++;\n\tif(r-f==100){\n\t\tSystem.out.println(\"Queue Full\"); return;\n\t}\n\tmyarray[r%100]=element;\n\t\t// ..... fill the stub function ......\n\t}", "public void enqueue(E e) {\n\t\tlist.addLast(e);\n\t}", "void enqueue(Object elem);", "public synchronized void enqueue(T thing) {\r\n\t\twhile (queue.size()==maxSize){\r\n\t\t\ttry{\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch(InterruptedException e){\r\n\t\t\t\tSystem.out.println(\"Interruption during enqueue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tqueue.addLast(thing);\r\n\t\tthis.notifyAll();\r\n\t}", "public void enqueue(E e) {\n\t\tsynchronized(mutex){\n\t\t\ttry {\n\t\t\t\tqueue.add(e);\n\t\t\t} catch(NullPointerException ex) {\n\t\t\t\tthrow new NullPointerException(\"enqueued null element\");\n\t\t\t} catch (ClassCastException ex) {\n\t\t\t\tthrow new ClassCastException(\"enqueued element is incompetible type\");\n\t\t\t}\n\t\t\tsem.release();\n\t\t}\n\t}", "void enqueue(E el);", "public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}", "public void push(Object element)\n\t{\n\t\tensureCapacity();\n\t\telements[size++] = element;\n\t}", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "public void put(E e) throws InterruptedException {\n checkNotNull(e);\n final ReentrantLock lock = this.lock;\n lock.lockInterruptibly();\n try {\n while (count == items.length)\n notFull.await();\n enqueue(e);\n } finally {\n lock.unlock();\n }\n }", "public void enqueue(Integer elem) {\n\t\t // add to end of array\n\t\t // increase size\n\t\t // create a recursive helper, percolateUp,\n\t\t // that allows you puts the inserted val \n\t\t // in the right place\n\t\t if(size == capacity) {\n\t\t\t ensureCapacity(size);\n\t\t }\n\t\t data[size] = elem;\n\t\t size++;\n\t\t percolateUp(size-1); \n\t }", "public void enqueue(E item) {\n addLast(item);\n }", "public synchronized void add(Integer item) {\r\n while (true) {\r\n if (buffer.size() == SIZE) {\r\n try {\r\n wait();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n buffer.add(item);\r\n notifyAll();\r\n return;\r\n }\r\n }", "void enqueue(E item);", "public void append(T element);", "public void append(T element);", "public static void enqueue(Object object) {\n queue.addLast(object);\n }", "public void push(E element) {\r\n items.add(0, element);\r\n }", "public void append(Object obj) throws Exception {\n\t\tif(count>0&&front==rear)\n\t\t\t\tthrow new Exception(\" 队列已满\");\n\t\tdata[rear]= obj;\n\t\trear=(rear+1)%maxSize;\n\t\tcount++;\n\t}", "public Node<T> put(T element) throws InterruptedException {\n do {\n // Get a free node.\n Node<T> freeNode = getFree();\n if (freeNode != null) {\n // Attach the element.\n return freeNode.attach(element);\n } else {\n // Block.\n waitForFree();\n }\n // Forever.\n } while (true);\n }", "public void add(Object o) {\n Logger.log(\"DEBUG\", \"Data to add to queue: \" + o.toString());\n while(isLocked()) {\n try {\n Thread.sleep(10);\n }\n catch(InterruptedException ie) {\n // do nothing\n }\n }\n addToTail(o);\n LAST_WRITE_TIME = now();\n }", "@Override\r\n\tpublic void enqueue(Object element){\r\n\t\tif(head == null) {\r\n\t\t\thead = new Node(element);\r\n\t\t\ttail = head;\r\n\t\t}else {\r\n\t\t\ttail.next = new Node(element);\r\n\t\t\ttail = tail.next;\r\n\t\t}\r\n\t\tsize++;\r\n\t}", "public synchronized boolean add(T obj) throws InterruptedException {\n\t\t\tnotify();\n\t\t\tif (maxSize == queue.size()) {\n\t\t\t\tSystem.out.println(\"Queue is full, producer is waiting.\");\n\t\t\t\twait();\n\t\t\t}\n\t\t\treturn queue.add(obj);\n\t\t}", "public synchronized void insert(Integer e) {\r\n\t\ttry {\r\n\t\t\twhile (buffer.size() == maxSize) {\r\n\t\t\t\twait();\r\n\t\t\t}\r\n\t\t\tbuffer.add(e);\r\n\t\t\tnotify();\t\t\t\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\tThread.currentThread().interrupt();\r\n\t\t}\r\n\t}", "void enqueue(E e);", "public void enqueue (int elemento) {\n if(!isFull()){\n data[last] = elemento;\n count++;\n if(last == data.length-1) {\n last = 0;\n } else {\n last++;\n }\n }else{\n throw new RuntimeException(\"A fila está cheia\");\n }\n\n }", "@Override\r\n\tpublic boolean enqueue(T element) {\r\n\t\t\r\n\t\t// checking if queue is already full or not\r\n\t\tif (isFull()) {\r\n\t\t\tthrow new AssertionError(\"Queue is full\");\r\n\t\t} else {\r\n\t\t\tif (this.front == -1) {\r\n\t\t\t\tthis.front = 0;\r\n\t\t\t}\r\n\t\t\tthis.rear = (this.rear + 1) % this.size;\r\n\t\t\tthis.array[this.rear] = (Integer)element;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void enqueueRear(E element) {\n\t\tif(sizeDeque == CAPACITY) return;\r\n\t\tif(sizeDeque == 0) {\r\n\t\t\tdata[backDeque] = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tbackDeque = (backDeque + 1)%CAPACITY;\r\n\t\t\tdata[backDeque] = element;\r\n\t\t}\r\n\t\t\r\n\t\tsizeDeque++;\r\n\t}", "public void enqueue(E e) {\n\t\t\tsynchronized (this.pq) {\n\t\t\t\tthis.pq.add(e);\n//\t\t\t\tSystem.out.println(\"insert \" + e);\n\t\t\t}\n\t\t\tthis.sem.release();\n\t}", "@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}", "@Override\r\n\tpublic void enqueue(T element)\r\n\t{\r\n\t\tLinkedNode<T> n = new LinkedNode<>(element);\r\n\r\n\t\t// if the only element in the queue, it becomes the first element\r\n\t\tif (head == null)\r\n\t\t{\r\n\t\t\thead = n;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// otherwise, the tail's next receives the new node\r\n\t\t\t// because later, tail will be the new node\r\n\t\t\ttail.next = n;\r\n\t\t}\r\n\r\n\t\t// always add at the end of the list\r\n\t\ttail = n;\r\n\t\tcount++;\r\n\t}", "void append(E element);", "public void addIntoQueue(Integer block_id){\n if(this.queue_set){\n if(this.queue.contains(block_id) == false){\n this.queue.add(block_id);\n }\n }\n }", "void enqueue(T item) {\n contents.addAtTail(item);\n }", "@Override\n\tpublic void addToQueue() {\n\t}", "@Override\n\tpublic synchronized void put(T o) throws InterruptedException {\n try {\n while ( queue.size()==size) wait();\n //if(debug)System.out.println(\"put: \"+o);\n }\n catch (InterruptedException ie) {\n throw new RuntimeException(\"woke up\", ie);\n }\n // add data to queue\n queue.add(o);\n // have data. tell any waiting threads to wake up\n notifyAll();\n\t}", "public void enqueue(Object value);", "public void enqueue(Object value)\n {\n queue.insertLast(value);\n }", "public void push(E element);", "public static synchronized void insert(JeyEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }", "public static synchronized void insert(IEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }", "public synchronized void put(T item) {\n\t\twhile(size == items.length) {\n\t\t\ttry {\n\t\t\t\tthis.wait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\t\t\t\n\t\tint next = (end+1)%items.length;\n\t\titems[next] = item;\n\t\tend = next;\t\t\n\t\tsize++;\n\t\tif(size == 1) {\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "@Override\r\n\tpublic boolean enqueue(T e) throws QueueOverflowException {\r\n\t\tif (this.isFull()) {\r\n\t\t\tthrow new QueueOverflowException(\"The queue is full\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata.add(data.size(), e);\r\n\t\t}\r\n\t\t// Add element to the end of the Queue\t\t\r\n\t\treturn true;\r\n\t}", "public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}", "void enqueue(E newEntry);", "public void push(T element);", "public void push(T element);", "@Override\n public void enqueue(Object element) {\n LinkedNode<T> node = new LinkedNode<T>((T) element);\n if (isEmpty()) {\n front = node;\n } else {\n rear.setNext(node);\n }\n rear = node;\n count++;\n\n }", "public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\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 ImmutableQueue<T> enQueue(T element) {\r\n\t\tif (element == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\treturn new ImmutableQueue<T>(this.enqueueStack.push(element), this.dequeueStack);\r\n\t}", "public synchronized void enqueue(Object o) {\r\n insertAtBack(o);\r\n }", "public boolean offer(E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\twhile (true) {\n\t\t\tlong r = rear.get();\n\t\t\tint i = (int)(r % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did rear change while we were reading x?\n\t\t\tif (r != rear.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue full?\n\t\t\tif (r == front.get() + elements.length())\n\t\t\t\treturn false; //Don't retry; fail the offer.\n\n\t\t\tif (x == null) {//Is the rear empty?\n\t\t\t\tif (elements.compareAndSet(i, x, element)) {//Try to store an element.\n\t\t\t\t\t//Try to increment rear. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further insertions, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\trear.compareAndSet(r, r+1);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else //rear not empty. Try to help other threads.\n\t\t\t\trear.compareAndSet(r, r+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}", "public void push (E element);", "public synchronized void push(Object o) {\n itemcount++;\n addElement(o);\n notify();\n }", "void push(Recycler.DefaultHandle<?> item)\r\n/* 519: */ {\r\n/* 520:554 */ Thread currentThread = Thread.currentThread();\r\n/* 521:555 */ if (this.threadRef.get() == currentThread) {\r\n/* 522:557 */ pushNow(item);\r\n/* 523: */ } else {\r\n/* 524:562 */ pushLater(item, currentThread);\r\n/* 525: */ }\r\n/* 526: */ }", "private void addCommandToQueue(CancellableCommand command) {\n outstandingRequests.add(command);\n while (outstandingRequests.size() > maxOutstandingRequests) {\n outstandingRequests.poll().onCancelled();\n }\n }", "public void add(Runnable task) {\n synchronized (mComIOQueue) {\n mComIOQueue.add(task);\n mComIOQueue.notify();\n }\n }", "public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }", "public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}", "@Override\n\tpublic void enqueue(E e) {\n\t\tint index = (pos + size) % queue.length;\n\t\tqueue[index] = e;\n\t\tsize++;\n\t}", "@Override\n public synchronized void add(E element) {\n if (this.pointer == this.capacity) {\n int newCapacity = this.capacity + (this.capacity >> 1);\n Object[] arr = Arrays.copyOf(this.container, newCapacity);\n this.capacity = newCapacity;\n this.container = arr;\n }\n this.container[this.pointer++] = element;\n }", "public void sendAsyncMessage(String to, Message message) {\r\n\r\n BlockingQueue<Message> asyncQueue = getAsyncQueue(to);\r\n boolean success = asyncQueue.offer(message);\r\n if (!success)\r\n throw new RuntimeException(\"AsyncQueue has not any more space to receive the new item.\");\r\n }", "private void append (String str)\n {\n\tsynchronized (myToBeAppended)\n\t{\n\t myToBeAppended.append (str);\n\t myToBeAppended.notifyAll ();\n\t}\n }", "public void enqueue(Object o) {\n queue.enqueue(o);\n }", "protected abstract long waitOnQueue();", "public void push(T element){\n\t\tarray[noOfElements] = element;\n\t\tnoOfElements ++;\t\t\n\t}", "@Override\n public void pipeStepQueueJob(final Job job) {\n synchronized(jobs_queue) {\n pipeStepLog(\"Queuing JOB #\" + job.getId());\n jobs_queue.add(job);\n jobs_queue.notifyAll();\n }\n }", "public void offer(E e) {\n if (e == null) throw new NullPointerException();\n queue[currentPos++] = e;\n size++;\n\n if (currentPos == queue.length) resize();\n }", "public void addInvokeLater(DirItem item) {\n\t\tsynchronized (stack) {\n\t\t\tstack.add(0, item);\n\t\t}\n\n\t\tsynchronized (thread) {\n\t\t\t// Starts the worker thread if waiting\n\t\t\tthread.notify();\n\t\t}\n\t}", "private void putOneQueue(BlockingQueue q, List buffer) throws InterruptedException {\n q.put(buffer);\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" done\");\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" first record \" + buffer.get(0));\n }", "@Override\n protected void insertJobInQueueUponArrival (final J job, final double time)\n {\n addRealJobLocal (job);\n }", "public void enqueue(T item) {\n\t\tif(rear == capacity)\n\t\t\treSize();\n\t\tarr[rear] = item;\n\t\tSystem.out.println(\"Added: \" + item);\n\t\trear++;\n\t\tsize++;\n\t}", "public void offer(E e)\n {\n if(!mOverflow.get())\n {\n mQueue.offer(e);\n\n int size = mCounter.incrementAndGet();\n\n if(size > mMaximumSize)\n {\n setOverflow(true);\n }\n }\n }", "@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }", "@Override\r\n\tpublic void enqueueFront(E element) {\n\t\tif(sizeDeque == CAPACITY) return;\r\n\t\tif(sizeDeque == 0) {\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfrontDeque = (frontDeque - 1 + CAPACITY) % CAPACITY;\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\t\r\n\t\tsizeDeque++;\r\n\t}", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public void put(T element) {\n\t\tcheckCapacity(size + 1);\n\t\tdata[size++] = element;\n\t}", "public void add_elements()\n {\n\tint n = 0;\n\tSystem.out.println(Thread.currentThread().getName() + \" is waiting for permit\");\n\ttry\n\t{\n\t semaphoreIm.P();\n\t System.out.println(Thread.currentThread().getName()+ \" has got permit\");\n\t while (num_elements > 0)\n\t {\n\t buf.add(n, id);\t\t\t\t\t\t\t\n\t n++;\n\t num_elements--;\n\t }\n\t}\n\tcatch (InterruptedException e)\n\t{\n\t\t\n\t}\n\tSystem.out.println(Thread.currentThread().getName()+\n \" has released permit\");\n\tsemaphoreIm.V();\n }", "@Override\n\tpublic void queue(T element) {\n\t\tLinkElement<T> linkElement = new LinkElement<T>(element);\n\n\t\tif ( last != null )\n\t\t\tlast.setPrevLinkElement(linkElement);\t// ensure previous last element refers to new last element.\n\t\t\n\t\tlast = linkElement;\n\t\t\n\t\tif (head == null)\n\t\t\thead = linkElement;\t// the first element on the queue, so becomes the head.\n\t}", "public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException {\n checkNotNull(e);\n long nanos = unit.toNanos(timeout);\n final ReentrantLock lock = this.lock;\n lock.lockInterruptibly();\n try {\n while (count == items.length) {\n if (nanos <= 0) return false;\n nanos = notFull.awaitNanos(nanos);\n }\n enqueue(e);\n return true;\n } finally {\n lock.unlock();\n }\n }", "public void queueEvent(Runnable r) {\n renderqueue.add(r);\n }", "public void push(T elem);", "@NonNull\n public ListReadableQueueState.Builder<E> value(@NonNull E element) {\n backingStore.add(element);\n return this;\n }", "void enqueue(String object);", "void enqueue(T t);", "public abstract void Enqueue (Type item);" ]
[ "0.7043976", "0.6891302", "0.67788994", "0.66735363", "0.66459227", "0.6450185", "0.63457185", "0.62953615", "0.6286355", "0.62817395", "0.6246887", "0.6245818", "0.6229107", "0.6173595", "0.6106954", "0.60993874", "0.6095333", "0.6093924", "0.60712683", "0.60649145", "0.5992609", "0.5969659", "0.59293985", "0.5913117", "0.5913117", "0.5899002", "0.5892401", "0.58497083", "0.5834786", "0.5829812", "0.5805601", "0.5804597", "0.5799237", "0.5796734", "0.57953316", "0.57827103", "0.5764461", "0.57554805", "0.57514256", "0.57463974", "0.57356167", "0.57345194", "0.57267666", "0.57265085", "0.57130915", "0.56964964", "0.5694471", "0.5689682", "0.56803477", "0.56698006", "0.5667448", "0.5659567", "0.56590384", "0.56549317", "0.5647997", "0.5647997", "0.56398064", "0.5639503", "0.56286484", "0.5624706", "0.5623015", "0.5615536", "0.56102365", "0.5607779", "0.5574317", "0.55686736", "0.5567834", "0.5566427", "0.55386883", "0.5527582", "0.5524592", "0.5514375", "0.55093265", "0.5501271", "0.5501168", "0.5493005", "0.5491626", "0.54674125", "0.54650223", "0.5461916", "0.54539585", "0.5441957", "0.54329133", "0.54298323", "0.5420077", "0.5413497", "0.5409914", "0.53932565", "0.53885543", "0.5388487", "0.5384913", "0.5384718", "0.5382824", "0.53738827", "0.5371134", "0.535882", "0.53570235", "0.535274", "0.5343448", "0.5342525", "0.533819" ]
0.0
-1
Dispose this queue. The underlying thread is interrupted, this object is no more reusable.
public void dispose() { if (!disposed.compareAndSet(false, true)) return; queueThread.interrupt(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dispose() {\n\t\t\t\r\n\t\t\tif (TRACE) {\r\n\t\t\t\tSystem.out.println(\"Disposing thread \" + workerNo);\r\n\t\t\t}\r\n\t\t\tcontrolLock.lock();\r\n\t\t\ttry {\r\n\t\t\t\tthreads.remove(thread.getId());\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcontrolLock.unlock();\r\n\t\t\t}\r\n\t\t}", "public void dispose() {\n thread.interrupt();\n }", "public void closeQueue();", "public void dispose() {\n processDispose(false);\n }", "public void dispose() {\n\t\twhile(unackHead != null) {\n\t\t\tcancel(unackHead);\n\t\t\tunackHead = unackHead.next;\n\t\t}\n\t\tif(curChunker != null)\n\t\t\tcurChunker.dispose();\n\t}", "public void dispose() {\n\t\tinterruptWait(AceSignalMessage.SIGNAL_TERM, \"disposed\");\n\t}", "public final void dispose() {\n lock.writeLock().lock();\n try {\n if (available) {\n available = false;\n _dispose();\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "public void cancelAndReleaseQueue() {\n if (mRequestHandle != null) {\n mRequestHandle.cancel();\n mRequestHandle = null;\n }\n releaseQueue();\n }", "public void destroy() {\n synchronized (monitor) {\n while (!queue.isEmpty()) {\n queue.poll().node.discard();\n }\n destroyed = true;\n }\n }", "@Override\r\n public void processDispose()\r\n {\r\n final ICacheEvent<String> cacheEvent = createICacheEvent(getCacheName(), \"none\", ICacheEventLogger.DISPOSE_EVENT);\r\n try\r\n {\r\n final Thread t = new Thread(this::disposeInternal, \"IndexedDiskCache-DisposalThread\");\r\n t.start();\r\n // wait up to 60 seconds for dispose and then quit if not done.\r\n try\r\n {\r\n t.join(60 * 1000);\r\n }\r\n catch (final InterruptedException ex)\r\n {\r\n log.error(\"{0}: Interrupted while waiting for disposal thread to finish.\",\r\n logCacheName, ex);\r\n }\r\n }\r\n finally\r\n {\r\n logICacheEvent(cacheEvent);\r\n }\r\n }", "public void dispose () {\n\t\ttry {\n\t\t\tif (thread != null) {\n\t\t\t\tthis.modulePlayer.stop();\n\t\t\t\tthis.thread.join();\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n super.dispose();\n iHandle = 0;\n }\n }", "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n super.dispose();\n iHandle = 0;\n }\n }", "@Override\n\tpublic void dispose() {\n\t\tbox.close();\n\t\tthis.myThready.interrupt();\n\t\tSystem.exit(0);\n\t}", "@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }", "private synchronized void dispose()\n/* */ {\n/* 625 */ this.dispose = true;\n/* 626 */ notifyAll();\n/* */ }", "public final synchronized void dispose()\n {\n if (!disposed)\n {\n try\n {\n try\n {\n this.disconnect();\n }\n catch (Exception e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage(), e);\n }\n\n this.doDispose();\n\n if (workManager != null)\n {\n workManager.dispose();\n }\n }\n finally\n {\n disposed = true;\n }\n }\n }", "@Override\n public void close() {\n try {\n while (ftpBlockingQueue\n .iterator()\n .hasNext()) {\n FTPClient client = ftpBlockingQueue.take();\n ftpClientFactory.destroyObject(ftpClientFactory.wrap(client));\n }\n } catch (Exception e) {\n log.error(\"close ftp client ftpBlockingQueue failed...{}\", e.toString());\n }\n }", "public void dispose() {\r\n\t\t// Nothing to dispose\r\n\t}", "public void dispose() {\n\t\t// Nothing to dispose\n\t}", "public void dispose()\n {\n getLogger().debug( \"dispose\" );\n }", "public synchronized void clear() {\n _queue.clear();\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "public void dispose() {\r\n\r\n if (LOG.isLoggable(Level.FINEST)) {\r\n LOG.finest(\"dispose ( ) called \");\r\n }\r\n\r\n status = Status.STATUS_SHUTDOWN;\r\n\r\n if (replicateAsync) {\r\n flushReplicationQueue();\r\n }\r\n\r\n }", "public void dispose () {\n\t\twhile(!stack.isEmpty()) {\n\t\t\tstack.pop().dispose();\n\t\t}\n\t}", "public void dispose()\r\n\t{\r\n\t\t_current.dispose();\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(null!=mQueue){\n\t\t\tmQueue.cancelAll(this);\n\t\t}\n\t\tLogger.d(TAG, \"onDestroy.....\");\n\t}", "public void dispose() {\n\t\tsocket.close();\n\t}", "public void dispose() {\r\n\t\tclose();\r\n\t}", "@Override\n\tpublic void dispose() {\n\t\tdestroy();\n\t}", "@Override\n\tpublic void dispose(long timeout) throws InterruptedException\n\t{\n\t\t\n\t}", "public void dispose() {\r\n\t\tquit();\r\n\t}", "public void clear() throws FileQueueClosedException;", "public void dispose() {\n\t\t}", "public void dispose() {\n\t\t}", "public void dispose() {\n\t\t\t\r\n\t\t}", "public void dispose() {\r\n\t\tif (view != null)\r\n\t\t\tview.stopThread = true;\r\n\t\tview = null;\r\n\t\tcontroller = null;\r\n\t\tsuper.dispose();\r\n\t}", "public void dispose( );", "public void dispose() {\n mInputChannel.dispose();\n try {\n mHost.dispose();\n } catch (RemoteException e) {\n e.rethrowFromSystemServer();\n }\n }", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}", "void dispose() {}", "@Override\n\t// O(1)\n\tpublic void close() {\n\t\tsynchronized (mInetAddressList) {\n\t\t\tmIsClosed = true;\n\t\t\tmCleanupTask.cancel();\n\t\t\tmInetAddressList.clear();\n\n\t\t\t// unblock the blocked threads\n\t\t\t// when they resume, they'll throw an interrupted exception\n\t\t\t// there's only one place where they'll be blocked (in take())\n\t\t\twhile (mInetAddressAvailableSemaphore.hasQueuedThreads()) {\n\t\t\t\tmInetAddressAvailableSemaphore.release();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void dispose()\r\n\t{}", "public void dispose() {\n\t\t\n\t}", "public void dispose() {\n story = null;\n backlog = null;\n parent = null;\n }", "QueueDrain drain() {\n lock.lock();\n try {\n final LinkedList<CompletableFuture<Message>> futuresWaitingForMessages = new LinkedList<>(futureQueue);\n final LinkedList<Message> messagesAvailableForProcessing = new LinkedList<>(messageQueue);\n futureQueue.clear();\n messageQueue.clear();\n return QueueDrain\n .builder()\n .futuresWaitingForMessages(futuresWaitingForMessages)\n .messagesAvailableForProcessing(messagesAvailableForProcessing)\n .build();\n } finally {\n lock.unlock();\n }\n }", "public E remove() throws FileQueueClosedException;", "@Override\n protected final void deallocate() {\n ByteBuf wrapped = unwrap();\n recyclerHandle.recycle(this);\n wrapped.release();\n }", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n\t\t\r\n\t}", "public void dispose() {\n }", "public void dispose()\n\t{\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public void dispose() {\n\t}", "public synchronized void clear() throws QueueException\r\n {\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n\r\n measurementQueue.clear();\r\n this.notifyObservers();\r\n }", "public void dispose() {\n if (!disposable.isDisposed()) {\n disposable.dispose();\n }\n }", "public void i() {\n if (this.e != null) {\n this.e.cancel();\n this.e = null;\n }\n if (this.d != null) {\n this.d.cancel();\n this.d.purge();\n this.d = null;\n }\n }", "private void processDispose(final boolean finalized) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Thread.currentThread().setName(\"Dispose_Thread\");\n Log.d(TAG, \"Processing dispose with \" + finalized + \" from \"\n + Thread.currentThread().getName());\n disposeInternal(finalized);\n }\n }).start();\n }", "public void dispose() {\n disposed = true;\n }", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "@Override\n\t\t\tpublic void dispose() {\n\t\t\t}", "public void dispose() {\n this.img.dispose();\n }", "public void clear(){\r\n\t\tqueue.clear();\r\n\t}", "@Override\n\tpublic void destroy() {\n\t\tif( null != mLooper ) {\n\t\t\tmLooper.quit();\n\t\t\tmLooper = null;\n\t\t\tmThread = null;\n\t\t}\n\t}", "@Override\n\tpublic void dispose()\n\t{\n\t\t\n\t}", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n public void dispose() {\n }", "@Override\n\t\tpublic void dispose() {\n\t\t \n\t\t}", "public void dispose()\r\n\t{\r\n\t\t// System.out.println(\"dispose\");\r\n\t}", "@Override\n public void dispose() {\n log.debug(\"dispose()\");\n\n }", "public void dispose() {\n abandonTileImprovementPlan();\n super.dispose();\n }", "@Override\n public void dispose() {\n \n }", "public void dispose() {\n\n\t}", "public void dispose() {\n\n\t}", "public void dispose() {\n\n\t}", "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n disposeProxy();\n iHandle = 0;\n iActionSubscribe.destroy();\n iActionUnsubscribe.destroy();\n iActionRenew.destroy();\n iActionGetPropertyUpdates.destroy();\n }\n }", "public void dispose() ;", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}", "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "public void dispose() {\n if (mediaPlayer.isPlaying())\n mediaPlayer.stop();\n mediaPlayer.release();\n }", "protected void cleanup() {\n finished = true;\n thread = null;\n }", "public ThreadListObjectCopyWrapper<T> dispose() {\r\n listOwnerRef_.safeObjectDispose(this);\r\n return null;\r\n }", "public Queue<T> deQueue();", "public void destroy() {\n/* 157 */ this.mDisposable.clear();\n/* */ }" ]
[ "0.7265127", "0.71311367", "0.6662685", "0.6647886", "0.6614953", "0.6587139", "0.6540461", "0.65151334", "0.6459846", "0.6376237", "0.6257912", "0.62141275", "0.619675", "0.619675", "0.6175858", "0.615516", "0.6154776", "0.613925", "0.6097169", "0.6084791", "0.6083256", "0.6077335", "0.6065867", "0.6044673", "0.60346764", "0.6024685", "0.60075855", "0.5991661", "0.59780854", "0.5971702", "0.59478015", "0.5934868", "0.5870747", "0.58557516", "0.5842319", "0.5842319", "0.5839083", "0.58218545", "0.5809308", "0.58028835", "0.5795126", "0.57898366", "0.578279", "0.5769463", "0.5766762", "0.5748444", "0.57362545", "0.5726872", "0.57248664", "0.5715701", "0.57076234", "0.57076234", "0.57076234", "0.57032245", "0.5700339", "0.5699869", "0.5699869", "0.5699869", "0.5699869", "0.56952214", "0.5689419", "0.56730276", "0.56670505", "0.5665103", "0.5657364", "0.5655368", "0.5653869", "0.5653683", "0.5649032", "0.5648569", "0.5640526", "0.56379545", "0.56379545", "0.56379545", "0.56379545", "0.56379545", "0.5634391", "0.5632279", "0.5631776", "0.56292325", "0.5609048", "0.5608392", "0.5608392", "0.5608392", "0.5606097", "0.56017697", "0.5600095", "0.5600095", "0.5600095", "0.5600095", "0.5600095", "0.5600095", "0.5600095", "0.5600095", "0.55992085", "0.55968916", "0.55956995", "0.55611587", "0.55538934", "0.55471337" ]
0.85049534
0
Creates a cancellable element.
private Cancellable(T element) { this.element = element; this.isCancelled = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JButton addCancelButton(){\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\n\t\tcancelButton.addActionListener(arg0 -> setVisible(false));\n\t\treturn cancelButton;\n\t}", "private JButton getCancelButton() {\n if (cancelButton == null) {\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = true;\n dispose();\n }\n });\n }\n return cancelButton;\n }", "public static BucketbotTask createTaskCANCEL() {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.CANCEL;\r\n\t\treturn t;\r\n\t}", "public void checkCancel() throws CancellationException;", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "private CancelMessage makeCancelMessage(Tradable t, String details) throws InvalidDataException {\n\t\treturn new CancelMessage(t.getUser(),t.getProduct(),t.getPrice(),\n\t\t\t\tt.getRemainingVolume(), details, t.getSide(),t.getId());\n\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public JButtonOperator btCancel() {\n if (_btCancel==null) {\n _btCancel = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_CANCEL\"));\n }\n return _btCancel;\n }", "private JButton getBcancel() {\n if( Bcancel == null ) {\n Bcancel = new JButton();\n Bcancel.setText(\"Cancel\");\n Bcancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n setVisible(false);\n dispose();\n }\n });\n }\n return Bcancel;\n }", "private Component getCancelButton() {\n\t\tif (cancelButton == null) {\r\n\t\t\tcancelButton = new JButton();\r\n\t\t\tcancelButton.setText(\"Cancel\");\r\n\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t \r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cancelButton;\r\n\t}", "private JButton getCancelButton() {\r\n\t\tif (cancelButton == null) {\r\n\t\t\tcancelButton = new JButton();\r\n\t\t\tcancelButton.setText(\"Cancel\");\r\n\t\t\tcancelButton.addActionListener(new java.awt.event.ActionListener() { \r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \r\n\t\t\t\t\tdispose();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cancelButton;\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "protected void createCancelButton(Composite parent) {\n\t\tcancel = createButton(parent, IDialogConstants.CANCEL_ID, \"取消\", true);\n\t\tcancel.setCursor(arrowCursor);\n\t\tsetOperationCancelButtonEnabled(true);\n\t}", "private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}", "public native int cancel (int tagId) throws IOException,IllegalArgumentException;", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "InterruptResource createInterruptResource();", "public void cancel() {\n btCancel().push();\n }", "public void cancel( String reason );", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel()\n\t{\n\t}", "void cancel(long inId);", "@Override\n public void cancel() {\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "private BButton getBtnCancel() {\r\n\t\tif (btnCancel == null) {\r\n\t\t\tbtnCancel = new BButton();\r\n\t\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\tbtnCancel.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnCancel;\r\n\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n public void cancel() {\n }", "public void cancel();", "public void cancel() {\n\t}", "@Override\n public void cancel() {\n\n }", "private javax.swing.JButton getBtnCancel() {\r\n\tif (ivjBtnCancel == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnCancel = new javax.swing.JButton();\r\n\t\t\tivjBtnCancel.setName(\"BtnCancel\");\r\n\t\t\tivjBtnCancel.setText(\"Cancel\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnCancel;\r\n}", "private JButton getBtnCancel() {\n if (btnCancel == null) {\n btnCancel = new JButton();\n btnCancel.setText(\"Odustani\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = false;\n setVisible(false);\n }\n });\n }\n return btnCancel;\n }", "private Component cancelButton(){\n cancelButton = new Button(\"cancelButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n personFormPanel.clearFormValues();\n }\n };\n //Reset default form processing: validation and model update\n cancelButton.setDefaultFormProcessing(false);\n return cancelButton;\n }", "Update withCancelRequested(Boolean cancelRequested);", "private JButton getJButtonCancel() {\r\n\t\tif (jButtonCancel == null) {\r\n\t\t\tjButtonCancel = new JButton();\r\n\t\t\tjButtonCancel.setBounds(new Rectangle(220, 215, 90, 30));\r\n\t\t\tjButtonCancel.setText(\"取消\");\r\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tjColorChooser.setVisible(false);\r\n\t\t\t\t\tchooserColor = null;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonCancel;\r\n\t}", "public Cancellable<T> add(T e) {\n\t\tcheckIsDisposed();\n\t\tCancellable<T> element = new Cancellable<T>(e);\n\t\tqueue.add(element);\n\t\treturn element;\n\t}", "@Override\n public void cancel() {\n\n }", "public void cancel(){\n cancelled = true;\n }", "public boolean create(Display disp, RationaleElement parent)\r\n\t{\r\n\t\tEditTradeoff ar = new EditTradeoff(disp, this, true);\r\n\t\treturn ar.getCanceled(); //can I do this?\r\n\t\t\r\n\t}", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "private void decorateCancelButton() {\n cancelButton.setVisible(false);\n ResourceUtils.resButton(cancelButton, Res.getString(\"cancel\"));\n cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196)));\n cancelButton.setForeground(new Color(73, 113, 196));\n cancelButton.setFont(new Font(\"Dialog\", Font.BOLD, 10));\n \n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n cancelTransfer();\n }\n });\n \n cancelButton.addMouseListener(new MouseAdapter() {\n public void mouseEntered(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\n \n }\n \n public void mouseExited(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }\n });\n \n }", "public synchronized void cancel() {\n }", "public Builder setCancel(Boolean b) {\r\n this.cancel = b;\r\n return this;\r\n }", "public void cancel() throws OperationUnsupportedException;", "public void cancelAddTag(ActionEvent event) {\n\t\tnewTagName.setText(\"\");\n\t\tnewTagValue.setText(\"\");\n\t\t\n\t\ttagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n\t}", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "CancelAction getCancelAction();", "private JButton getJButtonCancelHTML() {\r\n\r\n\t\tif (jButtonCancelHTML == null) {\r\n\t\t\tjButtonCancelHTML = new JButton();\r\n\t\t\tjButtonCancelHTML.setBounds(new Rectangle(306, 258, 106, 21));\r\n\t\t\tjButtonCancelHTML.setText(StringDatabase.getUniqueInstance ()\r\n\t\t\t\t.getString(\"HTMLTextEditor.jButtonCancelHTML.Text\"));\r\n\t\t\t// setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\t\tjButtonCancelHTML\r\n\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\r\n\t\t\t\t\t\textendedHTMLEditorKit =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlKit();\r\n\t\t\t\t\t\textendedHTMLDocument =\r\n\t\t\t\t\t\t\tekitCoreEditorHTMLPanel.gethtmlDoc();\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t}\r\n\t\treturn jButtonCancelHTML;\r\n\t}", "private JButton createUnBookButton() {\n\t\tfinal JButton unBookButton = new JButton(\"Remove Booking\");\n\n\t\tunBookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleUnbooking();\n\t\t\t}\n\t\t});\n\n\t\treturn unBookButton;\n\t}", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "public boolean cancel();", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "void cancelClone();", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "public native int cancel (boolean reliable,boolean sequenced,int tagId) throws IOException,IllegalArgumentException;", "void cancel() {\n\tsleepThread.interrupt();\n }", "void cancelOriginal();", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "public DraggableBehavior setCancel(String cancel)\n\t{\n\t\tthis.options.putLiteral(\"cancel\", cancel);\n\t\treturn this;\n\t}", "public void addCancelButton() {\r\n mButtons.add(mCancelButton);\r\n\r\n mCancelButton.addClickListener(new ModernClickListener() {\r\n @Override\r\n public void clicked(ModernClickEvent e) {\r\n hide(e);\r\n }\r\n });\r\n }", "private JButton getJButtonCancelar() {\r\n\t\tif (jButtonCancelar == null) {\r\n\t\t\tjButtonCancelar = new JButton();\r\n\t\t\tjButtonCancelar.setText(CANCELAR);\r\n\t\t}\r\n\t\treturn jButtonCancelar;\r\n\t}", "public static Button createCancelButton(Composite c,\n\t\t\tfinal Composite panel, final StackLayout layout) {\n\t\tButton cancelButton = new Button(c, SWT.PUSH);\n\t\tcancelButton.setText(\"Cancel\");\n\t\tcancelButton.setBounds(10, HEIGHT - 90, 100, 50);\n\t\tcancelButton.addListener(SWT.Selection, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tcancel = false;\n\t\t\t\tfinal Shell areYouSureShell = new Shell(display);\n\t\t\t\tareYouSureShell.setText(\"Cancel\");\n\t\t\t\tareYouSureShell.setSize(300, 200);\n\t\t\t\tcenter(areYouSureShell);\n\n\t\t\t\tLabel areYouSure = new Label(areYouSureShell, SWT.NONE);\n\t\t\t\tareYouSure.setLocation(40,50);\n\t\t\t\tareYouSure.setText(\"Are you sure you want to cancel?\");\n\t\t\t\tareYouSure.pack();\n\n\t\t\t\tButton yes = new Button(areYouSureShell, SWT.PUSH);\n\t\t\t\tyes.setBounds(10,130,130,30);\n\t\t\t\tyes.setText(\"Yes, Cancel\");\n\t\t\t\tyes.addListener(SWT.Selection, new Listener() {\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tcancel = true;\n\t\t\t\t\t\tareYouSureShell.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tButton no = new Button(areYouSureShell, SWT.PUSH);\n\t\t\t\tno.setBounds(160,130,130,30);\n\t\t\t\tno.setText(\"No, Don't Cancel\");\n\t\t\t\tno.addListener(SWT.Selection, new Listener() {\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tcancel = false;\n\t\t\t\t\t\tareYouSureShell.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tareYouSureShell.open();\n\t\t\t\twhile (!areYouSureShell.isDisposed()) {\n\t\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cancel) {\n\t\t\t\t\tshell.close();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn cancelButton;\n\t}", "public abstract boolean cancel();", "HTMLElement createHTMLElement();", "public void cancel() {\n\t\tcancel(false);\n\t}", "private javax.swing.JButton getJButtonCancel() {\n\t\tif(jButton1 == null) {\n\t\t\tjButton1 = new javax.swing.JButton();\n\t\t\tjButton1.setText(\"Cancel\");\n\t\t\tjButton1.setMnemonic(java.awt.event.KeyEvent.VK_C);\n\t\t\tjButton1.setName(\"Cancel\");\n\t\t\tjButton1.setPreferredSize(new java.awt.Dimension(85,25));\n\t\t\tjButton1.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButton1;\n\t}", "public void testCreateCancel() {\n\t\ttry {\n\t\t\tRequest invite = createTiInviteRequest(null, null, null);\n\t\t\tClientTransaction tran = null;\n\t\t\ttry {\n\t\t\t\ttran = tiSipProvider.getNewClientTransaction(invite);\n\t\t\t} catch (TransactionUnavailableException exc) {\n\t\t\t\tthrow new TiUnexpectedError(\n\t\t\t\t\t\"A TransactionUnavailableException was thrown while trying to \"\n\t\t\t\t\t\t+ \"create a new client transaction\",\n\t\t\t\t\texc);\n\t\t\t}\n\t\t\t\n\t\t\t// see if creating a dialog matters\n\t\t\ttran.getDialog();\n\t\t\t\n\t\t\tRequest cancel = null;\n\t\t\ttry {\n\t\t\t\tcancel = tran.createCancel();\n\t\t\t} catch (SipException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tfail(\"Failed to create cancel request!\");\n\t\t\t}\n\t\t\tassertEquals(\n\t\t\t\t\"The created request did not have a CANCEL method.\",\n\t\t\t\tcancel.getMethod(),\n\t\t\t\tRequest.CANCEL);\n\t\t\tassertEquals(\n\t\t\t\t\"Request-URIs of the original and the cancel request do not match\",\n\t\t\t\tcancel.getRequestURI(),\n\t\t\t\tinvite.getRequestURI());\n\t\t\tassertEquals(\n\t\t\t\t\"Call-IDs of the original and the cancel request do not match\",\n\t\t\t\tcancel.getHeader(CallIdHeader.NAME),\n\t\t\t\tinvite.getHeader(CallIdHeader.NAME));\n\t\t\tassertEquals(\n\t\t\t\t\"ToHeaders of the original and the cancel request do not match\",\n\t\t\t\tcancel.getHeader(ToHeader.NAME),\n\t\t\t\tinvite.getHeader(ToHeader.NAME));\n\t\t\tassertTrue(\n\t\t\t\t\"The CSeqHeader's sequence number of the original and \"\n\t\t\t\t\t+ \"the cancel request do not match\",\n\t\t\t\t((CSeqHeader) cancel.getHeader(CSeqHeader.NAME))\n\t\t\t\t\t.getSeqNumber()\n\t\t\t\t\t== ((CSeqHeader) invite.getHeader(CSeqHeader.NAME))\n\t\t\t\t\t\t.getSeqNumber());\n\t\t\tassertEquals(\n\t\t\t\t\"The CSeqHeader's method of the cancel request was not CANCEL\",\n\t\t\t\t((CSeqHeader) cancel.getHeader(CSeqHeader.NAME)).getMethod(),\n\t\t\t\tRequest.CANCEL);\n\t\t\tassertTrue(\n\t\t\t\t\"There was no ViaHeader in the cancel request\",\n\t\t\t\tcancel.getHeaders(ViaHeader.NAME).hasNext());\n\t\t\tIterator cancelVias = cancel.getHeaders(ViaHeader.NAME);\n\t\t\tViaHeader cancelVia = ((ViaHeader) cancelVias.next());\n\t\t\tViaHeader inviteVia =\n\t\t\t\t((ViaHeader) invite.getHeaders(ViaHeader.NAME).next());\n\t\t\tassertEquals(\n\t\t\t\t\"ViaHeaders of the original and the cancel request do not match!\",\n\t\t\t\tcancelVia,\n\t\t\t\tinviteVia);\n\t\t\tassertFalse(\n\t\t\t\t\"Cancel request had more than one ViaHeader.\",\n\t\t\t\tcancelVias.hasNext());\n\t\t\t\n\t\t\tassertEquals( \"To tags must match\", \n\t\t\t\t((ToHeader) invite.getHeader(\"to\")).getTag(),\n\t\t\t\t((ToHeader) cancel.getHeader(\"to\")).getTag()\n\t\t\t); \n\t\t\t\n\t\t\tassertEquals( \"From tags must match\", \n\t\t\t\t\t((FromHeader) invite.getHeader(\"from\")).getTag(),\n\t\t\t\t\t((FromHeader) cancel.getHeader(\"from\")).getTag()\n\t\t\t); \n\t\t\t\n\t\t\tassertEquals( \"Max-Forwards must match\", \n\t\t\t\t\tinvite.getHeader( MaxForwardsHeader.NAME ),\n\t\t\t\t\tcancel.getHeader( MaxForwardsHeader.NAME )\n\t\t\t); \n\t\t\t\n\t\t\t\n\t\t} catch (Throwable exc) {\n\t\t\texc.printStackTrace();\n\t\t\tfail(exc.getClass().getName() + \": \" + exc.getMessage());\n\t\t}\n\n\t\tassertTrue(new Exception().getStackTrace()[0].toString(), true);\n\n\t}", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "public Cancellation() {\n initComponents();\n GetTicket();\n txtFCode.setEditable(false);\n DisplayCanc();\n }", "public String getCancelReason() {\n return cancelReason;\n }", "private JButton getBtnCancelarDoc() {\r\n\t\tif (btnCancelarDoc == null) {\r\n\t\t\tbtnCancelarDoc = new JButton();\r\n\t\t\tbtnCancelarDoc.setBounds(new Rectangle(296, 237, 91, 21));\r\n\t\t\tbtnCancelarDoc.setText(\"Cancelar\");\r\n\t\t\tbtnCancelarDoc.setToolTipText(\"Cancelar documento pendente do aluno e fechar\");\r\n\t\t\tbtnCancelarDoc.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tdispose();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn btnCancelarDoc;\r\n\t}", "void cancel(@NonNull java.lang.Runnable command, boolean mayInterruptIfRunning);", "private CancelMessage() {\n initFields();\n }", "protected abstract void sendCancel(Status reason);", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "public SOCancelService() {\r\n\t\tsuper(PublicAPIConstant.SO_CANCEL_XSD,\r\n\t\t\t\tPublicAPIConstant.SO_CANCEL_RESPONSE_XSD,\r\n\t\t\t\tPublicAPIConstant.SORESPONSE_NAMESPACE,\r\n\t\t\t\tPublicAPIConstant.SO_RESOURCES_SCHEMAS_V1_2,\r\n\t\t\t\tPublicAPIConstant.SO_RESOURCES_SCHEMAS_V1_2,\r\n\t\t\t\tSOCancelRequest.class, SOCancelResponse.class);\r\n\t}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "SourceControl create();", "private void cancelAppointment()\n {\n new AlertDialog.Builder(mCtx)\n .setTitle(mCtx.getResources().getString(R.string.cancel_heading))\n .setMessage(mCtx.getResources().getString(R.string.cancle_alert))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which)\n {\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "public void cancel() {\n\t\tinterrupt();\n\t}", "void btnCancel();" ]
[ "0.58514684", "0.584987", "0.5833325", "0.5634674", "0.56104213", "0.55988735", "0.55420643", "0.5533351", "0.55328804", "0.55312216", "0.55310655", "0.55016345", "0.5499624", "0.5473351", "0.54182637", "0.5415246", "0.5388445", "0.5388445", "0.5388445", "0.5384795", "0.5384795", "0.5384795", "0.537776", "0.53686553", "0.5357622", "0.5354956", "0.5354956", "0.5354956", "0.5354956", "0.5354956", "0.5354956", "0.5338098", "0.5334784", "0.53286844", "0.53274965", "0.53238285", "0.53151876", "0.53113496", "0.530945", "0.53082085", "0.530378", "0.5297121", "0.52745706", "0.5273682", "0.52642757", "0.52353364", "0.52351403", "0.52332795", "0.51865333", "0.5182241", "0.51777625", "0.51777625", "0.51777625", "0.51777625", "0.51777625", "0.51765764", "0.5165368", "0.51563066", "0.5152123", "0.51122403", "0.51113445", "0.50900084", "0.50803983", "0.505128", "0.5032387", "0.5022378", "0.50001574", "0.49981013", "0.499243", "0.4988944", "0.4988944", "0.49860036", "0.49845278", "0.49782702", "0.49762583", "0.49762583", "0.4975259", "0.49709487", "0.49664265", "0.49579847", "0.495137", "0.49503902", "0.49362248", "0.49320164", "0.49279192", "0.49274832", "0.49141356", "0.49118543", "0.49040857", "0.49018973", "0.48884198", "0.48876703", "0.48844054", "0.4876082", "0.48705325", "0.48620838", "0.48456833", "0.48413348", "0.48375496", "0.48315382" ]
0.67900693
0
Check for the existence of file. Method inserted by Prakash. 29th May 2007
private boolean exists(String pathName) { if(new File(pathName).exists()) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean fileExists(String path) throws IOException;", "private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}", "private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "@Override\n public boolean exists(File file) {\n\treturn false;\n }", "private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}", "private boolean doesFileExist(String qualifiedFileName) throws FileNotFoundException {\n\t\t\n\t\t// First get a path object to where the file is.\n\t\t\n\t\tPath inWhichFolder = Paths.get(qualifiedFileName);\n\t\t\n\t\tboolean isFilePresent = (Files.exists(inWhichFolder) && Files.isReadable(inWhichFolder) && !Files.isDirectory(inWhichFolder));\n\t\t\n\t\tif (!isFilePresent) {\n\t\t\tthrow new FileNotFoundException(String.format(\"The file you specified '%s' does not exist or cannot be found!\", qualifiedFileName));\n\t\t\t\n\t\t}\n\t\t\n\t\t// If we're here then we should have a file that can be opened and read.\n\t\t\n\t\treturn isFilePresent;\n\t\t\n\t}", "private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasFilePath();", "boolean exists(String path) throws IOException;", "boolean hasFileLoc();", "boolean hasFileLocation();", "public final boolean fileExists() {\n\t if ( m_fileStatus == FileStatus.FileExists || m_fileStatus == FileStatus.DirectoryExists)\n\t return true;\n\t return false;\n\t}", "public synchronized boolean fileExist(String fullPath)\n {\n File file = new File(fullPath);\n if (file != null && file.exists() && file.isFile())\n return true;\n else\n return false;\n }", "public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}", "public boolean hasFile(final String file);", "public boolean exists() {\n return _file.exists();\n }", "public boolean fileExists(String fileName){\n\t\t\tboolean exists = false;\n\t\t\ttry{\n\t \t FileInputStream fin = openFileInput(fileName);\n\t\t\t\tif(fin == null){\n\t\t\t\t\texists = false;\n\t\t\t\t}else{\n\t\t\t\t\texists = true;\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t}catch (Exception je) {\n\t\t //Log.i(\"ZZ\", \"AppDelegate:fileExists ERROR: \" + je.getMessage()); \n\t\t exists = false;\n\t\t\t}\n\t\t\treturn exists;\n\t\t}", "@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}", "public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "abstract public boolean exists( String path )\r\n throws Exception;", "boolean hasFileInfo();", "boolean hasFileInfo();", "public boolean fileExists(String name){\r\n try{\r\n new BufferedReader(new FileReader(\"../profiles/\" + name + \".profile\"));\r\n return true;\r\n }\r\n catch(FileNotFoundException e){\r\n return false;\r\n }\r\n }", "@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}", "public boolean exists(String path);", "public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}", "@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}", "public boolean exists(File file) {\n return file.exists();\n }", "public static boolean fileExists()\r\n\t{\r\n\t\tFile saveFile = new File(\"highscores.txt\");\r\n\t\treturn saveFile.exists();\r\n\t}", "public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}", "public boolean fileExist(String filename) throws YAPI_Exception\n {\n byte[] json = new byte[0];\n ArrayList<String> filelist = new ArrayList<>();\n if ((filename).length() == 0) {\n return false;\n }\n json = sendCommand(String.format(Locale.US, \"dir&f=%s\",filename));\n filelist = _json_get_array(json);\n if (filelist.size() > 0) {\n return true;\n }\n return false;\n }", "boolean hasFileName();", "boolean hasFileName();", "public boolean exists() {\n return Files.exists(path);\n }", "public boolean exists(String filename) {\n return getFile(filename) != null;\n }", "public Boolean isExist() {\n\t\tif(pfDir.exists())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean file_list_exists(String filename) {\n boolean exists = true;\n\n try {\n\n FileInputStream fstream = new FileInputStream(\"textfile.txt\");\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n while ((strLine = br.readLine()) != null) {\n File f = new File(strLine);\n if (f.exists() == false) {\n exists = false;\n }\n }\n in.close();\n } catch (Exception e) {//Catch exception if any\n e.printStackTrace();\n }\n return exists;\n }", "public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }", "private boolean checkFileExists(String file) {\n boolean exist = false;\n File tmpFile = new File(\"./levels/\" + file);\n if (tmpFile.exists()) {\n // file exists\n exist = true;\n }\n return exist;\n }", "public abstract boolean doesExist();", "public static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "public static boolean fileExist(String filename) {\n\t\tif (!filename.endsWith(\".xml\")) {\n\t\t\tfilename += \".xml\";\n\t\t}\n \n File file = new File(filename);\n if (file.exists() || file.isDirectory()) {\n return true;\n }\n return false;\n }", "boolean doesFileExist(String date)\n throws FlooringMasteryPersistenceException;", "boolean getWorkfileExists();", "boolean isFile() throws IOException;", "private static boolean doesPathExist(final Path path, final FileContext context) throws AccessControlException, UnsupportedFileSystemException, IOException {\n\t\ttry {\n\t\t\tFileStatus status = context.getFileStatus(path);\n\t\t\treturn status.isFile() || status.isDirectory();\n\t\t} catch (FileNotFoundException e) {\n\t\t\treturn false; \n\t\t}\t\t\n\t}", "private boolean sourceExists(File fileToCheck) {\n\t\tif (fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" exists.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t}\n\t}", "@java.lang.Deprecated boolean hasFile();", "public static boolean isFileExists(String filePath)\n\t{\n\t\tFile file = new File(filePath);\n\t\treturn file.exists();\n\t}", "protected boolean arff_exists() {\n\t\tFile tmpDir = new File(arff_path + \"\\\\\" + taskdata_name + \".arff\");\n\t\treturn tmpDir.exists();\n\t}", "private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }", "public boolean doesFileExists(String pathToFile) {\n\n try {\n File f = new File( pathToFile );\n if( f.exists() && f.isFile() ) {\n return true;\n }\n }\n catch (Exception fe) {\n //System.err.println(\"You got problem: \" + e.getStackTrace());\n logger.debug( fe.getMessage() );\n }\n return false;\n }", "public static boolean existsFile(String file) {\n return getFile(file).exists();\n }", "public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}", "public boolean exists(String name) throws IOException;", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "public boolean exist(String fileName) throws DataAccessException;", "public boolean isExist(String fileName){\n\t\tFile f = new File(fileName);\n\t\treturn f.exists();\n\t}", "@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }", "public static boolean isFileExist(String filePath) {\n if (filePath == null || filePath.isEmpty()) {\n return false;\n }\n\n File file = new File(filePath);\n return (file.exists() && file.isFile());\n }", "public static boolean pathExists(String path){\n\t\treturn( (new File(path)).exists() );\n\t}", "static boolean m1(Path path) {\n\t\tif (Files.exists(path))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean pathExists (String path) {\n\n File file = new File(path);\n\n if (!file.exists()) {\n return false;\n }\n return true;\n }", "private boolean isEmptyFile(String filename) {\n try (InputStream in = IO.openFile(filename)) {\n int b = in.read();\n return (b == -1);\n } catch (IOException ex) {\n throw IOX.exception(ex);\n }\n }", "boolean safeIsFile(FsPath path);", "public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }", "boolean isFile(FsPath path);", "public int fileExists(SrvSession sess, TreeConnection tree, String name) {\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the path contains an NTFS stream name\n\n int fileSts = FileStatus.NotExist;\n \n if ( FileName.containsStreamName(name)) {\n \n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n\n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState fstate = getFileState(filePath,dbCtx,true);\n\n // Check if the top level file exists\n \n if ( fstate != null && fstate.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n if ( dbInfo != null) {\n\n // Checkif the streams list is cached\n \n StreamInfoList streams = (StreamInfoList) fstate.findAttribute(DBStreamList);\n \n // Get the list of available streams\n\n if ( streams == null) {\n \n // Load the streams list for the file\n \n streams = loadStreamList(fstate, dbInfo, dbCtx, true);\n \n // Cache the streams list\n \n if ( streams != null)\n fstate.addAttribute(DBStreamList, streams);\n }\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Check if the required stream exists\n \n if ( streams.findStream(paths[2]) != null)\n fileSts = FileStatus.FileExists;\n }\n }\n }\n\n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB fileExists() name=\" + filePath + \", stream=\" + paths[2] + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n else {\n\n // Get, or create, the file state for the path\n \n FileState fstate = getFileState( name, dbCtx, true);\n \n // Check if the file exists status has been cached\n \n fileSts = fstate.getFileStatus();\n \n if ( fstate.getFileStatus() == FileStatus.Unknown) {\n \n // Get the file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,fstate);\n if ( dbInfo != null) {\n if ( dbInfo.isDirectory() == true)\n fileSts = FileStatus.DirectoryExists;\n else\n fileSts = FileStatus.FileExists;\n }\n else {\n \n // Indicate that the file does not exist\n \n fstate.setFileStatus( FileStatus.NotExist);\n fileSts = FileStatus.NotExist;\n }\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB fileExists() name=\" + name + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n else {\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - fileExists() name=\" + name + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n }\n \n // Return the file exists status\n \n return fileSts;\n }", "public static void checkExist(File file) {\r\n if (!file.exists()) // check if the file is not exit than exit the program\r\n {\r\n System.out.println(file.getPath() + \" is not found \");\r\n System.exit(0); // exit the program\r\n }\r\n }", "private boolean touchFileExists() {\n File f = new File(touchFile);\n return f.exists();\n }", "private boolean targetExists(File fileToCheck) {\n\t\tif (!fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Target file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "boolean hasRetrieveFile();", "private static void searchFile(File fileDir) throws Exception {\n String fileName = getFileNameInput();\n File targetFile = new File(fileDir.toString() + \"\\\\\" + fileName);\n boolean fileExists = targetFile.exists();\n if (fileExists) {\n System.out.println(\"File is found on current directory.\");\n } else {\n throw new FileNotFoundException(\"No such file on current directory.\");\n }\n }", "private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}", "public static boolean doesFileExist(String file, String subDir,\n \t\t\tboolean useInternal, Context c) {\n \t\tboolean exists = false;\n \t\tif (file != null) {\n \t\t\tFileInputStream in = null;\n \t\t\ttry {\n \t\t\t\tin = getFileInputStream(file, subDir, useInternal, c);\n \t\t\t\texists = true;\n \t\t\t\tin.close();\n \t\t\t} catch (FileNotFoundException e) {\n \t\t\t\texists = false;\n \t\t\t} catch (IOException e) {\n \t\t\t\t// no-op\n \t\t\t}\n \t\t}\n \t\treturn exists;\n \t}", "public static boolean alreadyExistCheck(String filePath) {\n File f = new File(filePath);\n return f.exists() && !f.isDirectory();\n }", "public static boolean isFileExists(SourceFile sourceFile) throws IOException {\n return isFileExists(sourceFile.getPath(), sourceFile.getSourceType());\n }", "private static boolean isValidCreate(String pFilePath) {\n\t\tassert pFilePath != null;\n\t\tFile f = new File(pFilePath);\n\t\treturn f.exists();\n\t}", "public boolean isFileExists(String fileName) {\n return profilesMap.containsKey(fileName);\n }", "public boolean fileFound(){\n\n try{\n\n m_CSVReader = new CSVReader(new FileReader(m_FileName));\n\n } catch (FileNotFoundException e){\n\n System.out.println(\"Input file not found.\");\n\n return false;\n }\n return true;\n }", "public static void searchFile() \n\t{\n\t\t//Variable Declaration\n\t\tString fileName;\n\t\tScanner obj = new Scanner(System.in);\n\n\t\t//Read file name from user\n\t\tSystem.out.println(\"Enter file name to searched:\");\n\t\tfileName= obj.nextLine();\n\t\t\n\t\t//Searching the file\n\t\tboolean isFound = FileManager.searchFile(folderpath, fileName);\n\t\t\n\t\tif(isFound)\n\t\t\tSystem.out.println(\"File is present\");\n\t\telse\n\t\t\tSystem.out.println(\"File not present.\");\n\n\t}", "@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}", "public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}", "public final boolean exists()\n {\n if ( m_fileStatus == FileStatus.FileExists ||\n m_fileStatus == FileStatus.DirectoryExists)\n return true;\n return false;\n }", "public boolean exists(Path path) {\n try {\n return Files.exists(path);\n } catch (SecurityException e) {\n return false;\n }\n }", "private static boolean checkURL(String file) {\n\t\tFile myFile = new File(file);\n\t\treturn myFile.exists() && !myFile.isDirectory();\n\t}", "private boolean isExistingFile(String filename, String[] array)\n\t{\n\t\tfor (String temp : array)\n\t\t{\n\t\t\tif (temp.equals(filename) == true)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}", "public boolean isFile(String path);", "public static boolean isExisted(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.exists();\n\t}", "public static File checkDescriptorFileExist(File descriptor) throws IllegalArgumentException {\n if (!descriptor.exists()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" does not exist\");\n }\n if (!descriptor.isFile()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not a file\");\n }\n if (!descriptor.canRead()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not readable\");\n }\n \n return descriptor;\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }", "boolean directoryExists(String path) throws IOException;", "public static void fileExists(String fileName)throws FileNotFoundException{\r\n File file=new File(fileName);\r\n if(!file.exists()){\r\n throw new FileNotFoundException(file.getName());\r\n }\r\n }", "private boolean IsCfgExisted()\n {\n File f = new File(strCfgPath);\n if(f.exists())\n return true;\n return false;\n }", "public boolean isValidSong() { \n\t\tString filepath = aFilePath.toString();\n\t\tFile f = new File(filepath);\n\t\treturn f.exists();\n\t}", "public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }" ]
[ "0.8000566", "0.7949308", "0.7707531", "0.76906383", "0.76584727", "0.7605787", "0.7599805", "0.75287193", "0.7456925", "0.7420374", "0.7411829", "0.7409516", "0.7389388", "0.7358573", "0.73350537", "0.73046625", "0.7292732", "0.7250075", "0.72290015", "0.72054", "0.71756643", "0.7163702", "0.71561813", "0.71561813", "0.71543956", "0.7153928", "0.7150447", "0.713577", "0.71086794", "0.70833653", "0.70798874", "0.70382136", "0.70278835", "0.701644", "0.701644", "0.69988674", "0.6990971", "0.6985879", "0.69784015", "0.6954135", "0.6927659", "0.690544", "0.68963856", "0.6880473", "0.68481725", "0.68183905", "0.67918134", "0.67612994", "0.6756353", "0.6741666", "0.6729984", "0.6722181", "0.6716911", "0.67038596", "0.66938764", "0.66909", "0.66851985", "0.66787505", "0.66594", "0.6648668", "0.6644477", "0.66332054", "0.6601925", "0.65943545", "0.65926015", "0.6591035", "0.65734893", "0.65700287", "0.6567355", "0.65606576", "0.6557544", "0.6528367", "0.65176725", "0.65143347", "0.65142035", "0.6474349", "0.646244", "0.64485615", "0.6443428", "0.6437493", "0.64371216", "0.6434286", "0.64334065", "0.64220786", "0.6420354", "0.64150953", "0.641034", "0.6398292", "0.63771373", "0.637105", "0.6360329", "0.63388526", "0.63291043", "0.6317712", "0.6305834", "0.6288276", "0.6283487", "0.6281513", "0.62798464", "0.6264081" ]
0.7097123
29
/ Commented. Not bieng used. by Prakash. 10052007. private String description = "jsp";
public JSPFileFilter(String extension) { this.filters = new Hashtable(); /** * Inserting curli braces to avoid PMD violation named IfStmtsMustUseBraces. * by Prakash. 10-05-2007. */ if(extension!=null) { addExtension(extension); } /* * End of modification. */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \r\npublic String getServletInfo() { \r\nreturn \"Short description\"; \r\n}", "@Override\n public String getServletInfo\n \n () {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\npublic String getServletInfo() {\n return \"Short description\";\n}", "@Override\n public String getServletInfo() {\n return \"Short description one\";\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo\n \n () {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n\treturn \"Short description\";\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }" ]
[ "0.6787452", "0.6689352", "0.65459234", "0.6524846", "0.6494035", "0.6477011", "0.6477011", "0.6475256", "0.6456322", "0.644996", "0.6436267", "0.6426073", "0.6417773", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769", "0.641769" ]
0.0
-1
trong 929 added load two coz I don't want anything else uses catalog to break
public void load2() throws Exception { String query = "select * from catalog_snapshot where item_id = " + item_id + " and facility_id = '" + facility_id + "'"; query += " and fac_item_id = '" + this.fac_item_id + "'"; DBResultSet dbrs = null; ResultSet rs = null; try { dbrs = db.doQuery(query); rs = dbrs.getResultSet(); if (rs.next()) { setItemId( (int) rs.getInt("ITEM_ID")); setFacItemId(rs.getString("FAC_ITEM_ID")); setMaterialDesc(rs.getString("MATERIAL_DESC")); setGrade(rs.getString("GRADE")); setMfgDesc(rs.getString("MFG_DESC")); setPartSize( (float) rs.getFloat("PART_SIZE")); setSizeUnit(rs.getString("SIZE_UNIT")); setPkgStyle(rs.getString("PKG_STYLE")); setType(rs.getString("TYPE")); setPrice(BothHelpObjs.makeBlankFromNull(rs.getString("PRICE"))); setShelfLife( (float) rs.getFloat("SHELF_LIFE")); setShelfLifeUnit(rs.getString("SHELF_LIFE_UNIT")); setUseage(rs.getString("USEAGE")); setUseageUnit(rs.getString("USEAGE_UNIT")); setApprovalStatus(rs.getString("APPROVAL_STATUS")); setPersonnelId( (int) rs.getInt("PERSONNEL_ID")); setUserGroupId(rs.getString("USER_GROUP_ID")); setApplication(rs.getString("APPLICATION")); setFacilityId(rs.getString("FACILITY_ID")); setMsdsOn(rs.getString("MSDS_ON_LINE")); setSpecOn(rs.getString("SPEC_ON_LINE")); setMatId( (int) rs.getInt("MATERIAL_ID")); setSpecId(rs.getString("SPEC_ID")); setMfgPartNum(rs.getString("MFG_PART_NO")); //trong 3-27-01 setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString("CASE_QTY"))); } } catch (Exception e) { e.printStackTrace(); HelpObjs.monitor(1, "Error object(" + this.getClass().getName() + "): " + e.getMessage(), null); throw e; } finally { dbrs.close(); } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterCatalog() {\n\t\t\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "@Override\n\tprotected void lazyLoad() {\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}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "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 }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t}", "private static void load(){\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "private void _loadCatalog() {\n if (discoveryEndpoint != null) {\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(discoveryEndpoint, String.class);\n\n if (response.getStatusCode() == HttpStatus.OK) {\n String body = response.getBody();\n this.catalog = CdsHooksUtil.GSON.fromJson(body, CdsHooksCatalog.class);\n startPendingRequests();\n return;\n }\n } catch (Exception e) {\n log.warn(\"Failed to load CDS catalog for \" + discoveryEndpoint\n + \".\\nRetries remaining: \" + retries + \".\");\n }\n\n retry();\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadBegin() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "@Override\r\n\tpublic void load() {\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "@BeforeClass\n public static void loadSystemCatalog() throws Exception {\n catalog = new TransientSystemCatalog(4096);\n XmlToSystemCatalog.loadFrom(catalog, ResourceUtil.getResourceAsStream(CATALOG_XML));\n }", "public void load() {\n\t}", "@Override\n public void load() {\n }", "@Override\n\tpublic void loadCargo() {\n\n\t}", "@Override\n public void load() {\n }", "@Override\n\t\t\tpublic void suprimer(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void load() throws ParamContextException {\n\r\n }", "public static void load() {\n }", "public void beginLoad(int libraryCount);", "public void load() ;", "public void load() {\n }", "protected void loadData()\n {\n }", "public void testLoadOrder() throws Exception {\n }", "public void assemble2() {\n\t\t\r\n\t}", "public abstract void load();", "public void init2() {\n }", "public void init2() {\n }", "protected abstract void loadData();", "public static void SelfCallForLoading() {\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}", "public abstract void loaded();", "@Override\n\tpublic void noLoadCargo() {\n\n\t}", "private Container Load() {\n return null;\r\n }", "private Catalog() {\r\n }", "private void initDataLoader() {\n\t}", "public void init2() {\n\t}", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "public void add(Load load){\n\t\t}", "private void load() throws DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:load()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tsetModel((AnnualLeaseModel)dao.dbLoad(getPrimaryKey()));\n\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "@Override\n public void addLoaders(WorldLoader wl, WorldInfo info) {\n }", "@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 }", "@Override\r\n\tprotected void init2() throws Exception {\n\r\n\t}", "@Test\n\tpublic void testLoad2() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.loadSubtitleSeq(\"src/sample2Load.srt\");\n\t\t\tassertNull(\"Subtitle sequence number out of order\", seq);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n protected int getLoaderId() {\n return 1;\n }", "protected abstract void loadItemsInternal();", "void loadProducts(String filename);", "private ClinicFileLoader() {\n\t}", "@Override\n\tpublic void loadService() {\n\t\t\n\t}", "void loadFeatured();", "private void loadLists() {\n }", "void load();", "void load();", "void initLOD(int r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.renderscript.AllocationAdapter.initLOD(int):void, dex: in method: android.renderscript.AllocationAdapter.initLOD(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.initLOD(int):void\");\n }", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "public boolean load( Conge conge ) ;", "private void importCatalogue() {\n\n mAuthors = importModelsFromDataSource(Author.class, getHeaderClass(Author.class));\n mBooks = importModelsFromDataSource(Book.class, getHeaderClass(Book.class));\n mMagazines = importModelsFromDataSource(Magazine.class, getHeaderClass(Magazine.class));\n }", "@Override\n\tpublic Catalog viewCatalog2() {\n\t\treturn null;\n\t}", "void loadNext();", "@Test\n public void contextLoad() throws Exception {\n testCase1();\n }", "public void load();", "public void load();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void loadData();", "public abstract void loadData();", "void initForTailoring(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.initForTailoring(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.initForTailoring(android.icu.impl.coll.CollationData):void\");\n }", "private void createCatalogFileIfNoneExists(){\n\t\t\n\t\tinOut = new IOUtility();\n\t\t\n\t\tif (inOut.checkLocalCache()) {\n\t\t\tcatalog = inOut.readCatalogFromFile();\n\t\t}\n\n\t\telse {\n\n\t\t\ttry {\n\t\t\t\tinOut.createCatalogFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} \n\t\t}\n\t\t\n\t}", "@Override\n\tprotected String toStringAux() {\n\t\treturn \"LOAD\";\n\t}", "private static void runCatalog() {\r\n\r\n\t\tSystem.out.println(sqlAL.get(0));\r\n\r\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\t\tString sql = \"\";\r\n\t\tboolean tableExist = true;\r\n\t\tString tname = \"\";\r\n\t\tString cmd = \"\";\r\n\r\n\t\ttry {\r\n\t\t\t// STEP 2: Register JDBC driver\r\n\t\t\tClass.forName(catalogDriver);\r\n\r\n\t\t\t// STEP 3: Open a connection\r\n\t\t\tif (catalogUserName.equals(\" \") && catalogPassword.equals(\" \")) {\r\n\t\t\t\tconn = DriverManager.getConnection(catalogHostName);\r\n\t\t\t} else {\r\n\t\t\t\tconn = DriverManager.getConnection(catalogHostName, catalogUserName, catalogPassword);\r\n\t\t\t}\r\n\r\n\t\t\t// STEP 4: Execute a query\r\n\t\t\tstmt = conn.createStatement();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsql = \"SELECT * FROM dtables\";\r\n\t\t\t\tstmt.executeQuery(sql);\r\n\r\n\t\t\t\tSystem.out.println(\"Catalog table already exists\");\r\n\r\n\t\t\t} catch (SQLException e) {\r\n\r\n\t\t\t\ttableExist = false;\r\n\r\n\t\t\t\tSystem.out.println(\"Catalog table does not exist\");\r\n\t\t\t}\r\n\r\n\t\t\tif (tableExist == false) {\r\n\t\t\t\tsql = \"CREATE TABLE dtables(tname char(32),\" + \"nodedriver char(64),\" + \"nodeurl char(128),\"\r\n\t\t\t\t\t\t+ \"nodeuser char(16),\" + \"nodepasswd char(16),\" + \"partmtd int,\" + \"nodeid int,\"\r\n\t\t\t\t\t\t+ \"partcol char(32),\" + \"partparam1 char(32),\" + \"partparam2 char(32))\";\r\n\r\n\t\t\t\tstmt.executeUpdate(sql);\r\n\r\n\t\t\t\tSystem.out.println(\"SQL table created\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int x = 0; x < nodeAL.size(); x++) {\r\n\r\n\t\t\t\ttname = parseTname(sqlAL.get(x));\r\n\r\n\t\t\t\tcmd = getCmd(sqlAL.get(x));\r\n\t\t\t\t// System.out.println(cmd);\r\n\r\n\t\t\t\tif (cmd.equals(\"CREATE\")) {\r\n\r\n\t\t\t\t\tsql = \"INSERT INTO dtables VALUES \" + \"('\" + tname + \"', \" + \"'\" + (nodeAL.get(x)).getDriver()\r\n\t\t\t\t\t\t\t+ \"', \" + \"'\" + (nodeAL.get(x)).getHostName() + \"', \" + \"'\" + (nodeAL.get(x)).getUserName()\r\n\t\t\t\t\t\t\t+ \"', \" + \"'\" + (nodeAL.get(x)).getPassword() + \"', \" + -1 + \", \" + \"\" + x + \", \" + null\r\n\t\t\t\t\t\t\t+ \", \" + null + \", \" + null + \")\";\r\n\r\n\t\t\t\t\tstmt.executeUpdate(sql);\r\n\t\t\t\t} else if (cmd.equals(\"DROP\")) {\r\n\t\t\t\t\tsql = \"DELETE FROM dtables WHERE \" + \"tname = '\" + tname + \"'\" + \"AND nodedriver = '\"\r\n\t\t\t\t\t\t\t+ (nodeAL.get(x)).getDriver() + \"' \" + \"AND nodeurl = '\" + (nodeAL.get(x)).getHostName()\r\n\t\t\t\t\t\t\t+ \"' \" + \"AND nodeuser = '\" + (nodeAL.get(x)).getUserName() + \"' \" + \"AND nodepasswd = '\"\r\n\t\t\t\t\t\t\t+ (nodeAL.get(x)).getPassword() + \"' \"\r\n\t\t\t\t\t\t\t// + \"AND partmtd = \" + -1 + \"'\"\r\n\t\t\t\t\t\t\t+ \"AND nodeid = \" + x + \"\"\r\n\t\t\t\t\t\t\t// + \"AND partcol = '\" + null + \"'\"\r\n\t\t\t\t\t\t\t// + \"AND partparam1 = '\" + null + \"'\"\r\n\t\t\t\t\t\t\t// + \"AND partparam2 = '\" + null\r\n\t\t\t\t\t\t\t+ \"\";\r\n\r\n\t\t\t\t\tstmt.executeUpdate(sql);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// rs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tconn.close();\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"[\" + catalogHostName.substring(0, (catalogHostName.length() - 1)) + \"]: Catalog Updated\");\r\n\t\t} catch (SQLException se) {\r\n\t\t\t// Handle errors for JDBC\r\n\t\t\t// se.printStackTrace();\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"[\" + catalogHostName.substring(0, (catalogHostName.length() - 1)) + \"]: catalog update failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// Handle errors for Class.forName\r\n\t\t\t// e.printStackTrace();\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"[\" + catalogHostName.substring(0, (catalogHostName.length() - 1)) + \"]: catalog update failed\");\r\n\t\t} finally {\r\n\t\t\t// finally block used to close resources\r\n\t\t\ttry {\r\n\t\t\t\tif (stmt != null)\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException se2) {\r\n\t\t\t} // nothing we can do\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tse.printStackTrace();\r\n\t\t\t} // end finally try\r\n\t\t} // end try\r\n\t\t\t// System.out.println(\"Goodbye!\");\r\n\r\n\t}", "public void execute_local(Catalog rootCatalog) {\n }", "@Override\n public void setLoadOnStartup(int los) {\n }", "private void startCusorLoader() {\n\n if (getLoaderManager().getLoader(CURSOR_LOADER_ID) == null) {\n getLoaderManager().initLoader(CURSOR_LOADER_ID, null, new CheckIfFavourite()).forceLoad();\n } else {\n getLoaderManager().restartLoader(CURSOR_LOADER_ID, null, new CheckIfFavourite()).forceLoad();\n }\n\n }", "@Override\n\t\tprotected void loadSpecification(SpecificationContext context) {\n\t\t}", "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}", "private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}", "@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 }", "public void load (){\n load(MAX_PREZ);\n }", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n MyClassLoader mcl = new MyClassLoader(\"myClassLoader1\");\n// // 根据全限定名加载,注意,这里调用loadClass方法\n// Class<?> clazz = mcl.loadClass(\"Student\");\n// Student student = (Student)clazz.newInstance();\n Object o = mcl.loadClass(\"Student\").newInstance();\n o.getClass().getMethod(\"shuchu\").invoke(o);\n// student.shuchu();\n// List<Integer> list = new ArrayList<>();\n// Object o = new Object();\n System.out.println(o.getClass().getClassLoader());\n// System.out.println(list.getClass().getClassLoader());\n// System.out.println(o.getClass().getClassLoader());\n byte[] allocation1, allocation2;\n allocation1 = new byte[30900 * 1024*2];\n allocation2 = new byte[900 * 1024*2];\n\n\n }", "public T caseLoad(Load object) {\n\t\treturn null;\n\t}", "private void onCamelCatalogReady() {\n // Force to reload the catalog\n this.kamelets = null;\n }", "private void saveNewCatalog() {\n\n\t}", "public void load() {\n handleLoad(false, false);\n }", "public void loadCatalog() throws BasicException {\n m_jProducts.removeAll();\n \n m_productsset.clear(); \n m_subgroupsset.clear();\n \n showingsubgr = null;\n m_index = 0;\n\n // Select the first category\n m_jListSubgroups.setCellRenderer(new SmallSubgroupRenderer());\n \n // Display catalog panel\n showRootSubgroupsPanel();\n }", "@Override\n\tprotected ByteCode parseAux(String string1, String string2) {\n\t\tif(string1.equalsIgnoreCase(\"LOAD\")){\n\t\t\ttry{\n\t\t\t\tint p=Integer.parseInt(string2);\n\t\t\t\treturn new Load(p);\n\t\t\t}catch(Exception e){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}else return null;\n\t}", "void createGraphForSingleLoad();", "private void processExternalCatalogs() {\n\n if (!externalCatalogsProcessed) {\n\n try {\n setXMLCatalog.invoke(resolverImpl, XMLCatalog.this);\n } catch (Exception ex) {\n throw new BuildException(ex);\n }\n\n // Parse each catalog listed in nested <catalogpath> elements\n Path catPath = getCatalogPath();\n if (catPath != null) {\n log(\"Using catalogpath '\" + getCatalogPath() + \"'\",\n Project.MSG_DEBUG);\n\n for (String catFileName : getCatalogPath().list()) {\n File catFile = new File(catFileName);\n log(\"Parsing \" + catFile, Project.MSG_DEBUG);\n try {\n parseCatalog.invoke(resolverImpl, catFile.getPath());\n } catch (Exception ex) {\n throw new BuildException(ex);\n }\n }\n }\n }\n externalCatalogsProcessed = true;\n }", "private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }", "@Override\n public Response initResConCat() {\n return resourceMicroApi.makeConESDb();\n }", "LoadGenerator createLoadGenerator();", "LoadGenerator createLoadGenerator();", "void updateLoad(){\n\t\tdouble aloadFactor = elements/Table.length;\r\n\t\tif(aloadFactor==1){\r\n\t\t\tRehash();\r\n\t\t}\r\n\t\tloadFactor = ((double)elements)/Table.length;\r\n\t}", "@Override\n\tprotected void isLoaded() throws Error \n\t{\n\t\t\n\t}", "@Override\r\n\tpublic void loadWithLabel(String label) throws LoadException {\n\t\t\r\n\t}" ]
[ "0.6341332", "0.62833405", "0.6189898", "0.6103177", "0.6103177", "0.6103177", "0.60763186", "0.6056989", "0.6021298", "0.60093343", "0.59937996", "0.59937996", "0.5957705", "0.5942828", "0.58509487", "0.58181226", "0.5795212", "0.57051575", "0.5687614", "0.5659661", "0.5656211", "0.56435466", "0.5617531", "0.56171525", "0.55940765", "0.5572227", "0.5521811", "0.5507308", "0.5476144", "0.54707205", "0.5467827", "0.5436794", "0.54179776", "0.54179776", "0.54175943", "0.54069376", "0.5405684", "0.5401945", "0.5395595", "0.5384564", "0.5377346", "0.5362172", "0.5361866", "0.5350292", "0.5344497", "0.5343579", "0.53395283", "0.5329467", "0.53124344", "0.5291343", "0.5288073", "0.527825", "0.52771497", "0.5236189", "0.5227418", "0.52167493", "0.5210153", "0.5209241", "0.5207952", "0.5207952", "0.51932603", "0.5184602", "0.51836103", "0.5171603", "0.51567084", "0.5125526", "0.5123631", "0.51226455", "0.51226455", "0.51203793", "0.51184195", "0.51184195", "0.5115055", "0.51138586", "0.5100838", "0.50928867", "0.5089438", "0.50864345", "0.5085688", "0.50836", "0.50808823", "0.5076051", "0.5071399", "0.50687504", "0.5064193", "0.5060078", "0.5053401", "0.5041213", "0.5036732", "0.50305456", "0.50223804", "0.50163835", "0.501321", "0.5012184", "0.501104", "0.50091946", "0.50091946", "0.50080466", "0.5007901", "0.50051695" ]
0.51124215
74
trong 21401 pulling data from request_line_item rather than from catalog_snapshot better to view history as well as current.
public void loadNew(Integer pr_number) throws Exception { String query = "select * from pr_history_view where item_id = " + item_id + " and facility_id = '" + facility_id + "'"; query += " and fac_part_no = '" + this.fac_item_id + "'"; query += " and pr_number = " + pr_number.intValue(); DBResultSet dbrs = null; ResultSet rs = null; try { dbrs = db.doQuery(query); rs = dbrs.getResultSet(); if (rs.next()) { setType(rs.getString("ITEM_TYPE")); setPrice(BothHelpObjs.makeBlankFromNull(rs.getString("UNIT_PRICE"))); } } catch (Exception e) { e.printStackTrace(); HelpObjs.monitor(1, "Error object(" + this.getClass().getName() + "): " + e.getMessage(), null); throw e; } finally { dbrs.close(); } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static TimeLine getReviewTimeLine(HttpServletRequest request,\r\n\t\t\tSessionObjectBase sob) {\r\n\t\t\r\n\t\tString rs_id = (String) request.getParameter(\"rs_id\");\r\n\t\r\n\t\tString targetRSID = \"\";\r\n\t\tif ((rs_id != null) && (rs_id.length() > 0) && (!(rs_id.equalsIgnoreCase(\"null\")))){\r\n\t\t\ttargetRSID = \"&rs_id=\" + rs_id;\r\n\t\t}\r\n\t\t\r\n\t\tString timelineToGet = \"actual\" + targetRSID;\r\n\t\t\r\n\t\tString timeline_to_show = (String) request.getParameter(\"timeline_to_show\");\r\n\t\t\r\n\t\tif ((timeline_to_show != null) && (timeline_to_show.equalsIgnoreCase(\"phases\"))){\r\n\t\t\ttimelineToGet = \"phases\";\r\n\t\t}\r\n\t\t\r\n\r\n\t\tTimeLine returnTimeLine = new TimeLine();\r\n\r\n\t\treturnTimeLine.runStart = TimeLine.similie_sdf.format(new java.util.Date());\r\n\t\treturnTimeLine.shortIntervalPixelDistance = 125;\r\n\t\treturnTimeLine.longIntervalPixelDistance = 250;\r\n\t\treturnTimeLine.timelineURL = \"similie_timeline_server.jsp?timeline_to_show=\" + timelineToGet;\r\n\t\t\r\n\t\tSystem.out.println(\"tlurl: \" + returnTimeLine.timelineURL);\r\n\r\n\t\treturn returnTimeLine;\r\n\t}", "public void setEddInfoToScsbRequest(String line, ItemRequestInformation itemRequestInformation) {\n String[] splitData = line.split(\":\");\n if (ArrayUtils.isNotEmpty(splitData) && splitData.length > 1) {\n itemRequestInformation.setRequestNotes(validateAndSet(\"User\", splitData));\n itemRequestInformation.setStartPage(validateAndSet(\"Start Page\", splitData));\n itemRequestInformation.setEndPage(validateAndSet(\"End Page\", splitData));\n itemRequestInformation.setVolume(validateAndSet(\"Volume Number\", splitData));\n itemRequestInformation.setIssue(validateAndSet(\"Issue\", splitData));\n itemRequestInformation.setAuthor(validateAndSet(\"Article Author\", splitData));\n itemRequestInformation.setChapterTitle(validateAndSet(\"Article/Chapter Title\", splitData));\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Request [date=\" + date + \", requester=\" + requester + \", requesterComment=\" + requesterComment\n\t\t\t\t+ \", itemInService=\" + itemInService + \", itemInOperation=\" + itemInOperation\t\t\t\t\n\t\t\t\t+ \", itemComment=\" + itemComment\n\t\t\t\t+ \", userName=\" + userName + \", modificationDate=\" + modificationDate +\"]\";\n\t\t\n\t}", "public interface RequestItemListener extends ImageObtainable {\n\n\t\t/**\n\t\t * Request detail information to be presented\n\t\t * about the specific request.\n\t\t * @param request request to get detail \n\t\t */\n\t\tpublic void onRequestSelected(CustomerRequest request);\n\n\t\t/**\n\t\t * Assign the staffmember to handle the request.\n\t\t * @param request request to handle \n\t\t * @param staff staff member to assign to request\n\t\t */\n\t\tpublic void onAssignStaffToRequest(CustomerRequest request, String staff);\n\n\t\t/**\n\t\t * Removes a request. Request is removed completely from this \n\t\t * list. This is a notification method \n\t\t * @param request String\n\t\t */\n\t\tpublic void onRemoveRequest(CustomerRequest request);\n\n\t\t/**\n\t\t * Used to get the most recent up to date list of items to show.\n\t\t * Cannot return null\n\t\t * @return List of requests to show\n\t\t */\n\t\tpublic List<CustomerRequest> getCurrentRequests();\n\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/changeRequest/getCRLineItemsByCRId/{crID}\", method = RequestMethod.GET, produces = \"application/json\")\n\tpublic @ResponseBody\n\tServiceResponse<ChangeRequest> getCRLineItemsByCRId(@PathVariable(\"crID\") Long crID, HttpServletRequest request) {\n\n\t\tServiceStatus serviceStatus = null;\n\t\tServiceResponse<ChangeRequest> serviceResponse = new ServiceResponse<ChangeRequest>();\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tServiceResult serviceResult = new ServiceResult();\n\t\tChangeRequest changeRequest = new ChangeRequest();\n\t\tchangeRequest.setId(crID);\n\t\tUserDetails user = ModelAssembler.getDefaultUserDetails();\n\n\t\ttry {\n\t\t\tserviceResult.setDetail(changeRequestService.getAllChangeRequestsLineItemsbyChangeRequestId(changeRequest, user));\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.OK, \"200 OK\");\n\t\t} catch (ChangeRequestServiceException e) {\n\t\t\tserviceResult.setDetail(\"Exception occured \" + e.getMessage());\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.SERVER_ERROR, \"500 ERROR\");\n\t\t}\n\t\tserviceResponse.setStatus(serviceStatus);\n\t\tserviceResponse.setResult(serviceResult);\n\t\tLOGGER.info(\" Returning REST response with Result..\" + serviceResult.getDetail() + \" and status \" + serviceResponse.getStatus().getCode().getCode() + \"-\"\n\t\t\t\t+ serviceResponse.getStatus().getMessage());\n\t\treturn serviceResponse;\n\t}", "protected String getRequestData(HttpServletRequest request) {\n\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\ttry {\n\t\t\tBufferedReader reader = request.getReader();\n\t\t\tString currentLine = \"\";\n\t\t\twhile ((currentLine = reader.readLine()) != null) {\n\n\t\t\t\tstringBuilder.append(currentLine);\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn stringBuilder.toString();\n\n\t}", "public Request loadRequestDetail(long _requestId) throws RequestManagerException, PersistenceResourceAccessException;", "@Override\n\tpublic Pair<String, LineageItem> getLineageItem(ExecutionContext ec) {\n\t\tif( ec.getLineage() == null ) {\n\t\t\treturn Pair.of(output.getName(), new LineageItem(\n\t\t\t\tProgramConverter.serializeDataObject(input1.getName(), ec.getCacheableData(input1)), \"cache_rblk\"));\n\t\t}\n\t\t//default reblock w/ active lineage tracing\n\t\treturn super.getLineageItem(ec);\n\t}", "private void refreshShareItemInfo() {\n boolean hasRequredFields = checkIfHasRequiredFields(getMainItem());\n\n if (getMainItem() instanceof BoxFile){\n BoxRequestsFile.GetFileInfo request = mFileApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n } else if (getMainItem() instanceof BoxFolder){\n BoxRequestsFolder.GetFolderInfo request = mFolderApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n } else if (getMainItem() instanceof BoxBookmark){\n BoxRequestsBookmark.GetBookmarkInfo request = mBookmarkApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n }\n }", "@Override\r\n\tprotected String[] getSpecificLines() {\r\n\t\tString[] lines = new String[4];\r\n\t\tlines[0] = \"\";\r\n\t\tif (items.toString().lastIndexOf('_') < 0) {\r\n\t\t\tlines[1] = items.toString();\r\n\t\t\tlines[2] = \"\";\r\n\t\t} else {\r\n\t\t\tlines[1] = items.toString().substring(0, items.toString().lastIndexOf('_'));\r\n\t\t\tlines[2] = items.toString().substring(items.toString().lastIndexOf('_') + 1);\r\n\t\t}\r\n\t\tlines[3] = String.valueOf(cost);\r\n\t\treturn lines;\r\n\t}", "private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = cursor.getLong(\n cursor.getColumnIndex(ExpenseEntry._ID));\n\n ExpenseLineItem expenseLineItem = new ExpenseLineItem();\n\n expenseLineItem.setDescription(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_DESCRIPTION)));\n\n expenseLineItem.setExpenseReportId(cursor.getInt(\n cursor.getColumnIndex(ExpenseEntry.COLUMN_REPORT_ID)));\n\n expenseLineItem.setExpenseDate(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_EXPENSE_DATE)));\n\n expenseLineItem.setCategory(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CATEGORY)));\n\n expenseLineItem.setCost(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_COST)));\n\n expenseLineItem.setHst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_HST)));\n expenseLineItem.setGst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_GST)));\n expenseLineItem.setQst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_QST)));\n expenseLineItem.setCurrency(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CURRENCY)));\n expenseLineItem.setRegion(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_REGION)));\n\n //TODO: receipt\n\n try {\n ERTRestApi.apiAddExpenseLineItem(\n expenseLineItem,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseLineItem expenseLineItemResponse =\n gson.fromJson(response.toString(),\n ExpenseLineItem.class\n );\n\n updateExpenseLineItemSyncStatus(expenseBaseId,\n SyncStatus.SYNCED\n );\n\n setExpenseLineItemValuesFromServer(\n expenseBaseId,\n expenseLineItemResponse\n );\n\n }\n },\n\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n Log.e(LOG_TAG, error.getMessage());\n\n }\n }\n );\n } catch (ERTRestApiException | JSONException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n\n updateExpenseLineItemSyncStatus(expenseBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "@Override\n public String toString() {\n return \"Line{\"\n + \"date=\" + date\n + \", ip='\" + ip + '\\''\n + \", request='\" + request + '\\''\n + \", status='\" + status + '\\''\n + \", userAgent='\" + userAgent + '\\''\n + '}';\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testDownloadLineDataList() {\n\t\n\tClientUpdateDataPack client2 = new ClientUpdateDataPack();\n\tclient2.setOrgCode(\"W011304060906\");\n\tDate d = new Date();\n\td = DateUtils.addDays(d, -1);\n\tclient2.setLastUpdateTime(d);\n\tList<ClientUpdateDataPack> lista = new ArrayList<ClientUpdateDataPack>();\n//\tlista.add(client);\n\tlista.add(client2);\n\n\tDataBundle db = baseInfoDownloadService.downloadLineData(lista);\n\tList<LineEntity> list = (List<LineEntity>) (db.getObject());\n\tfor (LineEntity entity : list) {\n\t Assert.assertNotNull(entity.getId());\n\t}\n }", "LineItem getLineItemById(Integer lineItemId);", "public SalesCreditMemoLineCollectionPage(@Nonnull final SalesCreditMemoLineCollectionResponse response, @Nonnull final SalesCreditMemoLineCollectionRequestBuilder builder) {\n super(response, builder);\n }", "private static void logLineOfCreditDetails(LineOfCredit lineOfCredit) {\n\n\t\tif (lineOfCredit != null) {\n\t\t\tSystem.out.println(\"Line of credit details:\");\n\t\t\tSystem.out.println(\"\\tID:\" + lineOfCredit.getId());\n\t\t\tSystem.out.println(\"\\tClientKey:\" + lineOfCredit.getClientKey());\n\t\t\tSystem.out.println(\"\\tGroupKey:\" + lineOfCredit.getGroupKey());\n\t\t\tSystem.out.println(\"\\tStartDate:\" + lineOfCredit.getStartDate());\n\t\t\tSystem.out.println(\"\\tExpireDate:\" + lineOfCredit.getExpireDate());\n\t\t\tSystem.out.println(\"\\tAmount:\" + lineOfCredit.getAmount());\n\t\t\tSystem.out.println(\"\\tState:\" + lineOfCredit.getState());\n\t\t\tSystem.out.println(\"\\tCreationDate:\" + lineOfCredit.getCreationDate());\n\t\t\tSystem.out.println(\"\\tLastModifiedDate:\" + lineOfCredit.getLastModifiedDate());\n\t\t\tSystem.out.println(\"\\tNotes:\" + lineOfCredit.getNotes());\n\t\t\n\t\t\t// log the CFs details\n\t\t\tlogCustomFieldValuesDetails(lineOfCredit.getCustomFieldValues());\n\t\t}\n\t}", "RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;", "private void viewPendingRequests() {\n\n\t}", "public JSONObject getInvoiceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n reqParams.remove(\"isb2cs\"); // remove to avoid CN index while fetching data\n double taxableAmountInv = 0d;\n double totalAmountInv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n String term = data[1]!=null?data[1].toString():\"\";\n double termamount = data[0]!=null?(Double) data[0]:0;\n count = data[4]!=null?((BigInteger) data[4]).intValue():0;\n totalAmountInv = data[3]!=null?(Double) data[3]:0;\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n IGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n CGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if(StringUtil.isNullOrEmpty(term)){\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n }\n }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv, companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "private String getRequestLine(HttpConnection conn) {\n return HttpMethodBase.generateRequestLine(conn, getName(),\n getPath(), getQueryString(), getHttpVersion());\n }", "@Test\n public void selectChainedView() throws Exception {\n final Properties connectionProps = new Properties();\n connectionProps.setProperty(USER, TestInboundImpersonation.PROXY_NAME);\n connectionProps.setProperty(PASSWORD, TestInboundImpersonation.PROXY_PASSWORD);\n connectionProps.setProperty(IMPERSONATION_TARGET, TestInboundImpersonation.TARGET_NAME);\n BaseTestQuery.updateClient(connectionProps);\n BaseTestQuery.testBuilder().sqlQuery(\"SELECT * FROM %s.u0_lineitem ORDER BY l_orderkey LIMIT 1\", BaseTestImpersonation.getWSSchema(TestInboundImpersonation.OWNER)).ordered().baselineColumns(\"l_orderkey\", \"l_partkey\").baselineValues(1, 1552).go();\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 static void logRealtimeInventoryCheckInfo(NMProfile profile, NMCommerceItem item, int stocklevel, boolean isOldCheckout) {\r\n \r\n try {\r\n String pipe = \"|\";\r\n \r\n StringBuffer message = new StringBuffer();\r\n \r\n message.append(\"REQUESTED INVENTORY UNAVAILABLE:[\");\r\n \r\n message.append(\"TIME:\" + (new SimpleDateFormat(\"MM-dd-yyyy HH:mm:ss\")).format(Calendar.getInstance().getTime()));\r\n message.append(pipe);\r\n \r\n DynamoHttpServletRequest request = ServletUtil.getCurrentRequest();\r\n if (request != null) {\r\n message.append(\"USER-AGENT:\" + request.getHeader(\"User-Agent\"));\r\n message.append(pipe);\r\n if (request.getSession() != null) {\r\n message.append(\"SESSION:\" + request.getSession().getId());\r\n message.append(pipe);\r\n }\r\n }\r\n \r\n if (profile != null) {\r\n message.append(\"PROFILE:\" + profile.getRepositoryId());\r\n message.append(pipe);\r\n }\r\n \r\n if (item != null) {\r\n message.append(\"PRODUCT:\" + item.getProductId());\r\n message.append(pipe);\r\n \r\n message.append(\"PRODUCT_NAME:\" + item.getProduct().getDisplayName());\r\n message.append(pipe);\r\n \r\n message.append(\"CMOS_ID:\" + item.getCmosCatalogId() + \"_\" + item.getCmosItemCode());\r\n message.append(pipe);\r\n \r\n message.append(\"SKU:\" + item.getSkuNumber());\r\n message.append(pipe);\r\n \r\n message.append(\"REQUESTED:\" + item.getQuantity());\r\n message.append(pipe);\r\n \r\n message.append(\"AVAILABLE:\" + stocklevel);\r\n message.append(pipe);\r\n }\r\n \r\n if (isOldCheckout) {\r\n message.append(\"VERSION:Ajax\");\r\n } else {\r\n message.append(\"VERSION:Responsive\");\r\n }\r\n message.append(pipe);\r\n \r\n message.append(\"SITE:\" + CommonComponentHelper.getSystemSpecs().getProductionSystemCode());\r\n \r\n message.append(\"]\");\r\n \r\n CommonComponentHelper.getLogger().info(message.toString());\r\n \r\n } catch (Exception e) {\r\n // should never occur, but this is short order, so to ensure no issues within checkout catch all issues.\r\n System.out.println(\"Unexpected error while logging LogginUtil#logRealtimeInventoryCheckInfo \" + e.getMessage());\r\n }\r\n \r\n }", "public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }", "private String getHistoryQueryWithTimeStampCheck(Query requestQuery, String tempQuery) {\n\t\treturn tempQuery + \" \" + getTimeStampCheckPart(requestQuery);\n\t}", "public void setEddInfoToGfaRequest(String line, TtitemEDDResponse ttitem001) {\n String[] splitData = line.split(\":\");\n if (ArrayUtils.isNotEmpty(splitData) && splitData.length > 1) {\n ttitem001.setStartPage(validateAndSet(\"Start Page\", splitData));\n ttitem001.setEndPage(validateAndSet(\"End Page\", splitData));\n ttitem001.setArticleVolume(validateAndSet(\"Volume Number\", splitData));\n ttitem001.setArticleIssue(validateAndSet(\"Issue\", splitData));\n ttitem001.setArticleAuthor(validateAndSet(\"Article Author\", splitData));\n ttitem001.setArticleTitle(validateAndSet(\"Article/Chapter Title\", splitData));\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView tx_date = (TextView)view.findViewById(R.id.requestRaisedDate);\n TextView tx_lectureno = (TextView)view.findViewById(R.id.requestRaisedLectureNo);\n //ViewDialogBox.showDialogBox(tx_date.getText().toString() + \"lectureno \"+tx_lectureno.getText().toString(),RequestsForAdjustment.this);\n String type = \"extract_request_data\";\n DBTaskHandler dbTaskHandler = new DBTaskHandler(RequestsForAdjustment.this);\n dbTaskHandler.execute(type, tx_date.getText().toString(), tx_lectureno.getText().toString());\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public void onReceive(Request request) throws Throwable {\n Util.initializeContext(request, TelemetryEnvKey.USER);\n // set request id fto thread loacl...\n ExecutionContext.setRequestId(request.getRequestId());\n\n Response response = new Response();\n if (request.getOperation().equalsIgnoreCase(ActorOperations.ADD_CONTENT.getValue())) {\n Util.DbInfo dbInfo = Util.dbInfoMap.get(JsonKey.LEARNER_CONTENT_DB);\n Util.DbInfo batchdbInfo = Util.dbInfoMap.get(JsonKey.COURSE_BATCH_DB);\n // objects of telemetry event...\n Map<String, Object> targetObject = null;\n List<Map<String, Object>> correlatedObject = null;\n\n String userId = (String) request.getRequest().get(JsonKey.USER_ID);\n List<Map<String, Object>> requestedcontentList =\n (List<Map<String, Object>>) request.getRequest().get(JsonKey.CONTENTS);\n CopyOnWriteArrayList<Map<String, Object>> contentList =\n new CopyOnWriteArrayList<>(requestedcontentList);\n request.getRequest().put(JsonKey.CONTENTS, contentList);\n // map to hold the status of requested state of contents\n Map<String, Integer> contentStatusHolder = new HashMap<>();\n\n if (!(contentList.isEmpty())) {\n for (Map<String, Object> map : contentList) {\n // replace the course id (equivalent to Ekstep content id) with One way hashing\n // of\n // userId#courseId , bcoz in cassndra we are saving course id as userId#courseId\n\n String batchId = (String) map.get(JsonKey.BATCH_ID);\n boolean flag = true;\n\n // code to validate the whether request for valid batch range(start and end\n // date)\n if (!(StringUtils.isBlank(batchId))) {\n Response batchResponse =\n cassandraOperation.getRecordById(\n batchdbInfo.getKeySpace(), batchdbInfo.getTableName(), batchId);\n List<Map<String, Object>> batches =\n (List<Map<String, Object>>) batchResponse.getResult().get(JsonKey.RESPONSE);\n if (batches.isEmpty()) {\n flag = false;\n } else {\n Map<String, Object> batchInfo = batches.get(0);\n flag = validateBatchRange(batchInfo);\n }\n\n if (!flag) {\n response\n .getResult()\n .put((String) map.get(JsonKey.CONTENT_ID), \"BATCH NOT STARTED OR BATCH CLOSED\");\n contentList.remove(map);\n continue;\n }\n }\n map.putIfAbsent(JsonKey.COURSE_ID, JsonKey.NOT_AVAILABLE);\n preOperation(map, userId, contentStatusHolder);\n map.put(JsonKey.USER_ID, userId);\n map.put(JsonKey.DATE_TIME, new Timestamp(new Date().getTime()));\n\n try {\n ProjectLogger.log(\n \"LearnerStateUpdateActor:onReceive: map \" + map, LoggerEnum.INFO.name());\n cassandraOperation.upsertRecord(dbInfo.getKeySpace(), dbInfo.getTableName(), map);\n response.getResult().put((String) map.get(JsonKey.CONTENT_ID), JsonKey.SUCCESS);\n // create telemetry for user for each content ...\n targetObject =\n TelemetryUtil.generateTargetObject(\n (String) map.get(JsonKey.BATCH_ID), JsonKey.BATCH, JsonKey.CREATE, null);\n // since this event will generate multiple times so nedd to recreate correlated\n // objects every time ...\n correlatedObject = new ArrayList<>();\n TelemetryUtil.generateCorrelatedObject(\n (String) map.get(JsonKey.CONTENT_ID), JsonKey.CONTENT, null, correlatedObject);\n TelemetryUtil.generateCorrelatedObject(\n (String) map.get(JsonKey.COURSE_ID), JsonKey.COURSE, null, correlatedObject);\n TelemetryUtil.generateCorrelatedObject(\n (String) map.get(JsonKey.BATCH_ID), JsonKey.BATCH, null, correlatedObject);\n Map<String, String> rollUp = new HashMap<>();\n rollUp.put(\"l1\", (String) map.get(JsonKey.COURSE_ID));\n rollUp.put(\"l2\", (String) map.get(JsonKey.CONTENT_ID));\n TelemetryUtil.addTargetObjectRollUp(rollUp, targetObject);\n TelemetryUtil.telemetryProcessingCall(\n request.getRequest(), targetObject, correlatedObject);\n } catch (Exception ex) {\n response.getResult().put((String) map.get(JsonKey.CONTENT_ID), JsonKey.FAILED);\n contentList.remove(map);\n }\n }\n }\n sender().tell(response, self());\n // call to update the corresponding course\n ProjectLogger.log(\"Calling background job to update learner state\");\n request.getRequest().put(CONTENT_STATE_INFO, contentStatusHolder);\n request.setOperation(ActorOperations.UPDATE_LEARNER_STATE.getValue());\n tellToAnother(request);\n } else {\n onReceiveUnsupportedOperation(request.getOperation());\n }\n }", "public void updateRequestTrail(String request) throws RemoteException;", "private int getSelectedLine(HttpServletRequest request) {\n int selectedLine = -1;\n String parameterName = (String) request.getAttribute(KRADConstants.METHOD_TO_CALL_ATTRIBUTE);\n if (StringUtils.isNotBlank(parameterName)) {\n String lineNumber = StringUtils.substringBetween(parameterName, \".line\", \".\");\n selectedLine = Integer.parseInt(lineNumber);\n }\n\n return selectedLine;\n }", "private ListGridRecord getEditedRecord(DSRequest request)\n {\n JavaScriptObject oldValues = request.getAttributeAsJavaScriptObject(\"oldValues\");\n // Creating new record for combining old values with changes\n ListGridRecord newRecord = new ListGridRecord();\n // Copying properties from old record\n JSOHelper.apply(oldValues, newRecord.getJsObj());\n // Retrieving changed values\n JavaScriptObject data = request.getData();\n // Apply changes\n JSOHelper.apply(data, newRecord.getJsObj());\n return newRecord;\n }", "private ListGridRecord getEditedRecord(DSRequest request) {\n\t\tJavaScriptObject oldValues = request\n\t\t\t\t.getAttributeAsJavaScriptObject(\"oldValues\");\n\t\t// Creating new record for combining old values with changes\n\t\tListGridRecord newRecord = new ListGridRecord();\n\t\t// Copying properties from old record\n\t\tJSOHelper.apply(oldValues, newRecord.getJsObj());\n\t\t// Retrieving changed values\n\t\tJavaScriptObject data = request.getData();\n\t\t// Apply changes\n\t\tJSOHelper.apply(data, newRecord.getJsObj());\n\t\treturn newRecord;\n\t}", "public static void testGetDetailsForLineOfCredit() throws MambuApiException {\n\t\tString methodName = new Object() {}.getClass().getEnclosingMethod().getName();\n\t\tSystem.out.println(\"\\nIn \" + methodName);\n\t\t\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 100;\n\t\t\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\t\n\t\tif(CollectionUtils.isNotEmpty(linesOfCredit)){\n\n\t\t\t/* Get all details for first line of credit found */\n\t\t\tLineOfCredit firstLineOfCredit = linesOfCredit.get(0);\n\t\t\t\n\t\t\tSystem.out.println(\"Getting all details for Line of Credit ID= \" + firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\tLineOfCredit lineOfCreditDetails = linesOfCreditService.getLineOfCreditDetails(firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\t// Log returned LoC details\n\t\t\tlogLineOfCreditDetails(lineOfCreditDetails);\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: No Credit lines were found in order to run test \" + methodName);\n\t\t}\n\t\t\n\t}", "private void makeRequest() {\n\t\tRequest request = new Request(RequestCode.GET_REVISION_HISTORY);\n\t\trequest.setDocumentName(tabs.getTitleAt(tabs.getSelectedIndex()));\n\t\ttry {\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public RequestLine parseRequestLine(CharArrayBuffer buffer, ParserCursor cursor) throws ParseException {\n/* 280 */ Args.notNull(buffer, \"Char array buffer\");\n/* 281 */ Args.notNull(cursor, \"Parser cursor\");\n/* 282 */ int indexFrom = cursor.getPos();\n/* 283 */ int indexTo = cursor.getUpperBound();\n/* */ \n/* */ try {\n/* 286 */ skipWhitespace(buffer, cursor);\n/* 287 */ int i = cursor.getPos();\n/* */ \n/* 289 */ int blank = buffer.indexOf(32, i, indexTo);\n/* 290 */ if (blank < 0) {\n/* 291 */ throw new ParseException(\"Invalid request line: \" + buffer.substring(indexFrom, indexTo));\n/* */ }\n/* */ \n/* 294 */ String method = buffer.substringTrimmed(i, blank);\n/* 295 */ cursor.updatePos(blank);\n/* */ \n/* 297 */ skipWhitespace(buffer, cursor);\n/* 298 */ i = cursor.getPos();\n/* */ \n/* 300 */ blank = buffer.indexOf(32, i, indexTo);\n/* 301 */ if (blank < 0) {\n/* 302 */ throw new ParseException(\"Invalid request line: \" + buffer.substring(indexFrom, indexTo));\n/* */ }\n/* */ \n/* 305 */ String uri = buffer.substringTrimmed(i, blank);\n/* 306 */ cursor.updatePos(blank);\n/* */ \n/* 308 */ ProtocolVersion ver = parseProtocolVersion(buffer, cursor);\n/* */ \n/* 310 */ skipWhitespace(buffer, cursor);\n/* 311 */ if (!cursor.atEnd()) {\n/* 312 */ throw new ParseException(\"Invalid request line: \" + buffer.substring(indexFrom, indexTo));\n/* */ }\n/* */ \n/* */ \n/* 316 */ return createRequestLine(method, uri, ver);\n/* 317 */ } catch (IndexOutOfBoundsException e) {\n/* 318 */ throw new ParseException(\"Invalid request line: \" + buffer.substring(indexFrom, indexTo));\n/* */ } \n/* */ }", "public RequestLine(String rawRequestLine) {\n\t\tparseRequestLine(rawRequestLine);\n\t}", "public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }", "public List<TaskOrder> getLineItems() {\n if (lineItems == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskOrderDao targetDao = daoSession.getTaskOrderDao();\n List<TaskOrder> lineItemsNew = targetDao._queryTask_LineItems(uuid);\n synchronized (this) {\n if(lineItems == null) {\n lineItems = lineItemsNew;\n }\n }\n }\n return lineItems;\n }", "public JSONObject getGoodsReceiptForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n reqParams.put(\"entitycolnum\", reqParams.optString(\"goodsreceiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"goodsreceiptentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = gstr2Dao.getInvoiceDataWithDetailsInSql(reqParams);\n String companyId = reqParams.optString(\"companyid\");\n double taxableAmountInv = 0d;\n double totalAmountInv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n String term = data[1] != null ? data[1].toString() : \"\";\n double termamount = data[0] != null ? (Double) data[0] : 0;\n totalAmountInv = data[3] != null ? (Double) data[3] : 0;\n count = data[4] != null ? ((BigInteger) data[4]).intValue() : 0;\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"InputIGST\").toString()) || term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n taxableAmountInv += data[2] != null ? (Double) data[2] : 0;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"InputCGST\").toString()) || term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n taxableAmountInv += data[2] != null ? (Double) data[2] : 0;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"InputSGST\").toString()) || term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"InputUTGST\").toString()) || term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"InputCESS\").toString()) || term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if (StringUtil.isNullOrEmpty(term)) {\n taxableAmountInv += data[2] != null ? (Double) data[2] : 0;\n }\n }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv, companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount, companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount, companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount, companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount, companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount + CGSTAmount + SGSTAmount + CESSAmount, companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv + IGSTAmount + CGSTAmount + SGSTAmount + CESSAmount, companyId));\n } else {\n jSONObject = accGSTReportService.getPurchaseInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "@Override\n public String toString()\n {\n return BasicLineFormatter.DEFAULT.formatRequestLine(null, this).toString();\n }", "public void load2() throws Exception {\n String query = \"select * from catalog_snapshot where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_item_id = '\" + this.fac_item_id + \"'\";\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setItemId( (int) rs.getInt(\"ITEM_ID\"));\n setFacItemId(rs.getString(\"FAC_ITEM_ID\"));\n setMaterialDesc(rs.getString(\"MATERIAL_DESC\"));\n setGrade(rs.getString(\"GRADE\"));\n setMfgDesc(rs.getString(\"MFG_DESC\"));\n setPartSize( (float) rs.getFloat(\"PART_SIZE\"));\n setSizeUnit(rs.getString(\"SIZE_UNIT\"));\n setPkgStyle(rs.getString(\"PKG_STYLE\"));\n setType(rs.getString(\"TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"PRICE\")));\n setShelfLife( (float) rs.getFloat(\"SHELF_LIFE\"));\n setShelfLifeUnit(rs.getString(\"SHELF_LIFE_UNIT\"));\n setUseage(rs.getString(\"USEAGE\"));\n setUseageUnit(rs.getString(\"USEAGE_UNIT\"));\n setApprovalStatus(rs.getString(\"APPROVAL_STATUS\"));\n setPersonnelId( (int) rs.getInt(\"PERSONNEL_ID\"));\n setUserGroupId(rs.getString(\"USER_GROUP_ID\"));\n setApplication(rs.getString(\"APPLICATION\"));\n setFacilityId(rs.getString(\"FACILITY_ID\"));\n setMsdsOn(rs.getString(\"MSDS_ON_LINE\"));\n setSpecOn(rs.getString(\"SPEC_ON_LINE\"));\n setMatId( (int) rs.getInt(\"MATERIAL_ID\"));\n setSpecId(rs.getString(\"SPEC_ID\"));\n setMfgPartNum(rs.getString(\"MFG_PART_NO\"));\n\n //trong 3-27-01\n setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString(\"CASE_QTY\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }", "fintech.HistoryResponse.Data getData();", "public synchronized void handle(PBFTRequest r){\n \n Object lpid = getLocalServerID();\n\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \", at time \" + getClockValue() + \", received \" + r);\n\n StatedPBFTRequestMessage loggedRequest = getRequestInfo().getStatedRequest(r);\n \n /* if the request has not been logged anymore and it's a old request, so it was garbage by checkpoint procedure then I must send a null reply */\n if(loggedRequest == null && getRequestInfo().isOld(r)){\n IProcess client = new BaseProcess(r.getClientID());\n PBFTReply reply = new PBFTReply(r, null, lpid, getCurrentViewNumber());\n emit(reply, client);\n return;\n \n }\n \n try{\n /*if the request is new and hasn't added yet then it'll be added */\n if(loggedRequest == null){\n /* I received a new request so a must log it */\n loggedRequest = getRequestInfo().add(getRequestDigest(r), r, RequestState.WAITING);\n loggedRequest.setRequestReceiveTime(getClockValue());\n }\n\n /* if I have a entry in request log but I don't have the request then I must update my request log. */\n if(loggedRequest.getRequest() == null) loggedRequest.setRequest(r);\n \n /*if the request was served the I'll re-send the related reply if it has been logged yet.*/\n if(loggedRequest.getState().equals(RequestState.SERVED)){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" has already served \" + r);\n\n /* retransmite the reply when the request was already served */\n PBFTReply reply = getRequestInfo().getReply(r);\n IProcess client = new BaseProcess(r.getClientID());\n emit(reply, client);\n return;\n }\n \n /* If I'm changing then I'll do nothing more .*/\n if(changing()) return;\n\n PBFTPrePrepare pp = getPrePreparebackupInfo().get(getCurrentViewNumber(), getCurrentPrimaryID(), loggedRequest.getDigest());\n\n if(pp != null && !isPrimary()){\n /* For each digest in backuped pre-prepare, I haven't all request then it'll be discarded. */\n DigestList digests = new DigestList();\n for(String digest : pp.getDigests()){\n if(!getRequestInfo().hasRequest(digest)){\n digests.add(digest);\n }\n }\n \n if(digests.isEmpty()){\n handle(pp);\n getPrePreparebackupInfo().rem(pp);\n return;\n } \n }\n\n boolean committed = loggedRequest.getState().equals( RequestState.COMMITTED );\n \n// /* if my request was commit and it hasn't been served yet I must check the stated of the request */\n if(committed){\n tryExecuteRequests();\n return;\n }\n \n /* performs the batch procedure if the server is the primary replica. */\n if(isPrimary()){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" (primary) is executing the batch procedure for \" + r + \".\");\n batch();\n }else{\n /* schedules a timeout for the arriving of the pre-prepare message if the server is a secundary replica. */\n scheduleViewChange();\n }//end if is primary\n \n }catch(Exception e){\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n private void preOperation(\n Map<String, Object> req, String userId, Map<String, Integer> contentStateHolder)\n throws ParseException {\n\n SimpleDateFormat simpleDateFormat = ProjectUtil.getDateFormatter();\n simpleDateFormat.setLenient(false);\n\n Util.DbInfo dbInfo = Util.dbInfoMap.get(JsonKey.LEARNER_CONTENT_DB);\n req.put(JsonKey.ID, generatePrimaryKey(req, userId));\n contentStateHolder.put(\n (String) req.get(JsonKey.ID), ((BigInteger) req.get(JsonKey.STATUS)).intValue());\n Response response =\n cassandraOperation.getRecordById(\n dbInfo.getKeySpace(), dbInfo.getTableName(), (String) req.get(JsonKey.ID));\n\n List<Map<String, Object>> resultList =\n (List<Map<String, Object>>) response.getResult().get(JsonKey.RESPONSE);\n\n if (!(resultList.isEmpty())) {\n Map<String, Object> result = resultList.get(0);\n int currentStatus = (int) result.get(JsonKey.STATUS);\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n\n Integer currentProgressStatus = 0;\n if (isNotNull(result.get(JsonKey.CONTENT_PROGRESS))) {\n currentProgressStatus = (Integer) result.get(JsonKey.CONTENT_PROGRESS);\n }\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n Integer requestedProgressStatus =\n ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n if (requestedProgressStatus > currentProgressStatus) {\n req.put(JsonKey.CONTENT_PROGRESS, requestedProgressStatus);\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n\n Date accessTime = parseDate(result.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n Date completedDate = parseDate(result.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n\n int completedCount;\n if (!(isNullCheck(result.get(JsonKey.COMPLETED_COUNT)))) {\n completedCount = (int) result.get(JsonKey.COMPLETED_COUNT);\n } else {\n completedCount = 0;\n }\n int viewCount;\n if (!(isNullCheck(result.get(JsonKey.VIEW_COUNT)))) {\n viewCount = (int) result.get(JsonKey.VIEW_COUNT);\n } else {\n viewCount = 0;\n }\n\n if (requestedStatus >= currentStatus) {\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, completedCount + 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(completedDate, requestCompletedTime));\n } else {\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n } else {\n req.put(JsonKey.STATUS, currentStatus);\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n\n } else {\n // IT IS NEW CONTENT SIMPLY ADD IT\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n if (null != req.get(JsonKey.STATUS)) {\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(null, requestCompletedTime));\n req.put(JsonKey.COMPLETED_COUNT, 1);\n } else {\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n } else {\n req.put(JsonKey.STATUS, ProjectUtil.ProgressStatus.NOT_STARTED.getValue());\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n int progressStatus = 0;\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n progressStatus = ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n }\n req.put(JsonKey.CONTENT_PROGRESS, progressStatus);\n\n req.put(JsonKey.VIEW_COUNT, 1);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n if (requestAccessTime != null) {\n req.put(JsonKey.LAST_ACCESS_TIME, (String) req.get(JsonKey.LAST_ACCESS_TIME));\n } else {\n req.put(JsonKey.LAST_ACCESS_TIME, ProjectUtil.getFormattedDate());\n }\n }\n }", "public static Cursor getTransactionHistoryDbCursor() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_TX_ID,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_CURRENCY,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_TX_STATUS,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_ADDRESS,\n \"_ROWID_\", //// getting also _ROWID_ to save the txID after getting the response\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY};\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n\n return c;\n }", "public List<CustomerRequest> getCurrentRequests();", "private Future<List<JsonObject>> fetch(Map<String, List<String>> request) {\n Promise<List<JsonObject>> p = Promise.promise();\n List<String> resIds = new ArrayList<>();\n\n if (request.containsKey(RES)) {\n resIds.addAll(request.get(RES));\n\n // get resGrpId from resID\n resIds.addAll(\n resIds.stream()\n .map(e -> e.split(\"/\"))\n .map(obj -> obj[0] + \"/\" + obj[1] + \"/\" + obj[2] + \"/\" + obj[3])\n .collect(Collectors.toList()));\n }\n\n if (request.containsKey(RES_GRP)) resIds.addAll(request.get(RES_GRP));\n\n List<String> distinctRes = resIds.stream().distinct().collect(Collectors.toList());\n\n List<Future> fetchFutures =\n distinctRes.stream().map(this::fetchItem).collect(Collectors.toList());\n\n CompositeFuture.all(fetchFutures)\n .onSuccess(\n successHandler -> {\n p.complete(\n fetchFutures.stream()\n .map(x -> (JsonObject) x.result())\n .collect(Collectors.toList()));\n })\n .onFailure(\n failureHandler -> {\n p.fail(failureHandler);\n });\n return p.future();\n }", "public Object[] Cmd0500_Lv_File_ItemClick(String UserId,String SecuYn,String L_SysCd,String L_JobCd,\r\n \t\tString L_ItemId)\tthrows SQLException, Exception {\r\n\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tPreparedStatement pstmt2 = null;\r\n\t\tResultSet rs = null;\r\n\t\tResultSet rs2 = null;\r\n\t\tStringBuffer strQuery = new StringBuffer();\r\n\t\tArrayList<HashMap<String, String>> rtList = new ArrayList<HashMap<String, String>>();\r\n\t\tHashMap<String, String>\t\t\t rst\t\t = null;\r\n\t\tObject[]\t\t rtObj\t\t = null;\r\n\r\n\t\tConnectionContext connectionContext = new ConnectionResource();\r\n\t\ttry {\r\n\t\t\tconn = connectionContext.getConnection();\r\n\r\n \t\tstrQuery.setLength(0);\r\n \t\tstrQuery.append(\"select a.cr_rsrcname,a.cr_story,a.cr_langcd,a.cr_editor, \\n\");\r\n \t\tstrQuery.append(\" to_char(a.cr_opendate,'yyyy/mm/dd hh24:mi') cr_opendate, \\n\");\r\n \t\tstrQuery.append(\" to_char(a.cr_lastdate,'yyyy/mm/dd hh24:mi') cr_lastdate, \\n\");\r\n \t\tstrQuery.append(\" a.cr_jobcd,a.cr_creator,a.cr_status,a.cr_lstver, \\n\");\r\n \t\tstrQuery.append(\" a.cr_rsrccd,a.cr_lstusr,b.cm_info,a.cr_syscd, \\n\");\r\n \t\tstrQuery.append(\" a.cr_testusr, a.cr_realusr, a.cr_isrid,\t\t\t\t\t \\n\");\r\n \t\tstrQuery.append(\" to_char(a.cr_testdate,'yyyy/mm/dd hh24:mi') cr_testdate, \\n\");\r\n \t\tstrQuery.append(\" to_char(a.cr_realdate,'yyyy/mm/dd hh24:mi') cr_realdate, \\n\");\r\n \t\tstrQuery.append(\" to_char(a.cr_lstdat,'yyyy/mm/dd hh24:mi') cr_lstdat,c.cm_codename \\n\");\r\n \t\tstrQuery.append(\" from cmm0020 c,cmm0036 b,cmr0020 a \\n\");\r\n \t\tstrQuery.append(\" where a.cr_itemid=? \\n\");\r\n \t\tstrQuery.append(\" and a.cr_syscd=b.cm_syscd and a.cr_rsrccd=b.cm_rsrccd \\n\");\r\n \t\tstrQuery.append(\" and c.cm_macode='JAWON' and c.cm_micode=a.cr_rsrccd \\n\");\r\n\r\n\t\t //pstmt = conn.prepareStatement(strQuery.toString());\r\n\t\t pstmt = new LoggableStatement(conn, strQuery.toString());\r\n\t \tpstmt.setString(1, L_ItemId);\r\n\t \tecamsLogger.error(((LoggableStatement)pstmt).getQueryString());\r\n\t \trs = pstmt.executeQuery();\r\n\r\n\t \tif (rs.next()) {\r\n\t\t\t\trst = new HashMap<String,String>();\r\n\t\t\t\trst.put(\"ID\",\"Sql_Qry_Prog1\");\r\n\t\t\t\trst.put(\"Lbl_ProgName\",rs.getString(\"cr_story\"));\r\n\t\t\t\trst.put(\"Lbl_CreatDt\",rs.getString(\"cr_opendate\"));\r\n\t\t\t\trst.put(\"Lbl_LastDt\",rs.getString(\"cr_lastdate\"));\r\n\t\t\t\trst.put(\"WkJobCd\",rs.getString(\"cr_jobcd\"));\r\n\t\t\t\trst.put(\"WkSta\",rs.getString(\"cr_status\"));\r\n\t\t\t\trst.put(\"cm_info\",rs.getString(\"cm_info\"));\r\n\t\t\t\trst.put(\"WkVer\",Integer.toString(rs.getInt(\"cr_lstver\")));\r\n\t\t\t\trst.put(\"WkRsrcCd\",rs.getString(\"cr_rsrccd\"));\r\n\t\t\t\trst.put(\"Lbl_LstDat\",rs.getString(\"cr_lstdat\"));\r\n\t\t\t\trst.put(\"cr_editor\",rs.getString(\"cr_editor\"));\r\n\t\t\t\trst.put(\"Lbl_LstDatTest\",rs.getString(\"cr_testdate\"));\r\n\t\t\t\trst.put(\"cr_testusr\",rs.getString(\"cr_testusr\"));\r\n\t\t\t\trst.put(\"Lbl_LstDatReal\",rs.getString(\"cr_realdate\"));\r\n\t\t\t\trst.put(\"cr_realusr\",rs.getString(\"cr_realusr\"));\r\n\t\t\t\trst.put(\"RsrcName\", rs.getString(\"cm_codename\"));\r\n\t\t\t\trst.put(\"cr_isrid\", rs.getString(\"cr_isrid\"));\r\n\t\t\t\t\r\n\t\t\t\tif (SecuYn.equals(\"Y\") || UserId.equals(rs.getString(\"cr_editor\"))) rst.put(\"WkSecu\",\"true\");\r\n\t\t\t\telse {\r\n\t\t\t\t\trst.put(\"WkSecu\",\"false\");\r\n\t\t\t\t\tstrQuery.setLength(0);\r\n\t \t \tstrQuery.append(\"select count(*) cnt from cmm0044 \\n\");\r\n\t \t \tstrQuery.append(\" where cm_userid=? \\n\");\r\n\t \t \tstrQuery.append(\" and cm_syscd=? and cm_jobcd=? \\n\");\r\n\t \t \tstrQuery.append(\" and cm_closedt is null \\n\");\r\n\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t \t \tpstmt2.setString(1, UserId);\r\n\t \t \tpstmt2.setString(2, rs.getString(\"cr_syscd\"));\r\n\t \t \tpstmt2.setString(3, rs.getString(\"cr_jobcd\"));\r\n\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\tif (rs2.next()) {\r\n\t\t\t\t\t\tif (rs2.getInt(\"cnt\") > 0) rst.put(\"WkSecu\",\"true\");\r\n\t\t\t\t\t\telse rst.put(\"WkSecu\",\"false\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\trs2.close();\r\n\t\t\t\t\tpstmt2.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (rs.getString(\"cr_creator\") != null){\r\n\t\t\t\t\tstrQuery.setLength(0);\r\n\t \t \tstrQuery.append(\"select cm_username from cmm0040 where cm_userid=? \\n\");\r\n\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t \t \tpstmt2.setString(1, rs.getString(\"cr_creator\"));\r\n\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\tif (rs2.next()) rst.put(\"Lbl_Creator\",rs2.getString(\"cm_username\"));\r\n\t\t\t\t\trs2.close();\r\n\t\t\t\t\tpstmt2.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (rs.getString(\"cr_editor\") != null){\r\n\t \t \tstrQuery.setLength(0);\r\n\t \t \tstrQuery.append(\"select cm_username from cmm0040 where cm_userid=? \\n\");\r\n\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t \t \tpstmt2.setString(1, rs.getString(\"cr_editor\"));\r\n\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\tif (rs2.next()) rst.put(\"Lbl_Editor\",rs2.getString(\"cm_username\"));\r\n\t\t\t\t\trs2.close();\r\n\t\t\t\t\tpstmt2.close();\r\n\t\t }\r\n\t\t\t\tif (rs.getString(\"cr_testusr\") != null){\r\n\t\t\t\t\tif (rs.getString(\"cr_testusr\").length() > 0 ){\r\n\t\t \t \tstrQuery.setLength(0);\r\n\t\t \t \tstrQuery.append(\"select cm_username from cmm0040 where cm_userid=? \\n\");\r\n\t\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t\t \t \tpstmt2.setString(1, rs.getString(\"cr_testusr\"));\r\n\t\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\t\tif (rs2.next()) rst.put(\"Lbl_LstTestUsr\",rs2.getString(\"cm_username\"));\r\n\t\t\t\t\t\trs2.close();\r\n\t\t\t\t\t\tpstmt2.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (rs.getString(\"cr_realusr\") != null){\r\n\t\t\t\t\tif (rs.getString(\"cr_realusr\").length() > 0 ){\r\n\t\t \t \tstrQuery.setLength(0);\r\n\t\t \t \tstrQuery.append(\"select cm_username from cmm0040 where cm_userid=? \\n\");\r\n\t\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t\t \t \tpstmt2.setString(1, rs.getString(\"cr_realusr\"));\r\n\t\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\t\tif (rs2.next()) rst.put(\"Lbl_LstRealUsr\",rs2.getString(\"cm_username\"));\r\n\t\t\t\t\t\trs2.close();\r\n\t\t\t\t\t\tpstmt2.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (rs.getString(\"cr_lstusr\") != null){\r\n\t\t\t\t\tif (rs.getString(\"cr_lstusr\").length() > 0 ){\r\n\t\t \t \tstrQuery.setLength(0);\r\n\t\t \t \tstrQuery.append(\"select cm_username from cmm0040 where cm_userid=? \\n\");\r\n\t\t \t \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t\t \t \tpstmt2.setString(1, rs.getString(\"cr_lstusr\"));\r\n\t\t\t\t\t\trs2 = pstmt2.executeQuery();\r\n\t\t\t\t\t\tif (rs2.next()) rst.put(\"Lbl_LstUsr\",rs2.getString(\"cm_username\"));\r\n\t\t\t\t\t\trs2.close();\r\n\t\t\t\t\t\tpstmt2.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t \t\trtList.add(rst);\r\n\t \t\trst = null;\r\n\t\t }else{\r\n\t\t\t\trst = new HashMap<String,String>();\r\n\t\t\t\trst.put(\"ID\",\"Sql_Qry_Prog2\");\r\n\t\t \trst.put(\"WkSecu\",\"false\");\r\n\t\t \trtList.add(rst);\r\n\t\t \trst = null;\r\n\t\t }\r\n\t \tpstmt2 = null;\r\n\r\n\t \trs.close();\r\n\t \tpstmt.close();\r\n\t \tconn.close();\r\n\t\t\trs = null;\r\n\t\t\tpstmt = null;\r\n\t\t\tconn = null;\r\n\r\n\t\t\trtObj = rtList.toArray();\r\n\t\t\trtList.clear();\r\n\t\t\trtList = null;\r\n\r\n\t\t\treturn rtObj;\r\n\r\n\t\t} catch (SQLException sqlexception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\tsqlexception.printStackTrace();\r\n\t\t\tthrow sqlexception;\r\n\t\t} catch (Exception exception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow exception;\r\n\t\t}finally{\r\n\t\t\tif (strQuery != null)\tstrQuery = null;\r\n\t\t\tif (rtObj != null)\trtObj = null;\r\n\t\t\tif (rs != null) try{rs.close();}catch (Exception ex){ex.printStackTrace();}\r\n\t\t\tif (pstmt != null) try{pstmt.close();}catch (Exception ex2){ex2.printStackTrace();}\r\n\t\t\tif (conn != null){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tConnectionResource.release(conn);\r\n\t\t\t\t}catch(Exception ex3){\r\n\t\t\t\t\tex3.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n }", "private void LogPurchaseHistoryTable() {\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_PURCHASEHISTORY, null);\n Log.d(DatabaseHelper.class.getName(), \"Contents of PurchaseHistory Table:\");\n\n c.moveToFirst();\n while (!c.isAfterLast()) {\n Log.d(DatabaseHelper.class.getName(), \"\\t _id:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_ID))) +\n \", pid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PID))) +\n \", sid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_SID))) +\n \", price:\" + String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE))) +\n \", quality:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_QUALITY))) +\n \", timestamp:\" + String.valueOf(c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE))) );\n c.moveToNext();\n }\n\n db.close();\n }", "public void getEntityDataForRequestedModule(JSONObject reqParams) throws ServiceException, JSONException {\n JSONObject params = new JSONObject();\n String entityModuleIds = Constants.Acc_Invoice_ModuleId + \",\" + Constants.Acc_Vendor_Invoice_ModuleId + \",\"\n + Constants.Acc_Receive_Payment_ModuleId + \",\" + Constants.Acc_Make_Payment_ModuleId\n + \",\" + Constants.Acc_Debit_Note_ModuleId + \",\" + Constants.Acc_Credit_Note_ModuleId + \",\"\n + Constants.Acc_FixedAssets_DisposalInvoice_ModuleId + \",\" + Constants.Acc_FixedAssets_PurchaseInvoice_ModuleId + \",\"\n + Constants.LEASE_INVOICE_MODULEID + \",\" + Constants.Acc_Delivery_Order_ModuleId+\",\"+Constants.Acc_GENERAL_LEDGER_ModuleId;\n params.put(\"moduleids\", entityModuleIds);\n params.put(\"fieldlabel\", Constants.ENTITY);\n params.put(\"fcdvalue\", reqParams.optString(\"entity\"));\n params.put(\"companyid\", reqParams.optString(\"companyid\"));\n List entityList = fieldManagerDAOobj.getEntityDataForRequestedModule(params);\n geModulewiseEntityData(entityList, reqParams);\n }", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/changeRequest/getCACRLineItemsByCRId/{crID}\", method = RequestMethod.GET, produces = \"application/json\")\n\tpublic @ResponseBody\n\tServiceResponse<List<CustomerAlignmentChangeRequestDetails>> getCustomerAlignmentChangeRequestDetailsByChangeRequest(@PathVariable(\"crID\") Long crID, HttpServletRequest request) {\n\n\t\tServiceStatus serviceStatus = null;\n\t\tServiceResponse<List<CustomerAlignmentChangeRequestDetails>> serviceResponse = new ServiceResponse<List<CustomerAlignmentChangeRequestDetails>>();\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tServiceResult serviceResult = new ServiceResult();\n\t\tChangeRequest changeRequest = new ChangeRequest();\n\t\tchangeRequest.setId(crID);\n\t\tUserDetails user = ModelAssembler.getDefaultUserDetails();\n\n\t\ttry {\n\t\t\tserviceResult.setDetail(changeRequestService.getCustomerAlignmentChangeRequestDetailsByChangeRequest(changeRequest, user));\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.OK, \"200 OK\");\n\t\t} catch (ChangeRequestServiceException e) {\n\t\t\tserviceResult.setDetail(\"Exception occured \" + e.getMessage());\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.SERVER_ERROR, \"500 ERROR\");\n\t\t}\n\t\tserviceResponse.setStatus(serviceStatus);\n\t\tserviceResponse.setResult(serviceResult);\n\t\tLOGGER.info(\" Returning REST response with Result..\" + serviceResult.getDetail() + \" and status \" + serviceResponse.getStatus().getCode().getCode() + \"-\"\n\t\t\t\t+ serviceResponse.getStatus().getMessage());\n\t\treturn serviceResponse;\n\t}", "public RecordSet loadExpHistoryInfo(Record inputRecord);", "public void processRequest(OAPageContext pageContext, OAWebBean webBean)\r\n {\r\n super.processRequest(pageContext, webBean);\r\n \r\n\r\n String sequenceNo = pageContext.getParameter(\"pSequenceNo\");\r\n String pItemKey = pageContext.getParameter(\"pItemKey\");\r\n\r\n // String pItemKey = \"INDIV-317\";\r\n\r\n OAApplicationModule am = pageContext.getApplicationModule(webBean);\r\n\r\n // System.out.println(\"ApprDetailsCO > Itemkey: \" + pItemKey);\r\n // Serializable[] initApproversParams = new String[2];\r\n Serializable[] reviewPSParams = { pItemKey };\r\n\r\n am.invokeMethod(\"reviewPS\", reviewPSParams);\r\n\r\n\r\n \r\n \r\n /*OAViewObject vo = (OAViewObject)am.findViewObject(\"XxupPerPublicServiceHeaderEOVO1\");\r\n\r\n \r\n String type = \"\";\r\n if(vo!=null){\r\n \r\n \r\n Row row = vo.getCurrentRow();\r\n \r\n if(row!=null) {\r\n System.out.println(\"ya\");\r\n }\r\n \r\n \r\n \r\n \r\n }\r\n \r\n \r\n pageContext.putDialogMessage(new OAException(type));*/\r\n \r\n// OAViewObject pshVO = (OAViewObject) am.findViewObject(\"XxupPerPSHeaderTrEOVO1\");\r\n// pshVO.executeQuery();\r\n \r\n \r\n }", "public void okFindITEM1()\n {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPQuery q;\n int headrowno;\n\n q = trans.addQuery(mat_borrow_line_blk);\n q.addWhereCondition(\"PROJ_NO = ? AND BORROW_ID = ?\");\n q.addParameter(\"PROJ_NO\", headset.getValue(\"PROJ_NO\"));\n q.addParameter(\"BORROW_ID\", headset.getValue(\"BORROW_ID\"));\n q.includeMeta(\"ALL\");\n headrowno = headset.getCurrentRowNo();\n mgr.querySubmit(trans,mat_borrow_line_blk);\n headset.goTo(headrowno);\n }", "public String determineTaskDetailsFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String details = line.substring(indexOfFirstSquareBracket + 8); // from unnecessary info at the front of line.\n return details;\n }", "@Override\r\n\tpublic Map<String, Object> referenceData(HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\n\t\tpublic void doTrend(final StaplerRequest request, final StaplerResponse response) throws IOException, InterruptedException {\n\t\t\t System.out.println(\"inside map\");\n\t\t\t/* AbstractBuild<?, ?> lastBuild = project.getLastBuild();\n\t\t\t while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(BuildAction.class) == null)) {\n\t\t lastBuild = lastBuild.getPreviousBuild();\n\t\t }\n\t\t\t lastBuild = lastBuild.getPreviousBuild();\n\t\t BuildAction lastAction = lastBuild.getAction(BuildAction.class);*/\n\t\t ChartUtil.generateGraph(\n\t\t request,\n\t\t response,\n\t\t Text_HTMLConverter.buildChart(build),\n\t\t CHART_WIDTH,\n\t\t CHART_HEIGHT);\n\t\t }", "public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }", "default void queryArtifactLineageSubgraph(\n com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.LineageSubgraph>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getQueryArtifactLineageSubgraphMethod(), responseObserver);\n }", "private Collection<Record> handleRequest(SearchRequest request) {\n\t\tCollection<Record> resultSet = getResults(request.getQuery());\n\t\treturn resultSet;\n\t}", "public static Bundle EditClimbLoadEntry(int inputRowID, Context mContext) {\n\n Bundle outputBundle = new Bundle();\n\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n String[] projection = {\n DatabaseContract.ClimbLogEntry._ID,\n DatabaseContract.ClimbLogEntry.COLUMN_DATE,\n DatabaseContract.ClimbLogEntry.COLUMN_NAME,\n DatabaseContract.ClimbLogEntry.COLUMN_GRADETYPECODE,\n DatabaseContract.ClimbLogEntry.COLUMN_GRADECODE,\n DatabaseContract.ClimbLogEntry.COLUMN_ASCENTTYPECODE,\n DatabaseContract.ClimbLogEntry.COLUMN_LOCATION,\n DatabaseContract.ClimbLogEntry.COLUMN_FIRSTASCENTCODE,\n DatabaseContract.ClimbLogEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.ClimbLogEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(inputRowID)};\n\n Cursor cursor = database.query(DatabaseContract.ClimbLogEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n try {\n cursor.moveToFirst();\n\n // Get and set route name\n int idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_NAME);\n String outputRouteName = cursor.getString(idColumnOutput);\n\n // Get and set location name\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_LOCATION);\n int outputLocationId = cursor.getInt(idColumnOutput);\n\n // Get date\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_DATE);\n Long outputDate = cursor.getLong(idColumnOutput);\n String outputDateString = convertDate(outputDate, \"dd/MM/yyyy\");\n\n // Get whether first ascent or not\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_FIRSTASCENTCODE);\n int outputFirstAscent = cursor.getInt(idColumnOutput);\n\n // Get grade\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_GRADECODE);\n int outputGradeNumber = cursor.getInt(idColumnOutput);\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_GRADETYPECODE);\n int outputGradeName = cursor.getInt(idColumnOutput);\n\n // Get ascent type\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.ClimbLogEntry.COLUMN_ASCENTTYPECODE);\n int outputAscent = cursor.getInt(idColumnOutput);\n\n outputBundle.putString(\"outputRouteName\", outputRouteName);\n outputBundle.putInt(\"outputLocationId\", outputLocationId);\n outputBundle.putLong(\"outputDate\", outputDate);\n outputBundle.putString(\"outputDateString\", outputDateString);\n outputBundle.putInt(\"outputFirstAscent\", outputFirstAscent);\n outputBundle.putInt(\"outputGradeNumber\", outputGradeNumber);\n outputBundle.putInt(\"outputGradeName\", outputGradeName);\n outputBundle.putInt(\"outputAscent\", outputAscent);\n\n return outputBundle;\n\n } finally {\n cursor.close();\n database.close();\n }\n\n }", "@Override\r\n\tpublic RequestsTracker getRecentRequests() {\r\n\t\treturn recentRequestsTracker.snapshot(true);\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public MapList getOpenedThisMonthCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n\n MapList mapList = new MapList();\n try {\n\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 29-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&current!=\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_COMPLETE_CR);\n sbObjectWhere.append(\"\\\"\");\n sbObjectWhere.append(\"&&\");\n sbObjectWhere.append(\"current!=\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_REJECTED_CR);\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 29-08-2018 : END\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n Date dcurrentDate = new Date();\n\n MapList tempList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n\n for (int i = 0; i < tempList.size(); i++) {\n\n Map map = (Map) tempList.get(i);\n\n String sCROriginDate = (String) map.get(\"originated\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n Date dCROriginDate = formatter.parse(sCROriginDate);\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(dcurrentDate);\n cal.add(Calendar.MONTH, -1);\n Date dLastMonthDate = cal.getTime();\n\n if (dCROriginDate.after(dLastMonthDate) && dCROriginDate.before(dcurrentDate)) {\n mapList.add(map);\n }\n\n // TIGTK-16801 : 30-08-2018 : START\n map.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n\n }\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:Start\n if (mapList.size() > 1) {\n return sortCRListByState(context, mapList);\n } else {\n return mapList;\n }\n // TIGTK_3961:Sort CR data according to CR state :23/1/2017:Rutuja Ekatpure:End\n } catch (Exception ex) {\n logger.error(\"Error in getOpenedThisMonthCRs: \", ex);\n throw ex;\n }\n }", "@Override\r\n public PurchaseOrderItem getPurchaseOrderItem() {\r\n if (ObjectUtils.isNotNull(this.getPurapDocumentIdentifier())) {\r\n if (ObjectUtils.isNull(this.getPaymentRequest())) {\r\n this.refreshReferenceObject(PurapPropertyConstants.PURAP_DOC);\r\n }\r\n }\r\n // ideally we should do this a different way - maybe move it all into the service or save this info somehow (make sure and\r\n // update though)\r\n if (getPaymentRequest() != null) {\r\n PurchaseOrderDocument po = getPaymentRequest().getPurchaseOrderDocument();\r\n PurchaseOrderItem poi = null;\r\n if (this.getItemType().isLineItemIndicator()) {\r\n List<PurchaseOrderItem> items = po.getItems();\r\n poi = items.get(this.getItemLineNumber().intValue() - 1);\r\n // throw error if line numbers don't match\r\n // MSU Contribution DTT-3014 OLEMI-8483 OLECNTRB-974\r\n /*\r\n * List items = po.getItems(); if (items != null) { for (Object object : items) { PurchaseOrderItem item =\r\n * (PurchaseOrderItem) object; if (item != null && item.getItemLineNumber().equals(this.getItemLineNumber())) { poi\r\n * = item; break; } } }\r\n */\r\n } else {\r\n poi = (PurchaseOrderItem) SpringContext.getBean(PurapService.class).getBelowTheLineByType(po, this.getItemType());\r\n }\r\n if (poi != null) {\r\n return poi;\r\n } else {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getPurchaseOrderItem() Returning null because PurchaseOrderItem object for line number\" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n return null;\r\n }\r\n } else {\r\n\r\n LOG.error(\"getPurchaseOrderItem() Returning null because paymentRequest object is null\");\r\n throw new PurError(\"Payment Request Object in Purchase Order item line number \" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n }", "private static void processLine(\r\n final String line,\r\n final Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsForSessions,\r\n Map<String, List<Buy>> buysForSessions\r\n /* add parameters as needed */\r\n ) {\r\n final String[] words = line.split(\"\\\\h\");\r\n\r\n if (words.length == 0) {\r\n return;\r\n }\r\n\r\n switch (words[0]) {\r\n case START_TAG:\r\n processStartEntry(words, sessionsFromCustomer);\r\n break;\r\n case VIEW_TAG:\r\n processViewEntry(words, viewsForSessions );\r\n break;\r\n case BUY_TAG:\r\n processBuyEntry(words, buysForSessions);\r\n break;\r\n case END_TAG:\r\n processEndEntry(words);\r\n break;\r\n }\r\n }", "public void addAccessRequestHistory(AccessRequestHistoryItem item) {\n if (!getAccessRequestHistory().contains(item)) {\n getAccessRequestHistory().add(item);\n }\n }", "public POSLineItemWrapper(POSLineItemDetail detail) {\n this.id = detail.getLineItem().getItem().getId();\n this.desc = detail.getLineItem().getItemDescription();\n this.qty++;\n this.price = detail.getLineItem().getItemRetailPrice();\n this.isReturn = detail.getLineItem() instanceof com.chelseasystems.cr.pos.ReturnLineItem;\n this.vat = detail.getVatAmount();\n this.itemOriginalVat = detail.getLineItem().getNetAmount().multiply(detail.getLineItem().\n getItem().getVatRate().doubleValue()).round();\n Reduction[] reds = detail.getReductionsArray();\n for (int idx = 0; idx < reds.length; idx++) {\n String reason = reds[idx].getReason();\n // if(reason.equalsIgnoreCase(\"PRIVILEGE Discount\"))\n // {\n // privAmt = reds[idx].getAmount();\n // PrivilegeDiscount disc = getPrivilegeDiscount();\n // try\n // {\n // privPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"DRIVERS Discount\"))\n // {\n // coachAmt = reds[idx].getAmount();\n // DriversDiscount disc = getDriversDiscount();\n // try\n // {\n // coachPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"CONCESSIONAIRE Discount\"))\n // {\n // concessAmt = reds[idx].getAmount();\n // ConcessionaireDiscount disc = getConcessionaireDiscount();\n // try\n // {\n // concessPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"SETTLEMENT\"))\n // {\n // settleAmt = reds[idx].getAmount();\n // SettlementDiscount disc = getSettlementDiscount();\n // try\n // {\n // settlePct = disc.getPercent();\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else\n if (reason.equalsIgnoreCase(\"Manual Markdown\")) {\n manualAmt = reds[idx].getAmount();\n } else {\n promoAmt = reds[idx].getAmount();\n }\n }\n }", "CompletableFuture<SnapshotRestoreResponse> requestSnapshotChunk(\n MemberId server, SnapshotRestoreRequest request);", "public RecordSet loadAllProcessDetailHistory(Record inputRecord);", "public JSONObject getInvoiceForGSTR3BZeroRated(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n double taxableAmountInv = 0d;\n double taxableAmountCN = 0d;\n double taxableAmountAdv = 0d;\n double taxableAmountAdvAdjusted = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n// String term = data[1]!=null?data[1].toString():\"\";\n// double termamount = data[0]!=null?(Double) data[0]:0;\n taxableAmountInv = data[2]!=null?(Double) data[2]:0;\n }\n\n// /**\n// * Get CN amount\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// List<Object> cnData = accEntityGstDao.getCNDNWithInvoiceDetailsInSql(reqParams);\n// for (Object object : cnData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountCN = (Double) data[2];\n// }\n//\n// /**\n// * Get Advance for which idx not linked yet\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.put(\"at\", true);\n// reqParams.remove(\"atadj\");\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n//\n// }\n// /**\n// * Get Advance for which invoice isLinked\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.remove(\"at\");\n// reqParams.put(\"atadj\", true);\n// AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdvAdjusted = (Double) data[2];\n//\n// }\n jSONObject.put(\"Nature of Supplies\", \"b) Outward taxable supplies (zero rated)\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "public static CLRequestHistory query(Connection connection, int cl) {\n ResultSet rs = null;\n Statement statement = null;\n try {\n final String query = String.format(QUERY, \"*\", \"\");\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n while (rs.next()) {\n final Timestamp ts = rs.getTimestamp(Columns.TIMESTAMP);\n final int state = rs.getInt(Columns.STATE);\n return new CLRequestHistory(cl, ts, state);\n }\n } catch (SQLException e) {\n Utils.say(\"Not able to query for \" + cl);\n } finally {\n try {\n if (rs != null)\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n try {\n if (statement != null)\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "public PaymentRequestItem(PurchaseOrderItem poi, PaymentRequestDocument preq, HashMap<String, ExpiredOrClosedAccountEntry> expiredOrClosedAccountList) {\r\n\r\n // copy base attributes w/ extra array of fields not to be copied\r\n PurApObjectUtils.populateFromBaseClass(PurApItemBase.class, poi, this, PurapConstants.PREQ_ITEM_UNCOPYABLE_FIELDS);\r\n\r\n setItemDescription(poi.getItemDescription());\r\n\r\n //New Source Line should be set for PaymentRequestItem\r\n resetAccount();\r\n\r\n // set up accounts\r\n List accounts = new ArrayList();\r\n for (PurApAccountingLine account : poi.getSourceAccountingLines()) {\r\n PurchaseOrderAccount poa = (PurchaseOrderAccount) account;\r\n\r\n // check if this account is expired/closed and replace as needed\r\n SpringContext.getBean(AccountsPayableService.class).processExpiredOrClosedAccount(poa, expiredOrClosedAccountList);\r\n\r\n //KFSMI-4522 copy an accounting line with zero dollar amount if system parameter allows\r\n if (poa.getAmount().isZero()) {\r\n if (SpringContext.getBean(AccountsPayableService.class).canCopyAccountingLinesWithZeroAmount()) {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n } else {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n }\r\n\r\n this.setSourceAccountingLines(accounts);\r\n this.getUseTaxItems().clear();\r\n //List<PurApItemUseTax> newUseTaxItems = new ArrayList<PurApItemUseTax>();\r\n /// this.setUseTaxItems(newUseTaxItems);\r\n //copy use tax items over, and blank out keys (useTaxId and itemIdentifier)\r\n /*\r\n this.getUseTaxItems().clear();\r\n for (PurApItemUseTax useTaxItem : poi.getUseTaxItems()) {\r\n PaymentRequestItemUseTax newItemUseTax = new PaymentRequestItemUseTax(useTaxItem);\r\n this.getUseTaxItems().add(newItemUseTax);\r\n\r\n }\r\n */\r\n\r\n // clear amount and desc on below the line - we probably don't need that null\r\n // itemType check but it's there just in case remove if it causes problems\r\n // also do this if of type service\r\n if ((ObjectUtils.isNotNull(this.getItemType()) && this.getItemType().isAmountBasedGeneralLedgerIndicator())) {\r\n // setting unit price to be null to be more consistent with other below the line\r\n this.setItemUnitPrice(null);\r\n }\r\n\r\n // copy custom\r\n this.purchaseOrderItemUnitPrice = poi.getItemUnitPrice();\r\n// this.purchaseOrderCommodityCode = poi.getPurchaseOrderCommodityCd();\r\n\r\n // set doc fields\r\n this.setPurapDocumentIdentifier(preq.getPurapDocumentIdentifier());\r\n this.setPurapDocument(preq);\r\n }", "void selectLastAccessedItem(String itemId);", "List<Order> getHistoryOrders(HistoryOrderRequest orderRequest);", "public String prepareRequestToHost(Object request) {\n\t\tString clRequest = null;\n\t\tUserAuthRequestAndTXLifeRequest userRequest = ((NbaTXLife) request).getTXLife().getUserAuthRequestAndTXLifeRequest();\n\t\tif (userRequest != null && userRequest.getTXLifeRequestCount() > 0) {\n\t\t\tTXLifeRequest txRequest = userRequest.getTXLifeRequestAt(0);\n\t\t\tlong transType = txRequest.getTransType();\n\t\t\tlong transSubType = txRequest.getTransSubType();\n\t\t\tif (transType == NbaOliConstants.TC_TYPE_NEWBUSSUBMISSION && transSubType == NbaOliConstants.TC_SUBTYPE_BACKEND_PRINT) {\n\t\t\t\t// TODO determine why a new instance of this same class is needed\n\t\t\t\tNbaCyberPrintRequests cyberRequest = new NbaCyberPrintRequests();\n\t\t\t\ttry {\n\t\t\t\t\tclRequest = cyberRequest.createPrintRequest((NbaTXLife) request);\n\t\t\t\t} catch (NbaBaseException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(new NbaBaseException(\"Invalid Print Type Requested\"));\n\t\t\t}\n\t\t\tgetLogger().logDebug(clRequest);\n\t\t}\n\t\treturn clRequest;\n\t}", "@Override\n\tpublic void retrieve(ActionRequest req) throws ActionException {\n\t\tString schema = getCustomSchema();\n\t\tStringBuilder sql = new StringBuilder(200);\n\t\tsql.append(\"select a.*, b.reward_type_cd, b.reward_nm, c.type_nm\");\n\t\tsql.append(DBUtil.FROM_CLAUSE).append(schema).append(\"REZDOX_MEMBER_REWARD a \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(schema).append(\"REZDOX_REWARD b on a.reward_id=b.reward_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(schema).append(\"REZDOX_REWARD_TYPE c on b.reward_type_cd=c.reward_type_cd \");\n\t\tsql.append(\"where a.member_id=? \");\n\t\tsql.append(\"order by coalesce(a.update_dt, a.create_dt, CURRENT_TIMESTAMP) desc, c.type_nm, b.order_no, b.reward_nm\");\n\t\tlog.debug(sql);\n\n\t\tString memberId = StringUtil.checkVal(req.getAttribute(\"member_id\"), null);\n\t\tif (memberId == null)\n\t\t\tmemberId = RezDoxUtils.getMemberId(req);\n\n\t\tList<Object> params = new ArrayList<>();\n\t\tparams.add(memberId);\n\n\t\tDBProcessor db = new DBProcessor(getDBConnection(), schema);\n\t\tList<Object> myRewards = db.executeSelect(sql.toString(), params, new MemberRewardVO());\n\t\tputModuleData(myRewards);\n\t}", "private List<Request> getStartRequest () {\n String startUrl = \"http://www.yidianzixun.com/home/q/news_list_for_channel?channel_id=sc4&cstart=20&cend=30&infinite=true&refresh=1&__from__=pc&multi=5&appid=web_yidian\";\n List<Request> list = new ArrayList<>();\n list.add(new Request(startUrl).putExtra(RequestExtraKey.KEY_BEGIN_DATE, getStartTime()));\n return list;\n }", "public JSONObject getInvoiceForGSTR3BNillRated(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n double taxableAmountInv = 0d;\n double taxableAmountCN = 0d;\n double taxableAmountAdv = 0d;\n double taxableAmountAdvAdjusted = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n JSONObject jSONObject = new JSONObject();\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n reqParams.put(\"GST3B\", !reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.remove(\"zerorated\");\n List invoiceData = accEntityGstDao.getNillInvoiceDataWithDetailsInSql(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n taxableAmountInv = data[0] != null ? (Double) data[0] : 0;\n count = data[1] != null ? ((BigInteger) data[1]).intValue() : 0;\n }\n\n//\n// /**\n// * Get CN amount\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// List cnData = accEntityGstDao.getNillCNDNWithInvoiceDetailsInSql(reqParams);\n// if (!cnData.isEmpty() && cnData.get(0) != null) {\n// taxableAmountCN = (Double) cnData.get(0);\n// }\n//\n// /**\n// * Get Advance for which invoice not linked yet\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.put(\"at\", true);\n// reqParams.remove(\"atadj\");\n// List AdvData = accEntityGstDao.getNillAdvanceDetailsInSql(reqParams);\n// if (!AdvData.isEmpty() && AdvData.get(0) != null) {\n// taxableAmountAdv = (Double) AdvData.get(0);\n// }\n// /**\n// * Get Advance for which invoice isLinked\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.remove(\"at\");\n// reqParams.put(\"atadj\", true);\n// AdvData = accEntityGstDao.getNillAdvanceDetailsInSql(reqParams);\n// if (!AdvData.isEmpty() && AdvData.get(0) != null) {\n// taxableAmountAdvAdjusted = (Double) AdvData.get(0);\n// }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"Nature of Supplies\", \"e) Non GST outward supplies\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }", "@com.matrixone.apps.framework.ui.ProgramCallable\n public MapList getChangeAssessmentItems(Context context, String[] args) throws Exception {\n MapList mlResult = new MapList();\n MapList mlFinal = new MapList();\n try {\n HashMap hmParamMap = (HashMap) JPO.unpackArgs(args);\n Map tempmap;\n String[] arrTableRowIds = new String[1];\n String strTableRowID = (String) hmParamMap.get(\"emxTableRowId\");\n arrTableRowIds[0] = strTableRowID;\n ChangeUtil changeUtil = new ChangeUtil();\n StringList slObjectIds = changeUtil.getAffectedItemsIds(context, arrTableRowIds);\n ChangeManagement ChangeManagement = new ChangeManagement();\n MapList mlOutput = ChangeManagement.getChangeAssessment(context, slObjectIds);\n\n // For Charted Drawing PTE\n\n StringList lstselectStmts = new StringList(1);\n lstselectStmts.addElement(DomainConstants.SELECT_ID);\n\n StringList lstrelStmts = new StringList();\n lstrelStmts.add(DomainConstants.SELECT_RELATIONSHIP_ID);\n\n String strChangeAssessmentId = (String) slObjectIds.get(0);\n DomainObject domChangeAssessment = DomainObject.newInstance(context, strChangeAssessmentId);\n\n Pattern typePatternForChartedDrawing = new Pattern(DomainConstants.EMPTY_STRING);\n Pattern RelPatternForChartedDrawing = new Pattern(TigerConstants.RELATIONSHIP_PSS_CHARTED_DRAWING);\n\n Boolean bIsFromForChartedDrawing = false;\n Boolean bIsToForChartedDrawing = false;\n\n if (domChangeAssessment.isKindOf(context, DomainConstants.TYPE_PART)) {\n typePatternForChartedDrawing.addPattern(DomainConstants.TYPE_CAD_DRAWING);\n typePatternForChartedDrawing.addPattern(DomainConstants.TYPE_CAD_MODEL);\n bIsFromForChartedDrawing = true;\n } else {\n typePatternForChartedDrawing.addPattern(DomainConstants.TYPE_PART);\n bIsToForChartedDrawing = true;\n }\n\n MapList mlChartedDrawingObjects = domChangeAssessment.getRelatedObjects(context, RelPatternForChartedDrawing.getPattern(), typePatternForChartedDrawing.getPattern(), lstselectStmts,\n lstrelStmts, bIsToForChartedDrawing, bIsFromForChartedDrawing, (short) 0, null, null, 0);\n\n // Associate Drawing PTE\n Pattern typePatternForAssociatedDrawing = new Pattern(DomainConstants.TYPE_CAD_DRAWING);\n Pattern RelPatternForAssociatedDrawing = new Pattern(TigerConstants.RELATIONSHIP_ASSOCIATEDDRAWING);\n\n Boolean bIsFromForAssociatedDrawing = false;\n Boolean bIsToForAssociatedDrawing = false;\n MapList mlAssociatedDrawingObjects = new MapList();\n if (!domChangeAssessment.isKindOf(context, DomainConstants.TYPE_PART)) {\n if (domChangeAssessment.isKindOf(context, DomainConstants.TYPE_CAD_DRAWING) || domChangeAssessment.isKindOf(context, DomainConstants.TYPE_CAD_MODEL)) {\n typePatternForAssociatedDrawing.addPattern(DomainConstants.TYPE_CAD_DRAWING);\n bIsFromForAssociatedDrawing = true;\n\n }\n if (domChangeAssessment.isKindOf(context, DomainConstants.TYPE_CAD_DRAWING)) {\n bIsToForAssociatedDrawing = true;\n typePatternForAssociatedDrawing.addPattern(DomainConstants.TYPE_CAD_MODEL);\n }\n mlAssociatedDrawingObjects = domChangeAssessment.getRelatedObjects(context, RelPatternForAssociatedDrawing.getPattern(), typePatternForAssociatedDrawing.getPattern(), lstselectStmts,\n lstrelStmts, bIsToForAssociatedDrawing, bIsFromForAssociatedDrawing, (short) 1, null, null, 0);\n\n }\n mlChartedDrawingObjects.addAll(mlAssociatedDrawingObjects);\n\n Iterator itr = mlChartedDrawingObjects.iterator();\n while (itr.hasNext()) {\n Map mpObj = (Map) itr.next();\n String strRelationshipName = (String) mpObj.get(\"relationship\");\n String strObjID = (String) mpObj.get(DomainConstants.SELECT_ID);\n DomainObject domObj = DomainObject.newInstance(context, strObjID);\n if (TigerConstants.RELATIONSHIP_ASSOCIATEDDRAWING.equals(strRelationshipName) && !domObj.isKindOf(context, DomainConstants.TYPE_CAD_DRAWING)) {\n mpObj.put(\"strLabel\", \"Parent CAD Parts\");\n } else {\n mpObj.put(\"strLabel\", \"\");\n }\n\n mlOutput.add(mpObj);\n\n }\n\n // PCM : TIGTK-4086 : 31/01/2017 : AB : START\n // Get the ObjectId of Change Object and check whether it is ChangeOrder or not\n String strContextChangeId = (String) hmParamMap.get(\"contextCOId\");\n DomainObject domChange = new DomainObject(strContextChangeId);\n String strTypeOfCHange = domChange.getInfo(context, DomainConstants.SELECT_TYPE);\n int size = mlOutput.size();\n if (TigerConstants.TYPE_PSS_CHANGEORDER.equalsIgnoreCase(strTypeOfCHange) && !mlOutput.isEmpty()) {\n for (int i = 0; i < size; i++) {\n Map mapItemInfo = (Map) mlOutput.get(i);\n String strItemID = (String) mapItemInfo.get(DomainConstants.SELECT_ID);\n DomainObject domItem = new DomainObject(strItemID);\n String strItemPolicy = domItem.getInfo(context, DomainConstants.SELECT_POLICY);\n // PCM :TIGTK-6351 :4/12/2017 : PTE\n String strCurrentState = domItem.getInfo(context, DomainConstants.SELECT_CURRENT);\n // PCM :TIGTK-6351 :4/12/2017 : PTE End\n // Remove Development Part for add Affected item in CO from Change Assessment\n if (TigerConstants.POLICY_PSS_DEVELOPMENTPART.equalsIgnoreCase(strItemPolicy) || strCurrentState.equals(DomainConstants.STATE_PART_OBSOLETE)) {\n\n // PCM :TIGTK-4798 :3/11/2017 : PTE Start\n mlResult.add(mapItemInfo);\n // PCM :TIGTK-4798 :3/11/2017 : PTE End\n }\n }\n // PCM :TIGTK-4798 :3/11/2017 : PTE Start\n for (int i = 0; i < size; i++) {\n Map mapItemInfo = (Map) mlOutput.get(i);\n if (!mlResult.contains(mapItemInfo)) {\n mlFinal.add(mapItemInfo);\n }\n }\n // PCM :TIGTK-4798 :3/11/2017 : PTE End\n } // PCM :TIGTK-4694 :16/3/2017 :Start\n else if (TigerConstants.TYPE_PSS_CHANGEREQUEST.equalsIgnoreCase(strTypeOfCHange) && !mlOutput.isEmpty()) {\n for (int i = 0; i < mlOutput.size(); i++) {\n Map mapItemInfo = (Map) mlOutput.get(i);\n String strItemID = (String) mapItemInfo.get(DomainConstants.SELECT_ID);\n DomainObject domItem = new DomainObject(strItemID);\n String strItemState = domItem.getInfo(context, DomainConstants.SELECT_CURRENT);\n // Remove obsolete and approved Part for add Affected item in CR from Change Assessment\n if (DomainConstants.STATE_PART_APPROVED.equalsIgnoreCase(strItemState) || DomainConstants.STATE_PART_OBSOLETE.equalsIgnoreCase(strItemState)) {\n // PCM :TIGTK-4798 :3/11/2017 : PTE Start\n mlResult.add(mapItemInfo);\n // PCM :TIGTK-4798 :3/11/2017 : PTE End\n }\n }\n // PCM :TIGTK-4798 :3/11/2017 : PTE Start\n for (int i = 0; i < size; i++) {\n Map mapItemInfo = (Map) mlOutput.get(i);\n if (!mlResult.contains(mapItemInfo)) {\n mlFinal.add(mapItemInfo);\n }\n }\n // PCM :TIGTK-4798 :3/11/2017 : PTE Start\n }\n // PCM :TIGTK-4694 :16/3/2017 :End\n // PCM : TIGTK-4086 : 31/01/2017 : AB : END\n\n } catch (Exception Ex) {\n // TIGTK-5405 - 13-04-2017 - Rutuja Ekatpure - START\n logger.error(\"Error in getChangeAssessmentItems: \", Ex);\n // TIGTK-5405 - 13-04-2017 - Rutuja Ekatpure - End\n throw Ex;\n }\n return mlFinal;\n }", "static RequestLine readRequestLine(InputStream in) throws IOException {\n\t\tString line = readLine(in, true);\n\t\tString[] parts = line.split(\" \");\n\t\tif (parts.length != 3) {\n\t\t\tthrow new WebException(StatusCode.BAD_REQUEST, \"invalid request line: \" + line);\n\t\t}\n\t\tString method = parts[0];\n\t\tString target = parts[1];\n\t\tString path = target;\n\t\tString query = null;\n\t\tint index = target.indexOf('?');\n\t\tif (index != -1) {\n\t\t\tpath = target.substring(0, index);\n\t\t\tquery = target.substring(index + 1);\n\t\t}\n\t\treturn new RequestLine(method, target, path, query);\n\t}", "public Object[] getSql_Qry_Hist(String UserId,String L_SysCd,String L_JobCd,\r\n \t\tString Cbo_ReqCd, String L_ItemId)\tthrows SQLException, Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tPreparedStatement pstmt2 = null;\r\n\t\tResultSet rs = null;\r\n\t\tResultSet rs2 = null;\r\n\t\tStringBuffer strQuery = new StringBuffer();\r\n\t\tArrayList<HashMap<String, String>> rtList = new ArrayList<HashMap<String, String>>();\r\n\t\tHashMap<String, String>\t\t\t rst\t\t = null;\r\n\r\n\t\tConnectionContext connectionContext = new ConnectionResource();\r\n\t\ttry {\r\n\t\t\tconn = connectionContext.getConnection();\r\n\r\n\t\t strQuery.setLength(0);\r\n\t \tstrQuery.append(\"select a.cr_acptno,a.cr_aplydate,a.cr_status, \\n\");\r\n\t \tstrQuery.append(\" a.cr_rsrccd,a.cr_qrycd,b.cm_username,c.cm_codename, \\n\");\r\n\t \tstrQuery.append(\" d.cr_qrycd qrycd,d.cr_sayu,d.cr_passok,d.cr_passcd \\n\");\r\n\t \tstrQuery.append(\" , to_char(d.cr_acptdate,'yyyy-mm-dd hh24:mi:ss') cr_acptdate \\n\");\r\n\t \tstrQuery.append(\" , to_char(a.cr_prcdate,'yyyy-mm-dd hh24:mi:ss') cr_prcdate \\n\");\r\n\t \tstrQuery.append(\" , d.cr_itsmtitle , d.cr_itsmid \\n\");\r\n\t \tstrQuery.append(\" from cmr1010 a,cmr1000 d,cmm0040 b,cmm0020 c \\n\");\r\n\t \tstrQuery.append(\" where a.cr_itemid=? and \\n\"); //L_ItemId\r\n if (!Cbo_ReqCd.equals(\"ALL\")){\r\n \tstrQuery.append(\" d.cr_qrycd=? and \\n\"); //Cbo_ReqCd\r\n }\r\n strQuery.append(\" a.cr_acptno=d.cr_acptno and \\n\");\r\n strQuery.append(\" a.cr_editor=b.cm_userid and \\n\");\r\n strQuery.append(\" c.cm_macode='REQUEST' and d.cr_qrycd=c.cm_micode \\n\");\r\n if (Cbo_ReqCd.equals(\"ALL\") || Cbo_ReqCd.equals(\"04\")){\r\n\t strQuery.append(\" union \\n\");\r\n\t strQuery.append(\" select b.cr_acptno,'' as cr_aplydate,'9' cr_status,a.cr_rsrccd, \\n\");\r\n\t strQuery.append(\" decode(b.cr_qrycd,'03','최초이행','추가이행') as cr_qrycd,c.cm_username, \\n\");\r\n\t strQuery.append(\" decode(b.cr_qrycd,'03','최초이행','추가이행') as cm_codename, \\n\");\r\n\t strQuery.append(\" '04' as qrycd, \\n\");\r\n\t strQuery.append(\" '형상관리 일괄이행' as cr_passcd, '0' as cr_passok,'형상관리 일괄이행' as cr_passcd \\n\"); \r\n\t strQuery.append(\" , to_char(b.cr_acptdate,'yyyy-mm-dd hh24:mi:ss') as cr_acptdate \\n\");\r\n\t strQuery.append(\" , to_char(b.cr_acptdate,'yyyy-mm-dd hh24:mi:ss') as cr_prcdate \\n\");\r\n\t strQuery.append(\" , '' as cr_itsmtitle , '' as cr_itsmid\\n\");\r\n\t strQuery.append(\" from cmr0020 a,cmr0021 b,cmm0040 c \\n\");\r\n\t strQuery.append(\" where a.cr_itemid=? and \\n\"); //L_ItemId\r\n\t strQuery.append(\" b.cr_qrycd in ('03','05') and \\n\");\r\n\t strQuery.append(\" a.cr_itemid = b.cr_itemid and \\n\");\r\n\t strQuery.append(\" b.cr_editor=c.cm_userid \\n\");\r\n }\r\n strQuery.append(\" order by cr_prcdate desc \\n\");\r\n\r\n\t\t //pstmt = conn.prepareStatement(strQuery.toString());\r\n\t\t pstmt = new LoggableStatement(conn, strQuery.toString());\r\n\t\t int CNT = 0;\r\n\t \tpstmt.setString(++CNT, L_ItemId);\r\n\t \tif (!Cbo_ReqCd.equals(\"ALL\")) pstmt.setString(++CNT, Cbo_ReqCd);\r\n\t \tif (Cbo_ReqCd.equals(\"ALL\") || Cbo_ReqCd.equals(\"04\")) pstmt.setString(++CNT, L_ItemId);\r\n\t \tecamsLogger.error(((LoggableStatement)pstmt).getQueryString());\r\n\t \trs = pstmt.executeQuery();\r\n\t\t while (rs.next()){\r\n\t\t\t\trst = new HashMap<String,String>();\r\n\t\t\t\t//rst.put(\"NO\",Integer.toString(rs.getRow()));\r\n\t\t\t\trst.put(\"SubItems1\",rs.getString(\"cr_acptdate\"));//rs.getString(\"cr_acptdate\").substring(0,rs.getString(\"cr_acptdate\").length()-2)\r\n\t\t\t\trst.put(\"SubItems2\",rs.getString(\"cm_username\"));\r\n\r\n\t\t\t\trst.put(\"SubItems3\",rs.getString(\"cm_codename\"));\r\n\t\t\t\tif (rs.getString(\"cr_acptno\").substring(4,6).equals(\"04\")){\r\n\t\t\t\t\tstrQuery.setLength(0);\r\n\t\t\t\t\tstrQuery.append(\"select cm_codename from cmm0020 where cm_macode='CHECKIN' and cm_micode=? \\n\");\r\n\t\t\t\t pstmt2 = conn.prepareStatement(strQuery.toString());\r\n\t\t\t\t pstmt2.setString(1, rs.getString(\"cr_qrycd\"));\r\n\t\t\t \trs2 = pstmt2.executeQuery();\r\n\t\t\t \tif (rs2.next())\r\n\t\t\t \t\trst.put(\"SubItems3\",rs.getString(\"cm_codename\") + \"[\" + rs2.getString(\"cm_codename\") + \"]\");\r\n\t\t\t \trs2.close();\r\n\t\t\t \tpstmt2.close();\r\n }\r\n rst.put(\"qrycd\", rs.getString(\"qrycd\"));\r\n rst.put(\"SubItems4\",rs.getString(\"cr_acptno\").substring(6));\r\n\r\n if (!rs.getString(\"qrycd\").equals(\"04\")){\r\n\t rst.put(\"SubItems5\",\"\");\r\n }else{\r\n \tstrQuery.setLength(0);\r\n \tstrQuery.append(\"select cm_codename from cmm0020 \\n\");\r\n \tstrQuery.append(\"where cm_macode='REQPASS' and cm_micode=? \\n\");//cr_passok\r\n \tpstmt2 = conn.prepareStatement(strQuery.toString());\r\n \tpstmt2.setString(1, rs.getString(\"cr_passok\"));\r\n\t\t\t \trs2 = pstmt2.executeQuery();\r\n\t\t\t \tif (rs2.next())\r\n\t\t\t \t\trst.put(\"SubItems5\",rs2.getString(\"cm_codename\"));\r\n\t\t\t \trs2.close();\r\n\t\t\t \tpstmt2.close();\r\n\r\n\t\t\t\t\tif (rs.getString(\"cr_aplydate\") != null){\r\n\t if (rs.getString(\"cr_aplydate\").equals(\"9\"))\r\n\t \trst.put(\"SubItems5\",\"적용제외\");\r\n\t else\r\n\t \trst.put(\"SubItems5\",\"적용일시적용[\"+rs.getString(\"cr_aplydate\").substring(0,4)\r\n\t \t\t\t+\"/\"+rs.getString(\"cr_aplydate\").substring(4,6)+\"/\"+rs.getString(\"cr_aplydate\").substring(6,8)\r\n\t \t\t\t+\" \"+rs.getString(\"cr_aplydate\").substring(8,10)+\":\"+rs.getString(\"cr_aplydate\").substring(10,12)+\"]\");\r\n\t\t\t\t\t}\r\n }\r\n\r\n if (rs.getString(\"cr_prcdate\") != null){\r\n\t if (rs.getString(\"cr_prcdate\").length() > 0){\r\n\t \tif (rs.getString(\"cr_status\").equals(\"3\"))\r\n\t\t \t rst.put(\"SubItems6\", \"[반송]\" + rs.getString(\"cr_prcdate\"));//rs.getString(\"cr_prcdate\").substring(5,rs.getString(\"cr_prcdate\").length()-2)\r\n\t \telse\r\n\t \t rst.put(\"SubItems6\", rs.getString(\"cr_prcdate\"));//rs.getString(\"cr_prcdate\").substring(5,rs.getString(\"cr_prcdate\").length()-2)\r\n\t \t//rst.put(\"SubItems6\", rs.getString(\"cr_prcdate\").substring(5,7) + \"/\" +\r\n\t \t\t//rs.getString(\"cr_prcdate\").substring(8,10) + \" \" +\r\n\t \t\t//rs.getString(\"cr_prcdate\").substring(10,12) + \":\" +\r\n\t \t\t//rs.getString(\"cr_prcdate\").substring(12,14) + \":\" +\r\n\t \t\t//rs.getString(\"cr_prcdate\").substring(14));\r\n\t }\r\n } else {\r\n \trst.put(\"SubItems6\",\"진행중\");\r\n }\r\n if ( rs.getString(\"cr_sayu\") !=null ){\r\n \trst.put(\"SubItems7\", rs.getString(\"cr_sayu\"));//신청사유\r\n } else {\r\n \trst.put(\"SubItems7\", \"\");//신청사유\r\n }\r\n \r\n if ( rs.getString(\"cr_itsmid\") != null ) {\r\n \trst.put(\"srinfo\", \"[\" + rs.getString(\"cr_itsmid\") + \"]\" + rs.getString(\"cr_itsmtitle\") );\r\n } else {\r\n \trst.put(\"srinfo\", \"\" );\r\n }\r\n rst.put(\"SubItems8\", rs.getString(\"cr_acptno\"));\r\n rst.put(\"SubItems9\", rs.getString(\"cr_status\"));\r\n rtList.add(rst);\r\n rst = null;\r\n\t\t }\r\n\t\t rs.close();\r\n\t\t pstmt.close();\r\n\t\t conn.close();\r\n\t\t rs = null;\r\n\t\t pstmt = null;\r\n\t\t conn = null;\r\n\r\n\t\t\treturn rtList.toArray();\r\n\r\n\t\t} catch (SQLException sqlexception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\tsqlexception.printStackTrace();\r\n\t\t\tthrow sqlexception;\r\n\t\t} catch (Exception exception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow exception;\r\n\t\t}finally{\r\n\t\t\tif (strQuery != null)\tstrQuery = null;\r\n\t\t\tif (rtList != null)\trtList = null;\r\n\t\t\tif (rs != null) try{rs.close();}catch (Exception ex){ex.printStackTrace();}\r\n\t\t\tif (pstmt != null) try{pstmt.close();}catch (Exception ex2){ex2.printStackTrace();}\r\n\t\t\tif (conn != null){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tConnectionResource.release(conn);\r\n\t\t\t\t}catch(Exception ex3){\r\n\t\t\t\t\tex3.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n }", "public void prepare_intent(int requestCode, long invoking_id){\n Intent intent = new Intent(BilansView.this, BilansAdd.class);\n\n if (invoking_id > 0) {\n HashMap<String, String> map = GetItem(invoking_id);\n intent.putExtra(\"item_id\", invoking_id);\n String timestamp[] = map.get(\"data\").split(\" \");\n intent.putExtra(\"data\", timestamp[0]);\n intent.putExtra(\"time\", timestamp[1]);\n intent.putExtra(\"tytul\", map.get(\"tytul\"));\n } else {\n intent.putExtra(\"data\", Utils.datenow());\n intent.putExtra(\"time\", Utils.timenow());\n intent.putExtra(\"amount\", \"\");\n }\n startActivityForResult(intent, requestCode);\n }", "protected RequestLine createRequestLine(String method, String uri, ProtocolVersion ver) {\n/* 337 */ return new BasicRequestLine(method, uri, ver);\n/* */ }", "public Set<RequestItem> getAllData() {\n\n RequestItem requestItem;\n Set<RequestItem> result = new HashSet<>();\n String selectQuery = \"select * from \" + DatabaseHelper.TABLE_NAME + \" ORDER BY _id ASC\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n try {\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n requestItem = new RequestItem();\n requestItem._id = cursor.getString(0);\n requestItem.requestSmilePercentage = cursor.getInt(1);\n requestItem.requestDateStart = cursor.getString(2);\n requestItem.requestDateEnd = cursor.getString(3);\n requestItem.requestUserName = cursor.getString(4);\n\n result.add(requestItem);\n\n }while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "private void processFileLine(String line, RevisionInfo revInfo, Map<String, List<RevisionInfo>> result) {\r\n if (line.matches(FILE_LINE_REGEX)) {\r\n String[] segs = line.split(TAB);\r\n List<RevisionInfo> list = result.get(segs[2]);\r\n if (list == null) {\r\n list = new ArrayList<RevisionInfo>();\r\n result.put(segs[2], list);\r\n }\r\n list.add(new RevisionInfo(revInfo.getAuthor(), revInfo.getDate(), revInfo.getComment(), Integer\r\n .parseInt(segs[0])));\r\n }\r\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String item = request.getParameter(\"item\");\n System.out.println(item);\n HttpSession session = request.getSession();\n\n // get the previous items in a ArrayList\n ArrayList<String> previousItems = (ArrayList<String>) session.getAttribute(\"previousItems\");\n if (previousItems == null) {\n previousItems = new ArrayList<>();\n previousItems.add(item);\n session.setAttribute(\"previousItems\", previousItems);\n } else {\n // prevent corrupted states through sharing under multi-threads\n // will only be executed by one thread at a time\n synchronized (previousItems) {\n previousItems.add(item);\n }\n }\n\n response.getWriter().write(String.join(\",\", previousItems));\n }", "private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}", "public PaymentRequestItem(OleInvoiceItem poi, OlePaymentRequestDocument preq, HashMap<String, ExpiredOrClosedAccountEntry> expiredOrClosedAccountList) {\r\n\r\n // copy base attributes w/ extra array of fields not to be copied\r\n PurApObjectUtils.populateFromBaseClass(PurApItemBase.class, poi, this, PurapConstants.PREQ_ITEM_UNCOPYABLE_FIELDS);\r\n\r\n setItemDescription(poi.getItemDescription());\r\n\r\n //New Source Line should be set for PaymentRequestItem\r\n resetAccount();\r\n\r\n // set up accounts\r\n List accounts = new ArrayList();\r\n\r\n for (PurApAccountingLine account : poi.getSourceAccountingLines()) {\r\n InvoiceAccount poa = (InvoiceAccount) account;\r\n\r\n // check if this account is expired/closed and replace as needed\r\n SpringContext.getBean(AccountsPayableService.class).processExpiredOrClosedAccount(poa, expiredOrClosedAccountList);\r\n\r\n //KFSMI-4522 copy an accounting line with zero dollar amount if system parameter allows\r\n if (poa.getAmount().isZero()) {\r\n if (SpringContext.getBean(AccountsPayableService.class).canCopyAccountingLinesWithZeroAmount()) {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n } else {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n }\r\n\r\n this.setSourceAccountingLines(accounts);\r\n this.getUseTaxItems().clear();\r\n //List<PurApItemUseTax> newUseTaxItems = new ArrayList<PurApItemUseTax>();\r\n /// this.setUseTaxItems(newUseTaxItems);\r\n //copy use tax items over, and blank out keys (useTaxId and itemIdentifier)\r\n /*\r\n this.getUseTaxItems().clear();\r\n for (PurApItemUseTax useTaxItem : poi.getUseTaxItems()) {\r\n PaymentRequestItemUseTax newItemUseTax = new PaymentRequestItemUseTax(useTaxItem);\r\n this.getUseTaxItems().add(newItemUseTax);\r\n\r\n }\r\n */\r\n\r\n // clear amount and desc on below the line - we probably don't need that null\r\n // itemType check but it's there just in case remove if it causes problems\r\n // also do this if of type service\r\n if ((ObjectUtils.isNotNull(this.getItemType()) && this.getItemType().isAmountBasedGeneralLedgerIndicator())) {\r\n // setting unit price to be null to be more consistent with other below the line\r\n // this.setItemUnitPrice(null);\r\n }\r\n\r\n // copy custom\r\n /*Modified for the jira -5458*/\r\n this.purchaseOrderItemUnitPrice = poi.getPurchaseOrderItem()!=null ? poi.getPurchaseOrderItem().getItemUnitPrice() : null;\r\n// this.purchaseOrderCommodityCode = poi.getPurchaseOrderCommodityCd();\r\n\r\n // set doc fields\r\n this.setPurapDocumentIdentifier(preq.getPurapDocumentIdentifier());\r\n this.setPurapDocument(preq);\r\n }", "java.util.List<io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row> \n getRowList();", "@RequestMapping(value = \"/getRequestDetailViewData\", method = RequestMethod.GET)\r\n\tpublic ModelAndView getRequestDetailViewData(HttpServletRequest req, HttpServletResponse res) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: getRequestDetailViewData()\");\r\n\t\ttry {\r\n\t\t\tString jobId = (String) req.getParameter(\"jobId\");\r\n\t\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\t\tparamMap.put(\"jobId\", jobId);\r\n\t\t\tModelAndView modelAndView = new ModelAndView(\"report/groupDownloadFiles\");\r\n\t\t\tList<JobTrackingTO> requestList = reportService.getRequestDetail(paramMap);\r\n\t\t\tString replist = JsonUtil.convertToJsonAdmin(requestList);\r\n\t\t\tmodelAndView.addObject(\"requestView\", requestList);\r\n\t\t\tString requestViewJsonString = JsonUtil.convertToJsonAdmin(requestList);\r\n\t\t\tlogger.log(IAppLogger.INFO, requestViewJsonString);\r\n\t\t\tres.setContentType(\"application/json\");\r\n\t\t\tres.getWriter().write(requestViewJsonString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.log(IAppLogger.ERROR, e.getMessage(), e);\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tlogger.log(IAppLogger.INFO, \"Exit: getRequestDetailViewData()\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/changeRequest/getZACRLineItemsByCRId/{crID}\", method = RequestMethod.GET, produces = \"application/json\")\n\tpublic @ResponseBody\n\tServiceResponse<List<ZipAlignmentChangeRequestDetails>> getZipAlignmentChangeRequestDetailsByChangeRequest(@PathVariable(\"crID\") Long crID, HttpServletRequest request) {\n\n\t\tServiceStatus serviceStatus = null;\n\t\tServiceResponse<List<ZipAlignmentChangeRequestDetails>> serviceResponse = new ServiceResponse<List<ZipAlignmentChangeRequestDetails>>();\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tServiceResult serviceResult = new ServiceResult();\n\t\tChangeRequest changeRequest = new ChangeRequest();\n\t\tchangeRequest.setId(crID);\n\t\tUserDetails user = ModelAssembler.getDefaultUserDetails();\n\n\t\ttry {\n\t\t\tserviceResult.setDetail(changeRequestService.getZipAlignmentChangeRequestDetailsByChangeRequest(changeRequest, user));\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.OK, \"200 OK\");\n\t\t} catch (ChangeRequestServiceException e) {\n\t\t\tserviceResult.setDetail(\"Exception occured \" + e.getMessage());\n\t\t\tserviceStatus = new ServiceStatus(StatusCode.SERVER_ERROR, \"500 ERROR\");\n\t\t}\n\t\tserviceResponse.setStatus(serviceStatus);\n\t\tserviceResponse.setResult(serviceResult);\n\t\tLOGGER.info(\" Returning REST response with Result..\" + serviceResult.getDetail() + \" and status \" + serviceResponse.getStatus().getCode().getCode() + \"-\"\n\t\t\t\t+ serviceResponse.getStatus().getMessage());\n\t\treturn serviceResponse;\n\t}", "public void traverse(BusIfc bus)\n {\n SaleCargoIfc cargo = (SaleCargoIfc)bus.getCargo();\n SaleReturnLineItemIfc item = cargo.getLineItem();\n SaleReturnTransactionIfc transaction = cargo.getTransaction();\n\n //make a journal entry\n JournalManagerIfc journal =\n (JournalManagerIfc)Gateway.getDispatcher().getManager(JournalManagerIfc.TYPE);\n JournalFormatterManagerIfc formatter =\n (JournalFormatterManagerIfc)Gateway.getDispatcher().getManager(JournalFormatterManagerIfc.TYPE);\n if (journal != null)\n {\n if (!item.isKitComponent()) //KitComponentLineItems are journaled by their parent header\n {\n StringBuffer sb = new StringBuffer();\n EYSDate dob = transaction.getAgeRestrictedDOB();\n String itemID = null;\n if(item.getRelatedItemSequenceNumber() > -1)\n {\n itemID = transaction.getLineItems()[item.getRelatedItemSequenceNumber()].getItemID();\n }\n sb.append(formatter.toJournalString(item, dob, itemID));\n\n if (transaction.getTransactionType() == TransactionIfc.TYPE_ORDER_INITIATE) // add status\n {\n// sb.append(Util.EOL).append(\" Status: New\");\n//\n \tString transactionSaleStatus = I18NHelper.getString(I18NConstantsIfc.EJOURNAL_TYPE, JournalConstantsIfc.TRANSACTION_SALE_STATUS, null);\n \tsb.append(Util.EOL).append(transactionSaleStatus);\n }\n\n journal.journal(cargo.getOperator().getLoginID(),\n transaction.getTransactionID(),\n sb.toString());\n }\n }\n else\n {\n logger.error(\"No JournalManager found\");\n }\n\n //Show item on Line Display device\n POSDeviceActions pda = new POSDeviceActions((SessionBusIfc)bus);\n try\n {\n pda.lineDisplayItem(item);\n }\n catch (DeviceException e)\n {\n logger.warn(\"Unable to use Line Display: \" + e.getMessage() + \"\");\n }\n\n }", "@Override\n public void takeOrder(List<Item> restItem, int constID) {\n\n }", "@SuppressWarnings(\"rawtypes\")\n public MapList getInProcessCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n\n try {\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&current==\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_PSS_CR_INPROCESS);\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n if (mapList.size() > 0) {\n\n Iterator<Map<String, String>> itrCR = mapList.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n }\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n return mapList;\n } catch (Exception ex) {\n logger.error(\"Error in getInProcessCRs: \", ex);\n throw ex;\n }\n }", "private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }", "protected Bundle m2197b(Request request) {\n String join;\n Object obj;\n Bundle bundle = new Bundle();\n if (!C0475Q.m992a(request.m1128h())) {\n join = TextUtils.join(\",\", request.m1128h());\n String str = \"scope\";\n bundle.putString(str, join);\n m1175a(str, join);\n }\n bundle.putString(\"default_audience\", request.m1124d().m1182a());\n bundle.putString(\"state\", m1172a(request.m1122b()));\n AccessToken c = AccessToken.m446c();\n String j = c != null ? c.m456j() : null;\n join = \"access_token\";\n if (j == null || !j.equals(m2194g())) {\n C0475Q.m976a(this.f980b.m1158c());\n obj = \"0\";\n } else {\n bundle.putString(join, j);\n obj = \"1\";\n }\n m1175a(join, obj);\n return bundle;\n }", "private void getSettledBatchListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_SETTLED_BATCH_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchListOptions(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}", "public void okFindITEM1()\n {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPQuery q;\n int headrowno;\n\n q = trans.addQuery(hse_casualty_accident_line_blk);\n q.addWhereCondition(\"PROJ_NO = ? AND ID = ?\");\n q.addParameter(\"PROJ_NO\", headset.getValue(\"PROJ_NO\"));\n q.addParameter(\"ID\", headset.getValue(\"ID\"));\n q.includeMeta(\"ALL\");\n headrowno = headset.getCurrentRowNo();\n mgr.querySubmit(trans,hse_casualty_accident_line_blk);\n headset.goTo(headrowno);\n }", "@Override\r\n\tpublic String listDeal() {\n\t\trequest.put(\"lineName\",lineName);\r\n\t\t\r\n\t\tList<HeadLine> dataList=null;\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tLong count=0L;\r\n\t\tif(!SysFun.isNullOrEmpty(lineName))\r\n\t\t{\r\n\t\t\tcount=headLineService.countByName(lineName);\r\n\t\t\tpagerItem.changeRowCount(count);\r\n\t\t\tdataList=headLineService.pagerByName(lineName, pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcount=headLineService.count();\r\n\t\t\tpagerItem.changeRowCount(count);\r\n\t\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\t}\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}", "public List<RequestObject> getMyRequests(String username) {\n\n List<RequestObject> myRequestObjectList = new ArrayList<RequestObject>();\n\n\n String selectQuery = \"SELECT r.\" + COLUMN_REQUEST_ID + \", r.\" + COLUMN_USERNAME + \", r.\" + COLUMN_AMOUNT +\n \", r.\" + COLUMN_REWARD + \", r.\" + COLUMN_STATUS + \", s.\" + COLUMN_SOUVENIR_NAME + \", s.\" + COLUMN_COUNTRY_SOUVENIR +\n \", s.\" + COLUMN_DESCRIPTION_SOUVENIR + \", s.\" + COLUMN_PRICE + \", p.\" + COLUMN_EMAIL + \", p.\" + COLUMN_FIRST_NAME + \", p.\" + COLUMN_SUR_NAME +\n \", p.\" + COLUMN_BIRTHDAY + \", p.\" + COLUMN_COUNTRY_USER + \", p.\" + COLUMN_DESCRIPTION_USER +\n \" FROM \" + TABLE_REQUEST + \" r \" +\n \"INNER JOIN \" + TABLE_SOUVENIR + \" s ON s.\" + COLUMN_SOUVENIR_ID + \" = r.\" + COLUMN_SOUVENIR_ID +\n \" INNER JOIN \" + TABLE_PROFILE + \" p ON p.\" + COLUMN_USERNAME + \" = r.\" + COLUMN_USERNAME +\n \" WHERE r.\" + COLUMN_USERNAME + \" = '\" + username + \"'\";\n\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n RequestObject requestObject = new RequestObject();\n\n requestObject.setFirstNameRequest(cursor.getString(cursor.getColumnIndex(COLUMN_FIRST_NAME)));\n requestObject.setSurnameRequest(cursor.getString(cursor.getColumnIndex(COLUMN_SUR_NAME)));\n requestObject.setEmailRequest(cursor.getString(cursor.getColumnIndex(COLUMN_EMAIL)));\n requestObject.setBirthdayRequest(cursor.getString(cursor.getColumnIndex(COLUMN_BIRTHDAY)));\n requestObject.setCountryUserRequest(cursor.getString(cursor.getColumnIndex(COLUMN_COUNTRY_USER)));\n requestObject.setDescriptionUserRequest(cursor.getString(cursor.getColumnIndex(COLUMN_DESCRIPTION_USER)));\n requestObject.setUsernameRequest(cursor.getString(cursor.getColumnIndex(COLUMN_USERNAME)));\n requestObject.setRequestId(cursor.getInt(cursor.getColumnIndex(COLUMN_REQUEST_ID)));\n requestObject.setAmount(cursor.getString(cursor.getColumnIndex(COLUMN_AMOUNT)));\n requestObject.setReward(cursor.getString(cursor.getColumnIndex(COLUMN_REWARD)));\n requestObject.setPrice(cursor.getString(cursor.getColumnIndex(COLUMN_PRICE)));\n requestObject.setStatus(cursor.getString(cursor.getColumnIndex(COLUMN_STATUS)));\n requestObject.setSouvenirName(cursor.getString(cursor.getColumnIndex(COLUMN_SOUVENIR_NAME)));\n requestObject.setCountrySouvenir(cursor.getString(cursor.getColumnIndex(COLUMN_COUNTRY_SOUVENIR)));\n requestObject.setDescriptionSouvenir(cursor.getString(cursor.getColumnIndex(COLUMN_DESCRIPTION_SOUVENIR)));\n\n // Adding user record to list\n myRequestObjectList.add(requestObject);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return user list\n return myRequestObjectList;\n\n }" ]
[ "0.5544241", "0.5451989", "0.52479744", "0.52341735", "0.5181681", "0.5086371", "0.50516987", "0.503488", "0.5026267", "0.5022441", "0.50118905", "0.49836576", "0.49645314", "0.49587077", "0.49332005", "0.4924931", "0.49026346", "0.48824725", "0.4871467", "0.48646253", "0.4862629", "0.48575068", "0.4834768", "0.48345903", "0.48330933", "0.48271734", "0.4824925", "0.48177946", "0.48138735", "0.48138", "0.48090428", "0.47956023", "0.47651997", "0.47642294", "0.4762795", "0.4759654", "0.47587392", "0.47550267", "0.47493583", "0.4743752", "0.47434834", "0.4742946", "0.473534", "0.47298476", "0.47232842", "0.4711665", "0.46972463", "0.46940386", "0.467678", "0.46763942", "0.4675322", "0.46727085", "0.46700755", "0.46683985", "0.4660695", "0.46552107", "0.46551874", "0.465302", "0.46525484", "0.46506873", "0.46500638", "0.46441972", "0.46404594", "0.4637734", "0.46307775", "0.4630359", "0.4625051", "0.46218222", "0.4617751", "0.46104306", "0.46092668", "0.46044245", "0.45986593", "0.45973718", "0.4597222", "0.45965627", "0.45926327", "0.45872426", "0.45869485", "0.4586885", "0.45855233", "0.45851067", "0.45819893", "0.45727587", "0.45720437", "0.45719203", "0.4566385", "0.45607972", "0.45577696", "0.45497638", "0.45479476", "0.45394564", "0.45373523", "0.45363814", "0.45325565", "0.4528631", "0.45245042", "0.45214856", "0.45182878", "0.4513617", "0.4511217" ]
0.0
-1
Log.i("tag", "url=" + url); Log.i("tag", "userAgent=" + userAgent); Log.i("tag", "contentDisposition=" + contentDisposition); Log.i("tag", "mimetype=" + mimetype); Log.i("tag", "contentLength=" + contentLength);
@Override public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logRequest(int method, String url) {\n switch (method) {\n\n case Method.GET:\n Log.d(TAG, \"Method : GET \");\n\n break;\n case Method.POST:\n Log.d(TAG, \"Method : POST \");\n break;\n default:\n break;\n }\n Log.d(TAG, \"Request Url : \" + url);\n Log.d(TAG, \"Request Headers : \");\n logHeaders(mRequestHeaders);\n Log.d(TAG, \"Request Params : \");\n logParams(mRequestParams);\n logRequestBodyContent();\n mRequestTime = currentDateTime();\n\n }", "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "int getContentLength();", "@Override\n\t\t\tpublic void onFailure(Request request, IOException e) {\n\t\t\t\t Log.i(\"info\",\"hehe\");\n\t\t\t}", "@Override\n public void onFailure(Request request, IOException e) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }", "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }", "private String getRequest(String requestUrl) throws IOException {\n URL url = new URL(requestUrl);\n \n Log.d(TAG, \"Opening URL \" + url.toString());\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setDoInput(true);\n urlConnection.connect();\n String response = streamToString(urlConnection.getInputStream());\n \n return response;\n }", "public int contentLength();", "@Override\n public void onResponse(String response) {\n response = response.substring(response.indexOf(\"og:video:url\\\" content=\\\"\") + 23);\n response = response.substring(0, response.indexOf(\".mp4\") + 4);\n UrlFilm = response;\n Log.i(\"HTML\", \" \" + response);\n }", "@Override\n public void onResponse(String response) {\n response = response.substring(response.indexOf(\"og:video:url\\\" content=\\\"\") + 23);\n response = response.substring(0, response.indexOf(\".mp4\") + 4);\n UrlFilm = response;\n Log.i(\"HTML\", \" \" + response);\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "String getContentDisposition();", "@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }", "private void http_handler(BufferedReader input, DataOutputStream output) {\n int method = 0; //1 get, 2 head, 0 not supported\n String http = new String(); //a bunch of strings to hold\n String path = new String(); //the various things, what http v, what path,\n String file = new String(); //what file\n String user_agent = new String(); //what user_agent\n try {\n //This is the two types of request we can handle\n //GET /index.html HTTP/1.0\n //HEAD /index.html HTTP/1.0\n String tmp = input.readLine(); //read from the stream\n String tmp2 = new String(tmp);\n String line = input.readLine();\n String header = \"\";\n while (line != null && !line.equals(\"\")) {\n header += line;\n line = input.readLine();\n }\n if(header.contains(\"Content-Length\")){\n int offset = header.indexOf(\"Content-Length: \") + \"Content-Length: \".length();\n int cLength = Integer.parseInt(header.substring(offset, header.length()));\n char[] buffer = new char[cLength];\n input.read(buffer);\n value = new String(buffer);\n }\n tmp.toUpperCase(); //convert it to uppercase\n\n if (tmp.startsWith(\"GET\")) { //compare it is it GET\n method = 1;\n } //if we set it to method 1\n if (tmp.startsWith(\"OPTIONS\")) { //same here is it OPTIONS\n method = 2;\n } //set method to 2\n if (tmp.startsWith(\"POST\")) { //same here is it POST\n method = 3;\n } //set method to 3\n\n if (method == 0) { // not supported\n try {\n output.writeBytes(construct_http_header(501, 0));\n output.close();\n return;\n } catch (Exception e3) { //if some error happened catch it\n s(\"error:\" + e3.getMessage());\n } //and display error\n }\n //}\n\n //tmp contains \"GET /index.html HTTP/1.0 .......\"\n //find first space\n //find next space\n //copy whats between minus slash, then you get \"index.html\"\n //it's a bit of dirty code, but bear with me...\n\n int start = 0;\n int end = 0;\n for (int a = 0; a < tmp2.length(); a++) {\n if (tmp2.charAt(a) == ' ' && start != 0) {\n end = a;\n break;\n }\n if (tmp2.charAt(a) == ' ' && start == 0) {\n start = a;\n }\n }\n path = tmp2.substring(start + 1, end); //fill in the path\n } catch (Exception e) {\n s(\"error\" + e.getMessage());\n } //catch any exception\n\n try {\n //send response header\n output.writeBytes(construct_http_header(200, 5));\n\n if (method == 1) { //1 is GET 2 is head and skips the body\n //Response with data from kinect (persoon aanwezig, positie, ...)\n //output.writeBytes(response);\n }\n if (method == 2) {\n String msg = \"\";\n //Description of the sensor sent back (OPTIONS)\n if (path.equals(\"/\")) {\n msg = \"<link rel=\\\"description\\\" type=\\\"text/n3\\\" href=\\\"/service\\\">\\n<link rel=\\\"goal\\\" type=\\\"text/n3\\\" href=\\\"/serviceGoal\\\">\";\n }\n if (path.equals(\"/service\")) {\n msg = \"@prefix sensor: <http://example.org/sensor/>.\\n\";\n msg += \"@prefix ex: <http://example.org/example/>. \\n\";\n msg += \"@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. \\n\";\n msg += \"@prefix environment: <http://example.org/environment/>. \\n\";\n msg += \"@prefix http: <http://www.w3.org/2011/http#>. \\n\";\n msg += \"@prefix tmpl: <http://purl.org/restdesc/http-template#>. \\n\";\n msg += \"{ \\n\";\n msg += \"?sensor a sensor:Kinect. \\n\";\n msg += \"} \\n\";\n msg += \"=> \\n\";\n msg += \"{ \\n\";\n msg += \"_:request http:methodName \\\"POST\\\"; \\n\";\n msg += \"tmpl:requestURI (?sensor \\\"/lightValue\\\"); \\n\";\n msg += \"http:body ?environmentLight;\\n\";\n msg += \"http:resp [ http:body ?lightingValue]. \\n\";\n msg += \"?environmentLight a environment:lightingCondition.\\n\";\n msg += \"?sensor sensor:lightingCondition ?lightingValue. \\n\";\n msg += \"?lightingValue a xsd:String. \\n\";\n msg += \"}. \\n\";\n msg += \"<http://\" + ip + \"/#sensor> a sensor:Kinect.\\n\";\n }\n if (path.equals(\"/serviceGoal\")) {\n msg = \"@prefix sensor: <http://example.org/sensor/>. \\n\";\n msg += \"@prefix environment: <http://example.org/environment/>. \\n\";\n msg += \"{ \\n\";\n msg += \"<http://\" + ip + \"/#sensor> sensor:lightingCondition ?value. \\n\";\n msg += \"} \\n\";\n msg += \"=> \\n\";\n msg += \"{ \\n\";\n msg += \"<http://\" + ip + \"/#sensor> sensor:lightingCondition ?value. \\n\";\n msg += \"}. \\n\";\n }\n output.writeBytes(msg);\n }\n if (method == 3) {\n //Add something to sensor (LightSensor data)\n if (path.equals(\"/lightValue\")) {\n //get Light Value, send to kinect\n String lightValue = value.substring(value.indexOf(\"=\") + 1, value.length()).trim();\n EnvironmentVars.getInstance().setLightValue(lightValue);\n output.writeBytes(\"OK\");\n }\n if (path.equals(\"/personPresent\")) {\n EnvironmentVars.getInstance().setPersonPresent(true);\n output.writeBytes(\"OK\");\n }\n }\n output.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\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 }", "private static void logInfo(Request req, Path tempFile) throws IOException, ServletException {\n System.out.println(\"Uploaded file '\" + getFileName(req.raw().getPart(\"uploaded_file\")) + \"' saved as '\" + tempFile.toAbsolutePath() + \"'\");\n }", "@Test\n public void getRequest1() {\n str = METHOD_GET + \"/JavaPower.gif \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.devresource.org\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n \"Range-Unit: 3388 | 1024\";\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/JavaPower.gif\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(\"Range-Unit\"), \"3388 | 1024\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "@Override\r\n public void onErrorResponse(VolleyError error) {\n System.out.print(error.toString());\r\n Log.d(\"TAG\", error.toString());\r\n }", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Log.e(\"JSON\", new String(response));\n\n\n }", "private void doClickOnButton() {\n EditText et = (EditText) findViewById(R.id.editText);\n String url = et.getText().toString();\n MessageDigest mdEnc = null;\n try{\n mdEnc = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n mdEnc.update(url.getBytes(), 0, url.length());\n String md5 = new BigInteger(1, mdEnc.digest()).toString(16);\n System.out.println(md5);\n\n try {\n Log.v(\"log1\", \"log1\");\n URL u = new URL(url);\n final URLConnection c = u.openConnection();\n File internal = getFilesDir();\n String test = internal.toString();\n Button b = (Button) findViewById(R.id.button);\n b.setText(test);\n final File f = new File(internal, md5);\n if (f.exists()){\n Log.v(\"log2\", \"log2\");\n FileInputStream is = new FileInputStream(f);\n\n InputStreamReader isr = new InputStreamReader(is);\n\n BufferedReader br = new BufferedReader(isr);\n\n\n StringBuilder sb = new StringBuilder();\n String line;\n while( (line = br.readLine()) != null) {\n sb.append(line);\n }\n String fileString = sb.toString();\n\n Log.v(\"log72\", \"log2\");\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(sb.toString(), \"crash\");\n t.setText(Html.fromHtml(fileString));\n }\n else{\n Log.v(\"log3\", \"log3\");\n //Créer le fichier\n f.createNewFile();\n Log.v(\"log7\", \"log7\");\n //récupérer les données de la page via serveur\n //du coup Thread\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n Log.v(\"log4\", \"log4\");\n BufferedReader br = null;\n try {\n Log.v(\"log5\", \"log5\");\n InputStream is = c.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n br = new BufferedReader(isr);\n final StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null){\n Log.v(\"log125\", \"log1\");\n sb.append(line);\n line = br.readLine();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // System.out.println(finalInputLine);\n FileOutputStream fos = null;\n try {\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(\"crash\", sb.toString());\n t.setText(Html.fromHtml(sb.toString()));\n Log.v(\"log123\", \"log1\");\n fos = new FileOutputStream(f);\n OutputStreamWriter fosw = new OutputStreamWriter(fos);\n BufferedWriter wr = new BufferedWriter(fosw);\n wr.write(sb.toString());\n Log.v(\"log12\", \"log1\");\n\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n\n }\n catch (IOException e) {\n Log.v(\"log6\", \"log6\");\n e.printStackTrace();\n }\n\n\n };\n });\n t.start();\n //paf on récupère\n //poof on met ça dans un fichier\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void toLog(HttpUtils.HttpResult httpResult) {\n Log.d(DEBUG_REQUEST, \"request url: \" + url);\n Log.d(DEBUG_REQUEST, \"request envelope: \" + envelope);\n Log.d(DEBUG_REQUEST, \"request type: \" + requestType);\n if (httpResult != null) {\n Log.d(DEBUG_REQUEST, \"response code: \" + httpResult.getCode());\n Log.d(DEBUG_REQUEST, \"response envelope: \" + httpResult.getEnvelope());\n } else {\n Log.d(DEBUG_REQUEST, \"response null\");\n }\n }", "long getContentLength() throws IOException;", "@Override\r\n\t\tprotected File doInBackground(String... arg0) {\n\t\t\t URL url;\r\n\t\t\t file = null;\r\n\t\t\t int downloadedSize = 0 ;\r\n\t\t\t long totalsize=0;\r\n\t\t\t Float per = 0f;\r\n\t\t\t String extStorageDirectory = Environment.getExternalStorageDirectory().toString();\r\n\t\t\t File folder = new File(extStorageDirectory, \"Ioannina_GTG\");\r\n\t\t\t String fileName = url_attach.substring( url_attach.lastIndexOf('/')+1, url_attach.length() );\r\n\t\t\t\tSystem.out.println(fileName);\r\n\t\t\t\t\t folder.mkdir();\r\n\t\t\t\t\t file = new File(folder, fileName);\r\n\t\t\t\t\t try {\r\n\t\t\t\t\t file.createNewFile();\r\n\t\t\t\t\t } catch (IOException e1) {\r\n\t\t\t\t\t e1.printStackTrace();\r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\ttry {\r\n\t\t\t\turl = new URL(arg0[0]);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\r\n\t\t \r\n\t\t urlConnection.setRequestMethod(\"GET\");\r\n\t\t urlConnection.setDoOutput(true);\r\n\t\t \r\n\t\t // connect\r\n\t\t urlConnection.connect();\r\n\t\t ////////////////////////////////////// \r\n\t\t HttpClient client=new DefaultHttpClient();\r\n\t\t\t\t\tURI website=new URI(arg0[0]);\r\n\t\t\t\t\tHttpGet request=new HttpGet();\r\n\t\t\t\t\trequest.setURI(website);\r\n\t\t\t\t\tHttpResponse response=client.execute(request);\r\n\t\t\t\t\tHttpEntity entity=response.getEntity();\r\n\t\t\t\t\tInputStream inputStream=null;\r\n\t\t\t\t\tif(entity!=null){\r\n\t\t\t\t\t\ttotalsize=entity.getContentLength();\r\n\t\t\t\t\t\tinputStream=entity.getContent();\r\n\t\t\t\t\t}\r\n\t\t /////////////////////////////////////////////////////////////////////////////// \r\n\t\t FileOutputStream fileOutput = new FileOutputStream(file);\r\n\t\t // InputStream inputStream = urlConnection.getInputStream();\r\n\t\t // totalsize = urlConnection.getContentLength();\r\n\t\t \r\n\t\t byte[] buffer = new byte[1024 * 1024]; \r\n\t\t int bufferLength = 0;\r\n\t\t \r\n\t\t while ((bufferLength = inputStream.read(buffer)) > 0) {\r\n\t\t fileOutput.write(buffer, 0, bufferLength);\r\n\t\t downloadedSize += bufferLength;\r\n\t\t System.out.println(\" the total size is :\"+totalsize );\r\n\t\t System.out.println(\" the buffer lenght is :\"+bufferLength );\r\n\t\t System.out.println(\" the downloaded size is :\"+downloadedSize );\r\n\t\t // per = ((float) downloadedSize / totalsize) * 100;\r\n\t\t per=(((float)downloadedSize*100)/totalsize);\r\n\t\t int intper=per.intValue();\r\n\t\t System.out.println(intper);\r\n\t\t pDialog.setProgress(intper);\r\n\t\t //pDialog.incrementProgressBy(per.intValue());\r\n\t\t // setText(\"Total PDF \"\r\n\t\t // + (totalsize / 1024)\r\n\t\t // + \" KB\\n\\nDownloading PDF \" + (int) per\r\n\t\t // + \"% complete\");\r\n\t\t }\r\n\t\t // close the output stream when complete //\r\n\t\t fileOutput.close();\r\n\t\t \r\n\t\t \r\n\t\t\t} catch (MalformedURLException 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 (IOException 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 (URISyntaxException 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 \r\n\t\t\t// for (int i = 0; i < 100; i++) {\r\n\t\t\t\t //publishProgress(10);\r\n\t\t\t\t\r\n\t\t\t\t \r\n\r\n\t\t\t// }\r\n\r\n\t\t\treturn file;\r\n\t\t}", "private String getURL(String feedUrl) {\n\tStringBuilder sb = null;\n\ttry {\n for(int i = 3; i>0; i--) {\n\t sb = new StringBuilder();\n URL url = new URL(feedUrl);\n//User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n//Accept-Language: en-us,en;q=0.5\n//Accept-Encoding: gzip,deflate\n//Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tHttpsURLConnection uc = (HttpsURLConnection) url.openConnection();\n\tHttpURLConnection uc = (HttpURLConnection) url.openConnection();\n\tuc.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\");\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n\tuc.setRequestProperty(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n\tuc.setRequestProperty(\"Accept-Language\", \"en-us,en;q=0.5\");\n\tuc.setRequestProperty(\"Accept-Encoding\", \"gzip,deflate\");\n\tuc.setRequestProperty(\"Accept-Charset\", \"ISO-8859-1,utf-8;q=0.7,*;q=0.7\");\n\tuc.setRequestProperty(\"Keep-Alive\", \"115\");\n\tuc.setRequestProperty(\"Connection\", \"keep-alive\");\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tif (userName != null && password != null) {\n//\t\tuc.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthenticationString);\n//\t}\n\t// ori setting??\n//\tuc.setReadTimeout(TIME_OUT);\n//\tuc.setFollowRedirects(true);\n//\tuc.setInstanceFollowRedirects(true);\n//\tuc.setAllowUserInteraction(true);\n\tuc.setDoOutput(true);\n\tuc.setDoInput(true);\n\tuc.setUseCaches(false);\n\tuc.setRequestMethod(\"POST\");\n\tuc.setRequestProperty(\"Content-Type\", \"text/xml\");\n\t\n\tBufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));//uc.getInputStream()\n\tString inputLine;\n//\t'aa7c.com')\" onmouseout=\"menuLayers.hide()\">Available</a>\n\tboolean refreshAgain = false;\n\twhile ((inputLine = in.readLine()) != null) {\n//\t\tSystem.out.println(inputLine);\n\t\tsb.append(inputLine);\n\t\tif( inputLine.contains(\"Refresh\") ) {\n\t\t\trefreshAgain = true;\n\t\t\tSystem.out.println(\"Refresh\");\n\t\t}\n\t}\n\tin.close();\n\tuc.disconnect();\t\t\n//\tRefresh\n\tif( refreshAgain ) {\n\t Thread.sleep(1000);\n\t}\n\telse break;\n }\n }catch(Exception ee){}\nreturn sb.toString();\n}", "public void DownloadFromUrl(Context ctx) {\n\t\ttry {\r\n\t\t\tURL url = new URL(link);\r\n\t\t\tString root = Environment.getExternalStorageDirectory().toString();\r\n\t\t\tif (type.contentEquals(\"image\")) {\r\n\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER_IMG);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\tLog.d(\"ImageManager\", \"download begining\");\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\t\t\t\tLog.d(\"ImageManager\", \"download url:\" + url);\r\n\t\t\t\tLog.d(\"ImageManager\", \"downloaded file name:\");\r\n\t\t\t\t/* Open a connection to that URL. */\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Define InputStreams to read from the URLConnection.\r\n\t\t\t\t */\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Read bytes to the Buffer until there is nothing more to\r\n\t\t\t\t * read(-1).\r\n\t\t\t\t */\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\tif (cancel)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Convert the Bytes read to a String. */\r\n\t\t\t\tif (!cancel) {\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\tLog.d(\"ImageManager\",\r\n\t\t\t\t\t\t\t\"download ready in\"\r\n\t\t\t\t\t\t\t\t\t+ ((System.currentTimeMillis() - startTime) / 1000)\r\n\t\t\t\t\t\t\t\t\t+ \" sec\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"award\")) {\r\n\t\t\t\t\r\n\t\t\t\tLog.e(\"download\",\" award here\");\r\n\t\t\t\t//TODO download files here\r\n\t\t\t\t Log.e(\"name\",name);\r\n\t\t\t\t Log.e(\"link\",link);\r\n\t\t\t\r\n\t\t\t\tFile file = new File(name);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(\r\n\t\t\t\t\t\tis);\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tif(cancel) break;\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\tfos.close();\r\n\t\t\t\tif(cancel) file.delete();\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"video\")) {\r\n\r\n\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER_VIDEO);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\t\t\t\t// Log.v(\"fname\",fname);\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\t\t\t\tLog.d(\"ImageManager\", \"download begining\");\r\n\t\t\t\tLog.d(\"ImageManager\", \"download url:\" + url);\r\n\t\t\t\tLog.d(\"ImageManager\", \"downloaded file name:\");\r\n\t\t\t\t/* Open a connection to that URL. */\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\t/*\r\n\t\t\t\t * Define InputStreams to read from the URLConnection.\r\n\t\t\t\t */\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\t// bookmarkstart\r\n\t\t\t\t/*\r\n\t\t\t\t * Read bytes to the Buffer until there is nothing more to\r\n\t\t\t\t * read(-1) and write on the fly in the file.\r\n\t\t\t\t */\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\tfinal int BUFFER_SIZE = 25 * 1024;\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is,\r\n\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\tbyte[] baf = new byte[BUFFER_SIZE];\r\n\t\t\t\tint actual = 0;\r\n\t\t\t\twhile (actual != -1) {\r\n\t\t\t\t\tfos.write(baf, 0, actual);\r\n\t\t\t\t\tactual = bis.read(baf, 0, BUFFER_SIZE);\r\n\t\t\t\t\tif (cancel) {\r\n\t\t\t\t\t\tfile.delete();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfos.close();\r\n\r\n\t\t\t\t// bookmarkend\r\n\t\t\t\tLog.d(\"ImageManager\",\r\n\t\t\t\t\t\t\"download ready in\"\r\n\t\t\t\t\t\t\t\t+ ((System.currentTimeMillis() - startTime) / 1000)\r\n\t\t\t\t\t\t\t\t+ \" sec\");\r\n\r\n\t\t\t\tString link = root + Constants.APP_FOLDER_IMG + name;\r\n\r\n\t\t\t}\r\n\t\t\telse if (type.contentEquals(\"audio\")) {\r\n\t\t\t\tLog.v(\"training\", \"in audio\");\r\n\r\n\t\t\t\tFile myDir = new File(Environment.getExternalStorageDirectory()\r\n\t\t\t\t\t\t.getAbsolutePath() + Constants.APP_FOLDER_AUDIO);\r\n\t\t\t\tmyDir.mkdirs();\r\n\t\t\t\tString fname = name;\r\n\r\n\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\tif (file.exists())\r\n\t\t\t\t\tfile.delete();\r\n\r\n\t\t\t\t// long startTime = System.currentTimeMillis();\r\n\t\t\t\tString url1 = url.toString().replaceAll(\" \", \"%20\");\r\n\t\t\t\turl = new URL(url1);\r\n\r\n\t\t\t\tURLConnection ucon = url.openConnection();\r\n\r\n\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(is);\r\n\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\tif (cancel)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Convert the Bytes read to a String. */\r\n\t\t\t\tif (!cancel) {\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t}// end of audio\r\n\t\t\telse{\r\n\t\t\t\ttry {\r\n\t\t\t\t\turl = new URL(link);\r\n\t\t\t\t\troot = Environment\r\n\t\t\t\t\t\t\t.getExternalStorageDirectory()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\tLog.v(\"type is \", type.toString());\r\n\r\n\t\t\t\t\tString foldername = \"\";\r\n\t\t\t\t\tif (type.contentEquals(\"pdf\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.pdf);\r\n\t\t\t\t\telse if (type.contentEquals(\"ppt\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.ppt);\r\n\t\t\t\t\telse if (type.contentEquals(\"doc\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.doc);\r\n\t\t\t\t\telse if (type.contentEquals(\"xls\"))\r\n\t\t\t\t\t\tfoldername = activity.getString(R.string.xls);\r\n\t\t\t\t\telse if (type.contentEquals(\"video\"))\r\n\t\t\t\t\t\tfoldername = \"mobcast_videos\";\r\n\t\t\t\t\telse if (type.contentEquals(\"audio\"))\r\n\t\t\t\t\t\tfoldername = \"mobcast_audio\";\r\n\r\n\t\t\t\t\tFile myDir = new File(root + Constants.APP_FOLDER\r\n\t\t\t\t\t\t\t+ foldername);\r\n\r\n\t\t\t\t\tString fname = ename;\r\n\r\n\t\t\t\t\tmyDir.mkdirs();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile file = new File(myDir, fname);\r\n\t\t\t\t\tif (file.exists())\r\n\t\t\t\t\t\tfile.delete();\r\n\t\t\t\t\tURLConnection ucon = url.openConnection();\r\n\t\t\t\t\tInputStream is = ucon.getInputStream();\r\n\t\t\t\t\tBufferedInputStream bis = new BufferedInputStream(\r\n\t\t\t\t\t\t\tis);\r\n\t\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\t\tint current = 0;\r\n\t\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t\t\tif(cancel) break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\r\n\t\t\t\t\t\t\tfile);\r\n\t\t\t\t\tfos.write(baf.toByteArray());\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tif(cancel) file.delete();\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.d(\"ImageManager\", \"Error: \" + e);\r\n\t\t}\r\n\r\n\t}", "public static String getFile(String url) {\n final String USER_AGENT = \"Mozilla/5.0\";\n\n StringBuilder response = null;\n try {\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n // request method\n con.setRequestMethod(\"GET\");\n\n //add request header\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n System.out.println(\"Sending 'GET' request to URL : \" + url);\n System.out.println(\"Response Code : \" + responseCode);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n response = new StringBuilder();\n\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine).append(\"\\n\");\n }\n in.close();\n return response.toString();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println();\n Log.d(\"ERROR\", error.toString());\n\n }", "public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error\",error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "public void onCompleted(GraphResponse response) {\n Log.d(\"title\", \"onCompleted: \" + title);\n\n new DownloadImage().execute(response.getConnection().getURL().toString(),title.get(finalI),id.get(finalI));\n }", "public void dumpImageMetaData(Uri uri) {\n // BEGIN_INCLUDE (dump_metadata)\n\n // The query, since it only applies to a single document, will only return one row.\n // no need to filter, sort, or select fields, since we want all fields for one\n // document.\n Cursor cursor = getActivity().getContentResolver()\n .query(uri, null, null, null, null, null);\n\n try {\n // moveToFirst() returns false if the cursor has 0 rows. Very handy for\n // \"if there's anything to look at, look at it\" conditionals.\n if (cursor != null && cursor.moveToFirst()) {\n\n // Note it's called \"Display Name\". This is provider-specific, and\n // might not necessarily be the file name.\n String displayName = cursor.getString(\n cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n //Toast.makeText(getActivity(),\"Display Name: \"+ displayName, Toast.LENGTH_SHORT).show();\n imageInfo += \"Name:\" + displayName;\n int sizeIndex = cursor.getColumnIndex(OpenableColumns.SIZE);\n // If the size is unknown, the value stored is null. But since an int can't be\n // null in java, the behavior is implementation-specific, which is just a fancy\n // term for \"unpredictable\". So as a rule, check if it's null before assigning\n // to an int. This will happen often: The storage API allows for remote\n // files, whose size might not be locally known.\n String size = null;\n if (!cursor.isNull(sizeIndex)) {\n // Technically the column stores an int, but cursor.getString will do the\n // conversion automatically.\n size = cursor.getString(sizeIndex);\n } else {\n size = \"Unknown\";\n }\n imageInfo += \"Size: \" + size;\n //Toast.makeText(getActivity(),\"Size: \"+size,Toast.LENGTH_SHORT).show();\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n // END_INCLUDE (dump_metadata)\n }", "public static String parseRequest(String request) {\r\n String parsedSoFar = \"\";\r\n String file = \"\";\r\n int fileSize = 0;\r\n String s = null;\r\n \r\n if (request.length() < 14) {\r\n return s;\r\n }\r\n \t\r\n if (!request.substring(0, 4).equals(\"GET \")) {\r\n return s;\r\n }\r\n \r\n parsedSoFar = request.substring(4, request.length());\r\n \t\r\n int counter = 0;\r\n \r\n while (parsedSoFar.charAt(counter) != ' ') {\r\n counter++;\r\n }\r\n \r\n file = parsedSoFar.substring(0, counter);\r\n \r\n parsedSoFar = parsedSoFar.substring(file.length() + 1, parsedSoFar.length()).trim();\r\n \r\n if (!parsedSoFar.equals(\"HTTP/1.0\")) {\r\n return s;\r\n }\r\n \r\n return file;\r\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n StorageReference downloadUrl = taskSnapshot.getStorage();\n downloadImage(downloadUrl);\n Log.e(\"downloadUrl\", \" \" + downloadUrl);\n\n\n }", "private String describeImage(String url, Bitmap bitmap) {\n resetResponse();\n\n // Setting the HTTP connection up.\n //openConnection(url); openCheckConnection(url) is more efficient.\n\n openCheckConnection(url);\n\n getConnection().setDoOutput(true);\n getConnection().setUseCaches(false);\n //().setChunkedStreamingMode(0); Makes broken pipes.. issues!\n getConnection().setRequestProperty(\"Connection\", \"keep-alive\");\n getConnection().setRequestProperty(\"Content-Type\", \"image/jpeg\");\n try {\n getConnection().setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n Log.e(getTAG(), \"Error setting request method to POST: \" + e.getMessage());\n }\n\n // Connecting to the server.\n try {\n getConnection().connect();\n } catch (IOException e) {\n Log.e(getTAG(), \"Error connecting to the server: \" + e.getMessage());\n }\n\n /* Sending HTTP message to the server. */\n\n Log.w(getTAG(), \"Sending the HTTP message!\");\n\n // Setting up the output stream.\n BufferedOutputStream outputStream = null;\n try {\n outputStream = new BufferedOutputStream(getConnection().getOutputStream());\n } catch (IOException e) {\n Log.e(getTAG(), \"Error setting and getting connection's output stream: \" + e.getMessage());\n }\n if(outputStream == null) {\n return \"Failed setting and getting connection's output stream.\";\n }\n\n // Compressing the bitmap into the output stream.\n bitmap.compress(Bitmap.CompressFormat.JPEG, 60, outputStream);\n\n // Closing the sending components.\n try {\n outputStream.flush();\n\n outputStream.close();\n } catch (IOException e) {\n Log.e(getTAG(), \"Unable to close response components: \" + e.getMessage());\n }\n\n /* Receiving response from the server */\n\n Log.w(getTAG(), \"Getting the HTTP response from the server!\");\n\n // Getting the actual response from the server, adn the response code.\n BufferedInputStream responseStream = null;\n try {\n Log.w(getTAG(), \"Response code: \" + getConnection().getResponseCode());\n responseStream = new BufferedInputStream(getConnection().getInputStream());\n } catch (IOException e) {\n Log.e(getTAG(), \"Error getting response from the connection's input stream: \" + e.getMessage());\n e.printStackTrace();\n }\n if(responseStream == null) {\n return \"Failed getting response from the connection's input stream.\";\n }\n\n // Deciphering a string response from the server response.\n BufferedReader responseStreamReader = new BufferedReader(new InputStreamReader(responseStream));\n\n String line;\n StringBuilder stringBuilder = new StringBuilder();\n\n try {\n while ((line = responseStreamReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n responseStreamReader.close();\n } catch (IOException e) {\n Log.e(getTAG(), \"Error building string response: \" + e.getMessage());\n }\n\n justGotResponse();\n return stringBuilder.toString();\n }", "public void onDownloadSuccess(String fileInfo);", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(\"GET request error\");\n }", "private java.io.File getCapturedFile(com.reactnativecommunity.webview.RNCWebViewModule.MimeType r7) throws java.io.IOException {\n /*\n r6 = this;\n int[] r0 = com.reactnativecommunity.webview.RNCWebViewModule.C27492.f1192xcd6a845b\n int r7 = r7.ordinal()\n r7 = r0[r7]\n r0 = 1\n java.lang.String r1 = \"\"\n if (r7 == r0) goto L_0x001a\n r0 = 2\n if (r7 == r0) goto L_0x0013\n r7 = r1\n r0 = r7\n goto L_0x0023\n L_0x0013:\n java.lang.String r1 = android.os.Environment.DIRECTORY_MOVIES\n java.lang.String r7 = \"video-\"\n java.lang.String r0 = \".mp4\"\n goto L_0x0020\n L_0x001a:\n java.lang.String r1 = android.os.Environment.DIRECTORY_PICTURES\n java.lang.String r7 = \"image-\"\n java.lang.String r0 = \".jpg\"\n L_0x0020:\n r5 = r1\n r1 = r7\n r7 = r5\n L_0x0023:\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r2.append(r1)\n long r3 = java.lang.System.currentTimeMillis()\n java.lang.String r3 = java.lang.String.valueOf(r3)\n r2.append(r3)\n r2.append(r0)\n java.lang.String r2 = r2.toString()\n int r3 = android.os.Build.VERSION.SDK_INT\n r4 = 23\n if (r3 >= r4) goto L_0x004d\n java.io.File r7 = android.os.Environment.getExternalStoragePublicDirectory(r7)\n java.io.File r0 = new java.io.File\n r0.<init>(r7, r2)\n goto L_0x005a\n L_0x004d:\n com.facebook.react.bridge.ReactApplicationContext r7 = r6.getReactApplicationContext()\n r2 = 0\n java.io.File r7 = r7.getExternalFilesDir(r2)\n java.io.File r0 = java.io.File.createTempFile(r1, r0, r7)\n L_0x005a:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.reactnativecommunity.webview.RNCWebViewModule.getCapturedFile(com.reactnativecommunity.webview.RNCWebViewModule$MimeType):java.io.File\");\n }", "MimeType mediaType();", "@Override\r\n\t\t\t\tpublic void onFail(String desc) {\n\t\t\t\t Log.e(\"upload\",desc);\t\r\n\t\t\t\t}", "private String downloadUrl(String myurl) throws IOException {\n InputStream is = null;\n // Only display the first 500 characters of the retrieved\n // web page content.\n int len = 500;\n\n try {\n URL url = new URL(myurl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000); /* milliseconds */\n conn.setConnectTimeout(15000);/* milliseconds */\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n int response = conn.getResponseCode();\n Log.d(\"network\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n String contentAsString = convertStreamToString(is);\n return contentAsString;\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "@Override\npublic void get(String url) {\n\t\n}", "private void testHttp() {\n\t\t\n\n\t Thread thread = new Thread(new Runnable(){\n\t\t @Override\n\t\t public void run() {\n\t\t \tHttpClient client = new DefaultHttpClient();\n\t\t\t HttpPost post = new HttpPost(\"http://ec2-54-164-195-102.compute-1.amazonaws.com/api_places/\");\n\t try {\n\t \t\n\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);\n\t gpslocation = locationData;\n\t nameValuePairs.add(new BasicNameValuePair(\"gps_location\", gpslocation));\n\t nameValuePairs.add(new BasicNameValuePair(\"access_token\", fbaccesstoken));\n\t if(text_search.getText().toString()!=null){\n\t \t textlocation = text_search.getText().toString();\n\t \t nameValuePairs.add(new BasicNameValuePair(\"text_location\", textlocation));\n\t \t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t}\n\t \n\t\t Log.d(\"JSON\",nameValuePairs.toString());\n\t post.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\t HttpResponse response = client.execute(post);\n\t Log.d(\"Response\",response.toString());\n\t BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n\t String line = \"\";\n\t while ((line = rd.readLine()) != null) {\n\t System.out.println(line);\n\t\t Log.d(\"Line\",line);\n\t\t try {\n\t\t JSONObject json= (JSONObject) new JSONTokener(line).nextValue();\n//\t\t JSONObject json2 = json.getJSONObject(\"filename\");\n\t\t filename = (String) json.get(\"filename\");\n\t\t Log.d(\"Test\",filename);\n\t\t } catch (JSONException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t }\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t}\n\t });\n\t thread.start();\n\t try {\n\t\t\tthread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected int getRequestContentLength() {\n return 0;\n }", "default String getContentType() {\n return \"application/octet-stream\";\n }", "private HttpURLConnection getURLobject (String uri, String xmlMsg, URL url) throws Exception\n {\n URLConnection urlcon = url.openConnection();\n HttpURLConnection conn = (HttpURLConnection) urlcon;\n // ******** Filling of Default Request Header Properties ************\n conn.setUseCaches( false );\n HttpURLConnection.setFollowRedirects( false );\n if (xmlMsg != null && xmlMsg.length() > 0)\n conn.setRequestMethod(\"POST\");\n conn.setDoInput (true);\n conn.setDoOutput(true);\n\n // String encoding = null;\n\n conn.setRequestProperty( \"Accept\", \"text/xml\");\n conn.setRequestProperty( \"Content-type\", \"xml/txt\");\n conn.setRequestProperty( \"Accept-Charset\", \"iso-8859-1,*,utf-8\");\n conn.setRequestProperty( \"User-Agent\", \"CIDS Client/4.0\");\n conn.setRequestProperty( \"Pragma\", \"no-cache\");\n String xmlStr = \"XMLHttpRequest\";\n String contentTypeStr = \"application/x-www-form-urlencoded\";\n conn.setRequestProperty(\"X-Requested-With\", xmlStr);\n conn.setRequestProperty(\"Content-Type\", contentTypeStr);\n if (verbose) {\n // TODO: just get the data from conn \n System.out.println(\"Header request lines\");\n System.out.println(\" key [Accept]\");\n System.out.println(\" value [text/xml]\");\n System.out.println(\" key [Content-type]\");\n System.out.println(\" value [xml/txt]\");\n System.out.println(\" key [Accept-Charset]\");\n System.out.println(\" value [iso-8859-1,*,utf-8]\");\n System.out.println(\" key [User-Agent]\");\n System.out.println(\" value [CIDS Client/4.0]\");\n System.out.println(\" key [Pragma]\");\n System.out.println(\" value [no-cache]\");\n System.out.println(\" key[X-Requested-With]\");\n System.out.println(\" value[\"+xmlStr+\"]\");\n System.out.println(\" key[Content-Type]\");\n System.out.println(\" value[\"+contentTypeStr+\"]\");\n }\n\n return conn;\n }", "private void post(Uri uri, int type) {\n SingleAttatchment singleAttatchment = null;\nif(type==GALLERY_TYPE) {\n try {\n singleAttatchment = new SingleAttatchment(type, getStrPath(this,uri));\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n}\nelse if(type==CAMERA_TYPE) {\n Uri uri2 = Uri.fromFile(photoFile);\n singleAttatchment = new SingleAttatchment(type, uri2.getPath());\n}\nelse if(type==VIDEO_TYPE){\nLog.e(\"pathFetched\",getPath(uri));\n singleAttatchment = new SingleAttatchment(type, getPath(uri));\n}\nelse if(type==AUDIO_TYPE){\n singleAttatchment = new SingleAttatchment(type, (uri).getPath());\n}\nelse if(type==FILE_TYPE){\n Log.e(\"data\",String.valueOf(uri));\n Log.e(\"data\",String.valueOf(uri.getPath()));\n Log.e(\"data\",String.valueOf(uri.getEncodedPath()));\n Log.e(\"data\",String.valueOf(uri.getLastPathSegment()));\n\n singleAttatchment = new SingleAttatchment(type,uri.getPath());\n\n}\nelse if(type==RECORD_TYPE){\n singleAttatchment = new SingleAttatchment(type,uri.getPath());\n\n}\n\n //Log.e(\"Uri\",String.valueOf(uri.getPath()));\n// Log.e(\"file\",String.valueOf(file.getPath()));\n\n list.add(singleAttatchment);\n attatchmentAdapter.notifyDataSetChanged();\n save();\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1) {\n if (resultCode == Activity.RESULT_OK) {\n Uri selectedFileURI = data.getData();\n File file = new File(selectedFileURI.getPath().toString());\n Log.d(\"\", \"File :::::::: \" + file.getName());\n //CallUploadResults();\n }\n }\n }", "@Override\n public void onLoadingStarted(String imageUri, View view) {\n Log.d(TAG, \"#onLoadingStarted imageUri = \"+imageUri);\n\n }", "void displayUrl(java.lang.String r8) {\n /*\n r7 = this;\n r4 = \"AirpushSDK\";\n r5 = \"Pushing Web and App Ads.....\";\n android.util.Log.i(r4, r5);\n r3 = \"com.android.browser\";\n r0 = \"com.android.browser.BrowserActivity\";\n r2 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.action.VIEW\";\n r5 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.<init>(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r2.setFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r2.addFlags(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = \"android.intent.category.LAUNCHER\";\n r2.addCategory(r4);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r2.setClassName(r3, r0);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n r4.startActivity(r2);\t Catch:{ ActivityNotFoundException -> 0x002e, Exception -> 0x0077 }\n L_0x002d:\n return;\n L_0x002e:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = \"Browser not found.\";\n android.util.Log.i(r4, r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = new android.content.Intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = \"android.intent.action.VIEW\";\n r6 = android.net.Uri.parse(r8);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.<init>(r5, r6);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r7.intent = r4;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r4.setFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;\n r4.addFlags(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4 = r7.context;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r5 = r7.intent;\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n r4.startActivity(r5);\t Catch:{ ActivityNotFoundException -> 0x0059, Exception -> 0x0077 }\n goto L_0x002d;\n L_0x0059:\n r1 = move-exception;\n r4 = \"AirpushSDK\";\n r5 = new java.lang.StringBuilder;\n r5.<init>();\n r6 = \"Error whlie displaying push ad......: \";\n r5 = r5.append(r6);\n r6 = r1.getMessage();\n r5 = r5.append(r6);\n r5 = r5.toString();\n android.util.Log.e(r4, r5);\n goto L_0x002d;\n L_0x0077:\n r1 = move-exception;\n r1.printStackTrace();\n goto L_0x002d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.srortn.bsiubt135868.HandleClicks.displayUrl(java.lang.String):void\");\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }", "@Override\n public void onResponse(JSONObject response) {\n Toast.makeText(getApplicationContext(), \"Data Donation Successful!!\", Toast.LENGTH_LONG).show();\n Log.v(\"uploadresponse\", response.toString());\n }", "@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] responseBody) {\n byte[] bite = responseBody;\n try {\n final String response = new String(bite, \"UTF-8\");\n System.out.println(\"response \" + response);\n// stsimgsid[imgcoutpos]=response;\n// String tempcmid=response;\n// String [] Commnt1 = Constants.Commentid;\n// String[] temp =new String[1];\n// temp[0]=tempcmid;\n// String [] comd2=ArrayUtils.addAll(Commnt1,temp);\n// Constants.Commentid=comd2;\n//\n// String [] Commntlike = Constants.CommentLikeCount;\n// String[] temp1 =new String[1];\n//\n// temp1[0]=\"0\";\n// String [] comdlike=ArrayUtils.addAll(Commntlike,temp1);\n// Constants.CommentLikeCount=comdlike;\n Log.e(\"image response\", response);\n boolean containerContainsContent = StringUtils.containsIgnoreCase(response, \"Record inserted suceessfully\");\n if(containerContainsContent) Toast.makeText(getApplicationContext(), \"Record inserted suceessfully\", Toast.LENGTH_LONG).show();\n// // imageUploadid=imageUploadid.concat(response.trim()+\",\");\n// Toast.makeText(getApplicationContext(),String.valueOf(imageUploadid),Toast.LENGTH_SHORT).show();\n// Log.e(\"image names\",String.valueOf(response));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n\n// Log.e(\"file path\", file);\n }", "private void getFileName() {\n\t\tHeader contentHeader = response.getFirstHeader(\"Content-Disposition\");\n\t\tthis.filename = null;\n\t\tif (contentHeader != null) {\n\t\t\tHeaderElement[] values = contentHeader.getElements();\n\t\t\tif (values.length == 1) {\n\t\t\t\tNameValuePair param = values[0].getParameterByName(\"filename\");\n\t\t\t\tif (param != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfilename = param.getValue();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.filename == null) {\n\t\t\tthis.filename = url.substring(url.lastIndexOf(\"/\") + 1);\n\t\t}\n\t}", "@Test\n public void test1 () throws Exception{\n URI uri = new URI(\"http://www.baidu.com\");\n\n URL url = uri.toURL();\n\n InputStream input = url.openStream();\n OutputStream output = new ByteArrayOutputStream();\n\n int i = 0;\n byte[] bytes = new byte[1024];\n int length = -1;\n while( (length = input.read(bytes)) != -1){\n output.write(bytes, 0, length);\n }\n\n System.out.println(new String(bytes));\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ERROR\",\"error => \"+error.toString());\n }", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"getDataFromUrl.onErrorResponse: \" + error);\n\n }", "@Test\n public void getUserTest() throws Exception{\n Context appContext = InstrumentationRegistry.getTargetContext();\n String userStr= AssetsUtils.ReadAssetTxtContent(appContext, Constants.ASSET_USER_INFO_PATH);\n\n OkHttpClient client=new OkHttpClient();\n Request request = new Request.Builder().url(Constants.USER_INFO_URL).build();\n String userRequestStr=\"\";\n try(Response response=client.newCall(request).execute()){\n userRequestStr=response.body().string();\n }\n assertEquals(userStr,userRequestStr);\n }", "abstract Long getContentLength();", "@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] responseBody) {\n byte[] bite = responseBody;\n try {\n final String response = new String(bite, \"UTF-8\");\n System.out.println(\"response \" + response);\n// stsimgsid[imgcoutpos]=response;\n// String tempcmid=response;\n// String [] Commnt1 = Constants.Commentid;\n// String[] temp =new String[1];\n// temp[0]=tempcmid;\n// String [] comd2=ArrayUtils.addAll(Commnt1,temp);\n// Constants.Commentid=comd2;\n//\n// String [] Commntlike = Constants.CommentLikeCount;\n// String[] temp1 =new String[1];\n//\n// temp1[0]=\"0\";\n// String [] comdlike=ArrayUtils.addAll(Commntlike,temp1);\n// Constants.CommentLikeCount=comdlike;\n Log.e(\"image response\", response);\n boolean containerContainsContent = StringUtils.containsIgnoreCase(response, \"Record inserted suceessfully\");\n if(containerContainsContent) Toast.makeText(getApplicationContext(), \"Record inserted suceessfully\", Toast.LENGTH_LONG).show();\n // imageUploadid=imageUploadid.concat(response.trim()+\",\");\n// Toast.makeText(getApplicationContext(),String.valueOf(imageUploadid),Toast.LENGTH_SHORT).show();\n// Log.e(\"image names\",String.valueOf(response));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n\n// Log.e(\"file path\", file);\n }", "private static JsonObjectRequest createUrlMetadataRequest(JSONObject jsonObj, final boolean isDemoRequest) {\n return new JsonObjectRequest(\n isDemoRequest ? DEMO_METADATA_URL : METADATA_URL,\n jsonObj,\n new Response.Listener<JSONObject>() {\n // Called when the server returns a response\n @Override\n public void onResponse(JSONObject jsonResponse) {\n\n // Build the metadata from the response\n try {\n JSONArray foundMetaData = jsonResponse.getJSONArray(\"metadata\");\n\n // Loop through the metadata for each url\n if (foundMetaData.length() > 0) {\n\n for (int i = 0; i < foundMetaData.length(); i++) {\n\n JSONObject jsonUrlMetadata = foundMetaData.getJSONObject(i);\n\n String title = \"\";\n String url = \"\";\n String description = \"\";\n String iconUrl = \"/favicon.ico\";\n String id = jsonUrlMetadata.getString(\"id\");\n float score = UNDEFINED_SCORE;\n\n if (jsonUrlMetadata.has(\"title\")) {\n title = jsonUrlMetadata.getString(\"title\");\n }\n if (jsonUrlMetadata.has(\"url\")) {\n url = jsonUrlMetadata.getString(\"url\");\n }\n if (jsonUrlMetadata.has(\"description\")) {\n description = jsonUrlMetadata.getString(\"description\");\n }\n if (jsonUrlMetadata.has(\"icon\")) {\n // We might need to do some magic here.\n iconUrl = jsonUrlMetadata.getString(\"icon\");\n }\n if (jsonUrlMetadata.has(\"score\")) {\n score = Float.parseFloat(jsonUrlMetadata.getString(\"score\"));\n }\n\n // TODO: Eliminate this fallback since we expect the server to always return an icon.\n // Provisions for a favicon specified as a relative URL.\n if (!iconUrl.startsWith(\"http\")) {\n // Lets just assume we are dealing with a relative path.\n Uri fullUri = Uri.parse(url);\n Uri.Builder builder = fullUri.buildUpon();\n // Append the default favicon path to the URL.\n builder.path(iconUrl);\n iconUrl = builder.toString();\n }\n\n // Create the metadata object\n UrlMetadata urlMetadata = new UrlMetadata();\n urlMetadata.title = title;\n urlMetadata.description = description;\n urlMetadata.siteUrl = url;\n urlMetadata.iconUrl = iconUrl;\n urlMetadata.score = score;\n\n // Kick off the icon download\n downloadIcon(urlMetadata);\n\n if (isDemoRequest) {\n mMetadataResolverCallback.onDemoUrlMetadataReceived(id, urlMetadata);\n } else {\n mMetadataResolverCallback.onUrlMetadataReceived(id, urlMetadata);\n }\n }\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n Log.i(TAG, \"VolleyError: \" + volleyError.toString());\n }\n }\n );\n }", "void mo54427b(DownloadInfo downloadInfo);", "public static String uploadImage(final String pat,String area, String subarea, String cat ,\n String subcat, String userid, String comtext,String url) {\n Log.d(\"all_data\", \"\" + \"\\n\" + comtext + \"\\n\" + \"\\n\" );\n String res = null;\n try {\n StrictPolicy();\n File sourceFile = new File(pat);\n\n// FileBody pic = new FileBody(new File(sourceImageFile));\n if (sourceFile.exists()) {\n Log.d(\"img\", \"present\");\n// DecodeFile(sourceFile);\n } else {\n Log.d(\"img\", \"Not present\");\n }\n Log.d(\"TAG\", \"File...::::\" + sourceFile + \" : \" + sourceFile.exists());\n\n\n final MediaType MEDIA_TYPE_VDO = MediaType.parse(\"video/*\");\n String filename = pat.substring(pat.lastIndexOf(\"/\") + 1);\n\n\n RequestBody requestBody;\n requestBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n\n .addFormDataPart(\"video\", filename, RequestBody.create(MEDIA_TYPE_VDO, sourceFile)).setType(MultipartBody.FORM)\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"area_id\", area)\n .addFormDataPart(\"area_sub_id\", subarea)\n .addFormDataPart(\"cat_id\", cat)\n .addFormDataPart(\"cat_sub_id\", subcat)\n .addFormDataPart(\"user_id\",userid)\n .addFormDataPart(\"com_text\",comtext)\n .addFormDataPart(\"com_type\",\"confidential\")\n .build();\n\n Request request = new Request.Builder()\n .url(url)\n .post(requestBody)\n .build();\n OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n res = response.body().string();\n return res;\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return res;\n }", "String generalFileName(String url);", "@Override\n protected String doInBackground(String... arg0) {\n jobj = jsonparser.makeHttpRequest(url);\n try {\n metadata = jobj.getString(TAG_METADATA);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return metadata;\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n Toast.makeText(context, \"Image process failed\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {\n\n System.out.println(\"Request URL :: \" + request.getRequestURL().toString()\n + \"End Time = \" + System.currentTimeMillis());\n }", "@Override\n public void progress(long offset, long length) {\n Log.d(TAG, offset + \" of \" + length + \" bytes received\");\n }", "@Test(priority=2)\r\n\tpublic void logResponseBody()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.log().body();\t\t\r\n\t}", "private void processFileRequest(String requestURL, Socket client, List<String> headers) throws IOException {\n\t\tif (requestURL == null) {\n\t\t\treturn;\n\t\t}\n\t\tLog.d(TAG, \"processing file request:\" + requestURL + \"headers:\" + headers);\n\t\tint startRange = -1;\n\t\tint endRange = -1;\n\n\t\tif (headers != null && headers.size() > 1) {\n\t\t\t// String header = headers.get(i);\n\t\t\t// if(header.contains(\"C\"))\n\t\t\tfor (int i = 1; i < headers.size(); i++) {\n\t\t\t\tString[] parts = headers.get(i).split(\":\");\n\t\t\t\tif (parts != null && parts.length == 2) {\n\t\t\t\t\tif (\"Range\".equals(parts[0].trim())) {\n\t\t\t\t\t\t// bytes=0-1024\n\t\t\t\t\t\tint index = parts[1].indexOf('=');\n\t\t\t\t\t\tif (index > 0 && index < parts[1].length() - 1) {\n\t\t\t\t\t\t\tString range = parts[1].substring(index + 1).trim();\n\t\t\t\t\t\t\tparts = range.split(\"-\");\n\t\t\t\t\t\t\tif (parts != null && parts.length >= 1) {\n\t\t\t\t\t\t\t\tif (parts.length == 1) {\n\t\t\t\t\t\t\t\t\tif (range.startsWith(\"-\")) {\n\t\t\t\t\t\t\t\t\t\tendRange = Integer.parseInt(parts[0]);\n\t\t\t\t\t\t\t\t\t\tstartRange = 0;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tstartRange = Integer.parseInt(parts[0]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (parts.length == 2) {\n\t\t\t\t\t\t\t\t\tstartRange = Integer.parseInt(parts[0]);\n\n\t\t\t\t\t\t\t\t\tendRange = Integer.parseInt(parts[1]);\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tInputStream data = new SvnFileInputStream(requestURL);\n\t\tint fileLength = SvnFileTool.getFileLength(requestURL);\n\n\t\tint requestLength = fileLength;\n\n\t\tLog.d(TAG, \"reading headers\");\n\t\tStringBuilder httpString = new StringBuilder();\n\n\t\tif (startRange >= 0) {\n\t\t\tif (endRange >= fileLength || endRange < startRange) {\n\t\t\t\tendRange = fileLength - 1;\n\t\t\t}\n\t\t\tdata.skip(startRange);\n\n\t\t\trequestLength = endRange - startRange + 1;\n\t\t\thttpString.append(\"HTTP/1.1 206 Partial Content\\n\");\n\n\t\t\thttpString.append(\"Content-Range\").append(\": bytes \").append(\"\" + startRange).append(\"-\").append(\"\" + endRange)\n\t\t\t\t\t.append(\"/\" + fileLength).append(\"\\n\");\n\t\t} else {\n\t\t\thttpString.append(\"HTTP/1.1 200 OK\\n\");\n\t\t}\n\n\t\t// for (Header h : response.getAllHeaders()) {\n\t\t// if(!\"Transfer-Encoding\".equalsIgnoreCase(h.getName()))\n\t\t// {\n\t\t// httpString.append(h.getName()).append(\": \").append(h.getValue())\n\t\t// .append(\"\\n\");\n\t\t// }\n\t\t//\n\t\t// }\n\n\t\thttpString.append(\"Content-Length\").append(\": \").append(\"\" + requestLength).append(\"\\n\");\n\n\t\thttpString.append(\"\\n\");\n\t\tLog.e(TAG, \"headers done:\" + httpString.length() + \"\\n\" + httpString.toString());\n\t\tint totalReadBytes = 0;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tbyte[] buffer = httpString.toString().getBytes();\n\t\t\tint readBytes;\n\t\t\tLog.d(TAG, \"writing to client\");\n\t\t\tclient.getOutputStream().write(buffer, 0, buffer.length);\n\n\t\t\t// Start streaming content.\n\t\t\tbyte[] buff = new byte[BUFFER_SIZE];\n\n\t\t\twhile (isRunning && totalReadBytes < requestLength) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint toRead = Math.min(requestLength - totalReadBytes, BUFFER_SIZE);\n\t\t\t\tLog.e(TAG, \"toRead:\" + toRead);\n\t\t\t\t\n\n\t\t\t\treadBytes = data.read(buff, 0, toRead);\n\t\t\t\t\n\t\t\t\tif(readBytes < 0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t// System.out.println(\"totalReadBytes:\" + totalReadBytes);\n\t\t\t\tif(readBytes > 0)\n\t\t\t\t{\n\t\t\t\t\ttotalReadBytes += readBytes;\n\t\t\t\t\tclient.getOutputStream().write(buff, 0, readBytes);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"\", e.getMessage(), e);\n\t\t} finally {\n\n\t\t\tLog.e(TAG, \"totalReadBytes:\" + totalReadBytes);\n\t\t\tif (data != null) {\n\t\t\t\tdata.close();\n\t\t\t}\n\t\t\tclient.close();\n\n\t\t}\n\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }", "@Override\n protected String doInBackground(String... f_url) {\n int count;\n try {\n URL url = new URL(f_url[0]);\n URLConnection connection = url.openConnection();\n connection.connect();\n // getting file length\n int lengthOfFile = connection.getContentLength();\n\n\n // input stream to read file - with 8k buffer\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\n\n String timestamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n\n //Extract file name from URL\n fileName = f_url[0].substring(f_url[0].lastIndexOf('/') + 1, f_url[0].length());\n\n //Append timestamp to file name\n fileName = timestamp + \"_\" + fileName;\n\n //External directory path to save file\n // folder = Environment.getExternalStorageDirectory() + \"Needyyy\";\n\n //Create androiddeft folder if it does not exist\n\n String folder = \"Needyyy\";\n// File f = new File(Environment.getExternalStorageDirectory(), folder);\n// if (!f.exists()) {\n// f.mkdirs();\n// }\n\n\n File directory = new File(Environment.getExternalStorageDirectory(), folder);\n\n if (!directory.exists()) {\n directory.mkdirs();\n }\n\n // Output stream to write file\n OutputStream output = new FileOutputStream(directory + fileName);\n\n byte data[] = new byte[1024];\n\n long total = 0;\n\n while ((count = input.read(data)) != -1) {\n total += count;\n // publishing the progress....\n // After this onProgressUpdate will be called\n publishProgress(\"\" + (int) ((total * 100) / lengthOfFile));\n Log.d(TAG, \"Progress: \" + (int) ((total * 100) / lengthOfFile));\n\n // writing data to file\n output.write(data, 0, count);\n }\n\n // flushing output\n output.flush();\n\n // closing streams\n output.close();\n input.close();\n return \"Downloaded at: \" + directory + fileName;\n\n } catch (Exception e) {\n// Log.e(\"Error: \", e.getMessage());\n }\n\n return \"Something went wrong\";\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n //\"/storage/emulated/0/IRON-HID/captures\" <== can open~!!\n //\"file:///mnt/sdcard/Download/20141025_170314.jpg\"\n if (requestCode == CHOOSE_FILE_TO_UPLOAD)\n {\n if (resultCode == RESULT_OK)\n {\n Uri uri = data.getData();\n if (uri != null)\n {\n // Send file\n String filePath = uri.getPath();\n filePath = filePath.replace(\"file://\", \"\");\n mPutCommand += \" \" + filePath;\n mCommandManager.SendCommand(mPutCommand);\n }\n }\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "String getMimeType();", "@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }", "String getFileMimeType();", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(data!=null&&data.getStringExtra(\"Format\")!=null)\n Toast.makeText(this, \"Contents = \" + data.getStringExtra(\"Contents\") +\n \", Format = \" + data.getStringExtra(\"Format\"), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(Call call, IOException e) {\n Log.e(\"Volley\", e.toString());\n }", "public static void openFile(Context context, File url) throws IOException {\n\n if ( null == url ) {\n QNotifications.showShortToast(context, \"Cannot read file\");\n return;\n }\n\n // Create URI\n File file = url;\n Uri uri = Uri.fromFile(file);\n\n Intent intent = new Intent(Intent.ACTION_VIEW);\n // Check what kind of file you are trying to open, by comparing the url with extensions.\n // When the if condition is matched, plugin sets the correct intent (mime) type,\n // so Android knew what application to use to open the file\n if ( url.toString().endsWith(\".doc\") || url.toString().contains(\".docx\") ) {\n // Word document\n intent.setDataAndType(uri, \"application/msword\");\n } else if ( url.toString().endsWith(\".pdf\") ) {\n // PDF file\n intent.setDataAndType(uri, \"application/pdf\");\n } else if ( url.toString().endsWith(\".ppt\") || url.toString().contains(\".pptx\") ) {\n // Powerpoint file\n intent.setDataAndType(uri, \"application/vnd.ms-powerpoint\");\n } else if ( url.toString().endsWith(\".xls\") || url.toString().contains(\".xlsx\") ) {\n // Excel file\n intent.setDataAndType(uri, \"application/vnd.ms-excel\");\n } else if ( url.toString().endsWith(\".zip\") || url.toString().contains(\".rar\") ) {\n // ZIP Files\n intent.setDataAndType(uri, \"application/zip\");\n } else if ( url.toString().endsWith(\".rtf\") ) {\n // RTF file\n intent.setDataAndType(uri, \"application/rtf\");\n } else if ( url.toString().endsWith(\".wav\") || url.toString().contains(\".mp3\") ) {\n // WAV audio file\n intent.setDataAndType(uri, \"audio/x-wav\");\n } else if ( url.toString().endsWith(\".gif\") ) {\n // GIF file\n intent.setDataAndType(uri, \"image/gif\");\n } else if ( url.toString().endsWith(\".jpg\") || url.toString().contains(\".jpeg\") || url.toString().contains(\".png\") ) {\n // JPG file\n intent.setDataAndType(uri, \"image/jpeg\");\n } else if ( url.toString().endsWith(\".txt\") ) {\n // Text file\n intent.setDataAndType(uri, \"text/plain\");\n } else if ( url.toString().endsWith(\".3gp\") || url.toString().contains(\".mpg\") || url.toString().contains(\".mpeg\") || url.toString().contains(\".mpe\") || url.toString().contains(\".mp4\") || url.toString().contains(\".avi\") ) {\n // Video files\n intent.setDataAndType(uri, \"video/*\");\n } else {\n // if you want you can also define the intent type for any other file\n\n // additionally use else clause below, to manage other unknown extensions\n // in this case, Android will show all applications installed on the device\n // so you can choose which application to use\n intent.setDataAndType(uri, \"*/*\");\n }\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Test\n public void readUrl() throws IOException {\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 }", "@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }", "void onDownloadComplete(EzDownloadRequest downloadRequest);" ]
[ "0.5800035", "0.55984175", "0.54384506", "0.5313256", "0.52981734", "0.5294494", "0.5289958", "0.52816695", "0.5278199", "0.5254394", "0.5249981", "0.5249981", "0.5230778", "0.5230347", "0.52209055", "0.5189493", "0.51651406", "0.5105565", "0.5101547", "0.50726897", "0.5042214", "0.50386655", "0.50295985", "0.5020028", "0.50071067", "0.50033754", "0.50003624", "0.49934596", "0.49878863", "0.49757957", "0.4927625", "0.4913724", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.4904161", "0.49020064", "0.48999962", "0.48975667", "0.4896439", "0.4894384", "0.4890377", "0.4887361", "0.48862448", "0.48734474", "0.486951", "0.48622665", "0.4851182", "0.4839319", "0.482835", "0.48246777", "0.4817233", "0.48027992", "0.4802752", "0.48018232", "0.47961906", "0.4783943", "0.4783943", "0.478242", "0.4781485", "0.4775649", "0.4769478", "0.47670537", "0.47659004", "0.47629967", "0.4762438", "0.47614267", "0.475587", "0.47539413", "0.475061", "0.4748812", "0.47446713", "0.47386867", "0.47375298", "0.47334698", "0.47309572", "0.47278267", "0.47275418", "0.47142777", "0.47090808", "0.47012123", "0.46987227", "0.46780637", "0.46778834", "0.4675089", "0.46691608", "0.4659529", "0.46506485", "0.46500826", "0.4647218", "0.4646569", "0.464526" ]
0.57087123
1
Log.d(TAG, "onPageStarted: " + s);
@Override public void onPageStarted(WebView webView, String s, Bitmap bitmap) { if (getMLoading() != null) getMLoading().show(); if (s.equals(ApiFactory.HOST)) { red_ulr = ApiFactory.HOST; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(ApiFactory.HOST + "home")) { red_ulr = ApiFactory.HOST + "home"; startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Index/index")) { red_ulr = ApiFactory.HOST + "home"; startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Index") || s.equals(ApiFactory.HOST + "index.php/Home/Index/")) { if (getWindow() != null && getMLoading().isShowing()) getMLoading().dismiss(); red_ulr = ApiFactory.HOST + "index.php/Home/Index"; if (!Utils.isExistMainActivity(ScanWebActivity.this, HomeActivity.class)) { startActivity(new Intent(ScanWebActivity.this, HomeActivity.class)); } hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/info")) { UserData.namestatus = "1"; } if (s.equals(Web_Url.HOME)) { red_ulr = Web_Url.HOME; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 0) { hostor_url.clear(); } } if (s.equals(Web_Url.ME_URL)) { red_ulr = Web_Url.ME_URL; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(Web_Url.SHANGPIN)) { red_ulr = Web_Url.SHANGPIN; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } if (s.equals(Web_Url.OREDER_URL)) { red_ulr = Web_Url.OREDER_URL; hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 1) { hostor_url.clear(); } } // if (s.equals(ApiFactory.HOST + "index.php/Home/User/redpacket")) { // hostor_url.add(s); // red_ulr = ApiFactory.HOST + "index.php/Home/User/redpacket"; // startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class)); // if (hostor_url != null && hostor_url.size() > 0) // hostor_url.remove(hostor_url.size() - 1); // } // if (s.equals(ApiFactory.HOST + "index.php/Home/User/redpacket.html")) { // hostor_url.add(s); // red_ulr = ApiFactory.HOST + "index.php/Home/User/redpacket.html"; // startActivity(new Intent(ScanWebActivity.this, RedPacketListActivity.class)); // if (hostor_url != null && hostor_url.size() > 0) // hostor_url.remove(hostor_url.size() - 1); // } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/Login_user.html")) { // ARouter.getInstance().build("/activity/login").navigation(); startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/index")) { // ARouter.getInstance().build("/activity/login").navigation(); startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Login/Login_user")) { startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/home/UserPass/user_password_passismodify")) {//强制修改密码 startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/home/UserPass/user_password_passismodify.html")) {//强制修改密码 startActivity(new Intent(ScanWebActivity.this, LoginActivity.class)); // ARouter.getInstance().build("/activity/login").navigation(); hostor_url.clear(); finish(); } if (s.equals(ApiFactory.HOST + "index.php/Home/Article/article_list/")) { hostor_url.add(s); if (hostor_url != null && hostor_url.size() > 0) hostor_url.remove(hostor_url.size() - 1); startActivity(new Intent(ScanWebActivity.this, NoticeActivity.class)); // ARouter.getInstance().build("/activity/notice").navigation(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n final String onPageStartedUrl = url;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"Initiating page: \" + onPageStartedUrl);\n }\n });\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n Log.d(TAG, \"onPageScrollStateChanged: \"+state);\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n System.out.println(\"onPageScrolled is called\");\n\n\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(TAG);\n\t}", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: \"+position);\n }", "void onPageChanged(int position);", "public void onPageStarted(WebView view, String url, Bitmap favicon)\n {\n loadTimer = System.currentTimeMillis();\n pageFinished = false;\n }", "@Override\n\tprotected void onStart(){\n\t\tsuper.onStart();\n\t\tLog.d(msg, \"HomePageActivity onStart() event\");\n\t}", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "@Override\n public void onPageStarted (WebView view, String url, Bitmap favicon)\n {\n }", "@Override\n public void onStarted(final String status) {\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onStarted', {})\";\n webView.loadUrl(event);\n }\n });\n\n }", "@Override\n public void onResume() {\n super.onResume();\n\n //call a page frgament instance\n\n\n }", "@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"on page started\");\t\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}", "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrollStateChanged(int position) {\n\t\tLog.e(TAG, \"onPageScrollStateChanged=\" + position);\r\n\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mPage = getArguments().getInt(ARG_PAGE);\n }", "Point onPage();", "@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\tLog.i(\"\", \"Enter hereeeeeeeeeeeeeeeeeeeee(onPageScrollStateChanged!!!\");\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\tLog.i(\"\", \"Enter hereeeeeeeeeeeeeeeeeeeee(onPageScrolled!!!\");\n\t\t\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tMobclickAgent.onPageStart(mPageName);\n\t\tMobclickAgent.onResume(mContext);\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(tag, \"The onStart() event\");\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n progress.setVisibility(View.VISIBLE);\n WebViewActivity.this.progress.setProgress(0);\n\n logToast(\"onPageStarted \" + url);\n super.onPageStarted(view, url, favicon);\n }", "@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon)\n\t{\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}", "@Override\n public void onPageChanged(int position) {\n }", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\r\n public void onPageScrollStateChanged(int arg0) {\n\r\n }", "@Override\n public void onPageSelected(int arg0) {\n }", "@Override\n public void onPageStarted(android.webkit.WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n\t\tprotected void onResume() {\n\t\t\tsuper.onResume();\n\t\t\t//SDK已经禁用了基于Activity 的页面统计,所以需要再次重新统计页面\n\t\t\tMobclickAgent.onPageStart(mPageName);\n\t\t\tMobclickAgent.onResume(this);\n\t\t}", "@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"onPageStarted\");\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}", "@Override\n public void onPageSelected(int position)\n {\n\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(TAG, \"onStart() called\");\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "public void onPageSelected(int position) {\n\t\t\n\t}", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n loadingFinished = false;\n try {\n String hash = new URI(url).getFragment();\n int index = hash.indexOf(\"=\");\n String sub = hash.substring(index+1);\n sharedPreferenceUtil.setAcessToken(sub);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n Log.d(TAG, \"onPageScrolled: position=\"+position+\",positionOffset=\"+positionOffset+\",positionOffsetPixels=\"+positionOffsetPixels);\n }", "@Override\n\t public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t super.onPageStarted(view, url, favicon);\n\t }", "@Override\n public void onPageScrollStateChanged(int state)\n {\n\n }", "@Override\r\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n public void onPageScrollStateChanged(int state) {\n // Code goes here\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.e(TAG, \"onStart\");\n }", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}", "void onStarted();", "@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}", "public void onPageSelected(int position) {\n \t\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(LOG_TAG,\"onStart\");\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }", "@Override\r\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n // loading start\n progressBar.setVisibility(View.VISIBLE);\n }", "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t}", "@Override\r\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t}", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n super.onPageStarted(view, url, favicon);\n\n mProgress.setMessage(\"Loading...\");\n mProgress.show();\n\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.v(\"tag\",\"onStart\" );\n\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n \tsuper.onPageStarted(view, url, favicon);\r\n \tprogressbar=(ProgressBar)activity.findViewById(R.id.progressBar1);\r\n \t\r\n \tprogressbar.setProgress(100);\r\n \t\r\n \t\r\n \t\r\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "@Override\n public void onPageScrollStateChanged(int arg0) {\n }", "protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //Starts the selected layout as the first page when app opens\n setContentView(R.layout.activity_main_page);\n new JSONArrayExtractor().execute(); //This command allows the class to run and make URL requests without crashing\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mSectionStatePagerAdapter = new SectionsStatePagerAdapter(getSupportFragmentManager());\n mViewPager = (ViewPager) findViewById(R.id.container);\n setupViewPager(mViewPager);\n\n Log.i(TAG,\"MainPage Started.\");\n Toast.makeText(getApplicationContext(),\"Weather Found\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n page = getArguments().getInt(\"someInt\", 0);\n title = getArguments().getString(\"someTitle\");\n }" ]
[ "0.70579565", "0.6979554", "0.6816389", "0.67469615", "0.6669906", "0.6589833", "0.65776485", "0.6556584", "0.6542259", "0.65340286", "0.6518005", "0.64868087", "0.6484965", "0.6483566", "0.64823765", "0.6467066", "0.64446354", "0.64419293", "0.64419293", "0.6439891", "0.6387516", "0.6370867", "0.63640636", "0.6349835", "0.6346693", "0.6332594", "0.63311595", "0.6326449", "0.63195807", "0.63195807", "0.6306478", "0.62970304", "0.62942165", "0.6287843", "0.6283719", "0.6273346", "0.6271757", "0.6271486", "0.6271486", "0.62652284", "0.6254638", "0.62436295", "0.6243214", "0.6240829", "0.6240185", "0.6229122", "0.62284195", "0.6224447", "0.62114465", "0.62111276", "0.62111276", "0.62111276", "0.6209065", "0.6206317", "0.6206317", "0.62050766", "0.6203848", "0.61892724", "0.61854035", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6184212", "0.6182318", "0.6182318", "0.6177899", "0.617143", "0.61687756", "0.61687756", "0.6164932", "0.6164932", "0.6164932", "0.6164932", "0.6164932", "0.6164932", "0.6158105", "0.6151926", "0.6151926", "0.6151926", "0.6151926", "0.6151926", "0.6151926", "0.6151926", "0.6149816", "0.6142158", "0.6142158", "0.61416775", "0.61407375", "0.6140573", "0.613323", "0.61298054", "0.61231273", "0.6117904", "0.6117904", "0.6114359", "0.61135346" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { Intent i = new Intent(SplashScreen.this, MainMenuActivity.class); startActivity(i); //Menyelesaikan Splashscreen finish(); }
{ "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
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "ClientIP", this.ClientIP); this.setParamSimple(map, prefix + "ClientUA", this.ClientUA); this.setParamSimple(map, prefix + "FaceIdToken", this.FaceIdToken); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@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 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 protected void init() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "protected Problem() {/* intentionally empty block */}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public int retroceder() {\n return 0;\n }", "protected Doodler() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n protected void initialize() \n {\n \n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void apply() {\n }", "private TestsResultQueueEntry() {\n\t\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected void initialize() {}", "protected void initialize() {}", "private final void i() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected void h() {}", "@Override\n\tpublic void anular() {\n\n\t}", "private Unescaper() {\n\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void init() {}", "private Util() { }", "@Override public int describeContents() { return 0; }", "public void method_4270() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\n public void init() {\n\n }", "protected void init() {\n // to override and use this method\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private TedCorrigendumHandler() {\n throw new AssertionError();\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "private MetallicityUtils() {\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 nadar() {\n\t\t\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n public void preprocess() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "protected void additionalProcessing() {\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void assignment() {\n\n\t\t\t}" ]
[ "0.6258216", "0.6217109", "0.6023305", "0.5983126", "0.59650916", "0.59326935", "0.59194076", "0.5834353", "0.57812667", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5776117", "0.5775023", "0.5706227", "0.5700701", "0.56521744", "0.564853", "0.564853", "0.5640804", "0.5636836", "0.56349975", "0.56167954", "0.56131667", "0.56072235", "0.56072235", "0.56046027", "0.5598257", "0.5556023", "0.5547496", "0.5539629", "0.553049", "0.5528155", "0.5526631", "0.55240864", "0.55186665", "0.55170935", "0.55170935", "0.5508343", "0.5503874", "0.5503244", "0.54976124", "0.5493864", "0.5486013", "0.5486013", "0.54848546", "0.54848546", "0.54699624", "0.54672414", "0.5466621", "0.5458578", "0.5448617", "0.54449356", "0.54422766", "0.54307634", "0.54298854", "0.5428902", "0.5427068", "0.5424847", "0.5422726", "0.5421022", "0.5413016", "0.54120255", "0.5410029", "0.540799", "0.5403588", "0.53937596", "0.5393043", "0.5393043", "0.5382313", "0.5382313", "0.53775936", "0.53728557", "0.5372323", "0.5368048", "0.53673726", "0.5362064", "0.53595465", "0.5358562", "0.5358413", "0.535645", "0.535645", "0.535645", "0.5354977", "0.5354508", "0.5354115", "0.535208", "0.53519964", "0.5351449", "0.5351354", "0.53507876", "0.5335155", "0.5335053", "0.53334635", "0.53321147", "0.5331753", "0.5331369", "0.53308755", "0.53274506" ]
0.0
-1
Save Or Update save new cmVocabularyCategory
@Transactional public void save(CmVocabularyCategory cmVocabularyCategory) { dao.save(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic void saveOrUpdate(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.saveOrUpdate(cmVocabularyCategory);\r\n\t}", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "Category saveCategory(Category category);", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "public void persistCvcategory(Cvcategory cvcategory);", "@Override\n\tpublic void saveCategory(Category category, boolean isNew) throws Exception {\n\n\t}", "Category editCategory(Category category);", "@Override\n\tpublic void saveOrUpdateCategory(Category v) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(v);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "UpdateCategoryResponse updateCategory(UpdateCategoryRequest request) throws RevisionException;", "Category addNewCategory(Category category);", "Boolean updateCategory(DvdCategory category) throws DvdStoreException;", "public Categorie updateCategorie(Categorie c);", "void updateCategory(Category category);", "void updateCategory(Category category);", "void updateCategory(String category){}", "boolean edit(DishCategory oldDishCategory, DishCategory newDishCategory);", "public void newCategory() {\n btNewCategory().push();\n }", "@Override\n\tpublic boolean saveorupdate(Category category) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(category);\n\t\treturn true;\n\t}", "public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }", "public void saveCategory(Category category){\r\n\t\temf = DbHelper.provideFactory();\r\n\t\tem = emf.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(category);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "private void saveNewCatalog() {\n\n\t}", "public void saveLzzCategory(Object obj) {\n\t\tloadLzzCategorys();\n\t\tsession = LzzFactory.currentSession();\n\t\tdao.setSession(session);\n\t\tdao.save(obj);\n\t\tLzzCategory obj2 = (LzzCategory)obj;\n\t\tmLzzCategorys.add(obj2);\n\t\tmLzzCategoryHash.put(obj2.getId(), obj2);\n\t}", "public int saveNewCatalog(String catName) throws BackendException;", "@Override\n\tpublic void updateCategory(Category cat) {\n\t\tdao.updateCategory(cat);\n\t\t\n\t}", "@Override\r\n\tpublic void updateCategory(Category c) {\n\t\tem.merge(c);\r\n\t\t\r\n\t}", "public Categorie addCategorie(Categorie c);", "public Medicine saveMedicineCategory(Integer id, Category related_category);", "@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }", "public void saveOrUpdate(Category entity) {\n\t\tthis.getCurrentSession().saveOrUpdate(entity);\r\n\t}", "public void save(ProductCategory u) {\n\t\tadminCategoryRepoIF.save(u);\n\t}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "void addCategory(Category category);", "public void addNewCategory(Category category) throws CostManagerException;", "public String updateCategory()\n {\n logger.info(\"**** In updateCategory in Controller ****\");\n boolean flag = categoryService.updateCategory(category);\n if (flag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_UPDATION_SUCCESS, Constants.CATEGORY_UPDATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return searchCategory();\n }", "@RequestMapping(value = { \"/saveCategory\" }, method = RequestMethod.POST)\r\n\tpublic String saveCategory(@ModelAttribute Category category) {\r\n\t\tModelAndView modelAndView = new ModelAndView(\"page\");\r\n\t\tif (category.getId() == 0) {\r\n\t\t\tcategoryDAO.addCategory(category);\r\n\t\t\tmodelAndView.addObject(\"title\", \"Add Category\");\r\n\t\t\tmodelAndView.addObject(\"ifUserClickedAddCategory\", true);\r\n\t\t} else {\r\n\t\t\tcategoryDAO.updateCategory(category);\r\n\t\t}\r\n\t\treturn \"redirect:/admin/addcategory?op=add&status=success\";\r\n\t}", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "public void update(Integer id, DVD dvd, Categorie categorie);", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "public String getSaveCategory( HttpServletRequest request, String strCategoryClassName )\r\n {\r\n ShowCategoryDTO category = null;\r\n Map<String, Object> model = new HashMap<String, Object>( );\r\n\r\n FunctionnalException fe = getErrorOnce( request );\r\n\r\n if ( fe != null )\r\n {\r\n category = (ShowCategoryDTO) fe.getBean( );\r\n model.put( BilletterieConstants.ERROR, getHtmlError( fe ) );\r\n }\r\n else\r\n {\r\n String strCategoryId = request.getParameter( PARAMETER_CATEGORY_ID );\r\n\r\n if ( strCategoryId != null )\r\n {\r\n setPageTitleProperty( PAGE_TITLE_MODIFY_CATEGORY );\r\n\r\n int nIdCategory = Integer.parseInt( strCategoryId );\r\n category = _serviceCategory.findById( nIdCategory );\r\n }\r\n else\r\n {\r\n setPageTitleProperty( PAGE_TITLE_CREATE_CATEGORY );\r\n category = new ShowCategoryDTO( );\r\n }\r\n }\r\n\r\n model.put( StockConstants.MARK_JSP_BACK, JSP_MANAGE_CATEGORYS );\r\n model.put( MARK_CATEGORY, category );\r\n\r\n if ( ( category.getId( ) != null ) && ( category.getId( ) != 0 ) )\r\n {\r\n model.put( MARK_TITLE, I18nService.getLocalizedString( PAGE_TITLE_MODIFY_CATEGORY, Locale.getDefault( ) ) );\r\n }\r\n else\r\n {\r\n model.put( MARK_TITLE, I18nService.getLocalizedString( PAGE_TITLE_CREATE_CATEGORY, Locale.getDefault( ) ) );\r\n }\r\n\r\n HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_SAVE_CATEGORY, getLocale( ), model );\r\n\r\n return getAdminPage( template.getHtml( ) );\r\n }", "@Transactional\r\n\tpublic void delete(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.delete(cmVocabularyCategory);\r\n\t}", "@PostMapping(\"/saveCategories\")\n public String saveCategories(@ModelAttribute(\"categories\") Categories theCategories) {\n List<Product> products =null;\n if(theCategories.getId()!= 0)\n {\n products= categoriesService.getProducts(theCategories.getId());\n }\n theCategories.setProducts(products);\n categoriesService.saveCategories(theCategories);\t\n return \"redirect:/admin/loaisanpham/list\";\n }", "public void saveLzzGoodCategory(Object obj) {\n\t\tloadLzzGoodCategorys();\n\t\tsession = LzzFactory.currentSession();\n\t\tdao.setSession(session);\n\t\tdao.save(obj);\n\t\tLzzGoodCategory obj2 = (LzzGoodCategory)obj;\n\t\tmLzzGoodCategorys.add(obj2);\n\t\tmLzzGoodCategoryHash.put(obj2.getId(), obj2);\n\t}", "public void saveCatalogDescription(CatalogDescription cd)\r\n\t throws StaleDataException, DatabaseException;", "@Override\n\tpublic void createCategory(Category category) { \n\t\tif (categoryExists(category))\n\t\t\treturn; \n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tsession.save(category);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t}", "public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }", "Boolean restoreCategory(Integer category_Id) throws DvdStoreException;", "@Test\n public void testSave() throws Exception {\n ProductCategory productCategory = categoryServiceImpl.findOne(1);\n productCategory.setCategoryName(\"Lego\");\n ProductCategory category = categoryServiceImpl.save(productCategory);\n System.out.println(\"category:\" + category);\n }", "public void modifyCategory(Category c) {\n\t\tcategoryDao.update(c);\n\t}", "@Transactional\r\n\tpublic CmVocabularyCategory getCmVocabularyCategoryById(final String id) {\r\n\t\tCmVocabularyCategory cmVocabularyCategory = dao.findById(CmVocabularyCategory.class, id);\r\n\t\treturn cmVocabularyCategory;\r\n\t}", "void add(ProductCategory category);", "public static void checkCategoryInDb() {\n try {\n Category category = Category.listAll(Category.class).get(0);\n\n } catch (Exception e) {\n Category undefinedCategory = new Category();\n undefinedCategory.setCategoryId(1);\n undefinedCategory.setCategoryName(\"Others\");\n undefinedCategory.save();\n }\n }", "@Override\r\n\tpublic void edit(SecondCategory scategory) {\n\t\tscategory.setIs_delete(0);\r\n\t\tscategoryDao.update(scategory);\r\n\t}", "private void checkCategoryPreference() {\n SharedPreferences sharedPrefs = getSharedPreferences(Constants.MAIN_PREFS, Context.MODE_PRIVATE);\n String json = sharedPrefs.getString(Constants.CATEGORY_ARRAY, null);\n Type type = new TypeToken<ArrayList<Category>>(){}.getType();\n ArrayList<Category> categories = new Gson().fromJson(json, type);\n if(categories == null) {\n categories = new ArrayList<>();\n Category uncategorized = new Category(Constants.CATEGORY_UNCATEGORIZED, Constants.CYAN);\n categories.add(uncategorized);\n String jsonCat = new Gson().toJson(categories);\n SharedPreferences.Editor prefsEditor = sharedPrefs.edit();\n prefsEditor.putString(Constants.CATEGORY_ARRAY, jsonCat);\n prefsEditor.apply();\n }\n }", "public void setCategory(String category);", "public boolean save() {\n boolean saved = false;\n ResultSet result = null;\n try {\n StringBuilder sql = new StringBuilder();\n sql.append(\"insert into ApplicationCategory (applicationCategoryName)\");\n sql.append(String.format(\"Values('%s')\", this.getApplicationCategoryName()));\n result = dbAccess.save(sql.toString());\n if (result.next()) {\n this.setApplicationCategoryId(result.getInt(1));\n saved = true;\n }\n result.close();\n dbAccess.closeConnection();\n } catch (Exception e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return saved;\n }", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "public DocCategory updateDocCategory(DocCategory docCategory) throws EntityNotFoundException {\n DocCategory docCategoryToUpdate = docCategoryRepository.findById(docCategory.getId()).orElseThrow(EntityNotFoundException::new);\n if (docCategory.getName() != null) docCategoryToUpdate.setName(docCategory.getName());\n return docCategoryRepository.save(docCategoryToUpdate);\n }", "Product saveProduct (Long categoryId, Long productId);", "public void setR_Category_ID (int R_Category_ID);", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> update(@RequestBody Category category) {\r\n\t\ttry {\r\n\t\t\tcategoryService.updateFromCopy(category);\r\n\t\t\tcategory = categoryService.findById(category.getId());\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.OK);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to update the category\", e);\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}", "public void setCategory(Category c) {\n this.category = c;\n }", "void restoreCategory(Category category);", "@Override\n\tpublic void add(Category category) {\n\t\tsessionFactory.getCurrentSession().persist(category);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "@Override\n\tpublic void update(Categoria c) throws SQLException {\n\t\tPreparedStatement ps=conn.prepareStatement(\"UPDATE categoria SET descrizione=?\");\n\t\tps.setString(1, c.getDescrizione());\n\t\tint n = ps.executeUpdate();\n\t\tif(n==0)\n\t\t\tthrow new SQLException(\"categoria: \" + c.getIdCategoria() + \" non presente\");\n\t\t\n\t}", "@Override\n\tprotected void updateRecord(String[] data) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(new Integer(data[0]));\n\t\tcategory.setName(data[1]);\n\t\tcategory.setGameId(new Integer(data[2]));\n\t\tnew Categories().update(category);\n\t}", "CodeCategory updateCodeCategory(CodeCategory codeCategory)\n throws DAOException;", "@Override\n public boolean updateCategory(Category newCategory)\n {\n // format the string\n String query = \"UPDATE Categories SET CategoryName = '%1$s', Description = '%2$s', CreationDate = '%3$s'\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n return DataService.executeUpdate(query);\n }", "@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}", "public void addCategory(Category c) {\n\t\tcategoryDao.save(c);\n\t}", "public int editCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "@Override\r\n\tpublic boolean update(Se_cat se_cat) {\n\t\treturn se_catdao.update(se_cat);\r\n\t}", "@Override\n\tpublic Category updateCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void update(Categories cate) {\n\t\tcategoriesDAO.update(cate);\n\t}", "public void update(cat_vo cv) {\n\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.saveOrUpdate(cv);\n\t\ttr.commit();\n\t}", "@Override\n\tpublic void editCategoria(String oldName, String newName ) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong oldHash = oldName.hashCode();\n\t\tlong newHash = newName.hashCode();\n\t\tCategoria categoria = categorie.get(oldHash); \n\t\tcategoria.setNome(newName);\n\t\tcategorie.remove(oldHash);\n\t\tcategorie.put(newHash, categoria);\n\t\tdb.commit();\n\t}", "@Override\r\n\tpublic void updateCategory(Category category) {\n\t\tCategory c = getCategoryById(category.getCategory_id());\r\n\t\tc.setCategory_id(category.getCategory_id());\r\n\t\tc.setCategory_name(category.getCategory_name());\r\n\t\tc.setCategory_number(category.getCategory_number());\r\n\t\tc.setCommoditySet(category.getCommoditySet());\r\n\t\tc.setDescription(category.getDescription());\r\n\t\tgetHibernateTemplate().update(c);\r\n\t}", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "private void triggerValiderCategorie() {\n JSONObject categorie = new JSONObject();\n String categorie_nom = this.editTextCategorie.getText().toString();\n try {\n categorie.put(Metier.CLE_CATEGORIE_NOM, categorie_nom);\n categorie.put(Metier.CLE_PRODUIT_NOM, \"\");\n for (int i = 0; i < this.listViewChampAdapter.getCount(); i++) {\n JSONObject champ = this.listViewChampAdapter.getItem(i);\n categorie.put(champ.optString(Metier.CLE_CHAMP_NOM), \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n insererCategorie(categorie);\n }", "public void updatePortletCategory(PortletCategory category);", "public void update(Category category) {\n category_dao.update(category);\n }", "@FXML\n public void submitCategory() {\n String categoryString = inputBox.getText();\n category = new Category(categoryString);\n habitSorter.addHabitRelation(category);\n changeInputTextToHabitName();\n System.out.println(\"Category submitted\");\n inputBox.setText(\"\");\n }", "@RequestMapping(value=\"/formcategory\",method=RequestMethod.POST,params=\"update\")\r\n\tpublic ModelAndView updateCategory(@ModelAttribute(\"category\")Category category,BindingResult result,SessionStatus status,Model model)\r\n\t{\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tCategory CategoryOld = categoryDao.getCategory(category.getCategoryId());\r\n\t\tcategoryValidator.validateUpdate(category,CategoryOld, result);//validation of the category entity fields\r\n\t\tif(result.hasErrors())\r\n\t\t{\r\n\t\t\tModelMap map = new ModelMap();\r\n\t\t\tmap.put(\"command\",category);\r\n\t\t\tmap.addAttribute(\"errorType\",\"updateError\");\r\n\t\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\t\treturn new ModelAndView(\"formcategory\",map);\r\n\t\t}\r\n\t\tString metalUsed=category.getMetalType();\r\n\t\tString subCategoryName=category.getCategoryName();\r\n\t\tString basecategory=category.getBaseCategory();\r\n\t\tBigDecimal CatZERO = new BigDecimal(\"0.00\");\r\n\t\t\r\n\t\tBigDecimal vaPercentage=category.getVaPercentage();\r\n\t\tif(vaPercentage == null || vaPercentage.signum() == 0){\r\n\t\t\tcategory.setVaPercentage(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal mc=category.getMcPerGram();\r\n\t\tif(mc == null || mc.signum() == 0){\r\n\t\t\tcategory.setMcPerGram(CatZERO);\r\n\t\t}\r\n\t\tBigDecimal mcrupees=category.getMcInRupees();\r\n\t\tif(mcrupees == null || mcrupees.signum() == 0){\r\n\t\t\tcategory.setMcInRupees(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal Vat=category.getVat();\r\n\t\tif(Vat == null || Vat.signum() == 0){ \r\n\t\t\tcategory.setVat(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal less=category.getLessPercentage();\r\n\t\tif(less == null || less.signum() == 0){\r\n\t\t\tcategory.setLessPercentage(CatZERO);\r\n\t\t}\r\n\t\tBigDecimal catHMC=category.getCategoryHMCharges();\r\n\t\tif(catHMC == null || catHMC.signum() == 0){\r\n\t\t\tcategory.setCategoryHMCharges(CatZERO);\r\n\t\t}\r\n\t\tcategoryDao.updateCategory(category);\r\n\t\titemmasterDao.updateVaPercentage(less, vaPercentage, mc,mcrupees, Vat, metalUsed, subCategoryName, catHMC);\r\n\t\tstatus.setComplete();\r\n\t\treturn new ModelAndView(new RedirectView(\"categoryList.htm?bcat=\"+basecategory));\r\n\t}", "@Override\n protected void onOk(Category category) {\n if (getPart().getCategory() != null) {\n getCurrentConversation().getEntityManager().detach(getPart().getCategory());\n }\n\n getPart().setCategory(category);\n messageUtil.infoEntity(\"status_created_ok\", category);\n }", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public void approveCategory(Category category) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n category.setApproved(true);\n dbb.overwriteCategory(category);\n dbb.commit();\n dbb.closeConnection();\n }", "public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }", "@PostMapping(\"/categoriesfu\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Category> createCategory(@Valid @RequestBody Category category) throws URISyntaxException {\n log.debug(\"REST request to save Category : {}\", category);\n \n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n category.setRestaurant(restaurant);\n \n if (category.getId() != null) {\n throw new BadRequestAlertException(\"A new category cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Category result = categoryRepository.save(category);\n return ResponseEntity.created(new URI(\"/api/categoriesfu/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(applicationName, true, ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void setId(Category category) {\n\t\r\n}", "@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}", "public void setCategoryId(long categoryId);", "public Resolution saveConcept() throws ServiceException {\r\n \r\n RedirectResolution resolution = new RedirectResolution(VocabularyFolderActionBean.class, \"edit\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", vocabularyFolder.getIdentifier());\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n if (vocabularyConcept != null) {\r\n // Save new concept\r\n vocabularyService.createVocabularyConcept(vocabularyFolder.getId(), vocabularyConcept);\r\n } else {\r\n // Update existing concept\r\n vocabularyService.quickUpdateVocabularyConcept(getEditableConcept());\r\n initFilter();\r\n resolution.addParameter(\"page\", page);\r\n if (StringUtils.isNotEmpty(filter.getText())) {\r\n resolution.addParameter(\"filter.text\", filter.getText());\r\n }\r\n }\r\n \r\n addSystemMessage(\"Vocabulary concept saved successfully\");\r\n return resolution;\r\n }", "public void create(int id, DVD dvd, Categorie categorie);", "public static void updateCategoryName(Context context, Category category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category.category);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(category._id)}\r\n );\r\n db.close();\r\n }", "public long createCategory(CategoryModel categoryModel){\n //access the database\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set the parameters\n ContentValues values = new ContentValues();\n values.put(InventoryContract.CategoryEntry.COLUMN_CATEGORY_NAME, categoryModel.getName());\n\n //insert the row\n long category_id = db.insert(CategoryEntry.TABLE_NAME, null, values);\n\n return category_id;\n }", "public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}", "public void saveVocab (Vocabulary v, String vocabFilePath) throws IOException {\n\t\tFile file = new File(vocabFilePath);\n\t\t//if (file.exists()) file.delete();\n\t\t//file.createNewFile();\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));\n\t\tfor (int i = 0; i < v.vocabSize; i++) {\n\t\t\tbw.write(v.vocab.get(i).word + \" \" + v.vocab.get(i).cn + \"\\n\");\n\t\t}\n\t\tbw.close();\n\t}", "public void actualizarCategoria(CategoriaDTO categoria);" ]
[ "0.753681", "0.69215393", "0.68297887", "0.67546815", "0.65541124", "0.65511936", "0.65012354", "0.64701766", "0.64262605", "0.6351765", "0.63307416", "0.6316883", "0.63166887", "0.63166887", "0.6234833", "0.60218984", "0.5989783", "0.5905773", "0.5862574", "0.58592093", "0.5853602", "0.5840112", "0.5833751", "0.58200544", "0.58113515", "0.5805372", "0.57872087", "0.5760762", "0.5753973", "0.57427305", "0.5741086", "0.5715076", "0.56988555", "0.5680779", "0.565666", "0.5649313", "0.56462437", "0.56448656", "0.55949444", "0.5564762", "0.55494326", "0.5546516", "0.55423504", "0.5520701", "0.5520677", "0.5505258", "0.5495035", "0.5488461", "0.5486997", "0.5461711", "0.5454711", "0.5398224", "0.53796285", "0.53764194", "0.53701323", "0.5362819", "0.53504056", "0.5338864", "0.5328554", "0.5315905", "0.53154784", "0.53005373", "0.5282074", "0.52787256", "0.52731085", "0.5269174", "0.52683055", "0.5256522", "0.525234", "0.5250918", "0.5250739", "0.5250013", "0.52355283", "0.5235088", "0.52346134", "0.52305174", "0.52263916", "0.5219628", "0.52007264", "0.5192936", "0.51877785", "0.51840883", "0.518252", "0.5177508", "0.5175269", "0.5167001", "0.5165335", "0.5163519", "0.51492673", "0.5142738", "0.5138748", "0.5138111", "0.5130991", "0.5119218", "0.5105887", "0.5098469", "0.50981027", "0.5097748", "0.50932556", "0.5086031" ]
0.7439434
1
save or update new cmVocabularyCategory
@Transactional public void saveOrUpdate(CmVocabularyCategory cmVocabularyCategory) { dao.saveOrUpdate(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic void save(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.save(cmVocabularyCategory);\r\n\t}", "Category saveCategory(Category category);", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "public void persistCvcategory(Cvcategory cvcategory);", "@Override\n\tpublic void saveOrUpdateCategory(Category v) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(v);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "Category editCategory(Category category);", "@Override\n\tpublic void saveCategory(Category category, boolean isNew) throws Exception {\n\n\t}", "Category addNewCategory(Category category);", "UpdateCategoryResponse updateCategory(UpdateCategoryRequest request) throws RevisionException;", "Boolean updateCategory(DvdCategory category) throws DvdStoreException;", "public Categorie updateCategorie(Categorie c);", "void updateCategory(Category category);", "void updateCategory(Category category);", "void updateCategory(String category){}", "boolean edit(DishCategory oldDishCategory, DishCategory newDishCategory);", "@Override\n\tpublic void updateCategory(Category cat) {\n\t\tdao.updateCategory(cat);\n\t\t\n\t}", "public void saveCategory(Category category){\r\n\t\temf = DbHelper.provideFactory();\r\n\t\tem = emf.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(category);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}", "public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }", "@Override\r\n\tpublic void updateCategory(Category c) {\n\t\tem.merge(c);\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean saveorupdate(Category category) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(category);\n\t\treturn true;\n\t}", "public void newCategory() {\n btNewCategory().push();\n }", "public Categorie addCategorie(Categorie c);", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "public Medicine saveMedicineCategory(Integer id, Category related_category);", "public void saveLzzCategory(Object obj) {\n\t\tloadLzzCategorys();\n\t\tsession = LzzFactory.currentSession();\n\t\tdao.setSession(session);\n\t\tdao.save(obj);\n\t\tLzzCategory obj2 = (LzzCategory)obj;\n\t\tmLzzCategorys.add(obj2);\n\t\tmLzzCategoryHash.put(obj2.getId(), obj2);\n\t}", "void addCategory(Category category);", "public void addNewCategory(Category category) throws CostManagerException;", "public void saveOrUpdate(Category entity) {\n\t\tthis.getCurrentSession().saveOrUpdate(entity);\r\n\t}", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "public void save(ProductCategory u) {\n\t\tadminCategoryRepoIF.save(u);\n\t}", "public int saveNewCatalog(String catName) throws BackendException;", "public void update(Integer id, DVD dvd, Categorie categorie);", "@RequestMapping(value = { \"/saveCategory\" }, method = RequestMethod.POST)\r\n\tpublic String saveCategory(@ModelAttribute Category category) {\r\n\t\tModelAndView modelAndView = new ModelAndView(\"page\");\r\n\t\tif (category.getId() == 0) {\r\n\t\t\tcategoryDAO.addCategory(category);\r\n\t\t\tmodelAndView.addObject(\"title\", \"Add Category\");\r\n\t\t\tmodelAndView.addObject(\"ifUserClickedAddCategory\", true);\r\n\t\t} else {\r\n\t\t\tcategoryDAO.updateCategory(category);\r\n\t\t}\r\n\t\treturn \"redirect:/admin/addcategory?op=add&status=success\";\r\n\t}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "@Override\n\tpublic void createCategory(Category category) { \n\t\tif (categoryExists(category))\n\t\t\treturn; \n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tsession.save(category);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t}", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "public void modifyCategory(Category c) {\n\t\tcategoryDao.update(c);\n\t}", "@Transactional\r\n\tpublic CmVocabularyCategory getCmVocabularyCategoryById(final String id) {\r\n\t\tCmVocabularyCategory cmVocabularyCategory = dao.findById(CmVocabularyCategory.class, id);\r\n\t\treturn cmVocabularyCategory;\r\n\t}", "public String updateCategory()\n {\n logger.info(\"**** In updateCategory in Controller ****\");\n boolean flag = categoryService.updateCategory(category);\n if (flag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_UPDATION_SUCCESS, Constants.CATEGORY_UPDATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return searchCategory();\n }", "private void saveNewCatalog() {\n\n\t}", "@Transactional\r\n\tpublic void delete(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.delete(cmVocabularyCategory);\r\n\t}", "void add(ProductCategory category);", "@PostMapping(\"/saveCategories\")\n public String saveCategories(@ModelAttribute(\"categories\") Categories theCategories) {\n List<Product> products =null;\n if(theCategories.getId()!= 0)\n {\n products= categoriesService.getProducts(theCategories.getId());\n }\n theCategories.setProducts(products);\n categoriesService.saveCategories(theCategories);\t\n return \"redirect:/admin/loaisanpham/list\";\n }", "public String getSaveCategory( HttpServletRequest request, String strCategoryClassName )\r\n {\r\n ShowCategoryDTO category = null;\r\n Map<String, Object> model = new HashMap<String, Object>( );\r\n\r\n FunctionnalException fe = getErrorOnce( request );\r\n\r\n if ( fe != null )\r\n {\r\n category = (ShowCategoryDTO) fe.getBean( );\r\n model.put( BilletterieConstants.ERROR, getHtmlError( fe ) );\r\n }\r\n else\r\n {\r\n String strCategoryId = request.getParameter( PARAMETER_CATEGORY_ID );\r\n\r\n if ( strCategoryId != null )\r\n {\r\n setPageTitleProperty( PAGE_TITLE_MODIFY_CATEGORY );\r\n\r\n int nIdCategory = Integer.parseInt( strCategoryId );\r\n category = _serviceCategory.findById( nIdCategory );\r\n }\r\n else\r\n {\r\n setPageTitleProperty( PAGE_TITLE_CREATE_CATEGORY );\r\n category = new ShowCategoryDTO( );\r\n }\r\n }\r\n\r\n model.put( StockConstants.MARK_JSP_BACK, JSP_MANAGE_CATEGORYS );\r\n model.put( MARK_CATEGORY, category );\r\n\r\n if ( ( category.getId( ) != null ) && ( category.getId( ) != 0 ) )\r\n {\r\n model.put( MARK_TITLE, I18nService.getLocalizedString( PAGE_TITLE_MODIFY_CATEGORY, Locale.getDefault( ) ) );\r\n }\r\n else\r\n {\r\n model.put( MARK_TITLE, I18nService.getLocalizedString( PAGE_TITLE_CREATE_CATEGORY, Locale.getDefault( ) ) );\r\n }\r\n\r\n HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_SAVE_CATEGORY, getLocale( ), model );\r\n\r\n return getAdminPage( template.getHtml( ) );\r\n }", "@Test\n public void testSave() throws Exception {\n ProductCategory productCategory = categoryServiceImpl.findOne(1);\n productCategory.setCategoryName(\"Lego\");\n ProductCategory category = categoryServiceImpl.save(productCategory);\n System.out.println(\"category:\" + category);\n }", "@Override\n\tprotected void updateRecord(String[] data) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(new Integer(data[0]));\n\t\tcategory.setName(data[1]);\n\t\tcategory.setGameId(new Integer(data[2]));\n\t\tnew Categories().update(category);\n\t}", "@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> update(@RequestBody Category category) {\r\n\t\ttry {\r\n\t\t\tcategoryService.updateFromCopy(category);\r\n\t\t\tcategory = categoryService.findById(category.getId());\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.OK);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to update the category\", e);\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}", "public void saveCatalogDescription(CatalogDescription cd)\r\n\t throws StaleDataException, DatabaseException;", "@Override\n\tpublic void add(Category category) {\n\t\tsessionFactory.getCurrentSession().persist(category);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "public void setCategory(String category);", "public void saveLzzGoodCategory(Object obj) {\n\t\tloadLzzGoodCategorys();\n\t\tsession = LzzFactory.currentSession();\n\t\tdao.setSession(session);\n\t\tdao.save(obj);\n\t\tLzzGoodCategory obj2 = (LzzGoodCategory)obj;\n\t\tmLzzGoodCategorys.add(obj2);\n\t\tmLzzGoodCategoryHash.put(obj2.getId(), obj2);\n\t}", "public void addCategory(Category c) {\n\t\tcategoryDao.save(c);\n\t}", "public void setCategory(Category c) {\n this.category = c;\n }", "Product saveProduct (Long categoryId, Long productId);", "Boolean restoreCategory(Integer category_Id) throws DvdStoreException;", "@Override\n\tpublic void update(Categoria c) throws SQLException {\n\t\tPreparedStatement ps=conn.prepareStatement(\"UPDATE categoria SET descrizione=?\");\n\t\tps.setString(1, c.getDescrizione());\n\t\tint n = ps.executeUpdate();\n\t\tif(n==0)\n\t\t\tthrow new SQLException(\"categoria: \" + c.getIdCategoria() + \" non presente\");\n\t\t\n\t}", "@Override\n public boolean updateCategory(Category newCategory)\n {\n // format the string\n String query = \"UPDATE Categories SET CategoryName = '%1$s', Description = '%2$s', CreationDate = '%3$s'\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n return DataService.executeUpdate(query);\n }", "public static void checkCategoryInDb() {\n try {\n Category category = Category.listAll(Category.class).get(0);\n\n } catch (Exception e) {\n Category undefinedCategory = new Category();\n undefinedCategory.setCategoryId(1);\n undefinedCategory.setCategoryName(\"Others\");\n undefinedCategory.save();\n }\n }", "@Override\n\tpublic void update(Categories cate) {\n\t\tcategoriesDAO.update(cate);\n\t}", "@Override\n\tpublic Category updateCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn null;\n\t}", "CodeCategory updateCodeCategory(CodeCategory codeCategory)\n throws DAOException;", "public void update(Category category) {\n category_dao.update(category);\n }", "@Override\r\n\tpublic void updateCategory(Category category) {\n\t\tCategory c = getCategoryById(category.getCategory_id());\r\n\t\tc.setCategory_id(category.getCategory_id());\r\n\t\tc.setCategory_name(category.getCategory_name());\r\n\t\tc.setCategory_number(category.getCategory_number());\r\n\t\tc.setCommoditySet(category.getCommoditySet());\r\n\t\tc.setDescription(category.getDescription());\r\n\t\tgetHibernateTemplate().update(c);\r\n\t}", "@Override\r\n\tpublic boolean update(Se_cat se_cat) {\n\t\treturn se_catdao.update(se_cat);\r\n\t}", "public void setCategory(Category cat) {\n this.category = cat;\n }", "@PostMapping(\"/categoriesfu\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Category> createCategory(@Valid @RequestBody Category category) throws URISyntaxException {\n log.debug(\"REST request to save Category : {}\", category);\n \n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n category.setRestaurant(restaurant);\n \n if (category.getId() != null) {\n throw new BadRequestAlertException(\"A new category cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Category result = categoryRepository.save(category);\n return ResponseEntity.created(new URI(\"/api/categoriesfu/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(applicationName, true, ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void setR_Category_ID (int R_Category_ID);", "@Override\r\n\tpublic Category updateCategory(Category category) throws Exception\r\n\t{\n\t\tif(category.getId() == 0 || !categoryDao.findById(category.getId()).isPresent())\r\n\t\t\tthrow new Exception(\"category not exists\");\r\n\t\tcategory = categoryDao.save(category);\r\n\t\treturn category;\r\n\t}", "public void update(cat_vo cv) {\n\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.saveOrUpdate(cv);\n\t\ttr.commit();\n\t}", "public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }", "@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}", "public void setCategoryId(long categoryId);", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "@RequestMapping(value = \"/Category\", method = RequestMethod.POST)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n @ResponseBody\n public void addCategory(@RequestBody Category category) {\n blogDAO.addCategory(category);\n }", "@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}", "public void setId(Category category) {\n\t\r\n}", "public DocCategory updateDocCategory(DocCategory docCategory) throws EntityNotFoundException {\n DocCategory docCategoryToUpdate = docCategoryRepository.findById(docCategory.getId()).orElseThrow(EntityNotFoundException::new);\n if (docCategory.getName() != null) docCategoryToUpdate.setName(docCategory.getName());\n return docCategoryRepository.save(docCategoryToUpdate);\n }", "@Override\r\n\tpublic void addCategory(Category category) {\n\t\tgetHibernateTemplate().save(category);\r\n\t}", "@Override\r\n\tpublic void edit(SecondCategory scategory) {\n\t\tscategory.setIs_delete(0);\r\n\t\tscategoryDao.update(scategory);\r\n\t}", "private void checkCategoryPreference() {\n SharedPreferences sharedPrefs = getSharedPreferences(Constants.MAIN_PREFS, Context.MODE_PRIVATE);\n String json = sharedPrefs.getString(Constants.CATEGORY_ARRAY, null);\n Type type = new TypeToken<ArrayList<Category>>(){}.getType();\n ArrayList<Category> categories = new Gson().fromJson(json, type);\n if(categories == null) {\n categories = new ArrayList<>();\n Category uncategorized = new Category(Constants.CATEGORY_UNCATEGORIZED, Constants.CYAN);\n categories.add(uncategorized);\n String jsonCat = new Gson().toJson(categories);\n SharedPreferences.Editor prefsEditor = sharedPrefs.edit();\n prefsEditor.putString(Constants.CATEGORY_ARRAY, jsonCat);\n prefsEditor.apply();\n }\n }", "@Transactional\n public abstract OnmsCategory createCategoryIfNecessary(String name);", "public boolean save() {\n boolean saved = false;\n ResultSet result = null;\n try {\n StringBuilder sql = new StringBuilder();\n sql.append(\"insert into ApplicationCategory (applicationCategoryName)\");\n sql.append(String.format(\"Values('%s')\", this.getApplicationCategoryName()));\n result = dbAccess.save(sql.toString());\n if (result.next()) {\n this.setApplicationCategoryId(result.getInt(1));\n saved = true;\n }\n result.close();\n dbAccess.closeConnection();\n } catch (Exception e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return saved;\n }", "@RequestMapping(value=\"/formcategory\",method=RequestMethod.POST,params=\"insert\")\r\n\tpublic ModelAndView addnewCategory(@RequestParam(value=\"bcat\")String baseCategory,@ModelAttribute(\"category\")Category category,BindingResult result,SessionStatus status,Model model)\r\n\t{\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tcategoryValidator.validate(category, result);//validation of the category entity fields\r\n\t\tif(result.hasErrors())\r\n\t\t{\r\n\t\t\tModelMap map = new ModelMap();\r\n\t\t\tmap.put(\"command\",category);\r\n\t\t\tmap.addAttribute(\"errorType\",\"insertError\");\r\n\t\t\treturn new ModelAndView(\"formcategory\",map);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tcategory.setCategoryName(utilDao.capitalizeFirstLetter(category.getCategoryName()));\t\t\r\n\t\tcategoryDao.insertCategory(category);\r\n\t\treturn new ModelAndView(new RedirectView(\"categoryList.htm?bcat=\"+baseCategory));\r\n\t}", "public @NotNull Category newCategory();", "Category update(Category category, CategoryDto categoryDto);", "public void create(int id, DVD dvd, Categorie categorie);", "void createOrUpdateVocabulary(final VocabularyPE vocabularyPE);", "public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }", "void restoreCategory(Category category);", "@PutMapping(\"/update/{id}\")\n public ResponseEntity<ProductCategory> updateTutorial(@PathVariable(\"id\") int id, @RequestBody ProductCategory category) {\n Optional<ProductCategory> data = productCategoryRepository.findById(id);\n\n // if present, update the category\n if (data.isPresent()) {\n ProductCategory _category = data.get();\n _category.setCategoryName(category.getCategoryName());\n return new ResponseEntity<>(productCategoryRepository.save(_category), HttpStatus.OK);\n } else {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n }", "@RequestMapping(value=\"/formcategory\",method=RequestMethod.POST,params=\"update\")\r\n\tpublic ModelAndView updateCategory(@ModelAttribute(\"category\")Category category,BindingResult result,SessionStatus status,Model model)\r\n\t{\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tCategory CategoryOld = categoryDao.getCategory(category.getCategoryId());\r\n\t\tcategoryValidator.validateUpdate(category,CategoryOld, result);//validation of the category entity fields\r\n\t\tif(result.hasErrors())\r\n\t\t{\r\n\t\t\tModelMap map = new ModelMap();\r\n\t\t\tmap.put(\"command\",category);\r\n\t\t\tmap.addAttribute(\"errorType\",\"updateError\");\r\n\t\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\t\treturn new ModelAndView(\"formcategory\",map);\r\n\t\t}\r\n\t\tString metalUsed=category.getMetalType();\r\n\t\tString subCategoryName=category.getCategoryName();\r\n\t\tString basecategory=category.getBaseCategory();\r\n\t\tBigDecimal CatZERO = new BigDecimal(\"0.00\");\r\n\t\t\r\n\t\tBigDecimal vaPercentage=category.getVaPercentage();\r\n\t\tif(vaPercentage == null || vaPercentage.signum() == 0){\r\n\t\t\tcategory.setVaPercentage(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal mc=category.getMcPerGram();\r\n\t\tif(mc == null || mc.signum() == 0){\r\n\t\t\tcategory.setMcPerGram(CatZERO);\r\n\t\t}\r\n\t\tBigDecimal mcrupees=category.getMcInRupees();\r\n\t\tif(mcrupees == null || mcrupees.signum() == 0){\r\n\t\t\tcategory.setMcInRupees(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal Vat=category.getVat();\r\n\t\tif(Vat == null || Vat.signum() == 0){ \r\n\t\t\tcategory.setVat(CatZERO);\r\n\t\t}\r\n\t\t\r\n\t\tBigDecimal less=category.getLessPercentage();\r\n\t\tif(less == null || less.signum() == 0){\r\n\t\t\tcategory.setLessPercentage(CatZERO);\r\n\t\t}\r\n\t\tBigDecimal catHMC=category.getCategoryHMCharges();\r\n\t\tif(catHMC == null || catHMC.signum() == 0){\r\n\t\t\tcategory.setCategoryHMCharges(CatZERO);\r\n\t\t}\r\n\t\tcategoryDao.updateCategory(category);\r\n\t\titemmasterDao.updateVaPercentage(less, vaPercentage, mc,mcrupees, Vat, metalUsed, subCategoryName, catHMC);\r\n\t\tstatus.setComplete();\r\n\t\treturn new ModelAndView(new RedirectView(\"categoryList.htm?bcat=\"+basecategory));\r\n\t}", "@FXML\n public void submitCategory() {\n String categoryString = inputBox.getText();\n category = new Category(categoryString);\n habitSorter.addHabitRelation(category);\n changeInputTextToHabitName();\n System.out.println(\"Category submitted\");\n inputBox.setText(\"\");\n }", "public void approveCategory(Category category) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n category.setApproved(true);\n dbb.overwriteCategory(category);\n dbb.commit();\n dbb.closeConnection();\n }", "public void actualizarCategoria(CategoriaDTO categoria);", "public int editCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "public static void updateCategoryName(Context context, Category category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category.category);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(category._id)}\r\n );\r\n db.close();\r\n }", "@Update({\n \"update `category`\",\n \"set `cate_name` = #{cateName,jdbcType=VARCHAR}\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(Category record);" ]
[ "0.7507978", "0.70156735", "0.6828286", "0.6740239", "0.6720369", "0.6695223", "0.6643744", "0.6615491", "0.65988296", "0.6585614", "0.65273386", "0.65234184", "0.6514678", "0.6514678", "0.63912064", "0.61198574", "0.6068265", "0.6067496", "0.603233", "0.6024604", "0.6024444", "0.60169256", "0.6016782", "0.60048133", "0.5936761", "0.59297585", "0.5910436", "0.59101486", "0.5893858", "0.5859507", "0.5851651", "0.5850319", "0.5847859", "0.58271194", "0.5799581", "0.5785152", "0.57801604", "0.5770286", "0.5732986", "0.5695842", "0.56936246", "0.5689193", "0.5689009", "0.5676727", "0.56560093", "0.5647389", "0.5616085", "0.5591738", "0.55815506", "0.5572275", "0.5571436", "0.557014", "0.55508757", "0.554491", "0.55382526", "0.5534978", "0.55293506", "0.5524115", "0.55118257", "0.55097365", "0.54913235", "0.5466536", "0.54560655", "0.54517955", "0.544752", "0.54465777", "0.544515", "0.5424912", "0.5423732", "0.5411227", "0.5410601", "0.54081815", "0.5398988", "0.53960943", "0.5388429", "0.5387397", "0.5385321", "0.53813076", "0.53714037", "0.5368312", "0.5352495", "0.53458786", "0.53339344", "0.53338563", "0.53298825", "0.53289074", "0.5326233", "0.5323423", "0.53080875", "0.53042364", "0.5300078", "0.529734", "0.5296488", "0.52874094", "0.5276368", "0.52730787", "0.52664006", "0.5253323", "0.52480793", "0.5240454" ]
0.7573511
0
delete delete the cmVocabularyCategory
@Transactional public void delete(CmVocabularyCategory cmVocabularyCategory) { dao.delete(cmVocabularyCategory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteCategory(Category category);", "public void deleteCategorie(Categorie c);", "void delete(Category category);", "void deleteCategoryByName(String categoryName);", "void deleteCategoryById(int categoryId);", "void deleteCategory(long id);", "void deleteCategory(Integer id);", "Boolean deleteCategory(Integer category_Id) throws DvdStoreException;", "@Transactional\r\n\tpublic void delete(final String pk) {\r\n\t\tdao.delete(CmVocabularyCategory.class, pk);\r\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdeleteCategory(myCategory);\n\t\t\t\t}", "@Override\n\tpublic void delete(Category entity) {\n\n\t}", "@FXML\n private void deleteCategory()\n {\n CategoryFxModel selectedCategory = categoryTable.getSelectionModel().getSelectedItem();\n if(selectedCategory == null)\n {\n DialogsUtils.categoryNotSelectedDialog();\n }\n else\n {\n Optional<ButtonType> result = DialogsUtils.deleteCategoryConfirmationDialog();\n deleteCategoryWhenOkPressed(selectedCategory, result);\n }\n }", "@Override\r\n\tpublic void deleteCategory(Category c) {\n\t\tem.remove(em.find(Category.class, c.getIdCategory()));\r\n\t\t\r\n\t}", "public String deleteCategory()\n {\n logger.info(\"**** In deleteCategory in Controller ****\");\n boolean deleteFlag = categoryService.deleteCategory(categoryId);\n if (deleteFlag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_DELETION_SUCCESS, Constants.CATEGORY_DELETION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n\n return searchCategory();\n }", "public void deletePortletCategory(PortletCategory category);", "void removeCategory(Category category);", "public void deleteCategory(Category category) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n category.setApproved(false);\n dbb.overwriteCategory(category);\n dbb.commit();\n dbb.closeConnection();\n }", "public static void deleteVocab(Context context){\n Toast.makeText(context, \"deleted\", Toast.LENGTH_SHORT).show();\n DatabaseReference vocabRef=FirebaseDatabase.getInstance().getReference().child(\"user\").child(FirebaseAuth.getInstance().getUid()).child(\"vocab\").child(currentVocabId);\n vocabRef.removeValue();\n }", "public void delete(Category category) {\n category_dao.delete(category);\n }", "public Medicine deleteMedicineCategory(Integer medicine_id_1, Integer related_category_id);", "@Delete\n void delete(SpeciesCategory speciesCategory);", "void deleteCategoryProducts(long id);", "public void deleteCategory(Long id) throws BusinessException;", "@Override\n\tpublic void deleteCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t}", "void processDeleteCategoryEvent(AchieveSettings settings, String category);", "public void delete(Long categoriaId) {\n LOGGER.log(Level.INFO, \"Borrando categoria con id = {0}\", categoriaId);\n CategoriaEntity categoriaEntity = em.find(CategoriaEntity.class, categoriaId);\n em.remove(categoriaEntity);\n LOGGER.log(Level.INFO, \"Saliendo de borrar la categoria con id = {0}\", categoriaId);\n }", "boolean delete(DishCategory dishCategory);", "@Override\n\tpublic void deleteCateogry(int id) {\n\t\tcategoryRepository.deleteById(id);\n\t\t\n\t}", "@Override\r\n\tpublic void deleteCategory(Category category) {\n\t\tgetHibernateTemplate().delete(category);\r\n\t}", "@Override\n public boolean deleteCategory(Category oldCategory)\n {\n return deleteCategory(oldCategory.getCategoryID());\n }", "private void deleteCategory(String key) {\n Query foodInCategory = table_food.orderByChild(\"menuId\").equalTo(key);\n foodInCategory.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for(DataSnapshot item:dataSnapshot.getChildren())\n item.getRef().removeValue();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n table_category.child(key).removeValue();\n Toast.makeText(this, \"Category is deleted ! \", Toast.LENGTH_SHORT).show();\n }", "public void removeCvcategory(Cvcategory cvcategory);", "@Override\r\n\tpublic void delete(SecondCategory scategory) {\n\t\tscategory.setIs_delete(1);\r\n\t\tscategoryDao.update(scategory);\r\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Categoria : {}\", id);\n categoriaRepository.delete(id);\n }", "public String deleteView()\n {\n logger.info(\"**** In deleteView in Controller ****\" + categoryId);\n this.category = categoryService.getCategoryByCategoryId(categoryId);\n return Constants.DELETE_CATEGORY_VIEW;\n }", "public static void eliminarTodosLosConceptosCatgeorias() {\n\t\tnew Delete().from(ConceptoCategoria.class).execute();\n\t}", "@Delete({\n \"delete from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer cateId);", "@Override\r\n\tpublic boolean delete(Se_cat se_cat) {\n\t\treturn se_catdao.delete(se_cat);\r\n\t}", "public void deleteCategory(int id){\n\t\t// delete all the values in location\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY +\" = ?\", new String[]{String.valueOf(id)});\n\t\t// delete the category\n\t\tdb.delete(DBEntryContract.CategoryEntry.TABLE_NAME, DBEntryContract.CategoryEntry._ID+\"= ?\", new String[]{String.valueOf(id)});\n\t}", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n int index = jList1.getSelectedIndex();\n \n String idCategory = listIDCategory.get(index);\n deleteCategory(idCategory);\n \n }", "Boolean removeCategoryfromDvd(Integer category_Id, Integer dvdId) \n throws DvdStoreException;", "@Override\n public void delete(long id) {\n categoryRepository.deleteById(id);\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "void deleteTrackerListCategory(final Integer id);", "@Override\r\n\tpublic boolean deleteCategorie(Categorie categorie) {\n\t\treturn cateDao.deleteCategorie(categorie);\r\n\t}", "int deleteByPrimaryKey(TbInvCategoryKey key);", "public void delete(int id) {\n\t\tcat_vo cv = new cat_vo();\n\t\tcv.setId(id);\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.delete(cv);\n\t\ttr.commit();\n\t}", "@Test\n public void deleteCategory_Deletes(){\n int returned = testDatabase.addCategory(category);\n testDatabase.deleteCategory(returned);\n assertEquals(\"deleteCategory - Deletes From Database\", null, testDatabase.getCategory(returned));\n }", "@Override\n\tpublic void clearDBCategorie() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"categorie\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t\t\n\t}", "@Override\n\tpublic boolean delete(Category category) {\n\t\tsessionFactory.getCurrentSession().delete(category);\n\t\treturn true;\n\t}", "void deleteCodeCategory(UUID id)\n throws DAOException;", "@DeleteMapping(\"/categoriesfu/{id}\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Void> deleteCategory(@PathVariable Long id) {\n log.debug(\"REST request to delete Category : {}\", id);\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n final Optional<Category> category = categoryRepository.findById(id);\n if(category.get().getRestaurant().getId()!=restaurant.getId()) {\n \tid = null;\n }\n categoryRepository.deleteById(id);\n return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, true, ENTITY_NAME, id.toString())).build();\n }", "public static void deleteCategoryName(Context context, int id) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_IS_DELETED, 1);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(id)}\r\n );\r\n db.close();\r\n }", "@Override\n public boolean deleteCategory(int categoryId)\n {\n String query = \"DELETE FROM Categories WHERE CategoryID = \" + categoryId;\n return DataService.executeDelete(query);\n }", "public void delete(Conseiller c) {\n\t\t\r\n\t}", "public abstract void writeDelete(Kml kml) throws KmlException;", "void deleteKeyword(String name);", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void delete() {\n\n\t}", "public void delete(Integer id) {\n\t\tfindById(id);\n\n\t\t//fazendo isso pois se tentar remover algum obj que tenha objetos associados com ele\n\t\t//quero que der uma exceção personalizada, em vez de erro 500\n\t\ttry {\n\t\t\trepo.deleteById(id);\n\t\t} catch (Exception e) {\n\t\t\tthrow new DataIntegrityException(\"Não é possível excluir categoria que não possui produto\");\n\t\t}\n\t}", "@RequestMapping(value = \"/deleteCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView deleteCategory(@RequestParam String categoryId) {\r\n\t\tcategoryService.deleteCategoryByCategoryId(Integer.parseInt(categoryId));\r\n\t\treturn new ModelAndView(\"redirect:/admin\");\r\n\t}", "public void delete() {\n\t\tcp.delete();\n\t}", "@RequestMapping(value = \"/delete/{categoryId}\")\n public String deleteCategory(@PathVariable Long categoryId, RedirectAttributes redirectAttributes) {\n try {\n categoryService.delete(categoryId);\n } catch (RuntimeException e) {\n redirectAttributes.addFlashAttribute(\"error\",e.getMessage());\n }\n\n return \"redirect:/admin/categories\";\n }", "void deleteMataKuliah (int id);", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@Override\n\tpublic void deleteCategory(Category Category) {\n\t\tsessionFactory.getCurrentSession().delete(Category);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}", "void deleteCatFood(Long catId, Long foodId);", "public int deleteByPrimaryKey(Integer categoryId) throws SQLException {\r\n Category key = new Category();\r\n key.setCategoryId(categoryId);\r\n int rows = sqlMapClient.delete(\"CATEGORY.abatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "@Override\n\tpublic Categories delete(Integer catId) {\n\t\treturn categoriesDAO.delete(catId);\n\t}", "private void delete() {\n\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value=\"/{id}\", method=RequestMethod.DELETE)\n public ResponseEntity<Void> deleteCategory(@PathVariable Long id){\n try {\n catService.delete(id);\n } catch (Exception e) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n return new ResponseEntity<>(HttpStatus.OK);\n }", "public void delete(int id) {\n\t\tCategory function = this.get(id) ;\r\n\t\tthis.getCurrentSession().delete(function);\r\n\t}", "int deleteByExample(CategoryExample example);", "@Override\n\tpublic boolean deleteProductByCategoryId(int categoryId) {\n\t\treturn false;\n\t}", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Successfully deleted category and all items\", Toast.LENGTH_SHORT).show();\n //deleteCategory(context, category);\n //realm.close();\n }", "@Override\n public void deleteItem(P_CK t) {\n \n }", "@DeleteMapping(\"/category/{id}\")\n ResponseEntity<Category> deleteCategory(@PathVariable Long id){\n categoryRepository.deleteById(id);\n return ResponseEntity.ok().build();\n }", "public static void deleteExample() throws IOException {\n\n Neo4jUtil neo4jUtil = new Neo4jUtil(\"bolt://localhost:7687\", \"neo4j\", \"neo4jj\" );\n\n Langual.getAllLangualList().forEach(langual -> {\n String cmd = \"MATCH (n:Langual)-[r:lang_desc]-(b:Langdesc) where n.factorCode='\"\n + langual.getFactorCode().trim()\n + \"' delete r\";\n neo4jUtil.myNeo4j(cmd);\n System.out.println(cmd);\n });\n }", "@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}", "public void deleteCatMovies(CatMovie selectedCatMovie) throws DalException\n {\n // Attempts to connect to the database.\n try ( Connection con = dbCon.getConnection())\n {\n // SQL code. \n String sql = \"DELETE FROM CatMovie WHERE id=?;\";\n // Prepared statement. \n PreparedStatement ps = con.prepareStatement(sql);\n ps.setInt(1, selectedCatMovie.getId());\n // Attempts to execute the statement.\n ps.execute();\n } catch (SQLException ex)\n {\n Logger.getLogger(CatMovieDBDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void removeNewCategory(String categoryname) {\r\n\t\tint categoryID=0;\r\n\r\n\t\t/* fetch the category ID for the given caategoryName*/\r\n\t\tsqlQuery = \"SELECT categoryID FROM flipkart_category WHERE categoryName=?;\";\r\n\r\n\t\ttry{\r\n\t\t\tconn=DbConnection.getConnection();\r\n\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\tps.setString(1, categoryname);\r\n\t\t\trs=ps.executeQuery();\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tcategoryID = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t\t/* deleting from category table */\r\n\t\t\tsqlQuery = \"DELETE FROM flipkart_category WHERE categoryID=?\";\r\n\r\n\t\t\ttry{\r\n\t\t\t\tconn=DbConnection.getConnection();\r\n\t\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\t\tps.setInt(1, categoryID);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t/* deleting from path table */\r\n\t\t\t\tsqlQuery = \"DELETE FROM flipkart_path WHERE categoryID=?\";\r\n\t\t\t\t\r\n\t\t\t\ttry{\r\n\t\t\t\t\tconn=DbConnection.getConnection();\r\n\t\t\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\t\t\tps.setInt(1, categoryID);\r\n\t\t\t\t\tps.executeUpdate();\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e){\r\n\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tprotected void destroyRecord(int id) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(id);\n\t\tnew Categories().destroy(category);\t\n\t}", "@RequestMapping(value = { \"/delete/category/{id}\" }, method = RequestMethod.GET)\r\n\tpublic String deleteCategory(@PathVariable int id) {\r\n\t\tcategory = categoryDAO.get(id);\r\n\t\tcategoryDAO.deleteCategory(category);\r\n\t\treturn \"redirect:/admin/addcategory?op=delete&status=success&id=\" + id;\r\n\t}", "@Override\n\tpublic int delete(Long id) {\n\t\treturn foodCategoryDao.delete(id);\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void delete(){\r\n\r\n }", "@Test\n\tpublic void testCategoryRemoved() throws Exception {\n\t\t// Removing a category triggers the disposal of the editor due to the data type being\n\t\t// deleted.\n\t\t//\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tremoveCategory(enummDt);\n\n\t\tclose(waitForInfoDialog());\n\t}", "@Override\n\tpublic void delete(Iterable<? extends ReportCategory> arg0) {\n\n\t}", "@Override\n\tpublic void delComLanguage(int id) {\n\t\t\n\t}", "@Override\n\tpublic boolean deleteCategory(String catName) {\n\t\tTransaction tx=sessionFactory.getCurrentSession().beginTransaction();\n\t\tboolean found =categoryhome.isFound(catName);\n\t\tif(found==true)\n\t\t{\n\t\t\tCategory cat=categoryhome.getByName(catName);\n\t\t\tsessionFactory.getCurrentSession().delete(cat);\n\t\t\ttx.commit();\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\t\n\t\t}\n\t\n\t}", "public void deleteSelectedCategories() {\n\t\tfor (IFlashcardSeriesComponent x : selectionListener.selectedComponents) {\n\t\t\tFlashCategory cat = (FlashCategory) x;\n\t\t\t/*\n\t\t\tif (cat.getParent() == null) {\n\t\t\t\troot = new FlashCategory(root.getName());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t*/\n\t\t\tList<Flashcard> copy = new ArrayList<Flashcard>(flashcards);\n\t\t\tfor (Flashcard f : copy) {\n\t\t\t\tif (cat.containsFlashcard(f)) {\n\t\t\t\t\tflashcards.remove(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcat.getParent().removeI(cat);\n\t\t\t\n\t\t\tif (selectRootAction != null) selectRootAction.selectRoot();\n\t\t\t\n\t\t}\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n\tpublic int deleteById(String id) {\n\t\treturn SApplicationcategorydao.deleteById(SApplicationcategory.class, id);\n\t}", "void deletingCatalogItemById(final Long id);", "void delete(int metaTagId);" ]
[ "0.7495022", "0.74746734", "0.7256605", "0.6995463", "0.6949701", "0.6932335", "0.6858522", "0.6806129", "0.6804152", "0.672343", "0.67163867", "0.66893035", "0.6609022", "0.658768", "0.6471812", "0.6463039", "0.6459537", "0.63628083", "0.6339736", "0.63167936", "0.6315503", "0.6258853", "0.6252256", "0.62306494", "0.62240994", "0.6216116", "0.6209862", "0.6185063", "0.6166005", "0.6100177", "0.60373217", "0.6033272", "0.6025342", "0.60248995", "0.6001048", "0.5964522", "0.59597224", "0.5943424", "0.59309053", "0.5902117", "0.5888345", "0.58568364", "0.5852539", "0.58454394", "0.58412975", "0.5836307", "0.58208793", "0.5804581", "0.5803455", "0.57872427", "0.5782585", "0.5782115", "0.5778639", "0.5769662", "0.5766717", "0.57606053", "0.5737987", "0.5727709", "0.5723447", "0.5718277", "0.57099664", "0.5706355", "0.5704995", "0.5692202", "0.5682206", "0.5669617", "0.56695724", "0.5667365", "0.5660565", "0.56578153", "0.5656069", "0.5655252", "0.5650075", "0.56435275", "0.56385255", "0.56305504", "0.56132793", "0.5608196", "0.56046486", "0.55968326", "0.5593326", "0.5588256", "0.55817306", "0.5568945", "0.5564731", "0.55541694", "0.55477375", "0.5547291", "0.55400336", "0.5526618", "0.5526405", "0.5526102", "0.552091", "0.5510036", "0.5502366", "0.54980403", "0.54946804", "0.54883796", "0.5484103", "0.54819703" ]
0.7557703
0