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 |
|---|---|---|---|---|---|---|
Utilizes Dijkstra Algorithm to find the shortest path. | public void findShortestPath(String startName, String endName) {
checkValidEndpoint(startName);
checkValidEndpoint(endName);
Vertex<String> start = vertices.get(startName);
Vertex<String> end = vertices.get(endName);
double totalDist; // totalDist must be update below
Map<Vertex<String>, Double> distance = new HashMap<>();
Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();
Set<Vertex<String>> explored = new HashSet<>();
PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();
addPQ(distance, start, pq, previous);
dijkstraHelper(pq, end, explored, distance, previous);
totalDist = distance.get(end);
List<Edge<String>> path = getPath(end, start);
printPath(path, totalDist);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\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\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}",
"@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}",
"public List<node_info> shortestPath(int src, int dest);",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }",
"@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }",
"public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }",
"private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}",
"private static void disjkstraAlgorithm(Node sourceNode, GraphBuilder graph){\n PriorityQueue<Node> smallestDisQueue = new PriorityQueue<>(graph.nodeArr.size(), new Comparator<Node>() {\n @Override\n public int compare(Node first, Node sec) {\n if(first.distance == Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return 0;\n }\n else if(first.distance == Integer.MAX_VALUE && sec.distance != Integer.MAX_VALUE){\n return 1;\n } else if(first.distance != Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return -1;\n }\n else\n return (int) (first.distance - sec.distance);\n }\n });\n\n smallestDisQueue.add(sourceNode); //add the node to the queue\n\n // until all vertices are know get the vertex with smallest distance\n\n while(!smallestDisQueue.isEmpty()) {\n\n Node currNode = smallestDisQueue.poll();\n// System.out.println(\"Curr: \");\n// System.out.println(currNode);\n if(currNode.known)\n continue; //do nothing if the currNode is known\n\n currNode.known = true; // otherwise, set it to be known\n\n for(Edge connectedEdge : currNode.connectingEdges){\n Node nextNode = connectedEdge.head;\n if(!nextNode.known){ // Visit all neighbors that are unknown\n\n long weight = connectedEdge.weight;\n if(currNode.distance == Integer.MAX_VALUE){\n continue;\n }\n else if(nextNode.distance == Integer.MAX_VALUE && currNode.distance == Integer.MAX_VALUE) {\n continue;\n }\n\n else if(nextNode.distance> weight + currNode.distance){//Update their distance and path variable\n smallestDisQueue.remove(nextNode); //remove it from the queue\n nextNode.distance = weight + currNode.distance;\n\n smallestDisQueue.add(nextNode); //add it again to the queue\n nextNode.pathFromSouce = currNode;\n\n// System.out.println(\"Next: \");\n// System.out.println(nextNode);\n }\n }\n }\n// System.out.println(\"/////////////\");\n }\n }",
"private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }",
"void dijkstra(int graph[][], int src) {\n int dist[] = new int[V]; // The output array. dist[i] will hold\n // the shortest distance from src to i\n\n // sptSet[i] will true if vertex i is included in shortest\n Boolean sptSet[] = new Boolean[V];\n\n for (int i = 0; i < V; i++) {\n dist[i] = Integer.MAX_VALUE;\n sptSet[i] = false;\n }\n\n dist[src] = 0;\n\n // Find shortest path for all vertices\n for (int count = 0; count < V-1; count++) {\n\n int u = minDistance(dist, sptSet);\n\n // Mark the picked vertex as processed\n sptSet[u] = true;\n\n // Update dist value of the adjacent vertices of the\n // picked vertex.\n for (int v = 0; v < V; v++)\n\n\n if (!sptSet[v] && graph[u][v]!=0 &&\n dist[u] != Integer.MAX_VALUE &&\n dist[u]+graph[u][v] < dist[v])\n dist[v] = dist[u] + graph[u][v];\n }\n\n printSolution(dist, V);\n }",
"public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}",
"private void dijkstra(final NavigableSet<Node> queue) {\n Node firstNode, neighbor;\n while (!queue.isEmpty()) {\n // vertex with shortest distance (first iteration will return source)\n firstNode = queue.pollFirst();\n assert firstNode != null;\n if (!explored.contains(firstNode.coordinate)) {\n explored.add(firstNode.coordinate);\n }\n if (firstNode.dist == Integer.MAX_VALUE)\n // we can ignore u (and any other remaining vertices) since they are unreachable\n break;\n //look at distances to each neighbour\n for (Map.Entry<Node, Integer> temp : firstNode.neighbours.entrySet()) {\n neighbor = temp.getKey(); //the neighbour in this iteration\n if (!explored.contains(neighbor.coordinate)) {\n explored.add(neighbor.coordinate);\n }\n final int alternateDist = firstNode.dist + temp.getValue();\n if (alternateDist < neighbor.dist) { // shorter path to neighbour found\n queue.remove(neighbor);\n neighbor.dist = alternateDist;\n neighbor.previous = firstNode;\n queue.add(neighbor);\n }\n }\n }\n }",
"public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }",
"public void Djkstra(int source) {\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE; // added infinity to all ,\n\t\t}\n\t\t\n\t\tdist[source] = 0;\n\n\t\t// add source vertex to priority queue\n\t\tq.add(new Node(source, 0));\n\n\n\t\t// while my all vertices are not selected as a min among smallest one time\n\t\t// refracted in visited\n\t\twhile (visited.size() != vertices) {\n\n\t\t\t// pick from priority queue the smallest/min distance\n\t\t\tint i = q.remove().node;\n\n\t\t\t// once node is removed from queue add to set\n\t\t\tvisited.add(i);\n\n\t\t\t// relax adjacent vertex of this node;\n\t\t\t// And add the new node to queue bcoz distance has got updated so add new node as i dont have any method to update \n\t\t\t// already present node and its distance\n\t\t\t\n\n\t\t\tfor (Node v : graph[i]) {\n\t\t\t\tif (!visited.contains(v.node)) {\n\t\t\t\t\tif (dist[i] + v.cost < dist[v.node]) {\n\t\t\t\t\t\tdist[v.node] = dist[i] + v.cost;\n\t\t\t\t\t\tq.add(new Node(v.node, dist[v.node]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\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\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}",
"void dijkstra(int[][] graph){\r\n int dist[] = new int[rideCount];\r\n Boolean sptSet[] = new Boolean[rideCount];\r\n\r\n for(int i = 0; i< rideCount; i++){\r\n dist[i] = Integer.MAX_VALUE;\r\n sptSet[i] = false;\r\n }\r\n\r\n dist[0] = 0;\r\n\r\n for(int count = 0; count< rideCount -1; count++){\r\n int u = minWeight(dist, sptSet);\r\n sptSet[u] = true;\r\n for(int v = 0; v< rideCount; v++){\r\n if (!sptSet[v] && graph[u][v] != 0 && dist[u] + graph[u][v] < dist[v]){\r\n dist[v] = dist[u] + graph[u][v];\r\n }\r\n }\r\n }\r\n printSolution(dist);\r\n }",
"public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}",
"public double dijkstra(NodoArista[][] adjacencyMatrix, int startVertex, int nodoBuscado, ListaEnlazada lista) {\n int nVertices = adjacencyMatrix[0].length;\n // shortestDistances[i] will hold the shortest distance from src to i\n double[] shortestDistances = new double[nVertices];\n double[] precios = new double[nVertices];\n // added[i] will true if vertex i is included / in shortest path tree or shortest distance from src to i is finalized \n boolean[] added = new boolean[nVertices];\n\n // Initialize all distances as INFINITE and added[] as false \n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n shortestDistances[vertexIndex] = Integer.MAX_VALUE;\n precios[vertexIndex] = Integer.MAX_VALUE;\n added[vertexIndex] = false;\n }\n // Distance of source vertex from itself is always 0 \n shortestDistances[startVertex] = 0;\n precios[startVertex] = 0;\n // Parent array to store shortest path tree \n int[] parents = new int[nVertices];\n // The starting vertex does not have a parent \n parents[startVertex] = NO_PARENT;\n\n // Find shortest path for all vertices \n for (int i = 1; i < nVertices; i++) {\n // Pick the minimum distance vertex from the set of vertices not yet processed. nearestVertex is always equal to startNode in first iteration. \n int nearestVertex = -1;\n double shortestDistance = Integer.MAX_VALUE;\n double precio = Integer.MAX_VALUE;\n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n if (!added[vertexIndex] && shortestDistances[vertexIndex] < shortestDistance) {\n nearestVertex = vertexIndex;\n shortestDistance = shortestDistances[vertexIndex];\n precio = precios[vertexIndex];\n }\n }\n\n // Mark the picked vertex as processed \n added[nearestVertex] = true;\n\n // Update dist value of the adjacent vertices of the picked vertex. \n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n double edgeDistance = adjacencyMatrix[nearestVertex][vertexIndex].getPeso();\n double precioActual = adjacencyMatrix[nearestVertex][vertexIndex].getPrecio();\n double edgePrice = adjacencyMatrix[nearestVertex][vertexIndex].getPrecio();\n if (edgeDistance > 0 && ((shortestDistance + edgeDistance) < shortestDistances[vertexIndex])) {\n parents[vertexIndex] = nearestVertex;\n shortestDistances[vertexIndex] = shortestDistance + edgeDistance;\n precios[vertexIndex] = precio + precioActual;\n }\n if (edgePrice > 0 && ((shortestDistance + edgeDistance) < shortestDistances[vertexIndex])) {\n parents[vertexIndex] = nearestVertex;\n shortestDistances[vertexIndex] = shortestDistance + edgeDistance;\n precios[vertexIndex] = precio + precioActual;\n }\n }\n }\n printSolution(startVertex, shortestDistances, parents);\n printSolutionPara(startVertex, shortestDistances, parents, nodoBuscado, lista);\n\n return precios[nodoBuscado];\n }",
"@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }",
"private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }",
"private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\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\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}",
"void shortestPath( final VertexType fromNode, Integer node );",
"public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }",
"private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }",
"public void dijkstra(int graphWeight[][], int source){\r\n\t\t\r\n\t\tint queue[] = new int[vertices]; //The array which will hold the shortest distance from source to node i\r\n\t\tboolean set[] = new boolean[vertices]; //It will store true for node i if the shortest path to that vertex or node is found\r\n\t\t\r\n\t\t//Initialize distances to infinity and set[] array to false \r\n\t\tfor(int i=0;i<vertices;i++){\r\n\t\t\tqueue[i] = Integer.MAX_VALUE; \r\n\t\t\tset[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Distance of source vertex from itself is always 0\r\n\t\tqueue[source] = 0;\r\n\r\n\t\t//Find shortest path of all the vertices\r\n\t\tfor(int count=0;count<vertices-1;count++){\r\n\t\t\t\r\n\t\t\t//Pick the minimum distance vertex from the from the set of vertices \r\n\t\t\t//not processed. u is equal to source in first iteration\r\n\t\t\tint u = extractMinDistance(queue, set);\r\n\t\t\t\r\n\t\t\t//Mark the picked vertex processed\r\n\t\t\tset[u] = true;\r\n\t\t\t//Update queue value of the adjacent vertices of the picked vertex\r\n\t\t\tfor(int v=0;v<vertices;v++)\r\n\t\t\t{\r\n\t\t\t\t//Update queue[v] only if\r\n\t\t\t\t// 1. It is not in set true in the Set Array\r\n\t\t\t\t// 2. There is an edge from u to v\r\n\t\t\t\t// 3. Total weight of path from source to v through u is smaller than current value of queue[v]\r\n\t\t\t\tif((graphWeight[u][v] > 0) && set[v] == false){\r\n\t\t\t\t\t\tif(queue[u] + graphWeight[u][v] < queue[v]){\r\n\t\t\t\t\t\t\tqueue[v] = queue[u] + graphWeight[u][v];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//printSolution(queue, vertices);\r\n\t\t}\r\n\t\t//Print the constructed distance array\r\n\t\tprintSolution(queue, vertices);\r\n\t}",
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}",
"public double shortestPathDist(int src, int dest);",
"public HashMap<Nodo, Integer> dijkstra() {\r\n\r\n\t\tPriorityQueue<NodoDijkstra> aVisitar = new PriorityQueue<NodoDijkstra>();\r\n\t\tHashMap<Nodo, Integer> distancias = new HashMap<Nodo, Integer>();\r\n\t\tHashMap<Nodo, Integer> retorno = new HashMap<Nodo, Integer>();\r\n\t\tHashSet<Nodo> visitados = new HashSet<Nodo>();\r\n\r\n\t\tNodoDijkstra nodoOrigen = new NodoDijkstra(this, 0);\r\n\t\tnodoOrigen.setCamino(new Camino(this));\r\n\t\taVisitar.add(nodoOrigen);\r\n\t\tdistancias.put(this, new Integer(0));\r\n\t\tretorno.put(this, new Integer(0));\r\n\r\n\t\twhile (!aVisitar.isEmpty()) {\r\n\t\t\tNodoDijkstra dNodo = aVisitar.poll();\r\n\t\t\tNodo actual = dNodo.getNodo();\r\n\t\t\tCamino camino = dNodo.getCamino();\r\n\r\n\t\t\tif (visitados.contains(actual))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tvisitados.add(actual);\r\n\r\n\t\t\tfor (CanalOptico canal : actual.canales) {\r\n\t\t\t\tNodo vecino = canal.getOtroExtremo(actual);\r\n\t\t\t\tint costo = canal.getCosto();\r\n\r\n\t\t\t\t/* Restriccion del Dijkstra */\r\n\t\t\t\tif (visitados.contains(vecino))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (canal.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (vecino.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (distancias.containsKey(vecino)) {\r\n\t\t\t\t\tint dActual = distancias.get(vecino);\r\n\r\n\t\t\t\t\tif (dActual <= dNodo.getDistancia() + costo)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taVisitar.remove(vecino);\r\n\t\t\t\t\t\tdistancias.remove(vecino);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNodoDijkstra nuevoNodo = new NodoDijkstra(vecino,\r\n\t\t\t\t\t\tdNodo.getDistancia() + costo);\r\n\t\t\t\tCamino caminoNuevo = new Camino(camino);\r\n\t\t\t\tcaminoNuevo.addSalto(new Salto(camino.getSaltos().size() + 1,\r\n\t\t\t\t\t\tcanal));\r\n\t\t\t\tnuevoNodo.setCamino(caminoNuevo);\r\n\t\t\t\taVisitar.add(nuevoNodo);\r\n\t\t\t\tdistancias.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t\tretorno.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}",
"private int[] runDijkstra(int graph[][], int source) {\r\n\r\n // Stores the best estimate of the shortest distance from\r\n // the source to each node \r\n int d[] = new int[graph.length];\r\n \r\n // Initialized with infinite value.\r\n // Value of -1 means the node has been settled \r\n int dC[] = new int[graph.length];\r\n \r\n // Stores the predecessor of each node on the shortest path \r\n // from the source\r\n int p[] = new int[graph.length];\r\n\r\n // Initialize\r\n for (int i = 0; i < graph.length; i++ ) {\r\n d[i] = this.INFINITE;\r\n dC[i] = this.INFINITE;\r\n p[i] = -1;\r\n }\r\n \r\n // We start knowning the distance of the source from itself (zero)\r\n d[source] = 0;\r\n dC[source] = 0;\r\n\r\n int i = 0;\r\n int min = this.INFINITE;\r\n int pos = 0;\r\n\r\n while (i < graph.length) {\r\n //extract minimum distance\r\n for (int j = 0; j < dC.length; j++ ){\r\n if( min > d[j] && dC[j] != -1 ){\r\n min = d[j];\r\n pos = j;\r\n }\r\n }\r\n // This node is settled\r\n dC[pos] = -1;\r\n\r\n // relax its neighbours\r\n for (int j = 0; j < graph.length; j++ ) {\r\n if ( (graph[pos][j] != -1) && (d[j] > graph[pos][j] + d[pos]) ) {\r\n d[j] = graph[pos][j] + d[pos];\r\n p[j] = pos;\r\n }\r\n }\r\n i++;\r\n min = this.INFINITE;\r\n }\r\n\r\n return p;\r\n }",
"@Override\r\n\tpublic void Dijkstra(E src) {\r\n\t\tPriorityQueue<Vertex<E>> pq = new PriorityQueue<Vertex<E>>();\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tlastSrc = vertices.get(src);\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tu.setDistance(Integer.MAX_VALUE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t\tpq.offer(u);\r\n\t\t\t});\r\n\t\t\tpq.remove(lastSrc);\r\n\t\t\tlastSrc.setDistance(0);\r\n\t\t\tpq.offer(lastSrc);\r\n\t\t\twhile(!pq.isEmpty()) {\r\n\t\t\t\tVertex<E> u = pq.poll();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(u.getElement())) {\r\n\t\t\t\t\tVertex<E> s = vertices.get(ale.getSrc());\r\n\t\t\t\t\tVertex<E> d = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(d.getDistance() > (long)s.getDistance() + (long)ale.getWeight()) {\r\n\t\t\t\t\t\tpq.remove(ale.getDst());\r\n\t\t\t\t\t\td.setDistance(s.getDistance() + ale.getWeight());\r\n\t\t\t\t\t\td.setPredecessor(s);\r\n\t\t\t\t\t\tpq.offer(d);\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 calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }",
"@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}",
"@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }",
"public static void djikstra(int[][] graph, int src) {\n\t\t/* output array */\n\t\tint[] dist = new int[graph.length];\n\t\tboolean[] visited = new boolean[graph.length];\n\n\t\tfor (int i = 0; i < graph.length; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE;\n\t\t\tvisited[i] = false;\n\t\t}\n\n\t\tdist[src] = 0;\n\n\t\tfor (int i = 0; i < graph.length - 1; i++) {\n\n\t\t\t// Pick the minimum distance vertex from the set of vertices not\n\t\t\t// yet processed. u is always equal to src in first iteration.\n\t\t\tint u = findMinDistanceVertex(dist, visited);\n\t\t\t// Mark the picked vertex as processed\n\t\t\tvisited[u] = true;\n\t\t\t\n\t\t\tfor(int j = 0; j < graph.length; j++) {\n\t\t\t\t\n\t\t\t\t// Update dist[v] only if is not in sptSet, there is an edge from \n\t\t // u to v, and total weight of path from src to v through u is \n\t\t // smaller than current value of dist[v]\n\t\t\t\tif(!visited[j] && graph[u][j] != 0\n\t\t\t\t\t\t&& dist[u] != Integer.MAX_VALUE\n\t\t\t\t\t\t&& dist[u] + graph[u][j] < dist[j]) {\n\t\t\t\t\tdist[j] = dist[u] + graph[u][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintSolution(dist, graph.length);\n\t}",
"private double dijkstraSingleTarget(Map<Integer, List<Node>> graph, int vertices, int source, int target) {\n Queue<Node> minHeap = new PriorityQueue<>(\n Comparator.comparingDouble(a -> a.weight)\n );\n\n double[] dist = new double[vertices + 1]; //shortest distance for each vertex\n Arrays.fill(dist, 0.0);\n\n boolean visited[] = new boolean[vertices + 1];\n\n // Distance for starting node is 0\n dist[source] = -1;\n minHeap.add((new Node(-1,source)));\n\n while (!minHeap.isEmpty()) {\n Node topPair = minHeap.remove();\n int currNode = topPair.vertex;\n double currDistance = topPair.weight;\n\n if (!graph.containsKey(currNode)) {\n continue;\n }\n\n if (visited[currNode]) continue;\n visited[currNode] = true;\n\n\n for (Node edge : graph.get(currNode)) {\n double weight = edge.weight;\n int neighborNode = edge.vertex;\n double nextDist = currDistance * weight;\n\n if (!visited[neighborNode] && nextDist < dist[neighborNode]) {\n dist[neighborNode] = nextDist;\n minHeap.add((new Node(nextDist, neighborNode)));\n\n }\n\n }\n\n\n }\n\n return -dist[target];\n }",
"public Dijkstra(EdgeWeightedDigraph G, int s) {\r\n int V = G.V();\r\n distTo = new double[V];\r\n edgeTo = new DirectedEdge[V];\r\n distTo[0] = 0.0;\r\n for (int i = 1; i < V; i++) {\r\n distTo[i] = Double.POSITIVE_INFINITY;\r\n }\r\n pq.insert(s, 0.0);\r\n while (!pq.isEmpty()) {\r\n int v = pq.deleteMin();\r\n for (DirectedEdge e : G.adj(v)) {\r\n relax(e);\r\n }\r\n }\r\n }",
"void dijkstra(Coordinate startName) {\n if (!graph.containsKey(startName)) {\n //test use print statement\n //System.out.printf(\"Graph doesn't contain start vertex \\\"%s\\\"\\n\", startName);\n return;\n }\n final Node source = graph.get(startName);\n NavigableSet<Node> queue = new TreeSet<>();\n\n // set-up vertices\n for (Node node : graph.values()) {\n node.previous = node == source ? source : null;\n node.dist = node == source ? 0 : Integer.MAX_VALUE;\n queue.add(node);\n }\n dijkstra(queue);\n }",
"void shortestPaths( Set<Integer> nodes );",
"private static void shortestPath(Graph graph, Character startNode, int algorithm) {\n Node currentNode = graph.getNode(startNode);\n\n // keep track of the nodes visited\n List<Character> nodesVisited = new ArrayList<>();\n\n // add the current node\n nodesVisited.add(currentNode.getName());\n\n // breadth first search to help keep track of the nodes we have already visited\n // helps with backtracking\n Stack<Node> visitingNodes = new Stack<>();\n\n // loop through the graph\n while (currentNode != graph.getNode('Z')) {\n // we have visited a node\n // add it to the stack\n // set true to since its been visited and it will be in the shortest path\n visitingNodes.add(currentNode);\n currentNode.setNodeVisited(true);\n currentNode.setInShortestPath(true);\n\n // get all the edges that are connected to the current node we are on\n List<Edge> adjacentNodes = currentNode.getNeighbors();\n\n // temp for next node\n Node nextNode = null;\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n for (Edge i: adjacentNodes) {\n // testing\n // System.out.println(i.destination.getName());\n // System.out.println(i.destination.getDistanceToZ());\n\n // 1. always check to see if we have visited the node\n if (i.destination.isNodeVisited()) {\n // System.out.println(i.destination.getName() + \" is already in the path\");\n continue;\n }\n\n // 2. assign the next node to the destination\n if (nextNode == null) {\n nextNode = i.destination;\n }\n\n // compare distances\n if (algorithm == 1) {\n nextNode = updateNextNodeAlgo1(nextNode, i.destination);\n } else {\n NodeWithWeightDistanceTotal nodeWithWeightDistanceTotal = updateNextNodeAlgo2(nextNode, i, weightDistanceTotal);\n nextNode = nodeWithWeightDistanceTotal.node;\n weightDistanceTotal = nodeWithWeightDistanceTotal.weightDistanceTotal;\n }\n //if (nextNode.getDistanceToZ() > i.destination.getDistanceToZ()) {\n // nextNode = i.destination;\n //}\n }\n\n // next has no other edges\n if (nextNode == null) {\n // System.out.println(\"There no place to go from \" + currentNode.getName());\n // pop off the node we just visited\n nextNode = visitingNodes.pop();\n // its not in the shortest path to Z\n nextNode.setInShortestPath(false);\n // set the next node to the previous node\n nextNode = visitingNodes.pop();\n }\n\n // add the nodes we visit to keep track of the path\n nodesVisited.add(nextNode.getName());\n\n // System.out.println(Arrays.toString(nodesVisited.toArray()));\n // testing purposes to see if the node is on the shortest path\n\n// for (Character node: nodesVisited) {\n// Node boolVisit = graph.getNode(node);\n// System.out.println(boolVisit.isInShortestPath());\n// }\n\n // progress to the next node\n currentNode = nextNode;\n // when visiting the last node mark z in the shortest path\n if (currentNode.getName() == 'Z') {\n currentNode.setInShortestPath(true);\n }\n // testing\n // System.out.println(\"next node = \" + currentNode.getName());\n }\n\n // keep track of the path visited and the total addition of weights\n int pathCounter = 0;\n\n // construct the shortest path\n List<Node> shortestPath = new ArrayList<>();\n\n for (Character nodeVisitor: nodesVisited) {\n // get the node\n Node node = graph.getNode(nodeVisitor);\n\n // add to the shortest path\n if (node.isInShortestPath() && !shortestPath.contains(node)) {\n shortestPath.add(node);\n }\n }\n\n // print the shortest path\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentNode = shortestPath.get(i);\n Node nextNode = shortestPath.get(i + 1);\n\n // find the weight of that node\n int weight = currentNode.findWeight(nextNode);\n pathCounter += weight;\n\n // System.out.println(\"weight \" + weight);\n // System.out.println(\"path total \" + pathCounter);\n }\n\n // final output\n String fullPathSequence = \"\";\n String shortestPathSequence = \"\";\n\n for (int i = 0; i < nodesVisited.size(); i++) {\n if (i != nodesVisited.size() - 1) {\n fullPathSequence += nodesVisited.get(i) + \" -> \";\n }\n }\n\n fullPathSequence += nodesVisited.get(nodesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n shortestPathSequence += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentNode.getName() == 'Z') {\n shortestPathSequence += \"Z\";\n } else {\n shortestPathSequence += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n System.out.println(\"Algorithm \" + algorithm + \" : \");\n System.out.println(\"Sequence of all nodes \" + fullPathSequence);\n System.out.println(\"Shortest path: \" + shortestPathSequence);\n System.out.println(\"Shortest path length: \" + pathCounter);\n System.out.println(\"\\n\");\n\n // reset the graph\n graph.graphReset();\n\n }",
"public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public static Graph dijkstra(Graph graph, Node source) {\n source.distance = 0;\n Set<Node> settledNodes = new HashSet<>();\n Set<Node> unsettledNodes = new HashSet<>();\n unsettledNodes.add(source);\n \n while (unsettledNodes.size() != 0) {\n Node currentNode = Graph.getLowestDistanceNode(unsettledNodes);\n unsettledNodes.remove(currentNode);\n for (Map.Entry<Node, Integer> adjacencyPair: \n currentNode.adjacentNodes.entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Integer edgeWeight = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n Graph.calculateMinimumDistance(adjacentNode, edgeWeight, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return graph;\n }",
"public static int dijkstra(AdjList<String> adjList, String startNode, String endNode, LinkedList<String> pathList) {\n //Valid AdjList\n if (adjList == null || adjList.size() == 0 || adjList.hasNegativeEdges())\n return Integer.MAX_VALUE;\n\n //Checks if start and end nodes exist in adjList\n if (!adjList.contains(startNode) || !adjList.contains(endNode))\n return Integer.MAX_VALUE;\n\n //Checks if graph is suitable for BFS\n if (!adjList.isWeighted())\n return BFS(adjList, startNode, endNode, pathList);\n\n //Sets all node objects in adjList to defaults\n adjList.cleanNodeFields();\n\n //Fibonacci heap for storing current shortest path\n FibHeap<Integer, String> q = new FibHeap<>();\n\n //Set source node value to 0\n q.insert(adjList.getNode(startNode), 0);\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, String>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, String> neighbor, u;//Current Node with shortest path / top of min-queue\n int edgeWeight;\n while (q.size() != 0) {\n u = q.extractMin();\n u.closed = true;\n\n //endNode found\n if (Objects.equals(u.value, endNode)) {\n //Build path of vertexes\n Node<Integer, String> current = adjList.getNode(endNode);\n pathList.add(current.value);\n while ((current = current.prev) != null)\n pathList.addFirst(current.value);\n return u.d;\n }\n\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, String>, Integer> neighborKeyValuePair : neighbors) {//Loops through every neighbor\n neighbor = neighborKeyValuePair.getKey();\n edgeWeight = neighborKeyValuePair.getValue();\n //Relaxation step\n //Checks if distance to neighbor node is less than the min distance already found\n if (!neighbor.visited || neighbor.d > u.d + edgeWeight) {\n //Assign shorter path found to neighbor in out array\n neighbor.d = u.d + edgeWeight;\n\n //Assigns previous shortest node to neighbor\n neighbor.prev = u;\n\n //Inserts or decrease key\n if (!neighbor.visited) {\n q.insert(neighbor, u.d + edgeWeight);\n neighbor.visited = true;\n } else {\n q.decreaseKey(neighbor, u.d + edgeWeight);\n }\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}",
"public interface Dijkstra<V> {\r\n\t// Constructor: public Dijkstra(DiGraph<V> graph);\r\n\r\n\t/**\r\n\t * Uses Dijkstra's shortest path algorithm to calculate and store the shortest\r\n\t * paths to every vertex in the graph as well as the total costs of each of\r\n\t * those paths. This should run in O(E log V) time, where E is the size of the\r\n\t * edge set, and V is the size of the vertex set.\r\n\t * \r\n\t * @param start the vertex from which shortest paths should be calculated\r\n\t */\r\n\tvoid run(V start);\r\n\r\n\t/**\r\n\t * Retrieve, in O(V) time, the pre-calculated shortest path to the given node.\r\n\t * \r\n\t * @param vertex the vertex to which the shortest path, from the start vertex,\r\n\t * is being requested\r\n\t * @return a list of vertices comprising the shortest path from the start vertex\r\n\t * to the given destination vertex, both inclusive\r\n\t */\r\n\tList<V> getShortestPath(V vertex);\r\n\r\n\t/**\r\n\t * Retrieve, in constant time, the total cost to reach the given vertex from the\r\n\t * start vertex via the shortest path. If there is no path, this value is\r\n\t * Integer.MAX_VALUE.\r\n\t * \r\n\t * @param vertex the vertex to which the cost of the shortest path, from the\r\n\t * start vertex, is desired\r\n\t * @return the cost of the shortest path to the given vertex from the start\r\n\t * vertex or Integer.MAX_VALUE if there is path\r\n\t */\r\n\tint getShortestDistance(V vertex);\r\n}",
"private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }",
"public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }",
"public static List<GraphEdge<String, String>> shortestPath(Graph<String, String> graph, String src, String dest) {\n // ... implement BFS as described in HW6 ...\n\t Queue<GraphNode<String>> q = new LinkedList<GraphNode<String>>();\n\t \n\t // Each key in m is a visited node\n\t // Each value is a list containing the shortest path from start\n\t Map<GraphNode<String>, List<GraphEdge<String, String>>> m = new HashMap<GraphNode<String>, List<GraphEdge<String, String>>>();\n\t \n\t q.add(graph.getNode(src));\n\t m.put(graph.getNode(src), new ArrayList<GraphEdge<String, String>>());\n\t \n\t //{{Inv: m has a key for every node added to q so far\n\t //\t\t (even those that have since been removed)\n\t //\t The value associated with each key is the shortest path to that node}}\n\t while (!q.isEmpty()) {\n\t\t GraphNode<String> temp = q.remove();\n\t\t if (temp.getData().equals(dest)) {\n\t\t\t return m.get(temp);\n\t\t }\n\t\t \n\t\t Set<GraphEdge<String, String>> set = new TreeSet<GraphEdge<String, String>>();\n\t\t set.addAll(graph.getChildren(temp));\n\t\t \n\t\t for (GraphEdge<String, String> edge : set) {\n\t\t\t if (!m.containsKey(edge.getDestination())) {\n\t\t\t\t List<GraphEdge<String, String>> list = new ArrayList<GraphEdge<String, String>>(m.get(temp));\n\t\t\t\t list.add(edge);\n\t\t\t\t m.put(edge.getDestination(), list);\n\t\t\t\t q.add(edge.getDestination());\n\t\t\t }\n\t\t }\n\t }\n\t \n\t return null;\n }",
"public void dijkstra(List<List<Node> > adj, int src){ \n this.adj = adj; \n \n for (int i = 0; i < V; i++) \n dist[i] = Integer.MAX_VALUE; \n \n // Add source node to the priority queue \n pq.add(new Node(src, 0)); \n \n // Distance to the source is 0 \n dist[src] = 0; \n while (settled.size() != V) { \n \n // remove the minimum distance node from the priority queue \n int u = pq.remove().node; \n \n // adding the node whose distance is finalized \n settled.add(u); \n \n e_Neighbours(u); \n } \n }",
"private double dijkstrasAlgo(String source, String dest) {\r\n\r\n\t\tclearAll(); // running time: |V|\r\n\t\tint count = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) // running time: |V|\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tcount++;\r\n\r\n\t\tVertex[] queue = new Vertex[count]; // running time: Constant\r\n\t\tVertex start = vertexMap.get(source); // running time: Constant\r\n\t\tstart.dist = 0; // running time: Constant\r\n\t\tstart.prev = null; // running time: Constant\r\n\r\n\t\tint index = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) { // running time: |V|\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tqueue[index] = v;\r\n\t\t\t\tv.setHandle(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbuildMinHeap(queue, count); // running time: |V|\r\n\r\n\t\twhile (count != 0) { // running time: |V|\r\n\t\t\tVertex min = extractMin(queue, count); // running time: log |V|\r\n\t\t\tcount--; // running time: Constant\r\n\r\n\t\t\tfor (Iterator i = min.adjacent.iterator(); i.hasNext();) { // running time: |E|\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus()) {\r\n\t\t\t\t\tVertex adjVertex = vertexMap.get(edge.getDestination());\r\n\t\t\t\t\tif (adjVertex.dist > (min.dist + edge.getCost()) && adjVertex.isStatus()) {\r\n\t\t\t\t\t\tadjVertex.dist = (min.dist + edge.getCost());\r\n\t\t\t\t\t\tadjVertex.prev = min;\r\n\t\t\t\t\t\tint pos = adjVertex.getHandle();\r\n\t\t\t\t\t\tHeapdecreaseKey(queue, pos, adjVertex); // running time: log |V|\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn vertexMap.get(dest).dist; // running time: Constant\r\n\t}",
"public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }",
"public DijkstraSP(EdgeWeightedDigraph G, int s){\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<>(G.V());\n\n for (int v=0; v<G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0;\n\n pq.insert(s, 0.0);\n // relax vertices in order of distance from s\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }",
"public ArrayList<Vertex> dijkstraPath(int sourceIndex, int sinkIndex) {\r\n \tArrayList<Vertex> locationcopy;\r\n \tlocationcopy=new ArrayList<Vertex>(location);\r\n \tArrayList<Vertex> dijpath;\r\n \tdijpath= new ArrayList<Vertex>(0);\r\n \t//dijpath.add(locationcopy.get(sourceIndex));\r\n \tint i,j,maxdist=locationcopy.size()+1;\r\n \tint[] DistArray=new int[locationcopy.size()], PreArray=new int[locationcopy.size()]; \r\n \tint[][] AdjArray=new int[locationcopy.size()][locationcopy.size()];\r\n \t\r\n \r\n \t\r\n \tfor(i=0;i<locationcopy.size();i++)\r\n \t\tfor(j=i;j<locationcopy.size();j++)\r\n \t\t\tif(locationcopy.get(i).distance(locationcopy.get(j))<=transmissionRange)\r\n \t\t\t{\r\n \t\t\t\tAdjArray[i][j]=1;\r\n \t\t\t\tAdjArray[j][i]=1;\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tAdjArray[i][j]=maxdist;\r\n \t\t\t\tAdjArray[j][i]=maxdist;\r\n \t\t\t}\r\n \t\r\n \tfor(i=0;i<locationcopy.size();i++)\r\n \t\tAdjArray[i][i]=0;\r\n \t\t\r\n\t\t\r\n \tint mdistindex,mindist;\r\n\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t { \r\n \t\t DistArray[i]=AdjArray[sourceIndex][i];\r\n \t if(DistArray[i]<maxdist) PreArray[i]=sourceIndex;\r\n \t else PreArray[i]=-1;\r\n \t }\r\n \t PreArray[sourceIndex]=-1; AdjArray[sourceIndex][sourceIndex]=1;\r\n \t for(j=0;j<(locationcopy.size()-1);j++)\r\n \t { \r\n \t\t mindist=maxdist; \r\n \t\t mdistindex=-1;\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t if((AdjArray[i][i]==0)&&(DistArray[i]<mindist))\r\n \t { \r\n \t \t mdistindex=i;\r\n \t \t mindist=DistArray[i];\r\n \t }\r\n \t if(mdistindex==-1) return new ArrayList<Vertex>(0);\r\n \t else\r\n \t { \r\n \t \t AdjArray[mdistindex][mdistindex]=1;\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t {\r\n \t if(AdjArray[i][i]==0)\r\n \t {\r\n \t if(DistArray[mdistindex]+AdjArray[mdistindex][i]<DistArray[i])\r\n \t { \r\n \t \t DistArray[i]=DistArray[mdistindex]+AdjArray[mdistindex][i];\r\n \t PreArray[i]=mdistindex;\r\n \t }\r\n \t }\r\n \t }\r\n \t }\r\n \t if(AdjArray[sinkIndex][sinkIndex]==1) break;\r\n \t }\r\n \t Stack<Integer> s=new Stack<Integer>();\r\n \t i=sinkIndex;\r\n \t s.push(i);\r\n \t while(PreArray[i]!=-1)\r\n \t {\r\n \t\t s.push(PreArray[i]);\r\n \t\t i=PreArray[i];\r\n \t }\r\n \t while(!s.isEmpty())\r\n \t {\r\n \t\t dijpath.add(locationcopy.get(s.pop()));\r\n \t }\r\n \treturn dijpath;\r\n }",
"@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }",
"private int[] shrtst_Path_Dijkstra_Algo(int[][] matrx, int sNode, int[] forward_tab_dist, int[] list_Prevoius_Nodes) \n\t{\n\t\tArrayList<Integer> visitedNodes_M = new ArrayList<>(); //3. set of visited vertices is initially empty\n\t\tArrayList<Integer> unvisitedNodes_Q = new ArrayList<>(); //4. the queue initially contains all vertices\n\t\t\n\t\t//1. Distance to source vertex = 0\n\t\tforward_tab_dist[sNode] = 0;\n\n\t\t//2. Initialize: Set all other distances to infinity\n\t\tint k=0;\n\t\twhile(k < matrx.length)\n\t\t{\n\t\t\tunvisitedNodes_Q.add(k);\n\t\t\tif(k != sNode)\n\t\t\t{\n\t\t\t\tforward_tab_dist[k] = INFINITE_DIST;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\t\n\t\t//list of previous nodes, to traverse back\n\t\tlist_Prevoius_Nodes[sNode] = sNode;\n\t\t\n\t\t//5. While queue is not empty\n\t\twhile(!unvisitedNodes_Q.isEmpty())\n\t\t{\n\t\t\tint minDist = INFINITE_DIST;\n\t\t\tint u_minDistNode = -1;\n\t\t\t\n\t\t\t//6. select the element of Q with min distance\n\t\t\tint l = 0;\n\t\t\twhile(l < unvisitedNodes_Q.size())\n\t\t\t{\n\t\t\t\tint n = unvisitedNodes_Q.get(l);\n\t\t\t\tif(!(forward_tab_dist[n] <= minDist))\n\t\t\t\t{\n\t\t\t\t\tl++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tu_minDistNode = n;\n\t\t\t\t\tminDist = forward_tab_dist[n];\n\t\t\t\t}\n\t\t\t\tl++;\n\t\t\t}\n\t\t\t//No minimum distance node found then return\n\t\t\tif(u_minDistNode == -1)\n\t\t\t{\tbreak;\t}\n\t\t\t\n\t\t\t//7. add u to list of visited vertices\n\t\t\tvisitedNodes_M.add(u_minDistNode);\n\t\t\t\n\t\t\tint index = unvisitedNodes_Q.indexOf(u_minDistNode);\t//remove this node from unvisited nodes\n\t\t\tunvisitedNodes_Q.remove(index);\n\t\t\t\n\t\t\t//8.0 algo - consider neighbor as direct distance nodes except source\n\t\t\tfor(int v=0; v<matrx.length; v++)\n\t\t\t{\n\t\t\t\t//matrix[minDistNode_u][v] > 0 ensures it is not source node\n\t\t\t\t//unvisitedNodes_Q.contains(v) only check for unvisited nodes\n\t\t\t\t\n\t\t\t\tif(unvisitedNodes_Q.contains(v) && matrx[u_minDistNode][v] > 0)\n\t\t\t\t{\n\t\t\t\t\tint val = forward_tab_dist[u_minDistNode] + matrx[u_minDistNode][v];\n\t\t\t\t\tif(val < forward_tab_dist[v])\n\t\t\t\t\t{\n\t\t\t\t\t\t//stores shortest distance\n\t\t\t\t\t\tforward_tab_dist[v] = val;\n\t\t\t\t\t\t//stores last node for back traversal to find path\n\t\t\t\t\t\tlist_Prevoius_Nodes[v] = u_minDistNode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn forward_tab_dist;\n\t}",
"public List<GeographicPoint> dijkstra(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n\t\t// You do not need to change this method.\n Consumer<GeographicPoint> temp = (x) -> {};\n return dijkstra(start, goal, temp);\n\t}",
"public static <V> Dictionary<V, DijkstraResult<V>> getShortestPathDijkstra(Graph<V> graph, V value) {\n V[] vertices = graph.getValuesAsArray();\n double[][] matriz = graph.getGraphStructureAsMatrix();\n\n double[] distancias = new double[vertices.length];\n V[] camino = (V[]) new Object[vertices.length];\n int pos = buscarPosicion(value, vertices);\n\n for (int x = 0; x < vertices.length; x++) { // Se llenan los arreglos con la informacion de sus adyacentes.\n if (pos == x) {\n distancias[x] = 0;\n camino[x] = null;\n } else {\n if (matriz[pos][x] == -1) {\n distancias[x] = Integer.MAX_VALUE - 1;\n camino[x] = vertices[pos];\n } else {\n distancias[x] = matriz[pos][x];\n camino[x] = vertices[pos];\n }\n }\n }\n\n Set<V> revisados = new LinkedListSet<>();\n revisados.put(value);\n while (revisados.size() < vertices.length) {\n double menor = Integer.MAX_VALUE;\n V actual = null;\n for (int x = 0; x < vertices.length; x++) {\n if (distancias[x] < menor) {\n if (!revisados.isMember(vertices[x])) {\n menor = distancias[x];\n actual = vertices[x];\n }\n }\n }\n\n pos = buscarPosicion(actual, vertices);\n for (int x = 0; x < vertices.length; x++) { // Se recorre la matriz para buscar adyacencias.\n if (matriz[pos][x] != -1) { // Si existe arist\n if (menor + matriz[pos][x] < distancias[x]) {\n distancias[x] = menor + matriz[pos][x];\n camino[x] = actual;\n }\n }\n }\n revisados.put(actual);\n }\n Dictionary<V, DijkstraResult<V>> diccionario = new Hashtable<>();\n for (int x = 0; x < vertices.length; x++) {\n DijkstraResult<V> aux = new DijkstraResult<>(vertices[x], camino[x], distancias[x]);\n diccionario.put(vertices[x], aux);\n }\n return diccionario;\n }",
"public ArrayQueue<T> getShortestPath(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinPath();\n }",
"public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }",
"public LinkedList<Node> shortestPath() throws PathNotFoundException {\n // Which strategy shall we use?\n ApplicationConfiguration config = ApplicationConfiguration.getInstance();\n switch(config.getCurrentSearchAlgorithm()) {\n case A_STAR:\n return aStarPath();\n case BFS:\n return bfsPath();\n case DFS:\n return dfsPath();\n default:\n return null;\n }\n }",
"@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }",
"DijkstraSP(EdgeWeightedDigraph G, int s)\n\t{\n\t\tdistTo=new double[G.V()];\n\t\tedgeTo=new DirectedEdge[G.V()];\n\t\tpq=new IndexMinPQ<>(G.V());\n\t\tfor(int v=0;v<G.V();v++)\n\t\t\tdistTo[v]=Double.POSITIVE_INFINITY;\n\t\tdistTo[s]=0.0;\n\t\t\n\t\tpq.insert(s, 0.0);\n\t\twhile(!pq.isEmpty()) \n\t\t{\n\t\t\tint v=pq.delMin();\n\t\t\tfor(DirectedEdge e: G.adj(v))\n\t\t\t\trelax(e);\n\t\t}\n\t}",
"public static ArrayList<edges<String, Double>> Dijkstra(String CHAR1, String CHAR2, graph<String,Float> g) {\n\t\tPriorityQueue<ArrayList<edges<String, Double>>> active = \n\t\t\tnew PriorityQueue<ArrayList<edges<String, Double>>>(10,new Comparator<ArrayList<edges<String, Double>>>() {\n\t\t\t\tpublic int compare(ArrayList<edges<String, Double>> path1, ArrayList<edges<String, Double>> path2) {\n\t\t\t\t\tedges<String, Double> dest1 = path1.get(path1.size() - 1);\n\t\t\t\t\tedges<String, Double> dest2 = path2.get(path2.size() - 1);\n\t\t\t\t\tif (!(dest1.getLabel().equals(dest2.getLabel())))\n\t\t\t\t\t\treturn dest1.getLabel().compareTo(dest2.getLabel());\n\t\t\t\t\treturn path1.size() - path2.size();\n\t\t\t\t}\n\t\t\t});\n\t\t\tSet<String> known = new HashSet<String>();\n\t\t\tArrayList<edges<String, Double>> begin = new ArrayList<edges<String, Double>>();\n\t\t\tbegin.add(new edges<String, Double>(CHAR1, 0.0));\n\t\t\tactive.add(begin);\t\t\n\t\t\twhile (!active.isEmpty()) {\n\t\t\t\tArrayList<edges<String, Double>> minPath = active.poll();\n\t\t\t\tedges<String, Double> endOfMinPath = minPath.get(minPath.size() - 1);\n\t\t\t\tString minDest = endOfMinPath.getDest();\n\t\t\t\tdouble minCost = endOfMinPath.getLabel();\n\t\t\t\tif (minDest.equals(CHAR2)) {\n\t\t\t\t\treturn minPath;\n\t\t\t\t}\n\t\t\t\tif (known.contains(minDest))\n\t\t\t\t\tcontinue;\n\t\t\t\tSet<edges<String,Float>> children = g.childrenOf(minDest);\n\t\t\t\tfor (edges<String, Float> e : children) {\n\t\t\t\t\tif (!known.contains(e.getDest())) {\n\t\t\t\t\t\tdouble newCost = minCost + e.getLabel();\n\t\t\t\t\t\tArrayList<edges<String, Double>> newPath = new ArrayList<edges<String, Double>>(minPath); \n\t\t\t\t\t\tnewPath.add(new edges<String, Double>(e.getDest(), newCost));\n\t\t\t\t\t\tactive.add(newPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tknown.add(minDest);\n\t\t\t}\n\t\t\treturn null;\n\t}",
"@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals(2, graph.Dijkstra(\"apple\", \"cherry\", shortestPath));\n assertEquals(\"apple banana cherry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(3, graph.Dijkstra(\"apple\", \"date\", shortestPath));\n assertEquals(\"apple banana cherry date\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(4, graph.Dijkstra(\"apple\", \"elderberry\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(5, graph.Dijkstra(\"apple\", \"fig\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(6, graph.Dijkstra(\"apple\", \"guava\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig guava\",\n TestGraphs.listToString(shortestPath));\n }",
"public Dijkstra(Graph graph, int firstVertexPortNum)\n {\n this.graph = graph;\n Set<String> vertexKeys = this.graph.vertexKeys();\n \n this.initialVertexPortNum = firstVertexPortNum;\n this.predecessors = new HashMap<String, String>();\n this.distances = new HashMap<String, Integer>();\n this.availableVertices = new PriorityQueue<Vertex>(vertexKeys.size(), new Comparator<Vertex>()\n {\n // compare weights of these two vertices.\n public int compare(Vertex v1, Vertex v2)\n {\n \t// errors are here.\n int weightOne = Dijkstra.this.distances.get(v1.convertToString(v1.getVertexPortNum())); // distances stored by portnum in string form.\n int weightTwo = Dijkstra.this.distances.get(v2.convertToString(v2.getVertexPortNum())); // distances stored by portnum in string form.\n return weightOne - weightTwo; // return the modified weight of the two vertices.\n }\n });\n \n this.visitedVertices = new HashSet<Vertex>();\n \n // for each Vertex in the graph\n for(String key: vertexKeys)\n {\n this.predecessors.put(key, null);\n this.distances.put(key, Integer.MAX_VALUE); // assuming that the distance of this is infinity.\n }\n \n \n //the distance from the initial vertex to itself is 0\n this.distances.put(convertToString(initialVertexPortNum), 0); \n \n //and seed initialVertex's neighbors\n Vertex initialVertex = this.graph.getVertex(convertToString(initialVertexPortNum)); // converted portnum to String to make this work.\n ArrayList<Edge> initialVertexNeighbors = initialVertex.getSquad();\n for(Edge e : initialVertexNeighbors)\n {\n Vertex other = e.getNeighbor(initialVertex);\n this.predecessors.put(convertToString(other.getVertexPortNum()), convertToString(initialVertexPortNum));\n this.distances.put(convertToString(other.getVertexPortNum()), e.getWeight()); // converted portnum to String to make this work.\n this.availableVertices.add(other); // add to available vertices.\n }\n \n this.visitedVertices.add(initialVertex); // add to list of visited vertices.\n \n // apply Dijkstra's algorithm to the overlay.\n processOverlay();\n \n }",
"public DijkstraSP(EdgeWeightedDigraph G, int s)\n {\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<Double>(G.V());\n for (int v = 0; v < G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0.0;\n pq.insert(s, 0.0);\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }",
"public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}",
"public static void dijkstra_function(graph G, int s) throws IOException\n { \t\t\t\t\t// s is the index of the starting vertex\n \t// declare variables\n\tint nVerts, u, v;\n\tint [] dist;\n\n nVerts = G.vertices(); \t\t\t// get number of vertices in the graph class\n\n // initialize array\n dist = new int[nVerts];\n\n for(v=0; v<nVerts; v++) \t\t\t// initializations\n {\n \tdist[v] = 99999; \t\t\t\t// 99999 represents infinity\n\n }// end for\n\n dist[s] = 0;\n\n PriorityQueue Q = new PriorityQueue(dist); \t\t\n\n while(Q.Empty() == 0) \t\t\t// if heap is not empty\n {\n\n u = Q.Delete_root();\n v = G.nextneighbor(u);\n\n while(v != -1) \t\t\t// for each neighbor of u\n {\n \tif(dist[v] > dist[u] + G.edgeLength(u,v)) {\n \t\tdist[v] = dist[u] + G.edgeLength(u,v);\n\t\t\t\tQ.Update(v, dist[v]);\n }\n\n \tv = G.nextneighbor(u); \t// get the next neighbor of u\n\n }// end while\n\n }// end while\n\n System.out.println(\"\"); \t\t\t// display the array dist\n for(int row=0; row<nVerts; row++)\n \t{\n \t\tSystem.out.print(dist[row] + \" \");\n \t \tSystem.out.println(\"\");\n \t}// end for\n\n }",
"private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }",
"@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }",
"List<V> getShortestPath(V vertex);",
"private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\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\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}",
"private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }",
"public ShortestPath(IWeightedGraph<N,E> graph, int startNode) {\n\t\tthis.graph = graph;\n\t\tthis.startNode = startNode;\n\t\tthis.shortestPaths = new double[graph.numberOfNodes()];\n\t\tthis.previousNode = new int[graph.numberOfNodes()];\n\t\tbellmanFord(this.graph, this.startNode);\n\t}",
"public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }",
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}",
"public LinkedList<String> shortestPath(String sid, Function<String, Boolean> destCheck)\n\t{\n\t\t// reset all node predecessors (from previous path-finding attempts)\n\t\tfor (Node n : nodes.values())\n\t\t\tn.pred = null;\n\n\t\t// init frontier for Dijkstra's algorithm\n\t\tSet<Node> frontier = new HashSet<Node>();\n\n\t\t// initial condition for path-finding\n\t\tNode start = getNode(sid);\n\t\tfrontier.add(start);\n\t\tstart.distance = 0;\n\t\tstart.pred = null;\n\n\t\twhile (!frontier.isEmpty())\n\t\t{\n\t\t\t// find closest node in frontier\n\t\t\tNode closest = null;\n\t\t\tint dist = 0;\n\t\t\tfor (Node n : frontier)\n\t\t\t{\n\t\t\t\tif (closest == null || n.distance < dist)\n\t\t\t\t{\n\t\t\t\t\tclosest = n;\n\t\t\t\t\tdist = n.distance;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// and remove it\n\t\t\tfrontier.remove(closest);\n\n\t\t\tif (destCheck.apply(closest.id))\n\t\t\t{\n\t\t\t\tLinkedList<String> path = new LinkedList<String>();\n\t\t\t\tif (closest == start) return path;\n\t\t\t\tpath.push(closest.id);\n\n\t\t\t\t// trace back to find just the first move to make\n\t\t\t\twhile (closest.pred != start)\n\t\t\t\t{\n\t\t\t\t\tclosest = closest.pred;\n\t\t\t\t\tpath.push(closest.id);\n\t\t\t\t}\n\n\t\t\t\treturn path;\n\t\t\t}\n\n\t\t\t// no path found, add new nodes to the frontier\n\t\t\tfor (Edge e : closest.neighbors.values())\n\t\t\t{\n\t\t\t\t// check if we have a new shortest path to the node\n\t\t\t\t// TODO assume some maximum edge weight if unknown?\n\t\t\t\tif (e.weight != null && (e.end.pred == null || closest.distance + e.weight < e.end.distance))\n\t\t\t\t{\n\t\t\t\t\te.end.pred = closest;\n\t\t\t\t\te.end.distance = closest.distance + e.weight;\n\t\t\t\t\tfrontier.add(e.end);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// no reachable destinations\n\t\treturn null;\n\t}",
"public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }",
"public Queue<Station> approxShortestPath(Station start, Station end)\n {\n //Create a hash from station IDs to extra data needed for this algorithm.\n HashMap<String, ApproxSearchExtra> station_extras =\n new HashMap<String, ApproxSearchExtra>();\n for (Station station : getStations())\n station_extras.put(station.getId(), new ApproxSearchExtra());\n\n HashSet<Station> closed = new HashSet<Station>();\n HashSet<Station> open = new HashSet<Station>();\n open.add(start);\n\n while (open.size() > 0)\n {\n //Current is the item in the open set with the lowest estimated cost.\n Station current = null;\n ApproxSearchExtra current_extra = null;\n for (Station element : open)\n {\n if (current == null && current_extra == null)\n {\n current = element;\n current_extra = station_extras.get(element.getId());\n }\n else\n {\n ApproxSearchExtra extra = station_extras.get(element.getId());\n if (extra.estimated_cost < current_extra.estimated_cost)\n {\n current = element;\n current_extra = extra;\n }\n }\n }\n\n //If the current station is the end station, then we're done.\n if (current == end)\n return buildApproxShortestPathResult(end, station_extras);\n\n //Station is no longer in the open set and is now in the closed set\n //because it was traversed.\n open.remove(current);\n closed.add(current);\n\n for (Station neighbour : getAdjacentStations(current))\n {\n //Do nothing if neighbour is already in the closed set.\n if (closed.contains(neighbour))\n continue;\n\n ApproxSearchExtra neighbour_extra =\n station_extras.get(neighbour.getId());\n\n //Cost of movement to this neighbour.\n float attempt_cost = current_extra.cost + current.distance(neighbour);\n\n //If not in the open set, add the neighbour to the open set so that it\n //will be traversed later.\n if (!open.contains(neighbour))\n open.add(neighbour);\n //If this path is more costly than another path to this station, then\n //this path cannot be optimal.\n else if (attempt_cost >= neighbour_extra.cost)\n continue;\n\n //This is now the best path to this neighbour. Store this information.\n neighbour_extra.came_from = current;\n neighbour_extra.cost = attempt_cost;\n neighbour_extra.estimated_cost = attempt_cost +\n neighbour.distance(end);\n }\n }\n\n return null;\n }",
"public Map<Node<T>, Cost> dijkstra(T start) throws NodeNotFoundException {\n Node<T> origin = findNode(start);\n Map<Node<T>, Cost> costs = new HashMap<>();\n List<Node<T>> alreadyVisited = new ArrayList<>();\n\n // Step 1 : Initialization\n // Set every cost to infinity, except for the starting summit which is set to 0\n for(Node<T> node : getNodes()) {\n if(origin.equals(node)) { costs.put(node, new Cost(0.0)); }\n else { costs.put(node, new Cost()); }\n }\n\n while(ArrayMethods.similarity(getNodes(), alreadyVisited) != order()) {\n // Step 2 : Taking the node with the smallest cost\n Node<T> reference = Cost.findMin(costs, alreadyVisited);\n\n // Step 3 : Updating the table with the costs from that node\n for(WeightedLink link : findLinks(reference.getData())) {\n Node<T> other = (Node<T>) link.getOther(reference);\n Cost oldCost = costs.get(other);\n double old = oldCost.getCost();\n double cost = link.getWeight() + costs.get(reference).getCost();\n\n costs.put(other, (cost < old) ? new Cost(cost, reference) : oldCost);\n }\n\n // Step 4 : Repeat with the smallest costing summit that wasn't visited already\n alreadyVisited.add(reference);\n }\n\n return costs;\n }",
"@Override\r\n\tpublic List<Integer> getShortestPath(int source, int destination, GraphStructure graph) {\r\n\t\tshortestPathList = new ArrayList<Integer>();\r\n\t\tisVisited = new boolean[graph.getNumberOfVertices()];\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[source]=0;\r\n\t\tcalculateShortestDistances(graph, source, destination);\r\n\t\tfor(Integer value : shortestPathList) {\r\n\t\t\tSystem.out.println(value+\" \");\r\n\t\t}\r\n\t\treturn shortestPathList;\r\n\t}",
"private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }",
"private LinkedList<Node> aStarPath() throws PathNotFoundException {\n\n // Set of nodes already evaluated\n List<Node> closedSet = new ArrayList<Node>();\n\n // Set of nodes visited, but not evaluated\n List<Node> openSet = new ArrayList<Node>();\n openSet.add(start);\n\n\n // Map of node with shortest path leading to it\n Map<Node, Node> cameFrom = new HashMap<>();\n\n // Map of cost of navigating from start to node\n Map<Node, Double> costFromStart = new HashMap<>();\n costFromStart.put(start, 0.0);\n\n // Map of cost of navigating path from start to end through node\n Map<Node, Double> costThrough = new HashMap<>();\n costThrough.put(start, heuristic(start, end));\n\n while (!openSet.isEmpty()){\n\n Node current = lowestCostThrough(openSet, costThrough);\n\n if(current.equals(end)){\n return reconstructPath(cameFrom, current);\n }\n\n openSet.remove(current);\n closedSet.add(current);\n\n for(Node neighbor: current.getNodes()) {\n if (closedSet.contains(neighbor)) {\n continue;\n }\n\n double tentativeCost = costFromStart.get(current) + distanceBetween(current, neighbor);\n\n if (!openSet.contains(neighbor)) { // found new neighbor\n openSet.add(neighbor);\n } else if (tentativeCost >= costFromStart.get(neighbor)) { // not a better path\n continue;\n }\n\n cameFrom.put(neighbor, current);\n costFromStart.put(neighbor, tentativeCost);\n costThrough.put(neighbor, tentativeCost + heuristic(neighbor, end));\n\n }\n }\n // no path\n throw pathNotFound;\n }",
"private List<String> searchByDijkstra(Vertex starting, String end ,Map<String, Vertex> verticesWithDistance) {\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\n\t\tPriorityQueue<Vertex> pq = new PriorityQueue<Vertex>();\n\t\tpq.offer(starting);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tVertex v = pq.poll();\n\t\t\tif (v.name.equals(end))\n\t\t\t\treturn v.route;\n\t\t\tif (!visited.contains(v))\n\t\t\t\tvisited.add(v);\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t\tfor (String n : neighbors.get(v.name)) {\n\t\t\t\tint newDistance = v.distance + edges.get(v.name + \" \" + n);\n\t\t\t\tVertex nextVertex = verticesWithDistance.get(n);\n\t\t\t\tif (nextVertex.distance == -1 || newDistance < nextVertex.distance) {\n\t\t\t\t\tnextVertex.distance = newDistance;\n\t\t\t\t\tnextVertex.route = new LinkedList<String>(v.route);\n\t\t\t\t\tnextVertex.route.add(nextVertex.name);\n\t\t\t\t}\n\t\t\t\tpq.offer(nextVertex);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int dijkstra(int adj[][], int source,int des) {\n\t\tint temp2=0;\n\t\tint distance[]=new int[vertexs];\n\t\tBoolean span_tree[]=new Boolean[vertexs];\n\t\t\n\t\tfor(int i=0;i<vertexs;i++) {\n\t\t\tdistance[i]=Integer.MAX_VALUE;\n\t\t\tspan_tree[i]=false;\n\t\t}\n\t\tdistance[source]=0;\n\t\tfor(int i=0;i<vertexs-1;i++) {\n\t\t\tint u=minDistance(distance,span_tree);\n\t\t\tspan_tree[u]=true;\n\t\t\tfor(int v=0;v<vertexs;v++) {\n\t\t\t\tif(!span_tree[v] && adj[u][v]!=0 && distance[u]!=Integer.MAX_VALUE && distance[u]\n\t\t\t\t\t\t+ adj[u][v]<distance[v]) {\n\t\t\t\t\tdistance[v]=distance[u]+adj[u][v];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp2=distance[des];\n\t\t}\n\t\tprintGraph(distance,vertexs);\n\t\treturn temp2;\n\t}",
"public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}",
"private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }",
"private static List<Vertex> doDijkstra(List<Vertex> vertexes) {\n\n\t\t// Zok, we have a graph constructed. Traverse.\n\t\tPriorityQueue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(me);\n\t\tme.setMinDistance(0);\n\n\t\twhile (!vertexQueue.isEmpty()) {\n\t\t\tVertex v = vertexQueue.poll();\n\t\t\tdouble distance = v.getMinDistance() + 1;\n\n\t\t\tfor (Vertex neighbor : v.getAdjacencies()) {\n\t\t\t\tif (distance < neighbor.getMinDistance()) {\n\t\t\t\t\tneighbor.setMinDistance(distance);\n\t\t\t\t\tneighbor.setPrevious(v);\n\t\t\t\t\tvertexQueue.remove(neighbor);\n\t\t\t\t\tvertexQueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn vertexes;\n\t}",
"private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }",
"public void findShortestRoute(Point2D start, Point2D end){\n fastestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end);\n travelMethod(routeFinder);\n routeFinder.setShortestRoute();\n shortestPath = routeFinder.getShortestPath();\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(shortestPath);\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No shortest path between the two locations was found\"});\n setTravelInfo(null);\n shortestPath = null;\n }\n\n repaint();\n\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private OptimizedItinerary doDijkstra(HipsterDirectedGraph<String,Long> graph, String origin, String destination) {\r\n log.info(String.format(\"----- Doing Dijkstra for origen: %s, and destination: %s -----\", origin, destination));\r\n SearchResult res = null;\r\n SearchProblem p = GraphSearchProblem\r\n .startingFrom(origin)\r\n .in(graph)\r\n .takeCostsFromEdges()\r\n .build();\r\n\r\n res= Hipster.createDijkstra(p).search(destination);\r\n WeightedNode node = (WeightedNode)res.getGoalNode();\r\n log.info(String.format(\"Best itineraries: %s, cost final: %s\", res.getOptimalPaths(), node.getCost()));\r\n \r\n return new OptimizedItinerary.Builder(res.getOptimalPaths())\r\n .setCost( Double.parseDouble(node.getCost().toString()))\r\n .from(origin)\r\n .to(destination)\r\n .build();\r\n }",
"public int[] shortestReach(int startId) {\n System.out.println(\"Graph with startId: \"+startId);\n for(int i=0 ; i<size ; i++){\n for(int j=0 ; j<size ; j++){\n System.out.print(graph[i][j]);\n }\n System.out.println(\"\");\n }\n\n int[] dist = new int[size];\n boolean[] srg = new boolean[size];\n\n //intialize dist and srg\n for(int i=0 ; i<size ; i++){\n dist[i] = Integer.MAX_VALUE;\n srg[i] = false;\n }\n\n //Start node\n dist[startId] = 0;\n\n for(int i=0 ; i<size ; i++){\n int u = minDist(dist, srg);\n\n srg[u] = true;\n\n for( int v=0; v<size ; v++){\n if(!srg[v] && graph[u][v]!=0 && dist[u]!=Integer.MAX_VALUE && dist[u] + graph[u][v] < dist[v]){\n dist[v] = dist[u] + graph[u][v];\n }\n }\n }\n\n int[] result = new int[size-1];\n int indx = 0;\n for(int i=0 ; i<size ; i++){\n if(i != startId){\n if(dist[i] == Integer.MAX_VALUE)\n result[indx] = -1;\n else{\n result[indx] = dist[i];\n }\n indx++;\n }\n\n }\n\n return result;\n }",
"public interface Dijkstra<V,E>\n{\n\t/**\n\t * Sets the graph to use in computation\n\t */\n\tpublic void setGraph(Graph<V,E> graph);\n\t\n\t/**\n\t * Sets the start vertex the algorithm will use in computation\n\t * @throws IllegalArgumentException if the start vertex does not exist in the graph\n\t * @throws IllegalStateException if no graph has been set\n\t */\n\tpublic void setStart(int startId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Sets the weighing to be used in computing the cost of traversing an edge\n\t */\n\tpublic void setWeighing(Weighing<E> weighing);\n\t\n\t/**\n\t * Computes the shortest path to all vertices from the start vertex in the graph\n\t * using the weighing function\n\t * @throws IllegalStateException if the graph, start vertex, or weighing object have not been set\n\t */\n\tpublic void computeShortestPath() throws IllegalStateException;\n\t\n\t/**\n\t * Returns the path from the start vertex to the end vertex provided\n\t * @return a list representing the shortest path. The first element is the start vertex, and the last\n\t * is the end vertex.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Returns the cost of the shortest path from the start vertex to the end vertex where\n\t * cost is defined by the sum of the weights of all the edges that connects the path as\n\t * defined by the weighing object.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic double getCost(int endId) throws IllegalArgumentException, IllegalStateException;\n}",
"@Nullable\n public VertexPath<V> findShortestVertexPath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n if (graph instanceof IntDirectedGraph) {\n return doFindIntShortestVertexPath(graph, start, goal, costf);\n } else {\n return doFindShortestVertexPath(graph, start, goal, costf);\n }\n }",
"public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}"
] | [
"0.8019197",
"0.80119187",
"0.79101944",
"0.7783246",
"0.7730954",
"0.772448",
"0.77230436",
"0.771907",
"0.76918644",
"0.7691556",
"0.7623868",
"0.7616961",
"0.7612364",
"0.75617343",
"0.75564706",
"0.75179577",
"0.75137246",
"0.7487003",
"0.74716914",
"0.74356943",
"0.74096316",
"0.739011",
"0.73781776",
"0.7356669",
"0.73499966",
"0.7315334",
"0.730754",
"0.7241734",
"0.72380435",
"0.7235961",
"0.72276974",
"0.72054964",
"0.7180451",
"0.71803766",
"0.71786696",
"0.71157306",
"0.71152365",
"0.71054274",
"0.7100865",
"0.70713437",
"0.70613635",
"0.7056855",
"0.7051796",
"0.704328",
"0.704273",
"0.70385844",
"0.70357865",
"0.70237106",
"0.700548",
"0.7000486",
"0.69971085",
"0.69944257",
"0.6993247",
"0.69882196",
"0.6985152",
"0.69847953",
"0.6975495",
"0.69650733",
"0.6954107",
"0.69502693",
"0.69499934",
"0.69458705",
"0.69423187",
"0.69337976",
"0.6929157",
"0.6927732",
"0.6926384",
"0.69241214",
"0.69173896",
"0.6916435",
"0.69161284",
"0.69077027",
"0.6907455",
"0.6893648",
"0.68720293",
"0.68657154",
"0.68649185",
"0.68646336",
"0.6862708",
"0.68599665",
"0.6859635",
"0.68536526",
"0.6848898",
"0.6836467",
"0.6816639",
"0.6799704",
"0.6797366",
"0.6791556",
"0.67902786",
"0.6775444",
"0.6772391",
"0.6761287",
"0.6751761",
"0.6749285",
"0.67468846",
"0.6737867",
"0.6736563",
"0.6731435",
"0.67285544",
"0.67231584"
] | 0.7496203 | 17 |
Add an endpoint to the network if it is a new endpoint | private Vertex<String> addLocation(String name) {
if (!vertices.containsKey(name)) {
Vertex<String> v = graph.insert(name);
vertices.put(name, v);
return v;
}
return vertices.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().add(endpoint);\r\n }",
"void addPeerEndpoint(PeerEndpoint peer);",
"public void addEndpoint(String endpoint) {\n\t\tif (sessionMap.putIfAbsent(endpoint, new ArrayList<Session>()) != null)\n\t\t\tLOG.warn(\"Endpoint {} already exists\", endpoint);\n\t\telse\n\t\t\tLOG.info(\"Added new endpoint {}\", endpoint);\n\t}",
"public org.hl7.fhir.Uri addNewEndpoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Uri target = null;\n target = (org.hl7.fhir.Uri)get_store().add_element_user(ENDPOINT$8);\n return target;\n }\n }",
"public void addEndpoint(Endpoint endpoint)\n\t\t{\n\t\t\tEndpoint newEndpoint = addNewEndpoint(endpoint.getEntity());\n\t\t\tnewEndpoint.setStatus(endpoint.getStatus());\n\t\t\tnewEndpoint.setState(endpoint.getState());\n\t\t\tfor (Media media : endpoint.getMedias())\n\t\t\t\tnewEndpoint.addMedia(media);\n\t\t}",
"public Endpoint addNewEndpoint(String entity)\n\t\t{\n\t\t\tElement endpointElement = document.createElement(ENDPOINT_ELEMENT_NAME);\n\t\t\tEndpoint endpoint = new Endpoint(endpointElement);\n\t\t\tendpoint.setEntity(entity);\n\n\t\t\tuserElement.appendChild(endpointElement);\n\t\t\tendpointsList.add(endpoint);\n\n\t\t\treturn endpoint;\n\t\t}",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection addNewEndpoints()\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().add_element_user(ENDPOINTS$0);\r\n return target;\r\n }\r\n }",
"public boolean addEndpoint(String endpointData) throws AxisFault {\n EndpointAdminServiceClient endpointAdminServiceClient = getEndpointAdminServiceClient();\n return endpointAdminServiceClient.addEndpoint(endpointData);\n }",
"public boolean hasEndpoint() { return true; }",
"void setEndpoint(String endpoint);",
"@java.lang.Override\n public boolean hasEndpoint() {\n return endpoint_ != null;\n }",
"EndPoint createEndPoint();",
"@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }",
"@Override\n public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeUpdateEndpoint(request);\n }",
"public boolean hasEndpoint2() { return true; }",
"boolean hasEndpoint();",
"void configureEndpoint(Endpoint endpoint);",
"public abstract Endpoint createEndpoint(String bindingId, Object implementor);",
"void setDefaultEndpoint(Endpoint defaultEndpoint);",
"public boolean hasEndpoint() {\n return endpointBuilder_ != null || endpoint_ != null;\n }",
"protected void onEndpointConnected(Endpoint endpoint) {}",
"void addHost(Service newHost);",
"public abstract Endpoint createAndPublishEndpoint(String address, Object implementor);",
"@Override\n\tpublic void addchild(EndpointEntity entity) {\n\t\t\n\t}",
"void addEndpointReport(@NotNull EndpointReport endpointReport){\n endpointReports.add(endpointReport);\n }",
"public boolean addEndpointForTenant(String endpointData, String tenantDomain) throws AxisFault {\n EndpointAdminServiceClient endpointAdminServiceClient = getEndpointAdminServiceClient();\n return endpointAdminServiceClient.addEndpoint(endpointData, tenantDomain);\n }",
"public static EndpointMBean getAddEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"Endpoint<R> borrowEndpoint() throws EndpointBalancerException;",
"public boolean addEdge(T begin, T end, int weight);",
"public boolean addEdge(T beg, T end);",
"public void setEndpoint(com.quikj.server.app.EndPointInterface endpoint) {\n\t\tthis.endpoint = endpoint;\n\t}",
"default void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateEndpointMethod(), responseObserver);\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 setEndpointId(String endpointId);",
"void updateEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n boolean isMergeUpdate,\n EndpointProperties endpointProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"synchronized MutableSpan setEndpoint(Endpoint endpoint) {\n for (int i = 0; i < annotations.size(); i++) {\n V1Annotation a = annotations.get(i);\n if (a.endpoint().equals(Endpoints.UNKNOWN)) {\n annotations.set(i, V1Annotation.create(a.timestamp(), a.value(), endpoint));\n }\n }\n this.endpoint = endpoint;\n return this;\n }",
"public void addEndpointSession(String endpoint, Session session) throws SessionManagerException {\n\t\tif (sessionMap.get(endpoint) == null) {\n\t\t\tthis.addEndpoint(endpoint);\n\t\t}\n\n\t\tif (!sessionMap.get(endpoint).contains(session)) {\n\t\t\tsessionMap.get(endpoint).add(session);\n\t\t\tLOG.info(\"Added Session {} to endpoint {}\", session.getId(), endpoint);\n\t\t} else {\n\t\t\tthrow new SessionManagerException(\"Session \" + session.getId() + \" already exists in endpoint \" + endpoint);\n\t\t}\n\t}",
"public void addEdge(int start, int end);",
"public void setEndPoint(EndPoint endPoint) {\r\n\t\tthis.endPoint = endPoint;\r\n\t}",
"boolean addEdge(E edge);",
"public abstract void addEdge(Point p, Direction dir);",
"static public void register (EndPoint endPoint) {\n\t\tKryo kryo = endPoint.getKryo();\n kryo.register(CommandMessage.class);\n\t}",
"public BackendAddress add(int serverId, String ip, int port) {\n \tif (configMap.containsKey(serverId)) {\n\t\t\treturn null;\n\t\t}\n return configMap.put(serverId, new BackendAddress(serverId, ip, port));\n }",
"public void activate() throws JBIException {\n count++;\n if(count != 1)\n return;\n if (_serviceref == null) {\n ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName);\n if (candidates.length != 0) {\n _external = candidates[0];\n }\n }\n _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName);\n if (__log.isDebugEnabled()) {\n __log.debug(\"Activated endpoint \" + _endpoint);\n }\n // TODO: Is there a race situation here?\n }",
"public final EObject entryRuleEndpoint() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEndpoint = null;\n\n\n try {\n // InternalMappingDsl.g:3450:49: (iv_ruleEndpoint= ruleEndpoint EOF )\n // InternalMappingDsl.g:3451:2: iv_ruleEndpoint= ruleEndpoint EOF\n {\n newCompositeNode(grammarAccess.getEndpointRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEndpoint=ruleEndpoint();\n\n state._fsp--;\n\n current =iv_ruleEndpoint; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }",
"@Override\n public boolean addConnection(String firstNodeName, String secondNodeName) throws NodeException {\n\n try {\n if (containsNode(getSingleNode(firstNodeName)) && containsNode(getSingleNode(secondNodeName))) {\n getSingleNode(firstNodeName).newNeighbour(getSingleNode(secondNodeName));\n getSingleNode(secondNodeName).newNeighbour(getSingleNode(firstNodeName));\n return true;\n }\n } catch (NodeException e) {\n throw new NodeException(\"Jeden z Vámi zadaných prvků neexistuje!\");\n }\n\n return false;\n }",
"@java.lang.Override\n public boolean hasEndpoint() {\n return stepInfoCase_ == 8;\n }",
"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 }",
"@java.lang.Override\n public boolean hasEndpoint() {\n return stepInfoCase_ == 8;\n }",
"public void removeEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().remove(endpoint);\r\n }",
"@java.lang.Override\n public boolean hasAddressList() {\n return endpointConfigCase_ == 1;\n }",
"public boolean add(Node peer) {\n\t\t\tboolean res = super.add(peer);\n\t\t\taddNotifier.notifyObservers(peer);\n\t\t\treturn res;\n\t\t}",
"public boolean addEdge(Edge e) {\n return g.addNode(e.getSrc())&&g.addNode(e.getDst())&&g.addEdge(e.getSrc(),e.getDst());\n }",
"public void saveEndpointElement(String servicePath) throws RegistryException {\n\t\tString endpointPath;\n\t\tif (StringUtils.isNotBlank(endpointUrl)) {\n\t\t\tEndpointUtils.addEndpointToService(requestContext.getRegistry(), servicePath, endpointUrl, \"\");\n\t\t\tendpointPath = RESTServiceUtils.addEndpointToRegistry(requestContext, endpointElement, endpointLocation);\n\t\t\tCommonUtil.addDependency(registry, servicePath, endpointPath);\n\t\t}\n\t}",
"public void addEdgeType(EdgeType et)\r\n {\r\n\tfinal String edgeTypeName = et.getName();\r\n\tif (ethMap.containsKey(edgeTypeName))\r\n\t throw new RuntimeException(\"Duplicate EdgeType <\" + edgeTypeName + \"> added!\");\r\n\tif (!ntMap.containsKey(et.getSourceType()))\r\n\t throw new RuntimeException(\"Invalid EdgeType source <\" +et.getSourceType());\r\n\tif (!ntMap.containsKey(et.getDestType()))\r\n\t throw new RuntimeException(\"Invalid EdgeType destination <\" +et.getDestType());\r\n\tethMap.put(edgeTypeName, new EdgeTypeHolder(et));\r\n }",
"public abstract void addEPN();",
"void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}",
"@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}",
"public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);",
"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 }",
"@java.lang.Override\n public boolean hasAddressList() {\n return endpointConfigCase_ == 1;\n }",
"public void addEdge(int start, int end, double weight);",
"public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }",
"public void increaseEndpointHitFrequency(String endpoint) {\n if (!endpointVisitFrequency.containsKey(endpoint)) {\n throw new IllegalArgumentException(\"Frequency increasing method: Endpoint does not exist\");\n }\n endpointVisitFrequency.put(endpoint, endpointVisitFrequency.get(endpoint) + 1);\n }",
"void add(Edge edge);",
"void addHasAddress(String newHasAddress);",
"void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}",
"public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}",
"public void discovered(Endpoint endpoint, long packetId) {\n Entry entry = entries.get(endpoint);\n if (entry != null && packetId < entry.getLastSeenPacketId()) {\n log.debug(\"Ignore staled round trip discovery on {} (packet_id: {})\", endpoint, packetId);\n return;\n }\n\n Instant expireAt = clock.instant().plus(expireDelay);\n entries.put(endpoint, new Entry(packetId, expireAt));\n timeouts.computeIfAbsent(expireAt, key -> new HashSet<>()).add(endpoint);\n\n if (entry == null) {\n log.info(\"Register round trip status entry for {}\", endpoint);\n }\n\n // Emits each registered round trip event. Some ISLs monitor can ignore some round trip ACTIVATE events as part\n // of race conditions prevention fight.\n carrier.linkRoundTripActive(endpoint);\n }",
"public Endpoint createEndpoint(String bindingId, Object implementor, WebServiceFeature... features) {\n throw new UnsupportedOperationException(\n \"JAX-WS 2.2 implementation must override this default behaviour.\");\n }",
"void setupEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String endpointGUID,\n Date effectiveFrom,\n Date effectiveTo,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"public boolean addEdge(String id1, String id2)\n\t{\n\t\treturn addEdge(id1, id2, null);\n\t}",
"public void addEdge(Edge e){\n edgeList.add(e);\n }",
"@Override\n public void onEndpointFound(@NonNull String endpointId, @NonNull DiscoveredEndpointInfo discoveredEndpointInfo) {\n connectedUsers.put(endpointId, discoveredEndpointInfo.getEndpointName());\n MainActivity.makeLog(\"Network endpoint discovered, connecting to \"+endpointId+\"/\"+discoveredEndpointInfo.getEndpointName());\n //connectionHandler.receiveMessage(null, \"Network endpoint discovered, connecting to \"+discoveredEndpointInfo.getEndpointName());\n connectionHandler.getClient().requestConnection(connectionHandler.getDeviceName(), endpointId, connectionLifecycleCallback);\n System.out.println(\"Found device!\");\n Log.e(TAG, SUB_TAG + \"Found the device: \" + connectionHandler.getDeviceName() + \"\\n\\t\" + endpointId);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testAddAlreadyRegisteredPeer() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(PEER_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"public static synchronized Boolean addKnownPeers(udpSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to udppeerlist\");\n return true;\n }\n log.info(\"Did not add peer to udppeerlist\");\n return false;\n }",
"public boolean addEdge(String id1, String id2, Integer weight)\n\t{\n\t\t// if its a new edge, or a new edge weight\n\t\tif (!hasEdge(id1, id2) || (weight != null && edgeWeight(id1, id2) == null))\n\t\t{\n\t\t\tNode n1 = getNode(id1);\n\t\t\tNode n2 = getNode(id2);\n\t\t\tn1.addEdge(n2, weight);\n\t\t\tn2.addEdge(n1, weight);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"void addPeer(Uuid peer) throws RemoteException;",
"public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}",
"@Override\n\tpublic void addEdge(Location src, Location dest, Path edge) {\n\t\tint i = locations.indexOf(src);\n\t\tpaths.get(locations.indexOf(src)).add(edge);\n\t}",
"public boolean add(E elem) {\r\n\t\tNode<E> newHead = new Node<E>(elem, null, head);\r\n\t\tif (size == 0) {\r\n\t\t\thead = newHead;\r\n\t\t\ttail = head;\r\n\t\t} else if (size == 1) {\r\n\t\t\thead = newHead;\r\n\t\t\ttail.prev = head;\r\n\t\t} else {\r\n\t\t\thead.next.prev = newHead;\r\n\t\t\thead = newHead;\r\n\t\t}\r\n\t\tindices.add(0, head);\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}",
"public Edge addEdge(EdgeType et, Node source, Node dest, double weight)\r\n {\r\n\tfinal String edgeTypeName = et.getName();\r\n Edge existingEdge = getEdge(edgeTypeName, source, dest);\r\n if (existingEdge == null)\r\n {\r\n existingEdge = ethMap.get(edgeTypeName).addEdge(source, dest, weight);\r\n edges = null;\r\n }\r\n else\r\n existingEdge.addWeight(weight);\n return existingEdge;\r\n }",
"public RgwAdminBuilder endpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }",
"public void addHop(TCSObjectReference<Point> newHop) {\n requireNonNull(newHop, \"newHop\");\n hops.add(newHop);\n }",
"void addEdge(int source, int destination, int weight);",
"public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge1 = new Edge(v1, v2, edgeInfo);\n Edge edge2 = new Edge(v2, v1, edgeInfo);\n if(!adjLists[v1].contains(edge1)){\n adjLists[v1].addLast(edge1);\n }\n if(!adjLists[v2].contains(edge2)){\n adjLists[v2].addLast(edge2);\n }\n }",
"@Override\n public boolean add(ListNode e) {\n if (this.size() != 0){\n ListNode last = this.getLast();\n last.setNext(e);\n }\n return super.add(e);\n }",
"public static <T extends NetworkEntity> void testAddDelete(\n EndpointService service, T entity, TestDataFactory testDataFactory) {\n List<Endpoint> endpoints = service.listEndpoints(entity.getKey());\n assertNotNull(endpoints, \"Endpoint list should be empty, not null when no endpoints exist\");\n assertTrue(endpoints.isEmpty(), \"Endpoint should be empty when none added\");\n\n // test additions\n service.addEndpoint(entity.getKey(), testDataFactory.newEndpoint());\n service.addEndpoint(entity.getKey(), testDataFactory.newEndpoint());\n endpoints = service.listEndpoints(entity.getKey());\n assertNotNull(endpoints);\n assertEquals(2, endpoints.size(), \"2 endpoints have been added\");\n assertEquals(\n 1, endpoints.get(0).getMachineTags().size(), \"The endpoint should have 1 machine tag\");\n\n // test deletion, ensuring correct one is deleted\n service.deleteEndpoint(entity.getKey(), endpoints.get(0).getKey());\n endpoints = service.listEndpoints(entity.getKey());\n assertNotNull(endpoints);\n assertEquals(1, endpoints.size(), \"1 endpoint should remain after the deletion\");\n Endpoint expected = testDataFactory.newEndpoint();\n Endpoint created = endpoints.get(0);\n assertLenientEquals(\"Created entity does not read as expected\", expected, created);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testAddPeerWithNameInUse() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(PEER1_NAME,\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }",
"public void addEdge(E e){\n\t\tedges.add(e);\n\t}",
"public boolean addEdge(String label1, String label2)\n\t{\n\t\tif(!isAdjacent(label1, label2)) //if edge does not already exist add it\n\t\t{\n\t\t\tDSAGraphVertex vx1 = getVertex(label1), vx2 = getVertex(label2);\n\t\t\tvx1.addEdge(vx2);\n\t\t\tvx2.addEdge(vx1);\n\t\t\tedgeCount++;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"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 NcrackClient withNetworkEndpoint(NetworkEndpoint networkEndpoint) {\n this.networkEndpoints.add(networkEndpoint);\n return this;\n }",
"public void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateEndpointMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}",
"boolean addPortMapping(PortMappingInfo portMappingInfo) throws NotDiscoverUpnpGatewayException, UpnpException;",
"public void updateEndpoint(boolean isMergeUpdate,\n String endpointGUID,\n EndpointProperties endpointProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n connectionManagerClient.updateEndpoint(userId, apiManagerGUID, apiManagerName, isMergeUpdate, endpointGUID, endpointProperties);\n }",
"@WebMethod\n URI exposeEndpoint(Endpoint endpoint);"
] | [
"0.77045107",
"0.723312",
"0.7222055",
"0.6982897",
"0.68280566",
"0.6623319",
"0.6548999",
"0.640628",
"0.6263595",
"0.6201629",
"0.614872",
"0.61321586",
"0.61088496",
"0.6098942",
"0.608791",
"0.60792565",
"0.60312426",
"0.59280765",
"0.58457875",
"0.5795251",
"0.5745181",
"0.571325",
"0.571082",
"0.5688523",
"0.56680596",
"0.5655416",
"0.5581659",
"0.55758315",
"0.5574349",
"0.5571703",
"0.55222064",
"0.5476034",
"0.5455229",
"0.5445294",
"0.54374987",
"0.54268116",
"0.54264045",
"0.54256827",
"0.5417817",
"0.5411476",
"0.53964686",
"0.53875875",
"0.53815806",
"0.53765875",
"0.5376289",
"0.5356065",
"0.53521353",
"0.53455585",
"0.5339294",
"0.5326888",
"0.532671",
"0.53258115",
"0.5317281",
"0.53151745",
"0.53101915",
"0.5308275",
"0.530483",
"0.5303125",
"0.53009814",
"0.5284477",
"0.5283904",
"0.528146",
"0.52762854",
"0.5267321",
"0.5260306",
"0.52599937",
"0.5255769",
"0.52531147",
"0.52497387",
"0.52447915",
"0.5238912",
"0.52369493",
"0.5225538",
"0.52245325",
"0.5223723",
"0.5221293",
"0.5219117",
"0.5210383",
"0.5209335",
"0.520357",
"0.51965487",
"0.519326",
"0.5184176",
"0.5181671",
"0.517305",
"0.5162596",
"0.5159998",
"0.5153773",
"0.5151039",
"0.51491296",
"0.5148255",
"0.51423997",
"0.5140295",
"0.51398426",
"0.513964",
"0.51380235",
"0.5132639",
"0.5126299",
"0.5112609",
"0.5106599",
"0.5100063"
] | 0.0 | -1 |
Load network from data file. | public void loadNetwork(File data)
throws FileNotFoundException {
int numRoads = 0;
// Read in from file fileName
Scanner input = new Scanner(new FileInputStream(data));
while (input.hasNext()) {
// Parse the line in to <end1> <end2> <road-distance> <road-name>
String[] tokens = input.nextLine().split(" ");
String fromName = tokens[0];
String toName = tokens[1];
double roadDistance = Double.parseDouble(tokens[2]);
String roadName = tokens[3];
boolean roadAdded = addRoad(fromName, toName, roadDistance, roadName);
if (roadAdded) {
numRoads += 2;
}
}
System.out.println("Network Loaded!");
System.out.println("Loaded " + numRoads + " roads");
System.out.println("Loaded " + vertices.size() + " endpoints");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean loadNetwork(){\n\t\tFile networkFile=new File(Properties.BUB_HOME, Properties.NETWORK_FILE);\n\t\ttry{\n\t\t\tif(!networkFile.exists())\n\t\t\t\treturn false;\n\t\t\tObjectInputStream stream=new ObjectInputStream(new FileInputStream(networkFile));\n\t\t\tnetwork=(Network) stream.readObject();\n\t\t\tif(network != null)\n\t\t\t\tnetwork.init();\n\t\t\tstream.close();\n\t\t\treturn network != null;\n\t\t}catch(InvalidClassException e){\n\t\t\tSystem.out.println(\"Save format changed!\");\n\t\t\tnetworkFile.delete();\n\t\t} catch (IOException e) {\n\t\t\t//e.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public static Network loadNetwork(String filename)\n throws IOException,\n InvalidNetworkException {\n Network network = new Network();\n BufferedReader bufferedReader = new BufferedReader(\n new FileReader(filename)\n );\n String currentLine = bufferedReader.readLine();\n List<String> intersectionsWithTrafficLights = new ArrayList<>();\n int currentLineNumber = 1;\n int numIntersections = 0;\n int numRoutes = 0;\n\n while (currentLine != null) {\n if (currentLine.startsWith(\";\")) {\n currentLine = bufferedReader.readLine();\n continue;\n }\n\n switch(currentLineNumber) {\n case 1:\n numIntersections = Integer.parseInt(currentLine);\n break;\n case 2:\n numRoutes = Integer.parseInt(currentLine);\n break;\n case 3:\n network.setYellowTime(Integer.parseInt(currentLine));\n break;\n case 4:\n parseIntersections(\n numIntersections,\n intersectionsWithTrafficLights,\n currentLine,\n network,\n bufferedReader\n );\n break;\n case 5:\n parseRoutesAndSensors(\n numRoutes,\n currentLine,\n network,\n bufferedReader\n );\n\n // Create traffic lights\n for (int i = 0; i < intersectionsWithTrafficLights.size(); i++) {\n String[] intersectionValues =\n intersectionsWithTrafficLights\n .get(i)\n .split(\":\");\n List<String> intersectionOrder = new ArrayList<>();\n for (String originIntersection: intersectionValues[2]\n .split(\",\")) {\n intersectionOrder.add(originIntersection);\n }\n try {\n network.addLights(intersectionValues[0],\n Integer.parseInt(intersectionValues[1]),\n intersectionOrder);\n } catch (IntersectionNotFoundException\n | InvalidOrderException e) {\n e.printStackTrace();\n }\n }\n\n break;\n }\n\n currentLineNumber++;\n currentLine = bufferedReader.readLine();\n }\n\n bufferedReader.close();\n return network;\n }",
"public void readNetworkFromFile() {\r\n\t\tFileReader fr = null;\r\n\t\t// open file with name given by filename\r\n\t\ttry {\r\n\t\t\ttry {\r\n\t\t\t\tfr = new FileReader (filename);\r\n\t\t\t\tScanner in = new Scanner (fr);\r\n\r\n\t\t\t\t// get number of vertices\r\n\t\t\t\tString line = in.nextLine();\r\n\t\t\t\tint numVertices = Integer.parseInt(line);\r\n\r\n\t\t\t\t// create new network with desired number of vertices\r\n\t\t\t\tnet = new Network (numVertices);\r\n\r\n\t\t\t\t// now add the edges\r\n\t\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\t\tline = in.nextLine();\r\n\t\t\t\t\tString [] tokens = line.split(\"[( )]+\");\r\n\t\t\t\t\t// this line corresponds to add vertices adjacent to vertex u\r\n\t\t\t\t\tint u = Integer.parseInt(tokens[0]);\r\n\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\tVertex uu = net.getVertexByIndex(u);\r\n\t\t\t\t\tint i=1;\r\n\t\t\t\t\twhile (i<tokens.length) {\r\n\t\t\t\t\t\t// get label of vertex v adjacent to u\r\n\t\t\t\t\t\tint v = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\t\tVertex vv = net.getVertexByIndex(v);\r\n\t\t\t\t\t\t// get capacity c of (uu,vv)\r\n\t\t\t\t\t\tint c = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// add edge (uu,vv) with capacity c to network \r\n\t\t\t\t\t\tnet.addEdge(uu, vv, c);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally { \r\n\t\t\t\tif (fr!=null) fr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error:\");\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"public NetworkLoader(GraphDatabaseService neo, String filename) {\r\n initialize(\"Network\", neo, filename, null);\r\n initializeKnownHeaders();\r\n luceneInd = NeoServiceProviderUi.getProvider().getIndexService();\r\n addNetworkIndexes();\r\n }",
"@Override\n\tpublic boolean load(String file) {\n\t\ttry {\n GsonBuilder builder=new GsonBuilder();\n builder.registerTypeAdapter(DWGraph_DS.class,new DWG_JsonDeserializer());\n Gson gson=builder.create();\n\n FileReader reader=new FileReader(file);\n directed_weighted_graph dwg=gson.fromJson(reader,DWGraph_DS.class);\n this.init(dwg);\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"protected NeuralNetwork loadNeuralNetwork(String filename) throws NeuralNetworkException {\n\t\tObjectInputStream ois = null;\n\t\t\n\t\t// open neural net save file for reading\n\t\ttry {\n\t\t\tois = new ObjectInputStream(new FileInputStream(new File(filename)));\n\t\t} catch (IOException e) {\n\t\t\tthrow new NeuralNetworkException(String.format(\"Error opening neural net save file: %s\", filename), e);\n\t\t}\n\t\t\n\t\t// read from neural net save file\n\t\tNeuralNetwork nnet = null;\n\t\ttry {\n\t\t\tnnet = (NeuralNetwork) ois.readObject();\n\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\tthrow new NeuralNetworkException(String.format(\"Error reading file: %s\", filename), e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tois.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new NeuralNetworkException(\"Error closing file input stream used to load neural network.\", e);\n\t\t\t}\n\t\t}\n\t\treturn nnet;\n\t}",
"int load() {\n File file = new File(\"network.dat\");\n try (BufferedReader in = file.exists() ? new BufferedReader(new InputStreamReader(new FileInputStream(file))) : Gdx.files.internal(\"network.dat\").reader(1024)) {\n int generation = Integer.parseInt(in.readLine());\n for (int i = 0; i < weightLayer1.length; i++)\n weightLayer1[i] = Float.valueOf(in.readLine().trim());\n for (int i = 0; i < weightLayer2.length; i++)\n weightLayer2[i] = Float.valueOf(in.readLine().trim());\n return generation;\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"The Neural Network could not be loaded:\\n\" + e.getLocalizedMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n return -1;\n }",
"@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"public Graph load(String filename) throws IOException\n {\n return load(filename, new SparseGraph(), null);\n }",
"public static void loadGraph_File(String filename) {\n // Graph aus Datei laden\n Application.graph = null;\n double time_graph = System.currentTimeMillis();\n filename = filename + \".DAT\";\n Application.println(\"============================================================\");\n Application.println(\"Fetching Data from \" + filename + \" and building graph\");\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream obj_in = new ObjectInputStream(fis);\n Object obj = obj_in.readObject();\n if (obj instanceof NavGraph) {\n Application.graph = (NavGraph) obj;\n } else {\n throw new Exception(\"Saved Data != NavGraph\");\n }\n obj_in.close();\n fis.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n Application.println(\"Error: \" + e.toString());\n }\n }",
"Graph<V,E> load(String filename);",
"public static List<Network> loadNetworks() throws Exception {\n final File dataFile = new File(kNetworkPath);\n final File[] networkFiles = dataFile.listFiles();\n List<Network> networks = new ArrayList<Network>();\n\n for (File file : networkFiles) {\n try {\n networks.add((Network)loadObject(file));\n } catch (Exception e) {\n System.err.println(\"Could not load \" + file.getName());\n }\n }\n return networks;\n }",
"private void readFile(File filename) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filename);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tSimpleFieldSet fs = new SimpleFieldSet(br, false, true);\n\t\tbr.close();\n\t\t// Read contents\n\t\tString[] udp = fs.getAll(\"physical.udp\");\n\t\tif((udp != null) && (udp.length > 0)) {\n\t\t\tfor(int i=0;i<udp.length;i++) {\n\t\t\t\t// Just keep the first one with the correct port number.\n\t\t\t\tPeer p;\n\t\t\t\ttry {\n\t\t\t\t\tp = new Peer(udp[i], false, true);\n\t\t\t\t} catch (HostnameSyntaxException e) {\n\t\t\t\t\tLogger.error(this, \"Invalid hostname or IP Address syntax error while loading opennet peer node reference: \"+udp[i]);\n\t\t\t\t\tSystem.err.println(\"Invalid hostname or IP Address syntax error while loading opennet peer node reference: \"+udp[i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t} catch (PeerParseException e) {\n\t\t\t\t\tthrow (IOException)new IOException().initCause(e);\n\t\t\t\t}\n\t\t\t\tif(p.getPort() == crypto.portNumber) {\n\t\t\t\t\t// DNSRequester doesn't deal with our own node\n\t\t\t\t\tnode.ipDetector.setOldIPAddress(p.getFreenetAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcrypto.readCrypto(fs);\n\t}",
"public Graph load(String filename, Graph g) throws IOException\n {\n return load(filename, g, null);\n }",
"public static void init(String filePath) {\n\t\t// Reading the created network for using its structure.\n\t\tnet = FileUtils.getNetwork(filePath);\n\t}",
"public void loadGraph() {\n System.out.println(\"The overlay graph will be loaded from an external file\");\n try(FileInputStream fis = new FileInputStream(graphPath + OVERLAY_GRAPH);\n ObjectInputStream ois = new ObjectInputStream(fis))\n {\n graph = (MatrixOverlayGraph) ois.readObject();\n System.out.println(\"Overlay graph loaded\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n loadSupporters();\n }",
"void loadNodeData(byte[] data) throws Exception;",
"@Override\n public boolean load(String file) {\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuilder jsonString = new StringBuilder();\n String line = null;\n line = br.readLine();\n while (line != null) {\n jsonString.append(line);\n line = br.readLine();\n }\n br.close();\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n JsonDeserializer<DWGraph_DS> deserializer = new JsonDeserializer<DWGraph_DS>() {\n @Override\n public DWGraph_DS deserialize(JsonElement json, Type type, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObject = json.getAsJsonObject();\n DWGraph_DS graph = new DWGraph_DS();\n JsonArray Nodes = jsonObject.getAsJsonArray(\"Nodes\");\n JsonArray Edges = jsonObject.getAsJsonArray(\"Edges\");\n Iterator<JsonElement> iterNodes = Nodes.iterator();\n while (iterNodes.hasNext()) {\n JsonElement node = iterNodes.next();\n\n graph.addNode(new DWGraph_DS.Node(node.getAsJsonObject().get(\"id\").getAsInt()));\n\n String coordinates[] = node.getAsJsonObject().get(\"pos\").getAsString().split(\",\");\n double coordinatesAsDouble[] = {0, 0, 0};\n for (int i = 0; i < 3; i++) {\n coordinatesAsDouble[i] = Double.parseDouble(coordinates[i]);\n }\n DWGraph_DS.Position pos = new DWGraph_DS.Position(coordinatesAsDouble[0], coordinatesAsDouble[1], coordinatesAsDouble[2]);\n graph.getNode(node.getAsJsonObject().get(\"id\").getAsInt()).setLocation(pos);\n }\n Iterator<JsonElement> iterEdges = Edges.iterator();\n int src, dest;\n double w;\n while (iterEdges.hasNext()) {\n JsonElement edge = iterEdges.next();\n src = edge.getAsJsonObject().get(\"src\").getAsInt();\n dest = edge.getAsJsonObject().get(\"dest\").getAsInt();\n w = edge.getAsJsonObject().get(\"w\").getAsDouble();\n graph.connect(src, dest, w);\n }\n return graph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, deserializer);\n Gson graphGson = gsonBuilder.create();\n G = graphGson.fromJson(jsonString.toString(), DWGraph_DS.class);\n return true;\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n return false;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }",
"public NetworkLoader(GraphDatabaseService neo, String filename, LuceneIndexService indexService) {\r\n initialize(\"Network\", neo, filename, null);\r\n initializeKnownHeaders();\r\n addNetworkIndexes();\r\n if (indexService == null) {\r\n luceneInd = NeoServiceProviderUi.getProvider().getIndexService();\r\n } else {\r\n luceneInd = indexService;\r\n }\r\n }",
"public Graph load(String filename, NumberEdgeValue nev) throws IOException\n {\n return load(filename, new SparseGraph(), nev);\n }",
"public NetworkLoader(String gisName, String filename, Display display) {\r\n initialize(\"Network\", null, filename, display);\r\n basename = gisName;\r\n initializeKnownHeaders();\r\n luceneInd = NeoServiceProviderUi.getProvider().getIndexService();\r\n addNetworkIndexes();\r\n }",
"public Graph load(String filename, Graph g, NumberEdgeValue nev) throws IOException\n {\n Reader reader = new FileReader(filename);\n Graph graph = load(reader, g, nev);\n reader.close();\n return graph;\n }",
"public void loadNodes(String nodeFile) throws Exception {\r\n \tBufferedReader br = new BufferedReader( new FileReader(nodeFile) );\r\n while(true) {\r\n String line = br.readLine();\r\n if(line == null)\r\n \tbreak;\r\n Scanner sr = new Scanner(line);\r\n if(!sr.hasNextLine())\r\n \tbreak;\r\n sr.useDelimiter(\"\\\\t\");\r\n int id = sr.nextInt(); // node id\r\n double weight = 1.0;\r\n String description = sr.next(); // description\r\n mNodes.add( new Node(id, weight, description) );\r\n }\r\n br.close();\r\n System.out.println(\"Loading graph nodes completed. Number of nodes:\" + getNodeCnt() );\r\n // initialize empty neighbor sets for each node\r\n for (int i = 0; i < getNodeCnt(); i++) {\r\n \tSet<Integer> outEdges = new HashSet<Integer> ();\r\n\t\t\tSet<Integer> inEdges = new HashSet<Integer> ();\r\n\t\t\tmOutEdges.add( outEdges );\r\n\t\t\tmInEdges.add( inEdges );\r\n\t\t}\r\n \r\n }",
"public void load(String filename) {\n\t\tsetup();\n\t\tparseOBJ(getBufferedReader(filename));\n\t}",
"public void loadState() throws IOException, ClassNotFoundException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// load client state from file\n\t\tObjectInputStream is = new ObjectInputStream(new FileInputStream(f));\n\t\tTrackerDaemon client = (TrackerDaemon) is.readObject();\n\t\tis.close();\n\t\t\n\t\t// copy attributes\n\t\tthis.peerRecord = client.peerRecord();\n\t\t\n\t}",
"public void readNetworkFile(String networkFilename)\n\t\tthrows IOException, NumberFormatException {\n\t\tif(DEBUG) System.out.println(\"reading network file from:\"+networkFilename);\n\t\tBufferedReader br = new BufferedReader(new FileReader(networkFilename));\n\t\tString line;\n\t\t// on the first line is the number of following lines that describe vertices\n\t\tint numVariables = -1;\n\t\tif((line = br.readLine()) != null){\n\t\t\tnumVariables = Integer.valueOf(line);\n\t\t}else{\n\t\t\tbr.close();\n\t\t\tthrow new IOException();\n\t\t}\n\t\tif(numVariables<0) {\n\t\t\tbr.close();\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\tfor(int i = 0;i<numVariables;i++){\n\t\t\tif((line = br.readLine()) != null){\n\t\t\t\tString[] tokenized = line.split(\" \");\n\t\t\t\tString variableName = tokenized[0];\n\t\t\t\ttokenized = tokenized[1].split(\",\");//values\n//\t\t\t\tSystem.out.printf(\"var:%s values:\",variableName);\n//\t\t\t\tfor(int q = 0; q < tokenized.length; q++) {\n//\t\t\t\t\tSystem.out.printf(\"%s \", tokenized[q]);\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n\t\t\t\tFactor.addVariable(variableName, new ArrayList<String>(Arrays.asList(tokenized)));\n\t\t\t}else{\n\t\t\t\tbr.close();\n\t\t\t\tthrow new IOException(\"inconsistent network file.\");\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t}",
"private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}",
"public static TravelData fromByte(Network network, VirtualNetwork virtualNetwork, File file) throws ClassNotFoundException, DataFormatException, IOException {\n TravelData travelData = ObjectFormat.parse(Files.readAllBytes(file.toPath()));\n travelData.fillSerializationInfo(virtualNetwork);\n travelData.checkConsistency();\n return travelData;\n }",
"public static Model loadGraph(String filename) throws FileNotFoundException, IOException {\r\n\t\tFileInputStream stream;\t\t\t//A stream from the file\r\n\t\tModel returnValue;\r\n\t\t\r\n\t\tSystem.out.print(\"Loading \\\"\" + filename + \"\\\"...\");\r\n\t\tstream = new FileInputStream(filename);\r\n\t\treturnValue = ModelFactory.createDefaultModel();\r\n\t\treturnValue.read(stream,null);\r\n\t\tstream.close();\r\n\t\tSystem.out.println(\" Done.\");\r\n\t\r\n\t\treturn returnValue;\r\n\t}",
"public void load() throws ClassNotFoundException, IOException;",
"private void loadNeighbours(String file){\n\t\tString neighbour = null;\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tString planetName = sc.nextLine();\n\t\t\t\tneighbour = sc.nextLine();\n\t\n\t\t\t\twhile(!(neighbour.equals(\"#\"))){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString split [] = neighbour.split(\",\");\n\t\t\t\t\t\tasignNeighbours(split, planetName);\n\t\t\t\t\t\t\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Data can't be loaded\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\tneighbour = sc.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramNeghbours.txt\");\n\t\t}\n\t}",
"private void loadFromDisk(String filename) throws IOException {\n Reader r = new FileReader(filename);\r\n load(r);\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"void readGraphFromFile();",
"public void loadEdge()\r\n {\r\n town.createConnection();\r\n }",
"public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}",
"abstract public Node load();",
"public void load(String filename) throws IOException\n {\n DataInputStream input;\n\n try\n {\n input = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open input file \" + filename + \":\" + e.getMessage());\n }\n load(input);\n input.close();\n }",
"void loadData();",
"void loadData();",
"public void load() ;",
"private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void loadOrCreateGraph() {\n if(new File(graphPath + OVERLAY_GRAPH).exists())\n loadGraph();\n else {\n System.out.println(\"No file with the graph exists\");\n createGraph();\n }\n //graph.print();\n }",
"protected abstract void loadData();",
"public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public static void load() {\n\n System.out.print(\"Loading team data from file...\");\n\n try {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n\n FileInputStream fil = new FileInputStream(team_fil);\n ObjectInputStream in = new ObjectInputStream(fil);\n\n team_list = (ConcurrentHashMap<Integer, Team>) in.readObject();\n cleanTeams();\n\n fil.close();\n in.close();\n\n //Gå gjennom alle lagene og registrer medlemmene i team_members.\n Iterator<Team> lag = team_list.values().iterator();\n\n while (lag.hasNext()) {\n\n Team laget = lag.next();\n\n Iterator<TeamMember> medlemmer = laget.getTeamMembers();\n while (medlemmer.hasNext()) {\n registerMember(medlemmer.next().getCharacterID(), laget.getTeamID());\n }\n\n }\n\n System.out.println(\"OK! \" + team_list.size() + \" teams loaded.\");\n\n } catch (Exception e) {\n System.out.println(\"Error loading team data from file.\");\n }\n\n }",
"private void load(Simulation simulation) throws RiotNotFoundException {\n String name = simulation.getName();\n provOutputFileURI = simulation.getProvLocation().resolve(name + \".ttl\").toString();\n model = RDFDataMgr.loadModel(provOutputFileURI);\n localNameSpaceURI = getLocalNameSpaceURI();\n model.setNsPrefix(LOCAL_NS_PREFIX, localNameSpaceURI);\n trimRemoteNS();\n }",
"@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}",
"public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }",
"public abstract void load() throws IOException;",
"public void load() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tFile gamesInFile = new File(\"games.txt\");\n\t\t\tif (!gamesInFile.exists())\n\t\t\t\tSystem.out.println(\"First run\");\n\t\t\telse {\n\t\t\t\tInputStream file = new FileInputStream(gamesInFile);\n\t\t\t\tInputStream buffered = new BufferedInputStream(file);\n\t\t\t\tObjectInput input = new ObjectInputStream(buffered);\n\t\t\t\ttry {\n\t\t\t\t\t// deserialize the List\n\t\t\t\t\tArrayList<MancalaGame> gamesFromFile = (ArrayList<MancalaGame>) input.readObject();\n\t\t\t\t\tgames = gamesFromFile;\n\t\t\t\t} finally {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tSystem.out.println(\"Load successful\");\n\t\t}\n\t}",
"@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}",
"void load(File file);",
"@Override\n void load(String data) {\n }",
"void load(final File file) {\n this.file = Preconditions.checkNotNull(file);\n this.gameModelPo = gameModelPoDao.loadFromFile(file);\n visibleAreaService.setMapSize(getMapSize());\n initCache();\n }",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void loadData() throws SerializerException;",
"@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}",
"private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }",
"public void load();",
"public void load();",
"public void load() throws CityException{\r\n \r\n allRanks = new ArrayList<Rank>();\r\n File file = new File(RANK_DATA_DIRECTORY);\r\n Scanner rankDataReader = null;\r\n Scanner lineReader = null;\r\n\r\n try {\r\n\r\n rankDataReader = new Scanner(file);\r\n\r\n ArrayList<String> rankDataArray = new ArrayList<String>();\r\n int count = 0;\r\n\r\n while (rankDataReader.hasNext()) {\r\n\r\n String rankDataLine = rankDataReader.nextLine();\r\n\r\n if (count > 0) {\r\n\r\n String[] rankData = rankDataLine.split(\",\");\r\n\r\n String rankName = rankData[0];\r\n int xp = Integer.parseInt(rankData[1]);\r\n int plotAvailable = Integer.parseInt(rankData[2]);\r\n\r\n allRanks.add(new Rank(rankName, xp, plotAvailable));\r\n }\r\n\r\n count++;\r\n }\r\n\r\n } catch (FileNotFoundException e) {\r\n throw new CityException(\"InvalidFile\");\r\n } finally {\r\n rankDataReader.close();\r\n }\r\n }",
"public void loadGraph2(String path) throws FileNotFoundException, IOException {\n\n\t\ttry (BufferedReader br = new BufferedReader(\n\n\t\t\t\tnew InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8), 1024 * 1024)) {\n\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line == null) // end of file\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tint a = 0;\n\t\t\t\tint left = -1;\n\t\t\t\tint right = -1;\n\n\t\t\t\tfor (int pos = 0; pos < line.length(); pos++) {\n\t\t\t\t\tchar c = line.charAt(pos);\n\t\t\t\t\tif (c == ' ' || c == '\\t') {\n\t\t\t\t\t\tif (left == -1)\n\t\t\t\t\t\t\tleft = a;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tright = a;\n\n\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tSystem.out.println(\"Erreur format ligne \");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\ta = 10 * a + c - '0';\n\t\t\t\t}\n\t\t\t\tright = a;\n\t\t\n\t\t\t\t// s'assurer qu'on a toujours de la place dans le tableau\n\t\t\t\tif (adjVertices.length <= left || adjVertices.length <= right) {\n\t\t\t\t\tensureCapacity(Math.max(left, right) + 1);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left] == null) {\n\t\t\t\t\tadjVertices[left] = new Sommet(left);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[right] == null) {\n\t\t\t\t\tadjVertices[right] = new Sommet(right);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left].listeAdjacence.contains(adjVertices[right])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjVertices[left].listeAdjacence.add(adjVertices[right]);\n\t\t\t\t\tadjVertices[right].listeAdjacence.add(adjVertices[left]);\n\t\t\t\t\tnombreArrete++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < adjVertices.length; i++) {\n\t\t\tif (adjVertices[i] == null)\n\t\t\t\tnombreTrous++;\n\t\t}\n\t\tnumberOfNode = adjVertices.length - nombreTrous;\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Loading graph done !\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\n\t\tSystem.out.println(\"nombreTrous \" + nombreTrous);\n\t\tSystem.out.println(\"numberOfNode \" + numberOfNode);\n\t\t\n\t}",
"void load();",
"void load();",
"public void load() throws SparqlException {\n \tload(getLoadFilePath());\n }",
"private void loadFromFile(String fileName) {\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }",
"public void\tload(String fileName) throws IOException;",
"private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}",
"public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void load (File file) throws Exception;",
"public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}",
"public abstract void loadData();",
"public abstract void loadData();",
"public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }",
"public void load() {\n }",
"public IGraph<String,Double> read(String filename) throws FileNotFoundException, IOException {\n // Open the file\n Graph r = new Graph;\n INode n = r.nodeMaker(value);\n INode s = new Node;\n INode d = new Node;\n double w;\n\n\n\n BufferedReader br = new BufferedReader(new FileReader(filename));\n String st;\n char col;\n while ((st = br.readLine()) != null) {\n String[] var = s.split(\":\");\n s = (V) var[0];\n d = (V) var[1];\n w = (double) var[2];\n r.addNode(s);\n r.addNode(d);\n r.addEdge(s, d, w);\n\n }\n\n // Parse the lines. If a line does not have exactly 3 fields, ignore the line\n // For each line, add the nodes and edge\n //How many feilds and what is in each fields\n //After i have the right fields, need make nodes, weights, and add to graphs\n //...making nodes could be tricky... Could get multiple nodes with the same value\n\n // Return the graph instance\n return r;\n }",
"public void load() {\n\t}",
"public static void load(File file) throws IOException {\n while (LogicManager.isUpdating()) {} // wait until current update has finished\n\n LogicManager.setPaused(true);\n\n // clear current scene\n GridManager.clearScene();\n\n // open input stream\n ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\n try {\n // load viewport data\n Point viewport = (Point) in.readObject();\n int scaling = (Integer) in.readObject();\n Window.getCurrentInstance()\n .getGameDisplay()\n .setViewport(viewport);\n Window.getCurrentInstance()\n .getGameDisplay()\n .setScaling(scaling);\n SwingUtilities.invokeLater(() -> {\n Window.getCurrentInstance()\n .getGameDisplay()\n .revalidate();\n Window.getCurrentInstance()\n .getGameDisplay()\n .repaint();\n });\n\n // load point data\n Point[] data;\n data = (Point[]) in.readObject();\n GridManager.loadScene(data);\n } catch (ClassNotFoundException e) {\n in.close();\n throw new IOException(\"File contains illegal data\");\n }\n in.close();\n }",
"public static DSAGraph load(String filename) throws IllegalArgumentException\n {\n FileInputStream fileStrm;\n ObjectInputStream objStrm;\n DSAGraph inObj = null;\n try\n {\n fileStrm = new FileInputStream(filename);//Underlying stream\n objStrm = new ObjectInputStream(fileStrm);//Object serialization stream\n inObj = (DSAGraph)objStrm.readObject();//Deserialize.\n objStrm.close();//Clean up\n }\n catch (ClassNotFoundException e)\n {\n System.out.println(\"Class not found: \" + e);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"Unable to load object from file: \" + e.getMessage());\n }\n return inObj;\n\n }",
"public final void load( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).loadFromServer( this, this.getHref( ) );\n\t}",
"public JenaDataSource(String filePath)\n\t{\n\t\tOntModel model = null;\n\t\t\n\t\tInputStream is = getClass().getResourceAsStream(filePath);\n\t\tmodel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);\n\t\tmodel.read(is, null, \"TTL\");\n\t\tthis.populatePrefixMappings(model);\n\t\t\n\t\tsetModel(model);\n\t}",
"public XGMMLReader(String fileName) {\n \t\ttry {\n \t\t\tnetworkStream = new FileInputStream(fileName);\n \t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tinitialize();\n \t}",
"public Graph load(Reader reader, Graph g) throws IOException\n {\n return load(reader, g, null);\n }",
"@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }",
"void massiveModeLoading( File dataPath );",
"public Graph load(Reader reader, Graph g, NumberEdgeValue nev) throws IOException\n {\n return load(reader, g, nev, new TypedVertexGenerator(g));\n }",
"public void loadNodes() {\n\t\tif (taxonomyMap.size() == 0) this.loadNames();\n\n\t\tBufferedReader nodesRdr = null;\n\t\ttry {\n\t\t\tnodesRdr = new BufferedReader(new InputStreamReader(nodesUrl.openStream()));\n\n\t\t\tString line;\n\t\t\twhile ((line = nodesRdr.readLine()) != null) {\n\t\t\t\tString[] parts = line.split(\"\\\\|\");\n\t\t\t\tInteger taxonId = Integer.valueOf(parts[0].trim());\n\t\t\t\tString pti = parts[1].trim();\n\t\t\t\tInteger parentTaxonId = (pti.length() > 0 && !(pti.equals(\"all\"))) ? new Integer(pti) : null;\n\n\t\t\t\t// Get our Taxon object\n\t\t\t\tTaxon t = taxonomyMap.get(taxonId);\n\n\t\t\t\t// Get our parent Taxon\n\t\t\t\tTaxon p = taxonomyMap.get(parentTaxonId);\n\n\t\t\t\t// Set the parent\n\t\t\t\tt.setParent(p);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t} finally {\n\t\t\tthis.close(nodesRdr);\n\t\t}\n\t}",
"public void loadIntoNW() throws LoadException {\n\t\tloadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), null);\n\t\trun();\n\t\tif (getException() != null) {\n\t\t\tthrow getException();\n\t\t}\n\t}",
"static public InputLayer readFromFile(NetworkFileReader nfr) throws IOException {\n\t\t// read in the size and make a new InputLayer of that size\n\t\tint size = nfr.readInt();\n\t\treturn new InputLayer(size);\n\t}",
"public BrickStructure loadStructureFromBinaryFile(File file) {\n\t\tthrow new NullPointerException();\n\t}",
"private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public void load(String inFN) throws FileNotFoundException\n {\n String check = \" \";\n \tfile = new Scanner(new FileReader(inFN));\n \n \t// Rip apart the string and find the number of cities\n \t// Save it to a misc string named fileInfo\n \twhile (!check.equals(\"NODE_COORD_SECTION\"))\n {\n \tcheck = file.next();\n \t// Get the number of cities from the file\n \tif (check.equals(\"DIMENSION\"))\n \t{\n \t\t// Removes the character ':'\n \t\tcheck = file.next();\n \t\tfileInfo = fileInfo + check + \" \";\n \t\t\n \t\t// Extracts the number of cities\n \t\tcityNumber = file.nextInt();\n \t\tfileInfo = fileInfo + cityNumber + \" \";\n \t}\n \t\n \t// Dumps the fileinfo into one string\n \tfileInfo = fileInfo + check + \" \";\n }\n\n \t// Now that we have the number of cities, use it to\n \t// initialize an array\n \tcity = new City[cityNumber];\n \t\n \t// Loads the city data from the file into the city array\n \tfor (int i = 0; i < cityNumber; i++)\n {\n \t\tfile.nextInt();\n \tcity[i] = new City(i, file.nextDouble(), file.nextDouble());\n \t}\n }",
"public void load() throws CouldntLoadDataException {\n if (isLoaded()) {\n return;\n }\n\n try {\n m_module.load();\n } catch (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException | LoadCancelledException e) {\n throw new CouldntLoadDataException(e);\n } \n }",
"private void loadnetwork() {\n try {\n java.sql.Statement s = db.Database.Database();\n java.sql.ResultSet rs = s.executeQuery(\"SELECT name FROM network\");\n Vector v = new Vector();\n while (rs.next()) {\n v.add(rs.getString(1));\n}\n networkCombo.setModel(new DefaultComboBoxModel(v));\n } catch (Exception ex) {\n Logger.getLogger(ScratchCard_New.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public SocialNetworkTest() {\n\n sn10 = FileManager.loadSocialNetwork(\n FileManager.defaultCitiesFile(FileManager.DEFAULT_TEN),\n FileManager.defaultUsersFile(FileManager.DEFAULT_TEN));\n\n FileManager.loadCitiesGraph(sn10, FileManager.defaultCityConnectionsFile(FileManager.DEFAULT_TEN));\n FileManager.loadFriendshipGraph(sn10);\n\n // Commented so testes of 3rd part can performe faster\n//\n// sn100 = FileManager.loadSocialNetwork(\n// FileManager.defaultCitiesFile(FileManager.DEFAULT_ONE_HUNDRED),\n// FileManager.defaultUsersFile(FileManager.DEFAULT_ONE_HUNDRED));\n//\n// FileManager.loadCitiesGraph(sn100, FileManager.defaultCityConnectionsFile(FileManager.DEFAULT_ONE_HUNDRED));\n// FileManager.loadFriendshipGraph(sn100);\n//\n// sn300 = FileManager.loadSocialNetwork(\n// FileManager.defaultCitiesFile(FileManager.DEFAULT_THREE_HUNDRED),\n// FileManager.defaultUsersFile(FileManager.DEFAULT_THREE_HUNDRED));\n//\n// FileManager.loadCitiesGraph(sn300, FileManager.defaultCityConnectionsFile(FileManager.DEFAULT_THREE_HUNDRED));\n// FileManager.loadFriendshipGraph(sn300);\n }",
"public DigitGuessNeuralNetwork(){\r\n neuralNetwork=NeuralNetwork.load(MainActivity.neuralNetInputStream);\r\n }",
"public Dijkstra() {\n\n // Construct the viewer\n netViewer = new DjNetViewer(this);\n\n // Load the network file\n try {\n netViewer.loadFile(\"dijkstra.net\");\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(this, \"Cannot load dijkstra.net\\n\" + ex.getMessage() , \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n setTitle(\"Dijkstra\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setContentPane(netViewer);\n pack();\n\n }",
"private void readNodes() throws FileNotFoundException{\n\t\tScanner sc = new Scanner(new File(\"Resources\\\\ListOfNodes.csv\"));\n\t\tsc.nextLine(); //Skip first line of headers\n\t\twhile(sc.hasNext()) { \n\t\t\tCSVdata = sc.nextLine().split(\",\"); // Add contents of each row to String[]\n\t\t\tnodes.add(new GraphNode<String>(CSVdata[0], CSVdata[1])); // Add new node to object list\n\t\t}\n\t\tsc.close();\n\t}"
] | [
"0.7047525",
"0.70343024",
"0.701206",
"0.666795",
"0.6649772",
"0.6453687",
"0.6448195",
"0.6353653",
"0.63215476",
"0.63040066",
"0.62611985",
"0.62139887",
"0.6207478",
"0.617168",
"0.60848314",
"0.6083532",
"0.6070019",
"0.60486114",
"0.6036795",
"0.6031775",
"0.5964504",
"0.59320104",
"0.59121233",
"0.58516675",
"0.5824771",
"0.58069533",
"0.58028436",
"0.5796783",
"0.57769346",
"0.57617706",
"0.5717238",
"0.5708168",
"0.5697732",
"0.56531036",
"0.5647541",
"0.56190735",
"0.56168824",
"0.56045866",
"0.55854744",
"0.5562183",
"0.5562183",
"0.555536",
"0.5546278",
"0.5537272",
"0.5533576",
"0.5533221",
"0.55187744",
"0.54960275",
"0.5486475",
"0.5485949",
"0.5474939",
"0.54660475",
"0.54592526",
"0.5459014",
"0.54548126",
"0.5454292",
"0.54418075",
"0.5436801",
"0.5431504",
"0.5430393",
"0.5422455",
"0.5422455",
"0.5392866",
"0.53898585",
"0.5388153",
"0.5388153",
"0.53755856",
"0.53695875",
"0.53562397",
"0.53544617",
"0.53496474",
"0.5348528",
"0.53380924",
"0.5329572",
"0.5329572",
"0.5328819",
"0.53172445",
"0.53144425",
"0.5313388",
"0.53029805",
"0.5286814",
"0.5284809",
"0.52842915",
"0.52805066",
"0.52768105",
"0.5271639",
"0.52681094",
"0.5259042",
"0.5258977",
"0.5257754",
"0.52493924",
"0.5229697",
"0.5224604",
"0.52223223",
"0.5213718",
"0.5210248",
"0.5210155",
"0.520975",
"0.5206237",
"0.52049726"
] | 0.7477671 | 0 |
Get the from and to endpoints, adding if necessary | private boolean addRoad(
String fromName, String toName, double roadDistance, String roadName
) {
Vertex<String> from = addLocation(fromName);
Vertex<String> to = addLocation(toName);
// Add the road to the network - We assume all roads are two-way and
// ignore if we've already added the road as a reverse of another
try {
Edge<String> road = graph.insert(from, to, roadName);
Edge<String> backwardsRoad = graph.insert(to, from, roadName);
// Label each road with it's weight
graph.label(road, roadDistance);
graph.label(backwardsRoad, roadDistance);
} catch (InsertionException ignored) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadEndpoints(){\n\t\tStart.loadEndpoints();\n\t\t//add\t\t\n\t\t//e.g.: get(\"/my-endpoint\", (request, response) ->\t\tmyEndpointGet(request, response));\n\t\t//e.g.: post(\"/my-endpoint\", (request, response) ->\t\tmyEndpointPost(request, response));\n\t}",
"Map<String, String> getEndpointMap();",
"@Override\n\tpublic Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {\n\t\tSet<ServerEndpointConfig> result = new HashSet<>();\n//\t\tif (arg0.contains(EchoEndpoint.class)) {\n//\t\t\tresult.add(ServerEndpointConfig.Builder.create(\n//\t\t\t\t\tEchoEndpoint.class,\n//\t\t\t\t\t\"/websocket/echoProgrammatic\").build());\n//\t\t}\n\n\t\treturn result;\t\n\t}",
"private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }",
"public Map<Range, List<EndPoint>> getRangeToEndpointMap()\n {\n return ssProxy.getRangeToEndPointMap();\n }",
"private static List<MonitoredEndpoint> initMonitoredEndpoints(final Properties props, final Logger logger) throws Exception {\n\n File sampledEndpointDir = getSystemFile(\"sampledEndpointDir\", props, false);\n\n List<MonitoredEndpoint> monitoredEndpoints = Lists.newArrayListWithExpectedSize(16);\n\n if(sampledEndpointDir != null) {\n File[] propFiles = sampledEndpointDir.listFiles();\n if(propFiles != null) {\n for(File propFile : propFiles) {\n if(propFile.isDirectory()) continue;\n Properties endpointProps = new Properties();\n try {\n byte[] propBytes = Files.toByteArray(propFile);\n endpointProps.load(new ByteArrayInputStream(propBytes));\n if(endpointProps.getProperty(\"url\") != null) {\n monitoredEndpoints.add(new MonitoredEndpoint(endpointProps));\n }\n } catch(IOException ioe) {\n logger.warn(\"Problem loading sampled endpoint '\" + propFile.getAbsolutePath() + \"'\", ioe);\n }\n }\n }\n }\n\n return monitoredEndpoints;\n }",
"public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }",
"@Override\n\tpublic List<CallDetail> loadEndpointRelation(long startTB, long endTB, String destEndpointId) throws IOException {\n\t\treturn null;\n\t}",
"@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }",
"public boolean hasEndpoint2() { return true; }",
"public Object getTarget() {\n return this.endpoints;\n }",
"private List<String> getApiEndpointUrls(final OperationHolder operationHolder, final List<Server> servers) {\r\n\t\tList<String> endpointUrls = null;\r\n\t\tif(!CollectionUtils.isEmpty(servers)) {\r\n\t\t\tendpointUrls = servers.stream().map(s -> s.getUrl() + operationHolder.getUrlPath()).collect(Collectors.toList());\r\n\t\t}\r\n\t\treturn endpointUrls;\r\n\t}",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"public void configure() {\n from(INBOUND_URI + \"?serviceClass=\" + WsTwitterService.class.getName())\n .marshal().xmljson() // convert xml to json\n .transform().jsonpath(\"$.query\") // extract arg0 contents\n .removeHeaders(\"*\")\n .setHeader(Exchange.HTTP_METHOD, new SimpleExpression(\"GET\"))\n // Note, prefer HTTP_PATH + to(<uri>) instead of toD(<uri with path>) for easier unit testing\n .setHeader(Exchange.HTTP_PATH, new SimpleExpression(\"/twitter/${body}\"))\n .to(TWITTER_URI)\n .removeHeader(Exchange.HTTP_PATH)\n .convertBodyTo(byte[].class) // load input stream to memory\n .setHeader(Exchange.HTTP_METHOD, new SimpleExpression(\"POST\"))\n .setHeader(\"recipientList\", new SimpleExpression(\"{{env:WS_RECIPIENT_LIST:http4://localhost:8882/filesystem/}}\"))\n .recipientList().header(\"recipientList\")\n .transform().constant(null);\n }",
"EndPoint createEndPoint();",
"public List<EndpointElement> getEndpointsByName(String name,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n return connectionManagerClient.getEndpointsByName(userId, name, startFrom, pageSize);\n }",
"protected abstract String getBaseEndpoint();",
"public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}",
"List<ManagedEndpoint> all();",
"List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);",
"public List<EndpointElement> findEndpoints(String searchString,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n return connectionManagerClient.findEndpoints(userId, searchString, startFrom, pageSize);\n }",
"public IEndPointData getLocalEndPoint();",
"String endpoint();",
"void addPathFromStart() {\n for (String aPathFromStart : pathFromStart) {\n newFutureTargets.push(aPathFromStart);\n }\n }",
"@Override\n default ManagerPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (ManagerPrx)_ice_endpoints(newEndpoints);\n }",
"public abstract EndpointReference readEndpointReference(javax.xml.transform.Source eprInfoset);",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection addNewEndpoints()\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().add_element_user(ENDPOINTS$0);\r\n return target;\r\n }\r\n }",
"public URL getEndPoint();",
"protected abstract String getBaseEndpointPath();",
"private void setupEndpoints() {\n\t\tpost(API_CONTEXT + \"/users\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.createNewUser(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tpost(API_CONTEXT + \"/login\", \"application/json\", (request, response) -> {\n\t\t\t//response.status(201);\n\t\t\treturn userService.find(request.body());\n\t\t}, new JsonTransformer());\n\t\t\n\t\tput(API_CONTEXT + \"/users\", \"application/json\", (request, response)\n\t\t\t\t-> userService.update(request.body()), new JsonTransformer());\n\t\t\n\t\tdelete(API_CONTEXT + \"/users/:email\", \"application/json\", (request, response)\n\t\t\t\t-> userService.deleteUser(request.params(\":email\")), new JsonTransformer());\n\n\t}",
"public boolean hasEndpoint() { return true; }",
"public RangesByEndpoint getAddressReplicas(TokenMetadata metadata)\n {\n RangesByEndpoint.Builder map = new RangesByEndpoint.Builder();\n\n for (Token token : metadata.sortedTokens())\n {\n Range<Token> range = metadata.getPrimaryRangeFor(token);\n for (Replica replica : calculateNaturalReplicas(token, metadata))\n {\n // LocalStrategy always returns (min, min] ranges for it's replicas, so we skip the check here\n Preconditions.checkState(range.equals(replica.range()) || this instanceof LocalStrategy);\n map.put(replica.endpoint(), replica);\n }\n }\n\n return map.build();\n }",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"@GetMapping ( value = {\"/block/{from}/{to}\", \"/block/{from}\"} )\n\tpublic Set<String> getBlock ( @PathVariable ( name = \"from\", required = true) String from,\n\t\t\t@PathVariable ( name = \"to\", required = false) List<String> to ) {\n\t\tif ( to == null ) {\n\t\t\treturn blocksService.allBlocks(from);\n\t\t} else {\n\t\t\treturn blocksService.allBlocks(from, to);\n\t\t}\n\t\t\n\t}",
"public TaskList incoming(Date from, Date to) {\n ArrayTaskList incomingTasks = new ArrayTaskList();\n for (int i = 0; i < size(); i++) {\n if (getTask(i).nextTimeAfter(from) != null && getTask(i).nextTimeAfter(from).compareTo(to) <= 0) {\n incomingTasks.add(getTask(i));\n }\n }\n return incomingTasks;\n }",
"public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }",
"protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }",
"public List<RangerRequest> createSourceToDestinationRequests(URI source, URI destination) {\n List<RangerRequest> ret = new ArrayList<>();\n ret.add(new RangerRequest(user, userGroups, getObjectPath(source), READ));\n ret.add(new RangerRequest(user, userGroups, getObjectDirPath(destination), WRITE));\n return ret;\n }",
"@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);",
"@Override\n default UserpostPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (UserpostPrx)_ice_endpoints(newEndpoints);\n }",
"public static List<Object> getDirectionBetweenTwoLocation(final String sourceAddress, final String destinationAddress, final String API_KEY) {\n\n final List<String> list = new ArrayList<>();\n final List<Object> directionList = new ArrayList<>();\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?\" + \"origin=\" + sourceAddress + \"&destination=\" + destinationAddress + \"&key=\" + API_KEY);\n HttpHandler handler = new HttpHandler();\n String jsonStr = handler.makeServiceCall(String.valueOf(url));\n\n if (jsonStr != null) {\n\n JSONObject jsonObject = new JSONObject(jsonStr);\n JSONArray jsonArray = jsonObject.getJSONArray(\"routes\");\n\n if (jsonArray != null && jsonArray.length() > 0) {\n JSONArray legsObject = jsonArray.getJSONObject(2).getJSONArray(\"legs\");\n if (legsObject != null) {\n JSONArray stepsArray = legsObject.getJSONObject(6).getJSONArray(\"steps\");\n if (stepsArray != null && stepsArray.length() > 0) {\n for (int i = 1; i < stepsArray.length(); i++) {\n JSONObject object = stepsArray.getJSONObject(i);\n System.out.println(\"response1\" + object);\n\n String maneuver = object.getString(\"maneuver\");\n list.add(maneuver);\n }\n directionList.addAll(list);\n }\n }\n }\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return directionList;\n }",
"void configureEndpoint(Endpoint endpoint);",
"private void setupAmqpEndpoits() {\n\n // NOTE : Last Will and Testament Service endpoint is opened only if MQTT client provides will information\n // The receiver on the unique client publish address will be opened only after\n // connection is established (and CONNACK sent to the MQTT client)\n\n // setup and open AMQP endpoint for receiving on unique client control/publish addresses\n ProtonReceiver receiverControl = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_CONTROL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n ProtonReceiver receiverPublish = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_PUBLISH_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.rcvEndpoint = new AmqpReceiverEndpoint(new AmqpReceiver(receiverControl, receiverPublish));\n\n // setup and open AMQP endpoint to Subscription Service\n ProtonSender ssSender = this.connection.createSender(AmqpSubscriptionServiceEndpoint.SUBSCRIPTION_SERVICE_ENDPOINT);\n this.ssEndpoint = new AmqpSubscriptionServiceEndpoint(ssSender);\n\n // setup and open AMQP endpoint for publishing\n ProtonSender senderPubrel = this.connection.createSender(String.format(AmqpPublishEndpoint.AMQP_CLIENT_PUBREL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.pubEndpoint = new AmqpPublishEndpoint(senderPubrel);\n\n this.rcvEndpoint.openControl();\n this.ssEndpoint.open();\n this.pubEndpoint.open();\n }",
"protected void onEndpointConnected(Endpoint endpoint) {}",
"public void removeAllEndpoints() {\r\n for(int i = 0; i < getEndpoints().size(); i++)\r\n {\r\n removeEndpoint(getEndpoints().get(i));\r\n }\r\n }",
"@Override\n default IServerPrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)\n {\n return (IServerPrx)_ice_endpoints(newEndpoints);\n }",
"protected SnapToHelper[] getDelegates() {\n return delegates;\n }",
"public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}",
"List<EndpointElement> findEndpoints(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"HashMap getRequestingHosts()\n {\n return configfile.requesting_hosts;\n }",
"void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}",
"ManagedEndpoint next(EndpointCriteria criteria);",
"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}",
"@Override\n public void resolveUrls(KeycloakUriBuilder authUrlBuilder) {\n }",
"Set<ConnectPoint> sourcesFor(McastRoute route, HostId hostId);",
"@Override\n public void onEndpointConnected(String id, List<String> names) {\n Log.d(TAG, \"endpoint connected: \" + id + \" \" + names);\n }",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection getEndpoints()\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 return null;\r\n }\r\n return target;\r\n }\r\n }",
"public void addConnection(String userFrom, String userTo) throws Exception {\r\n try {\r\n User u1 = null;\r\n User u2 = null;\r\n\r\n for (int i = 0; i < users.size(); i++) {\r\n if (users.get(i).getUserName().equalsIgnoreCase(userFrom))\r\n u1 = users.get(i);\r\n if (users.get(i).getUserName().equalsIgnoreCase(userTo))\r\n u2 = users.get(i);\r\n }\r\n if (u1 != null && u2 != null)\r\n connections[u1.getIndexPos()][u2.getIndexPos()] = true;\r\n else {\r\n throw new Exception(\"Error: A connection doesn't exist\");\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }",
"List<Parameter> baseUriParameters();",
"boolean hasEndpoint();",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"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}",
"Collection<? extends Service> getHost();",
"private NodePath<T> collectPathNodes( WeightedGraph<T> graph, Object startNodeId, Object endNodeId ) {\n\t\tArrayDeque<Node<T>> deque = new ArrayDeque<>( searchNodes.size() );\n\t\tNode<T> startNode = graph.getNode( startNodeId );\n\t\tNode<T> endNode = graph.getNode( endNodeId );\n\t\tSearchNode<T> node = getSearchNode( endNode );\n\n\t\t//\tkeep this before we flush the maps\n\t\tfinal int finalDistance = node.getDistance();\n\n\t\t//\twalk backwards through the \"previous\" links\n\t\tdo {\n\t\t\tdeque.push( node.getNode() );\n\t\t}\n\t\twhile ( (node = getSearchNode( node.getPrevious() )) != null && ! node.equals( startNode ) );\n\t\tdeque.push( startNode );\n\n\t\tclearSearchNodes();\n\t\treturn new NodePath<>( new ArrayList<>( deque ), finalDistance );\n\t}",
"public static List<Object> getMidLocationBetweenTwoLocation(final String sourceAddress, final String destinationAddress, final String API_KEY) {\n\n\n final List<String> list = new ArrayList<>();\n final List<Object> midPointList = new ArrayList<>();\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?\" + \"origin=\" + sourceAddress + \"&destination=\" + destinationAddress + \"&key=\" + API_KEY);\n HttpHandler handler = new HttpHandler();\n String jsonStr = handler.makeServiceCall(String.valueOf(url));\n\n if (jsonStr != null) {\n\n JSONObject jsonObject = new JSONObject(jsonStr);\n JSONArray jsonArray = jsonObject.getJSONArray(\"routes\");\n\n System.out.println(\"response:\" + jsonArray);\n\n if (jsonArray != null && jsonArray.length() > 0) {\n JSONArray legsObject = jsonArray.getJSONObject(2).getJSONArray(\"legs\");\n if (legsObject != null) {\n JSONArray stepsArray = legsObject.getJSONObject(6).getJSONArray(\"steps\");\n if (stepsArray != null && stepsArray.length() > 0) {\n for (int i = 0; i < stepsArray.length(); i++) {\n JSONObject object = stepsArray.getJSONObject(i);\n\n if (object.has(\"end_location\")) {\n JSONObject end_locationObject = object.getJSONObject(\"end_location\");\n double lat = end_locationObject.getDouble(\"lat\");\n double lng = end_locationObject.getDouble(\"lng\");\n\n URL lat_lng_url = new URL(\"https://maps.googleapis.com/maps/api/geocode/json?\" + \"latlng=\" + lat + \",\" + lng + \"&key=\" + API_KEY);\n\n JSONObject latlngObject = new JSONObject(String.valueOf(lat_lng_url));\n\n JSONArray latlngArray = latlngObject.getJSONArray(\"results\");\n\n if (latlngArray != null && latlngArray.length() > 0) {\n JSONObject addressObj = latlngArray.getJSONObject(1);\n String formatted_address = addressObj.getString(\"formatted_address\");\n list.add(formatted_address);\n }\n }\n }\n midPointList.addAll(list);\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return midPointList;\n }",
"Set<ConnectPoint> sourcesFor(McastRoute route);",
"@Override\n public String toString() {\n return endpoint;\n }",
"EndpointDetails getEndpointDetails();",
"public ArrayList<Timestamp> getQueryParameters(Timestamp from, Timestamp to) {\n ArrayList<Timestamp> params = new ArrayList<Timestamp>();\n params.add(to);\n params.add(to);\n return params;\n }",
"void setEndpoint(String endpoint);",
"public Collection<RouteBean> findDestinations(String origin) {\n\t\tRouteBean rb = null;\n\t\tCollection<RouteBean> rbs = new ArrayList<RouteBean>();\n\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\trs = st.executeQuery(\"SELECT DISTINCT(destination) FROM route r,bus b where r.rid=b.rid AND origin='\"+origin+\"'\");\n\t\t\twhile (rs.next()) {\n\t\t\t\trb = new RouteBean();\n\t\t\t\trb.setDestination(rs.getString(\"destination\"));\n\t\t\t\trbs.add(rb);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rbs;\n\t}",
"ResponseItem getConnectTo();",
"private List<Edge<String>> getPath(Vertex<String> end,\n Vertex<String> start) {\n if (graph.label(end) != null) {\n List<Edge<String>> path = new ArrayList<>();\n\n Vertex<String> cur = end;\n Edge<String> road;\n while (cur != start) {\n road = (Edge<String>) graph.label(cur); // unchecked cast ok\n path.add(road);\n cur = graph.from(road);\n }\n return path;\n }\n return null;\n }",
"public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }",
"protected Set<Endpoint> getDiscoveredEndpoints() {\n return new HashSet<>(mDiscoveredEndpoints.values());\n }",
"public ArrayList<CalendarMeeting> getMeetings(Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getMeetings&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oMeetings;\r\n } else {\r\n return null;\r\n }\r\n }",
"public static Iterable<Task> incoming(Iterable<Task> tasks, Date from, Date to) throws Exception {\n ArrayTaskList incomingList = new ArrayTaskList();\n for (Task task : tasks)\n try {\n if (task.nextTimeAfter(from).before(to) || task.nextTimeAfter(from).equals(to))\n incomingList.add(task);\n } catch (NullPointerException e) {\n }\n return incomingList;\n }",
"private void populateServerUrls(Map<String, String> urls, OGCServerSource source)\n {\n if (StringUtils.isNotEmpty(source.getWMSServerURL()))\n {\n urls.put(OGCServerSource.WMS_SERVICE, source.getWMSServerURL());\n }\n\n if (StringUtils.isNotEmpty(source.getWMSGetMapServerUrlOverride()))\n {\n urls.put(OGCServerSource.WMS_GETMAP_SERVICE, source.getWMSGetMapServerUrlOverride());\n }\n\n if (StringUtils.isNotEmpty(source.getWFSServerURL()))\n {\n urls.put(OGCServerSource.WFS_SERVICE, source.getWFSServerURL());\n }\n\n if (StringUtils.isNotEmpty(source.getWPSServerURL()))\n {\n urls.put(OGCServerSource.WPS_SERVICE, source.getWPSServerURL());\n }\n }",
"public List<Connection> getConnections(int fromNode) {\r\n\t\tList<Connection> list = new ArrayList<Connection>();\r\n\t\tif (connectionLists.containsKey(fromNode))\r\n\t\t\tlist = connectionLists.get(fromNode);\r\n\t\treturn list;\r\n\t}",
"public void buildDestinationsFromIntent() {\n Intent intent = getIntent();\n ArrayList<String> listOfDestNames = intent.getStringArrayListExtra(\"dName\");\n double[] listOfDestLong = intent.getDoubleArrayExtra(\"dLong\");\n double[] listOfDestLat = intent.getDoubleArrayExtra(\"dLat\");\n ArrayList <String> listOfDestAddr = intent.getStringArrayListExtra(\"dAddr\");\n\n for(int i=0; i < listOfDestNames.size(); i++){\n Destination des = new Destination(listOfDestNames.get(i), listOfDestLong[i], listOfDestLat[i]);\n des.address = listOfDestAddr.get(i);\n destinations.add(i, des);\n }\n }",
"private void updateWsdlExtensors(String port1, String port2) {\n try {\n Definition def = bus.getExtension(WSDLManager.class)\n .getDefinition(wsdlLocation);\n Map<?, ?> map = def.getAllServices();\n for (Object o : map.values()) {\n Service service = (Service)o;\n Map<?, ?> ports = service.getPorts();\n for (Object p : ports.values()) {\n Port port = (Port)p;\n List<?> l = port.getExtensibilityElements();\n for (Object e : l) {\n if (e instanceof SOAPAddress) {\n String add = ((SOAPAddress)e).getLocationURI();\n int idx = add.indexOf(\":\" + port1);\n if (idx != -1) {\n add = add.substring(0, idx) + \":\" + port2\n + add.substring(idx + port1.length() + 1);\n ((SOAPAddress)e).setLocationURI(add);\n }\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static APIRequestTask requestDirections(String from, String to) {\n\t\tURLParameter _from = new URLParameter(\"origin\", from);\n\t\tURLParameter _to = new URLParameter(\"destination\", to);\n\t\tURLParameter _sensor = new URLParameter(\"sensor\", \"false\");\n\n\t\tAPIRequestTask task = new APIRequestTask(directions_url);\n\t\ttask.execute(_from, _to, _sensor);\n\t\treturn task;\n\t}",
"@GET(\"/routecollection/{startLocation}\")\n void getRoutes(@Path(\"startLocation\")String startLocation, Callback<Routes> routes);",
"EndpointAddress getDestinationAddress();",
"public ArrayList<Node> getBusNodes(ArrayList<Node> initialList, LatLng startLocation, LatLng EndLocation){\n ArrayList<String> matchingBusRoutes = nodeMinimisation.findMatchingBusRoutes(initialList);\n for(String route:matchingBusRoutes){\n System.out.println(\"Route is: \"+route);\n }\n // get further bus routes if needed\n //nodeMinimisation.furtherBusRouteMatches(initialList);\n // gets stop list from route\n ArrayList<Node> busStopList = nodeMinimisation.getStopList(initialList,startLocation,EndLocation);\n\n //ArrayList<Node> reducedStopList = nodeMinimisation.ReduceNodes(busStopList,startLocation, EndLocation);\n\n // returns the minimised list\n\n return busStopList;\n }",
"public void migrateToMultiTransport();",
"public Transports getTransports();",
"protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\r\n return new ArrayList<ELEMENT>();\r\n }",
"List<EndpointElement> getEndpointsForAssetManager(String userId,\n String assetManagerGUID,\n String assetManagerName,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"protected <ELEMENT> List<ELEMENT> newReferrerList() { // overriding to import\n return new ArrayList<ELEMENT>();\n }",
"@Override\n\tpublic List<Station> geStationByFrom(String fromStation) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tSystem.out.println(\"**********getRelevantStationList************\");\n\t\t// String url =new\n\t\t// String(environment.getProperty(Constant.TO_STATIONS))+fromStation;\n\t\tString url = \"http://localhost:8080/MTRWebWS/home/to/\" + fromStation;\n\n\t\tResponseEntity<Station[]> response = restTemplate.getForEntity(url, Station[].class);\n\n\t\tSystem.out.println(response.toString());\n\t\tSystem.out.println(response.getHeaders());\n\t\tSystem.out.println(response.getStatusCode());\n\n\t\t// if(response.getStatusCode()==200){\n\t\treturn Arrays.asList(response.getBody());\n\t\t// }else{\n\t\t// return null\n\t\t// }\n\n\t}",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"@java.lang.Override\n public boolean hasAddressList() {\n return endpointConfigCase_ == 1;\n }",
"List<Transport> getTransports();",
"private List<TOMMessage> getRequestsToRelay() {\n\n List<TOMMessage> messages = lcManager.getCurrentRequestTimedOut();\n\n if (messages == null) {\n\n messages = new LinkedList<>();\n }\n\n // Include requests from STOP messages in my own STOP message\n List<TOMMessage> messagesFromSTOP = lcManager.getRequestsFromSTOP();\n if (messagesFromSTOP != null) {\n\n for (TOMMessage m : messagesFromSTOP) {\n\n if (!messages.contains(m)) {\n\n messages.add(m);\n }\n }\n }\n\n logger.debug(\"I need to relay \" + messages.size() + \" requests\");\n\n return messages;\n }",
"List<FlightResponse> getConnectingFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate, List<Route> allRoutes) throws ValidationException, ServiceException {\n\n List<ConnectionRoute> connectionRoutes = routeService.getConnectionRoutes(departure, arrival, allRoutes);\n List<FlightResponse> responses = new ArrayList<>();\n\n for (ConnectionRoute cr : connectionRoutes) {\n String depFrom = cr.getDeparture().getAirportFrom();\n String depTo = cr.getDeparture().getAirportTo();\n List<Leg> departureLegs = getDirectFlights(depFrom, depTo, departureDate, arrivalDate).getLegs();\n\n String arrFrom = cr.getArrival().getAirportFrom();\n String arrTo = cr.getArrival().getAirportTo();\n List<Leg> arrivalLegs = getDirectFlights(arrFrom, arrTo, departureDate, arrivalDate).getLegs();\n\n for (Leg depLeg : departureLegs) {\n LocalDateTime depFromConnection = depLeg.getArrivalDateTime().plusHours(2);\n List<Leg> filteredArrivalLegs = arrivalLegs.stream()\n .filter(leg -> leg.getDepartureDateTime().isAfter(depFromConnection))\n .filter(leg -> leg.getDepartureAirport().equals(depLeg.getArrivalAirport()))\n .collect(Collectors.toList());\n\n for (Leg leg : filteredArrivalLegs) {\n responses.add(new FlightResponse(1, Stream.of(depLeg, leg).collect(Collectors.toList())));\n }\n }\n }\n\n return responses;\n }",
"ManagedEndpoint next();",
"private List<Vertex> generateTempRouteList(Vertex source, Vertex target) throws SQLException {\n\n\t\tList<Vertex> verts = bgCtr.getVertList();\n\t\tList<LinkedList<Edge>> adjas = bgCtr.getAdjaList();\n\t\tList<Vertex> routeList;\n\n\t\tDijkstra dijkstra = new Dijkstra(verts, adjas);\n\n\t\tdijkstra.setupRoutePlanning(source);\n\n\t\trouteList = dijkstra.getPath(target);\n\n\t\treturn routeList;\n\t}",
"@Override\n public EndPointResponseDTO getEndPointLog() {\n\n //getting all called apis\n List<Logger> loggers = loggerRepository.findAll();\n List<EndPointLoggerDTO> endPointLoggerDTOs;\n ModelMapper modelMapper = new ModelMapper();\n\n //decoding header and bodies, mapping o dto class\n endPointLoggerDTOs = loggers.stream().map(n -> {\n n.setHeader(getDecod(n.getHeader()));\n n.setBody(getDecod(n.getBody()));\n return modelMapper.map(n, EndPointLoggerDTO.class);\n }).collect(Collectors.toList());\n\n //wrapping dto to response object\n EndPointResponseDTO endPointResponseDTO = new EndPointResponseDTO();\n endPointResponseDTO.setCount(endPointLoggerDTOs.size()/2);\n endPointResponseDTO.setEndPointLoggerDTOList(endPointLoggerDTOs);\n\n return endPointResponseDTO;\n }",
"protected void onConnectionFailed(Endpoint endpoint) {}",
"@Override\n public List<SoapEvent> readAll() {\n final ReadAllSoapEventOutput output = serviceProcessor.process(ReadAllSoapEventInput.builder().build());\n\n for(SoapEvent soapEvent : output.getSoapEvents()){\n final String resourceLink = generateResourceLink(soapEvent);\n soapEvent.setResourceLink(resourceLink);\n }\n\n return output.getSoapEvents();\n }"
] | [
"0.5886724",
"0.5757998",
"0.57251954",
"0.5721986",
"0.5606578",
"0.55043966",
"0.54827636",
"0.54781723",
"0.54235375",
"0.5418624",
"0.53202945",
"0.53126323",
"0.52908176",
"0.52304876",
"0.51884115",
"0.5173557",
"0.51457316",
"0.51378185",
"0.5133539",
"0.5127776",
"0.51105815",
"0.5093505",
"0.5086297",
"0.5078692",
"0.50741863",
"0.506409",
"0.5060575",
"0.50566906",
"0.50325954",
"0.50309086",
"0.50306004",
"0.5023895",
"0.5017977",
"0.5008262",
"0.50064874",
"0.49927372",
"0.4986585",
"0.49751532",
"0.49721587",
"0.49505603",
"0.49483636",
"0.49368113",
"0.49065426",
"0.48903662",
"0.4877247",
"0.48550835",
"0.48509312",
"0.484586",
"0.48390672",
"0.4825402",
"0.48209122",
"0.48094323",
"0.47908583",
"0.47886655",
"0.47861338",
"0.477952",
"0.47782075",
"0.47750887",
"0.47701347",
"0.47687766",
"0.47560722",
"0.47556666",
"0.473411",
"0.47225076",
"0.4720831",
"0.4718808",
"0.4717723",
"0.47051957",
"0.470036",
"0.470023",
"0.46886626",
"0.46870062",
"0.46851715",
"0.4684843",
"0.4681249",
"0.46786925",
"0.46774286",
"0.46720794",
"0.46694532",
"0.46691072",
"0.46688953",
"0.46668562",
"0.46640015",
"0.4662009",
"0.46587577",
"0.46577388",
"0.46522447",
"0.4648964",
"0.4645961",
"0.46449548",
"0.46400198",
"0.46385655",
"0.46345413",
"0.46343496",
"0.46323252",
"0.4632289",
"0.46279952",
"0.46269733",
"0.46241978",
"0.46210608",
"0.461845"
] | 0.0 | -1 |
Fetches pages. Delivers greatly summarised impressions of those pages to the crawler. | public interface Fetcher {
FetchedPage fetch(URI pageUri) throws FetchingException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void incPagesCrawled() {\n pagesCrawled++;\n }",
"Collection<PageLink> crawl(CrawlerArgs args);",
"public void crawlPage() {\n\t\tlogger.info(\"Starting to crawl \" + page.getLink());\n\t\tconsoleLogger.info(\"Starting to crawl \" + page.getLink());\n\n\t\tDocument document = fetchContent(page);\n\t\tif (document == null)\n\t\t\treturn;\n\n\t\tif (shouldSavePage) {\n\t\t\tsavePage(document, page.getLink());\n\t\t}\n\n\t\tlogger.info(\"Done crawling \" + page.getLink());\n\t}",
"public PageFetchResult fetchPage(WebURL webUrl)\n\t\t\tthrows InterruptedException, IOException, PageBiggerThanMaxSizeException {\n\t\t\n\t\tSystem.out.println(\"fetchPage: \" + webUrl.getURL());\n\n\t\tPageFetchResult fetchResult = new PageFetchResult();\n\t\tString toFetchURL = webUrl.getURL();\n\t\tHttpUriRequest request = null;\n\t\ttry {\n\t\t\trequest = newHttpUriRequest(toFetchURL);\n\t\t\t// Applying Politeness delay\n\t\t\tsynchronized (mutex) {\n\t\t\t\tlong now = (new Date()).getTime();\n\t\t\t\tif ((now - lastFetchTime) < config.getPolitenessDelay()) {\n\t\t\t\t\tThread.sleep(config.getPolitenessDelay() - (now - lastFetchTime));\n\t\t\t\t}\n\t\t\t\tlastFetchTime = (new Date()).getTime();\n\t\t\t}\n\n\t\t\tCloseableHttpResponse response = httpClient.execute(request);\n\n\t\t\tfetchResult.setEntity(response.getEntity());\n\t\t\tfetchResult.setResponseHeaders(response.getAllHeaders());\n\n\t\t\t// Setting HttpStatus\n\t\t\tint statusCode = response.getStatusLine().getStatusCode();\n\n\t\t\t// If Redirect ( 3xx )\n\t\t\tif (statusCode == HttpStatus.SC_MOVED_PERMANENTLY || statusCode == HttpStatus.SC_MOVED_TEMPORARILY\n\t\t\t\t\t|| statusCode == HttpStatus.SC_MULTIPLE_CHOICES || statusCode == HttpStatus.SC_SEE_OTHER\n\t\t\t\t\t|| statusCode == HttpStatus.SC_TEMPORARY_REDIRECT || statusCode == 308) { // todo\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// follow\n\t\t\t\t// https://issues.apache.org/jira/browse/HTTPCORE-389\n\n\t\t\t\tHeader header = response.getFirstHeader(\"Location\");\n\t\t\t\tif (header != null) {\n\t\t\t\t\tString movedToUrl = URLCanonicalizer.getCanonicalURL(header.getValue(), toFetchURL);\n\t\t\t\t\tfetchResult.setMovedToUrl(movedToUrl);\n\t\t\t\t}\n\t\t\t} else if (statusCode >= 200 && statusCode <= 299) { // is 2XX,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// everything\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// looks ok\n\t\t\t\tfetchResult.setFetchedUrl(toFetchURL);\n\t\t\t\tString uri = request.getURI().toString();\n\t\t\t\tif (!uri.equals(toFetchURL)) {\n\t\t\t\t\tif (!URLCanonicalizer.getCanonicalURL(uri).equals(toFetchURL)) {\n\t\t\t\t\t\tfetchResult.setFetchedUrl(uri);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Checking maximum size\n\t\t\t\tif (fetchResult.getEntity() != null) {\n\n\t\t\t\t\tlong size = fetchResult.getEntity().getContentLength();\n\t\t\t\t\tif (size == -1) {\n\t\t\t\t\t\tHeader length = response.getLastHeader(\"Content-Length\");\n\t\t\t\t\t\tif (length == null) {\n\t\t\t\t\t\t\tlength = response.getLastHeader(\"Content-length\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (length != null) {\n\t\t\t\t\t\t\tsize = Integer.parseInt(length.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (size > config.getMaxDownloadSize()) {\n\t\t\t\t\t\t// fix issue #52 - consume entity\n\t\t\t\t\t\tresponse.close();\n\t\t\t\t\t\tthrow new PageBiggerThanMaxSizeException(size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfetchResult.setStatusCode(statusCode);\n\t\t\treturn fetchResult;\n\n\t\t} finally { // occurs also with thrown exceptions\n\t\t\tif ((fetchResult.getEntity() == null) && (request != null)) {\n\t\t\t\trequest.abort();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\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\tgetResultByKeyword(page);\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}\n\t\t\t}\n\t\t});\n\t}",
"public void search(String url) throws ParseException {\r\n\t\tSpiderLeg leg = new SpiderLeg();\r\n\t\tif (this.pagesToVisit.isEmpty()) {\r\n\t\t\tthis.pagesToVisit.add(url);\r\n\t\t}\r\n\r\n\t\tfor (Iterator iterator = pagesToVisit.iterator(); iterator.hasNext();) {\r\n\t\t\tString page = (String) iterator.next();\r\n\t\t\tleg.crawl(page);\r\n\t\t\tthis.pagesToVisit.addAll(leg.getPageLinks());\r\n\t\t\tthis.reviewPagesToVisit.addAll(leg.getReviewLinks());\r\n\t\t\tthis.pagesVisited.add(page);\r\n\t\t}\r\n\r\n\t\tleg.getReviewContent(this.reviewPagesToVisit);\r\n\t\tSystem.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size()\r\n\t\t\t\t+ \" web page(s)\");\r\n\t}",
"PageAgent getPage();",
"private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }",
"private void processAllPages(final HtmlPage page, final HashMap<String, Object> metaData) {\n int pageNumber = 1;\n\n HtmlPage actualPage = page;\n\n while (actualPage!= null && isPageValid(actualPage)) {\n if (actualPage.getWebResponse().getStatusCode() != HTTP_SUCCESS_CODE) {\n logger.error(\"Received non-200 status code while trying to read from {}.\", actualPage.getUrl());\n throw new UnrecoverableException(\"Crawling failed due to non-200 HTTP response.\");\n }\n\n logger.info(\"Processing page #{}\", pageNumber);\n publishTenders(actualPage, metaData);\n\n logger.debug(\"Data extracted, moving to next page.\");\n pageNumber++;\n\n actualPage = getNextPage(actualPage, pageNumber);\n }\n }",
"@Override\n\tpublic void process(Page page) {\n\t\tDocument doc = Jsoup.parse(page.getHtml().getFirstSourceText());\n\n\t\tif (isFirst) {\n\t\t\tSystem.out.println(\"添加所有列表链接\");\n\t\t\tArrayList<String> urls = new ArrayList<String>();\n\t\t\t// 33\n\t\t\tfor (int i = 2; i < 30; i++) {\n\t\t\t\turls.add(\"http://zyjy.jiangmen.gov.cn//szqjszbgg/index_\" + i + \".htm\");\n\t\t\t}\n\t\t\tpage.addTargetRequests(urls);\n\t\t\tSystem.out.println(\"这一页一共有 \" + urls.size() + \" 条数据\");\n\n\t\t\tisFirst = false;\n\t\t}\n\n\t\tif (page.getUrl().regex(URL_LIST).match() || page.getUrl().toString().trim().equals(url)) {\n\t\t\tSystem.out.println(\"获取列表数据\");\n\n\t\t\tElements uls = doc.getElementsByAttributeValue(\"class\", \"c1-bline\");\n\t\t\tfor (Element ul : uls) {\n\t\t\t\tString url = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).select(\"a\").attr(\"href\").trim();\n\t\t\t\tString title = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).text();\n\t\t\t\tString data = ul.getElementsByAttributeValue(\"class\", \"f-right\").get(0).text();\n\t\t\t\tCacheHashMap.cache.put(url, title + \"###\" + data);\n\t\t\t\tMyUtils.addRequestToPage(page, url);\n\t\t\t\tSystem.out.println(url + \" \" + CacheHashMap.cache.get(url));\n\t\t\t}\n\n\t\t}\n\t\tif (page.getUrl().regex(URL_DETAILS).match()) {\n\n\t\t\tProject project = new Project();\n\t\t\tStringBuffer project_article = new StringBuffer();\n\n\t\t\tString urldetails = CacheHashMap.cache.get(page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"url\" + page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"urldetails \" + urldetails);\n\n\t\t\tString[] value = urldetails.split(\"###\");\n\t\t\tif (value != null && value.length > 1) {\n\t\t\t\tproject.setProjectName(value[0]);\n\t\t\t\tproject.setPublicStart(value[1]);\n\t\t\t}\n\n\t\t\tElements divs = doc.getElementsByAttributeValue(\"class\", \"contlist minheight\");\n\t\t\tfor (Element div : divs.get(0).children()) {\n\t\t\t\tif (div.nodeName().equals(\"table\")) {\n\t\t\t\t\tElements trs = divs.select(\"tbody\").select(\"tr\");\n\t\t\t\t\tfor (Element tr : trs) {\n\t\t\t\t\t\tproject_article.append(tr.text()).append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tproject_article.append(div.text()).append(\"\\n\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tproject.setUrl(page.getUrl().toString().trim());\n\t\t\tproject.setState(0);\n\t\t\tproject.setWebsiteType(\"江门市\");\n\t\t\tproject.setTime(MyUtils.getcurentTime());\n\t\t\tproject.setRawHtml(divs.toString());\n\n\t\t\tproject.setArticle(project_article.toString());\n\t\t\tSystem.out.println(project);\n\n\t\t\tHibernateUtil.save2Hibernate(project);\n\n\t\t}\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Indexer crawl (int limit) \n\t{\n\t\n\t\t////////////////////////////////////////////////////////////////////\n\t // Write your Code here as part of Priority Based Spider assignment\n\t // \n\t ///////////////////////////////////////////////////////////////////\n\t\tPQueue q=new PQueue();\n \t\n\t\ttry\n \t{\n\t\t\t final String authUser = \"iiit-63\";\n\t\t\t\tfinal String authPassword = \"MSIT123\";\n\n\t\t\t\tSystem.setProperty(\"http.proxyHost\", \"proxy.iiit.ac.in\");\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", \"8080\");\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n\n\t\t\t\tAuthenticator.setDefault(\n\t\t\t\t new Authenticator() \n\t\t\t\t {\n\t\t\t\t public PasswordAuthentication getPasswordAuthentication()\n\t\t\t\t {\n\t\t\t\t return new PasswordAuthentication(authUser, authPassword.toCharArray());\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n \t\tURLTextReader in = new URLTextReader(u);\n \t\t// Parse the page into its elements\n \t\tPageLexer elts = new PageLexer(in, u);\t\t\n \t\tint count1=0;\n \t\t// Print out the tokens\n \t\tint count = 0;\n \t\t\n \t\twhile (elts.hasNext()) \n \t\t{\n \t\t\tcount++;\n \t\t\tPageElementInterface elt = (PageElementInterface)elts.next();\t\t\t \n \t\t\tif (elt instanceof PageHref)\n \t\t\tif(count1<limit)\n \t\t\t{\n \t\t\t\tif(q.isempty())\n \t\t\t\t{\n \t\t\t\t\tq.enqueue(elt.toString(),count);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif(q.search(elt.toString(),count))\n \t\t\t\t\t{\n \t\t\t\t\t\tq.enqueue(elt.toString(),count);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcount1++;\n \t\t\t\tSystem.out.println(\"link: \"+elt);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"links retrieved: \"+count1);\n \t\tq.display();\n \t\twhile(limit !=0)\n \t\t{\n \t\t\tObject elt=q.dequeue();\n \t\t\tURL u1=new URL(elt.toString());\n \t\t\tURLTextReader in1= new URLTextReader(u1);\n \t\t\t// Parse the page into its elements\n \t\t\tPageLexer elt1 = new PageLexer(in1, u1);\n \t\t\twhile (elt1.hasNext()) \n \t\t\t{\n \t\t\t\tPageElementInterface elts2= (PageElementInterface)elt1.next();\n \t\t\t\tif (elts2 instanceof PageWord)\n \t\t\t\t{\n \t\t\t\t\tv.add(elts2);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"words:\"+elts2);\n \t\t\t} \t\t\t\n\t\t\t\tObjectIterator OI=new ObjectIterator(v);\n\t\t\t\ti.addPage(u1,OI);\n\t\t\t\tfor(int j=0;j<v.size();j++);\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"hello\"+v.get(count));\n\t\t\t\t}\n\t\t\t\tlimit--;\n \t\t}\n \t\t\n \t}\n \tcatch (Exception e)\n \t{\n \t\tSystem.out.println(\"Bad file or URL specification\");\n \t}\n return i;\n\t}",
"public void startCrawl() throws IOException {\n\t\tElements paragraphs = wf.fetchWikipedia(source);\n\t\tqueueInternalLinks(paragraphs);\n\n\t\t// loop until we index a new page\n\t\tString res;\n\t\tdo {\n\t\t\tres = crawl();\n\n\t\t} while (res == null);\n\t}",
"private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}",
"public void crawl() {\n\t\tOOSpider.create(Site.me().setSleepTime(3000).setRetryTimes(3).setDomain(\"movie.douban.com\")//.setHttpProxy(httpProxy)\n .setUserAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36\"),\n filmInfoDaoPipeline, DoubanFilm.class)\n .addUrl(\"https://movie.douban.com/top250\")//entry url\n .thread(1)\n .run();\n }",
"public void crawl(String url);",
"public static void main(String[] args) throws IOException {\n\t\tCrawlMethods cm = new CrawlMethods();\n\t\tString url = cm.getURL();\n\t\tint pageNumber;\n\t\tint eachPageNumber = 2;\n\t\tBoolean isOver = false;\n\t\t\n\t\ttry {\n\t\t\tcm.loopPost(url);\n\t\t\twhile (true) {\n\t\t\t\tisOver = cm.enterPost();\n\t\t\t\tif (isOver) {\n\t\t\t\t\tSystem.out.println(\"끝\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tpageNumber = cm.getPageNumber();\n\t\t\t\tif (pageNumber % 10 == 0) {\n\t\t\t\t\tif (pageNumber == 10) {\n\t\t\t\t\t\tcm.TenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcm.afterTenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 만약 10페이지 미만이면\n\t\t\t\tif (pageNumber < 10) {\n\t\t\t\t\tcm.beforeTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t} else {\n\t\t\t\t\tcm.afterTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tparsePDF pp = new parsePDF();\n\t\t\tpp.parseData(pp.readFilesFromDirectory());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void getAllPages(IGCRestClient igcrest) {\n this.items = igcrest.getAllPages(this.items, this.paging);\n this.paging = new Paging(this.items.size());\n }",
"public int getPagesCrawled() {\n return pagesCrawled;\n }",
"@Test\n public void TestScrapeMgr() throws Exception {\n ExecutorService e = Executors.newFixedThreadPool(4);\n ScrapeManager sm = new ScrapeManager(e);\n\n DALManager dm = new DALManager();\n Account a = dm.AllAccounts().get(0);\n Campaign c = a.getSelectCampaign();\n for (AConfiguration cf : c.getConfigurations()) {\n if (cf.getQueries() == null) {\n cf.setQueries(new ArrayList<AQuery>());\n }\n AQuery nw = new AQuery(\"fashion\", null, PinterestObject.PinterestObjectResources.External);\n cf.getQueries().add(nw);\n\n System.err.println(\"\" + cf.getClass().getSimpleName() + \" \" + cf.toString());\n Map<PinterestObject, Board> lst = new HashMap<>();\n Map<PinterestObject, Board> scraped = sm.Scrape(cf, a, null); //page 1 ; may return null !!!\n if (scraped == null) {\n System.err.println(\"nothing to scrape***\");\n } else {\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n scraped = sm.Scrape(cf, a, null);//page 2\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n int i = 1;\n for (Map.Entry<PinterestObject, Board> kv : lst.entrySet()) {\n System.err.println(\n (i++) + \" \" + ((Pin) kv.getKey()).getHashUrl()\n );\n }\n }\n System.err.println(\"__\");\n System.err.println(\"__\");\n }\n\n }",
"@Async\n\tpublic void start() {\n\t\tUrl url = null;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\turl = urlRepository.findFirstByDateScannedOrderByIdAsc(null);\n\t\t\t\tif (url == null) {\n\t\t\t\t\twhile (url == null) {\n\t\t\t\t\t\turl = WebSiteLoader.getRandomUrl();\n\n\t\t\t\t\t\tif (urlExists(url)) {\n\t\t\t\t\t\t\turl = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\turl = urlRepository.saveAndFlush(url);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Crawling URL : \" + url);\n\n\t\t\t\tWebPage webPage = WebSiteLoader.readPage(url);\n\t\t\t\tif (webPage != null) {\n\t\t\t\t\tReport report = textAnalyzer.analyze(webPage.getText());\n\t\t\t\t\t\n\t\t\t\t\tfor(SentenceReport sentenceReport : report.getSentenceReports()){\n\t\t\t\t\t\tSentence sentence = sentenceReport.getSentence();\n\t\t\t\t\t\tsentence = sentenceRepository.saveAndFlush(sentence);\n\t\t\t\t\t\tsentenceReport.setSentence(sentence);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Occurrence occurrence : sentenceReport.getOccurences()){\n\t\t\t\t\t\t\toccurrence = occurrenceRepository.saveAndFlush(occurrence);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSentenceOccurrence so = new SentenceOccurrence();\n\t\t\t\t\t\t\tSentenceOccurrenceId soId = new SentenceOccurrenceId();\n\t\t\t\t\t\t\tso.setSentenceOccurrenceId(soId);\n\t\t\t\t\t\t\tsoId.setOccurenceId(occurrence.getId());\n\t\t\t\t\t\t\tsoId.setSentenceId(sentence.getId());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsentenceOccurrenceRepository.saveAndFlush(so);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taddUrls(webPage.getUrls());\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"Done crawling URL : \" + url);\n\t\t\t} catch (PageNotInRightLanguageException ex) {\n\t\t\t\tlog.info(\"Page not in the right language : \" + ex.getText());\n\t\t\t} catch (Exception ex) {\n\t\t\t\tlog.error(\"Error while crawling : \" + url, ex);\n\t\t\t}\n\t\t\t\n\t\t\turl.setDateScanned(new Date());\n\t\t\turlRepository.saveAndFlush(url);\n\t\t\t\n\t\t\tif(stop){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void firstRunning() {\n for (int page = 1; page < 50; page++) {\n vacancies.addAll(parser.parseHtml(URL + page, null));\n }\n LOG.info(vacancies.size());\n try (VacancyDao vacancyDao = new VacancyDao(properties)) {\n vacancyDao.insertSet(vacancies);\n vacancyDao.insertLastUpdateDate(new Date().getTime());\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n }\n }",
"public Crawler crawl() throws ParseException, IOException {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tCrawler c = new Crawler(\"https://cs.purdue.edu\", 250);\n\t\tc.crawl();\n\n \tlong end = System.currentTimeMillis();\n \tSystem.out.println(\"Stats: \");\n \tSystem.out.println(\"Number of parsed pages: \" + c.getParsed().size());\n \tSystem.out.println(\"Number of words: \" + c.getWords().size());\n \t\n \tSystem.out.println(\"Total time: \" + (end - start) + \"ms.\");\n\n \treturn c;\n\t}",
"private void fetchNextBlock() {\n try {\n \tSearchClient _client = new SearchClient(\"cubansea-instance\");\n \tWebSearchResults _results = _client.webSearch(createNextRequest());\n \t\tfor(WebSearchResult _result: _results.listResults()) {\n \t\t\tresults.add(new YahooSearchResult(_result, cacheStatus+1));\n \t\t\tcacheStatus++;\n \t\t}\n \t\tif(resultCount == -1) resultCount = _results.getTotalResultsAvailable().intValue();\n } catch (IOException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t} catch (SearchException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t}\n\t}",
"@Override\n public void crawl() {\n Document doc;\n try {\n\n\n doc = Jsoup.connect(rootURL).userAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A\").get();\n\n Elements articles = doc.select(\"section.list article\");\n\n System.out.println(\"Number of articles found:\"+articles.size());\n //list of links found\n for(Element article: articles){\n\n Element titleLink = article.select(\"a\").first();\n System.out.println(titleLink.attr(\"abs:href\"));\n\n //if the url found is in the cache, do not retrieve the url.\n if(urlCache.contains(titleLink.attr(\"abs:href\"))) {\n System.out.println(\"Doucment found in cache, ignoring document\");\n continue;\n }\n\n storeDocument(Jsoup.connect(titleLink.attr(\"abs:href\")).get());\n\n //add the URL to the cache so that we don't retrieve it again.\n urlCache.add(titleLink.attr(\"abs:href\"));\n }\n\n\n } catch (Exception e){\n logger.log(Level.SEVERE, \"Error Retrieving from URL\", e);\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception {\n\t\tString crawlStorageFolder = \"/data/crawl\";\r\n\t\tint numberOfCrawlers = 1;\r\n\t\t\r\n\t\tCrawlConfig config = new CrawlConfig();\r\n\t\tconfig.setCrawlStorageFolder(crawlStorageFolder);\r\n\t\tconfig.setMaxPagesToFetch(5000);\r\n\t\tconfig.setMaxDepthOfCrawling(5);\r\n\t\tconfig.setPolitenessDelay(500);\r\n\t\t\r\n\t\tconfig.setIncludeBinaryContentInCrawling(true);\r\n\t\t//config.setUserAgentString(userAgentString);\r\n\t\t\r\n\t\tPageFetcher pageFetcher = new PageFetcher(config);\r\n\t\tRobotstxtConfig robotstxtConfig = new RobotstxtConfig();\r\n\t\tRobotstxtServer robotstxtServer = new RobotstxtServer(robotstxtConfig,pageFetcher );\r\n\t\tCrawlController controller = new CrawlController(config,pageFetcher,robotstxtServer);\r\n\t\t\r\n\t\tcontroller.addSeed(\"http://www.marshall.usc.edu/\");\r\n\t\tcontroller.start(MyCrawler.class, numberOfCrawlers);\r\n\t\tSystem.out.println(\"All urls processed:\"+MyCrawler.URL_Count);\r\n\t\tSystem.out.println(\"All unique urls processed:\"+MyCrawler.hs.size());\r\n\t\tSystem.out.println(\"unique School urls processed:\"+MyCrawler.hs_uniqueSchool.size());\r\n\t\tSystem.out.println(\"unique USC urls processed:\"+MyCrawler.hs_uniqueUSC.size());\r\n\t\tSystem.out.println(\"other unique urls processed:\"+MyCrawler.hs_unique.size());\r\n\t\tSet set = MyCrawler.HM_Status.entrySet();\r\n\t Iterator i = set.iterator();\r\n\t while(i.hasNext()) {\r\n\t Map.Entry me = (Map.Entry)i.next();\r\n\t System.out.print(me.getKey() + \": \");\r\n\t System.out.println(me.getValue());\r\n\t }\r\n\t set=MyCrawler.HM_CT.entrySet();\r\n\t i = set.iterator();\r\n\t while(i.hasNext()) {\r\n\t Map.Entry me = (Map.Entry)i.next();\r\n\t System.out.print(me.getKey() + \": \");\r\n\t System.out.println(me.getValue());\r\n\t }\r\n\t System.out.println(\"F1:\"+MyCrawler.F1);\r\n\t System.out.println(\"F2:\"+MyCrawler.F2);\r\n\t System.out.println(\"F3:\"+MyCrawler.F3);\r\n\t System.out.println(\"F4:\"+MyCrawler.F4);\r\n\t \r\n\t System.out.println(\"Size < 1kb:\"+MyCrawler.size1);\r\n\t System.out.println(\"Size 1kb~10kb:\"+MyCrawler.size2);\r\n\t System.out.println(\"Size 10kb~100kb:\"+MyCrawler.size3);\r\n\t System.out.println(\"Size 100kb~1mb:\"+MyCrawler.size4);\r\n\t System.out.println(\"Size > 1mb:\"+MyCrawler.size5);\r\n\t \r\n\t}",
"void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}",
"private void initPicDownloadPage() {\n\n\t\tif (mScrollLayout.getChildCount() <= 0) {\n\t\t\tfor (File dir : getSearchFiles()) {\n\t\t\t\tif (dir == null || !dir.exists())\n\t\t\t\t\tcontinue;\n\t\t\t\tif (dir.list().length <= 0\n\t\t\t\t\t\t&& dir != StorageUtils.getFavorDir(this))\n\t\t\t\t\tcontinue;\n\t\t\t\tWallpaperPage wallpaperPage = new WallpaperPage(\n\t\t\t\t\t\tgetApplicationContext());\n\t\t\t\tpages.add(wallpaperPage);\n\t\t\t\twallpaperPage.setAdapter(new LocalWallpaperAdapter(this,dir.getAbsolutePath()));\n\t\t\t\tAsyncTaskLoadLocalPic loader = new AsyncTaskLoadLocalPic(\n\t\t\t\t\t\tnew PageLoadListener(wallpaperPage), this);\n\t\t\t\tloader.execute(dir);\n\t\t\t}\n\n\t\t\tpageCount = pages.size();\n\t\t\t// PAGE_MAX_INDEX = pages.size() - 1;\n\t\t\tpageAdapter.notifyDataSetChanged();\n\t\t}\n\t}",
"public static void Execute ()\n\t{\n\t\tReceiveCollection (SpawnCrawler (target));\n\t\t\n\t\tList<String> initialCollection = overCollection;\n\t\t\n\t\tif ( ! initialCollection.isEmpty ())\n\t\t{\n\t\t\n\t\t\tfor (String collected : initialCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tReceiveCollection (SpawnCrawler (collected));\n\t\t\t\telse\n\t\t\t\t\tReceiveCollection (SpawnCrawler (target + collected));\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t * Several loops should commence here where the system reiteratively goes over all the newly acquired URLs\n\t\t * so it may extend itself beyond the first and second depth.\n\t\t * However this process should be halted once it reaches a certain configurable depth.\n\t\t */\n\t\tint depth = 0;\n\t\tint newFoundings = 0;\n\t\t\n\t\tdepthLoop: while (depth <= MAX_DEPTH)\n\t\t{\n\t\t\t\n\t\t\tfor (String collected : overCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tSpawnCrawler (collected);\n\t\t\t\telse\n\t\t\t\t\tSpawnCrawler (target + collected);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (newFoundings <= 0)\n\t\t\t\tbreak depthLoop;\n\t\t\t\n\t\t\tdepth++;\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t}",
"public Vector<WbRecord> getAllPages() {\n\t\tVector<WbRecord> content = getNPages(130000000);\n\t\tSystem.out.println(\"Number of pages expected:\t\" + this.numPagesRequested);\n\t\tSystem.out.println(\"Actual number of pages wbRecordReader crawl:\t\" + this.totalNumPagesRetrieved);\n\t\treturn content;\n\t}",
"private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }",
"public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}",
"protected HTTPSampleResult downloadPageResources(HTTPSampleResult res, HTTPSampleResult container, int frameDepth) {\n Iterator<URL> urls = null;\n try {\n final byte[] responseData = res.getResponseData();\n if (responseData.length > 0) { // Bug 39205\n final LinkExtractorParser parser = getParser(res);\n if (parser != null) {\n String userAgent = getUserAgent(res);\n urls = parser.getEmbeddedResourceURLs(userAgent, responseData, res.getURL(), res.getDataEncodingWithDefault());\n }\n }\n } catch (LinkExtractorParseException e) {\n // Don't break the world just because this failed:\n res.addSubResult(errorResult(e, new HTTPSampleResult(res)));\n setParentSampleSuccess(res, false);\n }\n \n // Iterate through the URLs and download each image:\n if (urls != null && urls.hasNext()) {\n if (container == null) {\n container = new HTTPSampleResult(res);\n container.addRawSubResult(res);\n }\n res = container;\n \n // Get the URL matcher\n String re = getEmbeddedUrlRE();\n Perl5Matcher localMatcher = null;\n Pattern pattern = null;\n if (re.length() > 0) {\n try {\n pattern = JMeterUtils.getPattern(re);\n localMatcher = JMeterUtils.getMatcher();// don't fetch unless pattern compiles\n } catch (MalformedCachePatternException e) {\n log.warn(\"Ignoring embedded URL match string: \" + e.getMessage());\n }\n }\n \n // For concurrent get resources\n final List<Callable<AsynSamplerResultHolder>> list = new ArrayList<>();\n \n int maxConcurrentDownloads = CONCURRENT_POOL_SIZE; // init with default value\n boolean isConcurrentDwn = isConcurrentDwn();\n if (isConcurrentDwn) {\n try {\n maxConcurrentDownloads = Integer.parseInt(getConcurrentPool());\n } catch (NumberFormatException nfe) {\n log.warn(\"Concurrent download resources selected, \"// $NON-NLS-1$\n + \"but pool size value is bad. Use default value\");// $NON-NLS-1$\n }\n \n // if the user choose a number of parallel downloads of 1\n // no need to use another thread, do the sample on the current thread\n if (maxConcurrentDownloads == 1) {\n log.warn(\"Number of parallel downloads set to 1, (sampler name=\" + getName()+\")\");\n isConcurrentDwn = false;\n }\n }\n \n while (urls.hasNext()) {\n Object binURL = urls.next(); // See catch clause below\n try {\n URL url = (URL) binURL;\n if (url == null) {\n log.warn(\"Null URL detected (should not happen)\");\n } else {\n- String urlstr = url.toString();\n- String urlStrEnc = escapeIllegalURLCharacters(encodeSpaces(urlstr));\n- if (!urlstr.equals(urlStrEnc)) {// There were some spaces in the URL\n- try {\n- url = new URL(urlStrEnc);\n- } catch (MalformedURLException e) {\n- res.addSubResult(errorResult(new Exception(urlStrEnc + \" is not a correct URI\"), new HTTPSampleResult(res)));\n- setParentSampleSuccess(res, false);\n- continue;\n- }\n+ try {\n+ url = escapeIllegalURLCharacters(url);\n+ } catch (Exception e) {\n+ res.addSubResult(errorResult(new Exception(url.toString() + \" is not a correct URI\"), new HTTPSampleResult(res)));\n+ setParentSampleSuccess(res, false);\n+ continue;\n }\n // I don't think localMatcher can be null here, but check just in case\n- if (pattern != null && localMatcher != null && !localMatcher.matches(urlStrEnc, pattern)) {\n+ if (pattern != null && localMatcher != null && !localMatcher.matches(url.toString(), pattern)) {\n continue; // we have a pattern and the URL does not match, so skip it\n }\n try {\n url = url.toURI().normalize().toURL();\n } catch (MalformedURLException | URISyntaxException e) {\n- res.addSubResult(errorResult(new Exception(urlStrEnc + \" URI can not be normalized\", e), new HTTPSampleResult(res)));\n+ res.addSubResult(errorResult(new Exception(url.toString() + \" URI can not be normalized\", e), new HTTPSampleResult(res)));\n setParentSampleSuccess(res, false);\n continue;\n }\n \n if (isConcurrentDwn) {\n // if concurrent download emb. resources, add to a list for async gets later\n list.add(new ASyncSample(url, HTTPConstants.GET, false, frameDepth + 1, getCookieManager(), this));\n } else {\n // default: serial download embedded resources\n HTTPSampleResult binRes = sample(url, HTTPConstants.GET, false, frameDepth + 1);\n res.addSubResult(binRes);\n setParentSampleSuccess(res, res.isSuccessful() && (binRes == null || binRes.isSuccessful()));\n }\n-\n }\n } catch (ClassCastException e) { // TODO can this happen?\n res.addSubResult(errorResult(new Exception(binURL + \" is not a correct URI\"), new HTTPSampleResult(res)));\n setParentSampleSuccess(res, false);\n }\n }",
"private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }",
"@Override\r\n public void visit(Page page) {\r\n String url = page.getWebURL().getURL();\r\n System.out.println(\"URL: \" + url);\r\n\r\n if (page.getParseData() instanceof HtmlParseData) {\r\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\r\n String text = htmlParseData.getText();\r\n String html = htmlParseData.getHtml();\r\n List<WebURL> links = htmlParseData.getOutgoingUrls();\r\n\r\n System.out.println(\"Text length: \" + text.length());\r\n System.out.println(\"Html length: \" + html.length());\r\n System.out.println(\"Number of outgoing links: \" + links.size());\r\n\r\n try {\r\n Configuration config = new Configuration();\r\n System.setProperty(\"HADOOP_USER_NAME\", \"admin\");\r\n FileSystem fileSystem = FileSystem.get(new URI(\"hdfs://192.168.51.116:8022/\"), config);\r\n FSDataOutputStream outStream = fileSystem.append(new Path(\"/user/admin/crawler-results.txt\"));\r\n\r\n IOUtils.write(text.replace('\\n', ' '), outStream);\r\n outStream.flush();\r\n IOUtils.closeQuietly(outStream);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }",
"public void page()\n {\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().get(\"http://18.222.188.206:3333/accounts?_page=3\");\n response.then().assertThat().statusCode(200);\n System.out.println(\"The list of accounts in the page 3 is displayed below:\");\n response.prettyPrint();\n }",
"public List<PageContent> getAllPageContent();",
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }",
"private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tNewsLKSpider spider = new NewsLKSpider();\r\n\t\tint i = 0;\r\n\t\twhile (i <= 280) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tString thisUrl = spider.newsURL + String.valueOf(i);\r\n\t\t\tString referer = \"\";\r\n\t\t\tif (i == 0) {\r\n\t\t\t\treferer = spider.newsReferer;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treferer = spider.newsURL + String.valueOf(i - 20);\r\n\t\t\t}\r\n\t\t\tString searchContent = spider.getContent(thisUrl, spider.searchCookie, referer);\r\n\t\t\tspider.getAElement(searchContent);\r\n\t\t\tint times = (int) (Math.random() * 10000 + 10000.);\r\n\t\t\tSystem.out.println(times);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(times);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ti = i + 20;\r\n\t\t}\r\n\t\tSystem.out.println(\"There are \" + spider.aElemenets.size() + \" news in list.\");\r\n\t\ti = 0;\r\n\t\tSet<Entry<String,String>> keyValue= spider.aElemenets.entrySet();\r\n\t\tfor (Entry<String,String> onePaire : keyValue) {\r\n\t\t\tSystem.out.println(i + \" : \" + onePaire.getValue());\r\n\t\t\tspider.getNewsContent(onePaire.getValue(), onePaire.getKey());\r\n\t\t\ti += 1;\r\n\t\t\tint times = (int) (Math.random() * 10000 + 5000.);\r\n\t\t\tSystem.out.println(\"Sleep times :\"+times);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(times);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }",
"public void processDocument(String url) throws PageReadException {\n // TODO: reset the results.\n impossible = false;\n givenUrl = url;\n nextPageLink = null;\n if (!notFirstPage) {\n xmlImages = new ArrayList<String>();\n title = null;\n }\n\n String content = pageReader.readPage(url);\n\n document = Jsoup.parse(content);\n\n if (document.getElementsByTag(\"body\").size() == 0) {\n LOG.error(\"no body to parse \" + url);\n impossible = true;\n throw new PageReadException(\"no body to parse\");\n }\n\n init(); // this needs another name, it does all the work.\n if (readAllPages && nextPageLink != null) {\n try {\n String textSoFar = articleText;\n notFirstPage = true;\n processDocument(nextPageLink);\n if (articleText != null) {\n articleText = textSoFar + articleText;\n }\n } finally {\n notFirstPage = false;\n System.out.println(articleText);\n }\n }\n\n }",
"private void loadNextPageOfTopRatedMovies() {\n\t\ttry {\n\t\t\tMovieApiClient movieApiClient = MovieDbApi.getRetrofitClient().create(MovieApiClient.class);\n\t\t\tCall<TopRatedMovies> call = movieApiClient.getTopRatedMovies(getString(R.string.api_key), \"en_US\", currentPage);\n\t\t\tcall.enqueue(new Callback<TopRatedMovies>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onResponse(Call<TopRatedMovies> call, Response<TopRatedMovies> response) {\n\t\t\t\t\tif (response.isSuccessful()) {\n\t\t\t\t\t\tadapter.removeLoadingFooter();\n\t\t\t\t\t\tisLoading = false;\n\t\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\t\tTopRatedMovies topRatedMovies = response.body();\n\t\t\t\t\t\tList<TopRatedMovieResults> topRatedMovieResults = topRatedMovies.getResults();\n\t\t\t\t\t\tadapter.addAll(topRatedMovieResults);\n\n\t\t\t\t\t\tif (currentPage != TotalPages)\n\t\t\t\t\t\t\tadapter.addLoadingFooter();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tisLastPage = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.error), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Call<TopRatedMovies> call, Throwable t) {\n\t\t\t\t\tif (t instanceof SocketTimeoutException || t instanceof IOException) {\n\t\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tLog.e(\"ERROR\", getString(R.string.no_netowrk), t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\t\tLog.e(\"ERROR\", getString(R.string.error), t);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.error), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tToast.makeText(getApplicationContext(), getString(R.string.error), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"public PageVisits() {\n LOG.info(\"=========================================\");\n LOG.info(\"Page Visit Counter is being created\");\n LOG.info(\"=========================================\");\n }",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more_comment a\").first();\r\n\t\t\t\t\t//System.out.println(ele.attr(\"href\"));\r\n\t\t\t\t\tcommentCrawling(ele.attr(\"href\"));//��۸�� ���� ��ũ\r\n\t\t\t\t\tcommentCrawlingList(commentURList);\r\n\t\t\t\t\tcommentURList = new ArrayList<String>();//��ũ ����� �ߺ��ǰ� ���̴� �� �����ϱ� ���� �ʱ�ȭ �۾�\r\n\t\t\t\t\tSystem.out.println(i+\"��° ������\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn replyComment;\r\n\t\t//return urlList.get(0);\r\n\t}",
"public void getAll(rScrapper scrapper) throws IOException, InterruptedException, SQLException, ClassNotFoundException {\n\t\tscrapper.processStat(); // scrape process stats\n\t\tscrapper.memoryStat(); // scrape memory stats\n\t\tscrapper.cpuStat(); // scrape cpu stats\n\t\tscrapper.pidStat(); // scrape pid stats\n\t\tscrapper.pidSchedStat(); // scrape pid sched stats\n\t\tscrapper.diskStat(); // scrape disk stats\n\t\tscrapper.ioStat(); // scrape io stats\n\t\tscrapper.dbStat(); // scrape db stats\n\t\tscrapper.heap();\n\t\tscrapper.heapDump();\n\t\tscrapper.stack();\n\t\tscrapper.thread();\n\t}",
"@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }",
"public PageRankAnalyzer(ISet<Webpage> webpages, double decay, double epsilon, int limit) {\n // Step 1: Make a graph representing the 'internet'\n IDictionary<URI, ISet<URI>> graph = this.makeGraph(webpages);\n\n // Step 2: Use this graph to compute the page rank for each webpage\n this.pageRanks = this.makePageRanks(graph, decay, limit, epsilon);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"void loadAll(int pageNum, LoadView mLoadView);",
"public List<Page> hits(String query) {\n\t\t// pages <- EXPAND-PAGES(RELEVANT-PAGES(query))\n\t\tList<Page> pages = expandPages(relevantPages(query));\n\t\t// for each p in pages\n\t\tfor (Page p : pages) {\n\t\t\t// p.AUTHORITY <- 1\n\t\t\tp.authority = 1;\n\t\t\t// p.HUB <- 1\n\t\t\tp.hub = 1;\n\t\t}\n\t\t// repeat until convergence do\n\t\twhile (!convergence(pages)) {\n\t\t\t// for each p in pages do\n\t\t\tfor (Page p : pages) {\n\t\t\t\t// p.AUTHORITY <- &Sigma<sub>i</sub> INLINK<sub>i</sub>(p).HUB\n\t\t\t\tp.authority = SumInlinkHubScore(p);\n\t\t\t\t// p.HUB <- Σ<sub>i</sub> OUTLINK<sub>i</sub>(p).AUTHORITY\n\t\t\t\tp.hub = SumOutlinkAuthorityScore(p);\n\t\t\t}\n\t\t\t// NORMALIZE(pages)\n\t\t\tnormalize(pages);\n\t\t}\n\t\treturn pages;\n\n\t}",
"public void fetchArticles(int page, boolean newSearch) {\n if(newSearch) { articles.clear(); }\n\n AsyncHttpClient client = new AsyncHttpClient();\n String url;\n RequestParams params = new RequestParams();\n params.put(\"api-key\", \"ed5753fe0329424883b2a07a7a7b4817\");\n params.put(\"page\", page);\n\n // If top stories, different parameters\n if(topStories) {\n url = \"https://api.nytimes.com/svc/topstories/v2/home.json\";\n } else {\n url = \"https://api.nytimes.com/svc/search/v2/articlesearch.json\";\n params.put(\"q\",filter.getQuery());\n if(filter.getSort() != null) {\n params.put(\"sort\",filter.getSort());\n }\n if(filter.getBegin_date() != null) {\n params.put(\"begin_date\",filter.getBegin_date());\n }\n if(filter.getNewsDeskOpts().size() > 0) {\n for(int i=0; i<filter.getNewsDeskOpts().size(); i++) {\n params.put(\"fq\",String.format(\"news_desk:(%s)\",filter.getNewsDeskOpts().get(i)));\n }\n }\n Log.d(\"DEBUG\",params.toString());\n }\n\n client.get(url, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.d(\"DEBUG\",response.toString());\n JSONArray articleJsonResults = null;\n try {\n if(!topStories) {\n articleJsonResults = response.getJSONObject(\"response\").getJSONArray(\"docs\");\n } else {\n articleJsonResults = response.getJSONArray(\"results\");\n }\n\n // Every time data is changed, notify adapter; can also do by article.addAll and use adapter.notifyDataSetChanged\n articles.addAll(Article.fromJsonArray(articleJsonResults, topStories));\n adapter.notifyDataSetChanged();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\",\"JSON response failed\");\n super.onFailure(statusCode, headers, throwable, errorResponse);\n }\n });\n }",
"public static void main(String[] args) {\n\t\t\n\t\t/*MultiThreadedCrawler crawler = new MultiThreadedCrawler(\"https://cs.uic.edu\", \"uic.edu\", \"main\");\n\t\tcrawler.start();\n\t\tList<Map> p = new ArrayList<>();\n\t\tp.add(crawler.getResults());\n\t\t\n\t\ttry {\n\t\t\tGlobals.urlSet.add(new URL(\"https://disabilityresources.uic.edu\"));\n\t\t\tGlobals.urlSet.add(new URL(\"http://disabilityresources.uic.edu\"));\n\t\t\tGlobals.urlSet.add(new URL(\"http://cmhsrp.uic.edu/nrtc\")); \n\n\t\t} catch (MalformedURLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tMultiThreadedCrawler c1 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c1\");\n\t\tMultiThreadedCrawler c2 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c2\");\n\t\tMultiThreadedCrawler c3 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c3\");\n\t\tMultiThreadedCrawler c4 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c4\");\n\t\tMultiThreadedCrawler c5 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c5\");\n\t\tMultiThreadedCrawler c6 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c6\");\n\t\t//MultiThreadedCrawler c7 = new MultiThreadedCrawler(\"https://housing.uic.edu\", \"uic.edu\", \"housing\");\n\t\t//MultiThreadedCrawler c8 = new MultiThreadedCrawler(\"https://grad.uic.edu\", \"uic.edu\", \"grad\");\n\t\t//MultiThreadedCrawler c9 = new MultiThreadedCrawler(\"https://today.uic.edu\", \"uic.edu\", \"today\");\n\t\t\n\t\t\n\t\t\n\t\tList<Thread> crawlers = new ArrayList<>();\n\t\tcrawlers.add(new Thread(c1, \"c1\"));\n\t\tcrawlers.add(new Thread(c2, \"c2\"));\n\t\tcrawlers.add(new Thread(c3, \"c3\"));\n\t\tcrawlers.add(new Thread(c4, \"c4\"));\n\t\tcrawlers.add(new Thread(c5, \"c5\"));\n\t\tcrawlers.add(new Thread(c6, \"c6\"));\n\t\tcrawlers.add(new Thread(c7, \"housing\"));\n\t\tcrawlers.add(new Thread(c8, \"grad\"));\n\t\tcrawlers.add(new Thread(c9, \"today\"));\n\t\t\n\t\t\n\t\tfor(Thread t: crawlers) {\n\t\t\tt.start();\n\t\t}\n\t\t\n\t\tfor(Thread t: crawlers) {\n\t\t\ttry {\n\t\t\t\tt.join();\n\t\t\t}catch(InterruptedException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tp.add(c1.getResults());\n\t\tp.add(c2.getResults());\n\t\tp.add(c3.getResults());\n\t\tp.add(c4.getResults());\n\t\tp.add(c5.getResults());\n\t\tp.add(c6.getResults());\n\t\t//p.add(c7.getResults());\n\t\t//p.add(c8.getResults());\n\t\t//p.add(c9.getResults());\n\t\t\n\t\t\n\t\twhile(true) {\n\t\t\tfor(Map m: p) {\n\t\t\t\tif(m == null)\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"All done\");\n\t\tmergeResults(p);\n\t\tUtil.updateDocVectLenMap();\n\t\tSystem.out.println(\"Total in collection: \" + Globals.pageDataMap.size());\n\t\tUtil.writeInvertedIndexTfMapAndMaxFreqMapToFile();*/\n\t\t\n\t\t\n\t\tUtil.loadDataFromFile();\n\t\tUtil.updateDocVectLenMap();\n\t\tSpringApplication.run(SearchApplication.class, args);\n\t}",
"public void performCrawl() throws IOException, GitAPIException, SaveException {\n List<QueryResult> results = studyFetcher.crawl();\n studyRepository.persist(results);\n }",
"public void loadPage(){\r\n\r\n driver.get(getPAGE_Url());\r\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\r\n }",
"public void run()\n\t\t{\n\t\t\tint num = 0;\n\t\t\ttry{\n\t\t\t\tlog.debug(\"Dealing with: \" + url.toString() + \" From : \" + urlp);\n\t\t\t\t\n\t\t\t\tSocket socket = new Socket(url.getHost(), PORT);\n\t\t\t\tPrintWriter writer = new PrintWriter(socket.getOutputStream());\n\t\t\t\tBufferedReader reader = \n\t\t\t\t\tnew BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\tString request = \"GET \" + url.getPath() + \" HTTP/1.1\\n\" +\n\t\t\t\t\t\t\t\t\"Host: \" + url.getHost() + \"\\n\" +\n\t\t\t\t\t\t\t\t\"Connection: close\\n\" + \n\t\t\t\t\t\t\t\t\"\\r\\n\";\n\t\t\t\twriter.println(request);\n\t\t\t\twriter.flush();\n\t\t\n\t\t\t\tString line = reader.readLine();\n\t\t\t\t// filter the head message of the response\n\t\t\t\twhile(line != null && line.length() != 0)\n\t\t\t\t{\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t}\n\t\t\t\t// keep the html context\n\t\t\t\twhile (line != null) \n\t\t\t\t{\n\t\t\t\t\tcontext += line + \"\\n\";\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t\twriter.close();\n\t\t\t\tsocket.close();\n\t\t\t\t//log.debug(context);\n\t\t\t\tstripper = new TagStripper(context);\n\t\t\t\tlog.debug(\"Removing script and style from: \" + url.toString());\n\t\t\t\tstripper.removeComments();\n\t\t\t\tstripper.removeScript();\n\t\t\t\tstripper.removeStyle();\n\t\t\t\tlog.debug(\"Getting links from: \" + url.toString());\n\t\t\t\tArrayList<String> link = new ArrayList<String>();\n\t\t\t\tstripper.buildLinks(url.toString());\n\t\t\t\t\n\t\t\t\tlink = stripper.getLinks();\n\t\t\t\tfor(String tmp : link) {\n\t\t\t\t\tif(getCount() < pageNum ) {\n\t\t\t\t\t\t// find if the link has been already visited\n\t\t\t\t\t\tif(!urlList.contains(tmp)) {\n\t\t\t\t\t\t\tworkers.execute(new SingleHTMLFetcher(new URL(tmp), this.url.toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString title = stripper.getTitle();\n\t\t\t\tif(title == null)\n\t\t\t\t\ttitle = \"NO title\";\n\t\t\t\ttitle = title.replaceAll(\"&[^;]*;\", \"\");\n\t\t\t\tlog.debug(\"Removing tags from: \" + url.toString());\n\t\t\t\tstripper.removeTags();\n\t\t\t\tstripper.removeSymbol();\n\t\t\t\tString snippet = stripper.getSnippet(title);\n\t\t\t\tdb.savePageInfo(connection, title, snippet, url.toString());\n\t\t\t\tcontext = stripper.getContext();\n\t\t\t\tString[] words = context.toLowerCase().split(\"\\\\s\");\n\t\t\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\t// delete non-word character\n\t\t\t\t\twords[i] = words[i].replaceAll(\"\\\\W\", \"\").replace(\"_\",\n\t\t\t\t\t\t\t\"\");\n\t\t\t\t\tif(words[i].length() != 0)\n\t\t\t\t\t\twordsList.add(words[i]);\n\t\t\t\t}\n\t\t\t\tfor (String w : wordsList) {\n\t\t\t\t\tif (w.length() != 0) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tindex.addNum(w, url.toString(), num);\n\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tnum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlog.debug(\"URL: \" + url.toString() + \" is finished!\");\n\t\t\t\tdecrementPending();\n\t\t\t}catch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}",
"private static void fetchNextPage(Context context) {\n\n /* Get pages info */\n int currentPage = PageUtils.getCurrentPage(context);\n int totalPages = PageUtils.getTotalPages(context);\n\n /* Get uri of data for current show mode */\n Uri uri;\n int showMode = MoviesPreferences.getMoviesShowMode(context);\n if (showMode == MoviesPreferences.SHOW_MODE_MOST_POPULAR) {\n uri = MoviesContract.MovieEntry.CONTENT_URI_MOST_POPULAR;\n } else {\n uri = MoviesContract.MovieEntry.CONTENT_URI_TOP_RATED;\n }\n\n /* If last update time expired, set current page to 0 and clean cache table */\n boolean isDataActual = DateUtils.isMoviesListLastUpdateActual(context);\n if (!isDataActual) {\n context.getContentResolver().delete(uri, null, null);\n currentPage = 0;\n PageUtils.setCurrentPage(context, currentPage);\n }\n\n /* If all pages already loaded, we don't need to do anything */\n if (currentPage == totalPages) {\n return;\n }\n\n URL moviesListUrl = NetworkUtils.getMoviesListUrl(context, currentPage + 1);\n ContentValues[] movieContentValues = null;\n int requestedTotalPages = 1;\n\n try {\n String response = NetworkUtils.getResponseFromHttpUrl(moviesListUrl);\n movieContentValues = TmdbJsonUtils.getMovieContentValuesFromJson(response);\n requestedTotalPages = TmdbJsonUtils.getTotalPagesFromJson(response);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n if (movieContentValues == null) {\n return;\n }\n\n int insertedRows = context.getContentResolver()\n .bulkInsert(uri, movieContentValues);\n\n if (insertedRows > 0) {\n currentPage++;\n PageUtils.setCurrentPage(context, currentPage);\n\n if (currentPage == 1) {\n PageUtils.setTotalPages(context, requestedTotalPages);\n long currentTime = System.currentTimeMillis();\n DateUtils.setMoviesListLastUpdateTime(context, currentTime);\n }\n }\n\n }",
"public static void main(String[] args) {\n for (int pageNumber =1; pageNumber<=51; pageNumber++){\n try {\n //System.out.println(\"Page number: \" + pageNumber);\n String pageContent = getPageContent(\"https://powerlist.talint.co.uk/talint-powerlist/search-companies/?sf_paged=\" + pageNumber);\n String [] linkSections = pageContent.split(\"</a></h2>\");\n for (String linkSection: linkSections) {\n if(linkSection.contains(\"<h2><a href=\\\"\")){\n String companyLink = linkSection.substring(linkSection.indexOf(\"<h2><a href=\\\"\")+13,\n linkSection.lastIndexOf(\"/\\\">\"));\n String companyDetailsContent = getPageContent(companyLink);\n processCompanyDetails(companyLink, companyDetailsContent);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"void loadResults(ArrayList<Comic> results, int totalItems);",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //Setting up response\n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"UTF-8\");\n response.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n PrintWriter out = response.getWriter();\n\n //Check if data is cached\n if(isCached) {\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n //Otherwise scrape data\n else {\n //Scrape data from Time.com and build NewsItem list\n scrapeUrl();\n //Sort each NewsItem by its corresponding articles published time\n newsItems.sort(Comparator.comparing(NewsItem::getPublishedDate));\n //Reverse list to have the most recent NewsItem first\n Collections.reverse(newsItems);\n //Set flag for next request to use cached data\n isCached = true;\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n }",
"public CrawlerResult crawl(URL url){\n //Creating the crawler result\n CrawlerResult rslt = new CrawlerResult(url);\n logger.info(url +\" started crawling....\");\n try{\n //Get the Document from the URL\n Document doc = Jsoup.connect(url.toString()).get();\n\n rslt.setTitle(doc.title());\n\n //links on the page\n Elements links = doc.select(\"a\");\n\n //Links on the page\n for(Element link : links){\n rslt.addLinksOnPage(new URL(link.attr(\"abs:href\")));\n }\n }catch(Exception e){\n //TODO\n }\n logger.info(url +\" finished crawled.\");\n return rslt;\n }",
"Pages getPages();",
"private void htmlGlobalTagStatistics() throws MalformedURLException {\n\t\tfinal List<String> anchorLinks = new ArrayList<>();\n\t\tfinal List<String> imgLinks = new ArrayList<>();\n\t\tfinal List<String> anchorImgLinks = new ArrayList<>();\n\t\tfinal List<Integer> countNbImgGif = new ArrayList<>();\n\t\tfinal List<Integer> countNbScriptOutside = new ArrayList<>();\n\t\thtmlParsed.traverse(new NodeVisitor(){\n\t\t\tString attributeValue = \"\";\n\t\t\tpublic void head(Node node, int depth){\n\t\t\t\tif (node instanceof Element){\n\t\t\t\t\tElement tag = (Element) node;\n\t\t\t\t\tif(tag.tagName().equals(\"a\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"href\");\n\t\t\t\t\t\tif(attributeValue.length() > 0) {\n\t\t\t\t\t\t\tanchorLinks.add(attributeValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(tag.tagName().equals(\"img\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"src\");\n\t\t\t\t\t\tif(attributeValue.length() > 0){\n\t\t\t\t\t\t\timgLinks.add(attributeValue);\n\t\t\t\t\t\t\tif(attributeValue.endsWith(\".gif\")){\n\t\t\t\t\t\t\t\tcountNbImgGif.add(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(tag.parent().tagName().equals(\"a\")) {\n\t\t\t\t\t\t\t\tanchorImgLinks.add(attributeValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(tag.tagName().equals(\"script\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"src\");\n\t\t\t\t\t\tif(attributeValue.length() > 0)\n\t\t\t\t\t\t\tcountNbScriptOutside.add(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t public void tail(Node node, int depth) {\n\t\t }\n\t\t});\t\n\t\t\n\t\tint nbYearImgLink = anchorImgLinks.stream()\n\t\t\t\t.mapToInt(ClassificationGeneralFunctions::countNbOfYears)\n\t\t\t\t.sum();\n\t\t\t\t\n\t\tint nbYearAnchorLink = 0;\n\t\tint nbLinkSameDomain = 0;\n\t\tint nbLinkOutside = 0;\n\t\tint nbHrefJavascript = 0;\n\t\tString domain = new URL(url).getHost().toLowerCase();\n\t\tfor(String link: anchorLinks){\n\t\t\tlink = link.toLowerCase();\n\t\t\tnbYearAnchorLink += ClassificationGeneralFunctions.countNbOfYears(link);\n\t\t\tif(link.startsWith(\"http\")){\n\t\t\t\tif(link.contains(domain)) {\n\t\t\t\t\tnbLinkSameDomain += 1;\n\t\t\t\t}else {\n\t\t\t\t\tnbLinkOutside += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(link.startsWith(\"javascript\")){\n\t\t\t\t\tnbHrefJavascript += 1;\n\t\t\t\t}else {\n\t\t\t\t\tnbLinkSameDomain += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\thtmlStatistics.put(\"img\", (double) imgLinks.size());\n\t\thtmlStatistics.put(\"img_gif\",(double) countNbImgGif.size());\n\t\thtmlStatistics.put(\"script_outside\", (double) countNbScriptOutside.size());\n\t\thtmlStatistics.put(\"anchor_with_image\", (double) anchorImgLinks.size());\n\t\thtmlStatistics.put(\"year_link_img\", (double) nbYearImgLink);\n\t\thtmlStatistics.put(\"year_link_anchor\", (double) nbYearAnchorLink);\n\t\thtmlStatistics.put(\"links_same_domains\", (double) nbLinkSameDomain);\n\t\thtmlStatistics.put(\"links_to_outside\", (double) nbLinkOutside);\n\t\thtmlStatistics.put(\"href_javascript\", (double) nbHrefJavascript);\n\t}",
"private void fetch(int i){\n // if Search completes succesfully\n if(searchOK(i)){// proceed to fetch\n int docs = Integer.parseInt(counts.get(i));\n int start = 0;\n // while end of results not reached\n // i.e. stops when the last document of the last batch (start + step) is grater than the total count of docs\n while(start < docs){\n //get next part of results\n fetchPart(i,start,step);\n start += step;\n }\n } else { // print a message for wrong search of specific query\n // Log printing\n if(debugMode) {\n System.out.println(\" \" + new Date().toString() + \" \" + db + \" Fetch > No succesful search for query : \" + this.queries.get(i));\n }\n }\n }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(page); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"int getPage();",
"Map<String, String> getCachedLinks(Page page);",
"WebCrawlerData retrieve(String url);",
"public static void main(String[] args) {\n final String filename = \"data/hungryGoWhereV2.csv\";\n try (final BusinessStorage storage = new BusinessStorage(filename)) {\n\n storage.append(Business.getHeader());\n\n final Session session = Session.builder()\n .put(STORAGE_KEY, storage)\n .build();\n\n try (final Crawler crawler = crawler(fetcher(), session).start()) {\n LOGGER.info(\"starting crawler...\");\n\n\n String csvFile = \"data/hungryGoWhere.csv\";\n String line = \"\";\n String cvsSplitBy = \",\";\n int counter = 2;\n ListingHandler handler = new ListingHandler();\n\n try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) {\n int otherCounter = 1;\n while ((line = br.readLine()) != null) {\n String[] information = line.split(cvsSplitBy);\n\n if(counter == otherCounter){\n final String nextPageUrl = information[0];\n crawler.getScheduler().add(new VRequest(nextPageUrl), handler);\n// System.out.println(information[0] + \" \" + counter);\n counter ++;\n }\n otherCounter ++;\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n// final String startUrl = \"https://www.hungrygowhere.com/singapore/cafe_2000/\";\n// crawler.getScheduler().add(new VRequest(startUrl), new ListingHandler());\n } catch (Exception e) {\n LOGGER.error(\"Could not run crawler: \", e);\n }\n\n } catch (IOException e) {\n LOGGER.error(\"unable to open file: {}, {}\", filename, e);\n }\n }",
"private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n Node node;\n if (link.toString().contains(\"?id=1\") && !books.contains(link)) {\n node = populateNode(link);\n depth = 2;\n books.add(node);\n } else if (link.toString().contains(\"?id=2\") && !movies.contains(link)) {\n node = populateNode(link);\n depth = 2;\n movies.add(node);\n } else if (link.toString().contains(\"?id=3\") && !music.contains(link)) {\n node = populateNode(link);\n depth = 2;\n music.add(node);\n }\n }\n }",
"List<Activity> findAllPageable(int page, int size);",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n Log.d(\"DEBUG\", \"network continue load before count:\" + tweets.size());\n loadNextDataFromApi(page, view);\n }",
"public void iterateThroughtEachElement(){\r\n ArrayList<String> links = examineHTML.getHrefOffers();\r\n \r\n int index = 0;\r\n \r\n for(String link:links){\r\n getHTMLOffer(link, index);\r\n ++index;\r\n }\r\n /*for(int i = 0; i < 10; i++){\r\n getHTMLOffer(links.get(i), index);\r\n ++index;\r\n }*/\r\n \r\n analyzeEachOffer();\r\n }",
"public int scrape(String[] urls, String outputFolderName, String outputFileName, Long contextCounter, @Nullable Boolean dynamic)\n\t\t\tthrows FourZeroFourException, JsonLDInspectionException, CannotWriteException, MissingMarkupException {\n\n\n\t\tint index = 0;\n\n\t\tfor (String url : urls) {\n\n\t\t\turl = fixURL(url);\n\n\t\t\tString html = \"\";\n\t\t\t// The dynamic boolean determines if the scraper should start using selenium or JSOUP to scrape the information (dynamic and static respectively)\n\n\t\t\tif (dynamic) {\n\t\t\t\tlogger.info(\"dynamic scraping setting\");\n\t\t\t\thtml = wrapHTMLExtraction(url);\n\t\t\t} else {\n\t\t\t\tlogger.info(\"static scraping setting\");\n\t\t\t\thtml = wrapHTMLExtractionStatic(url);\n\t\t\t}\n\n\n\t\t\tif (html == null || html.contentEquals(\"\")){\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\tif (logger.isTraceEnabled()) {\n\t\t\t\tlogger.trace(\"Read following html ==============================================================\");\n\t\t\t\tlogger.trace(html);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\thtml = injectId(html, url);\n\t\t\t\tif (logger.isTraceEnabled()) {\n\t\t\t\t\tlogger.trace(\"Same HTML after injecting ID ==============================================================\");\n\t\t\t\t\tlogger.trace(html);\n\t\t\t\t}\n\t\t\t} catch (MissingHTMLException e) {\n\t\t\t\tlogger.error(e.toString());\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\tDocumentSource source = new StringDocumentSource(html, url);\n\t\t\tIRI sourceIRI = SimpleValueFactory.getInstance().createIRI(source.getDocumentIRI());\n\n\t\t\tString n3 = getTriplesInNTriples(source);\n\t\t\tif (n3 == null)\n\t\t\t\tthrow new MissingMarkupException(url);\n\n\t\t\tModel updatedModel = null;\n\t\t\ttry {\n\t\t\t\tupdatedModel = processTriples(n3, sourceIRI, contextCounter);\n\t\t\t} catch (NTriplesParsingException e1) {\n\t\t\t\tlogger.error(\"Failed to process triples into model; the NTriples generated from the URL (\" + url\n\t\t\t\t\t\t+ \") could not be parsed into a model.\");\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tif (updatedModel == null){\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\t//FIXME here you have to do the writing in the same folder if it is a sitemap, pass parameter boolean flag and loop until all url are parsed and at the end write to folder\n\t\t\tif(index == 0){\n\t\t\t\tFile directory = new File(outputFolderName);\n\t\t\t\tif (!directory.exists())\n\t\t\t\t\tdirectory.mkdir();\n\n\t\t\t\tif (outputFileName == null) {\n\t\t\t\t\toutputFileName = outputFolderName + \"/\" + contextCounter + \".nq\";\n\t\t\t\t} else {\n\t\t\t\t\toutputFileName = outputFolderName + \"/\" + outputFileName + \".nq\";\n\t\t\t\t}\n\n\t\t\t\ttry (PrintWriter out = new PrintWriter(new File(outputFileName))) {\n\n\t\t\t\t\tRio.write(updatedModel, out, RDFFormat.NQUADS);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Problem writing file for \" + url, e);\n\t\t\t\t\tthrow new CannotWriteException(url);\n\t\t\t\t}\n\n\t\t\t\tif (!new File(outputFileName).exists())\n\t\t\t\t\tSystem.exit(0);\n\n\t\t\t} else {\n\t\t\t\ttry (FileWriter out = new FileWriter(new File(outputFileName), true)) {\n\t\t\t\t\t//try (PrintWriter out = new PrintWriter(new File(outputFileName))) {\n\t\t\t\t\tRio.write(updatedModel, out, RDFFormat.NQUADS, new WriterConfig().set(BasicWriterSettings.PRETTY_PRINT, true));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Problem writing file for \" + url, e);\n\t\t\t\t\tthrow new CannotWriteException(url);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tindex++;\n\t\t}\n\n\n\n\t\t//return true;\n\t\treturn -1;\n\t}",
"private int getHitsAndArticlesByURL(Category node, String url)\r\n\t{\r\n\t\tDocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance();\r\n\t\tint NumRes = 0;\r\n\t\tString totalHits;\r\n\t\ttry{\r\n\t\t\tURL queryurl = new URL(url);\r\n\t\t\tURLConnection connection = queryurl.openConnection();\r\n\t\t\tconnection.setDoInput(true);\r\n\t\t\tInputStream inStream = connection.getInputStream();\r\n\t\t\tDocumentBuilder dombuilder = domfac.newDocumentBuilder();\r\n\t\t\tDocument doc = dombuilder.parse(inStream);\r\n\t\t\tElement root = doc.getDocumentElement();\r\n\t\t\tNodeList resultset_web = root.getElementsByTagName(\"resultset_web\");\r\n\t\t\tNode resultset = resultset_web.item(0);\r\n\t\t\t\r\n\t\t\ttotalHits = resultset.getAttributes().getNamedItem(\"totalhits\").getNodeValue();\r\n\t\t\tNumRes = Integer.parseInt(totalHits);\r\n\t\t\t\r\n\t\t\tint count = 0;\r\n\t\t\tNodeList results = resultset.getChildNodes(); \r\n\t\t\tif(results != null)\r\n\t\t\t{\t\t\t\r\n\t\t\t\tfor(int i = 0 ; i < results.getLength(); i++){\r\n\t\t\t\t\tNode result = results.item(i);\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tArticle newArticle = new Article();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(result.getNodeType()==Node.ELEMENT_NODE){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(Node node1 = result.getFirstChild(); node1 != null; node1 = node1.getNextSibling()){\r\n\t\t\t\t\t\t\tif(node1.getNodeType()==Node.ELEMENT_NODE){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(node1.getNodeName().equals(\"url\") && node1.getFirstChild() != null && count < 4){\r\n\t\t\t\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\t\t\tString pageUrl = node1.getFirstChild().getNodeValue();\r\n\t\t\t\t\t\t\t\t\tArticle article = new Article();\r\n\t\t\t\t\t\t\t\t\tarticle.URL = pageUrl;\r\n\t\t\t\t\t\t\t\t\tarticle.words = getWordsLynx.runLynx(pageUrl);\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tnode.articles.add(article);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(ParserConfigurationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}catch(SAXException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\treturn NumRes;\r\n\t}",
"public void beginCrawling() {\n\n if (urlsFile != null\n && emailsFile != null\n && urlsWriter != null\n && emailsWriter != null) {\n crawl(startUrl);\n }\n }",
"public void indexing(String seedPage) {\n webCrawler wbc = new webCrawler();\n webPage wbp = new webPage();\n urlList = wbc.crawl(seedPage);\n for(int i = 0; i < urlList.size(); i++) {\n String url = urlList.get(i);\n try {\n Document doc = wbp.getContent(url);\n finalWords = wbp.getAllWords(url);\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void Crawl(String startUrl) {\n HashSet crawledList = new HashSet();\n LinkedHashSet toCrawlList = new LinkedHashSet();\n // Add start URL to the To Crawl list.\n toCrawlList.add(startUrl);\n\n // Get URL at bottom of the list.\n String url = (String) toCrawlList.iterator().next();\n // Remove URL from the To Crawl list.\n toCrawlList.remove(url);\n // Convert string url to URL object.\n URL verifiedUrl = verifyUrl(url);\n\n // Add page to the crawled list.\n crawledList.add(url);\n // Download the page at the given URL.\n String pageContents = downloadPage(verifiedUrl);\n\n if (pageContents != null && pageContents.length() > 0) {\n // Retrieve list of valid links from page.\n ArrayList links = retrieveLinks(verifiedUrl, pageContents, crawledList);\n // Add links to the To Crawl list.\n toCrawlList.addAll(links);\n\n }\n\n System.out.println(pageContents);\n\n }",
"public URLSpout() {\n \tURLSpout.activeThreads = new AtomicInteger();\n \tlog.debug(\"Starting URL spout\");\n \t\n \ttry { \t\t\n\t\t\treader = new BufferedReader(new FileReader(\"URLDisk.txt\"));\n\t\t\tint num_lines = XPathCrawler.getInstance().getFileCount().get();\n\t\t\tfor (int i = 0; i < num_lines; i++) {\n\t\t\t\treader.readLine(); //set reader to latest line\n\t\t\t}\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"private void loadData() {\n\n if (mIsLoading) {\n return;\n }\n\n String url = mSiteData.getUrl();\n\n if (!mIsRefreshMode) {\n //if (mMaxPage > 0 && mCurrentPage > mMaxPage) {\n // return;\n //}\n //Log.e(mTag, \"mMaxPage: \" + mMaxPage);\n\n if (mCurrentPage > 1) {\n switch (mSiteData.getId()) {\n case Config.BLOG_ID_AKB48_TEAM8:\n url = url + \"?p=\" + mCurrentPage;\n break;\n case Config.BLOG_ID_NGT48_MANAGER:\n url = url + \"lite/?p=\" + mCurrentPage;\n break;\n case Config.BLOG_ID_SKE48_SELECTED:\n case Config.BLOG_ID_NMB48_OFFICIAL:\n url = url + \"page-\" + mCurrentPage + \".html\";\n break;\n }\n //showToolbarProgressBar();\n }\n }\n\n String userAgent = Config.USER_AGENT_WEB;\n switch (mSiteData.getId()) {\n case Config.BLOG_ID_SKE48_SELECTED:\n case Config.BLOG_ID_NMB48_OFFICIAL:\n case Config.BLOG_ID_NGT48_MANAGER:\n case Config.BLOG_ID_NGT48_PHOTOLOG:\n userAgent = Config.USER_AGENT_MOBILE;\n break;\n }\n\n mIsLoading = true;\n\n if (!mIsFirst && !mIsRefreshMode) {\n mLoLoadingMore.setVisibility(View.VISIBLE);\n }\n\n //Log.e(mTag, url);\n requestData(url, userAgent);\n }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"private static void prePageFetch() {\n WEB_CLIENT.getOptions().setJavaScriptEnabled(false);\n WEB_CLIENT.getOptions().setThrowExceptionOnFailingStatusCode(false);\n\n // just turns off all the red stuff from the console\n java.util.logging.Logger.getLogger(\"com.gargoylesoftware.htmlunit\").setLevel(Level.OFF);\n }",
"public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }",
"Page getPage();",
"Page<Visited> findAll(Pageable pageable);",
"public int getPageCount() { return _pages.size(); }",
"static Page Download(){\n // TODO: reference to fetch to download webpages\n WebURL url = queue.poll();\n // call http request to get the web page\n return null;\n }",
"public void start(){\n\t\tboolean readFromFile = readFromIndex();\r\n\t\tif (!readFromFile){\t\r\n\t\t\tfor (int i = 0;i<1000;++i){\r\n\t\t\t\tString file = \"../crawler/pages/page\"+i+\".html\";\r\n\t\t\t\taddFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }",
"public List<Element> monitorMainPage(){\n\t\tSystem.out.println(\"monitor main Page\");\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(\"https://www.supremenewyork.com/shop/all\");\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tElements elements = document.getElementsByClass(\"inner-article\");\n\t\tList<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement link = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(link);\n\t\t}\n\t\tresults = articlesGeneral;\t\t\n\n\t\treturn results;\n\n\t}",
"public static void leechBBC(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.bbc.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on BBC\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n String urlname = \"https://www.bbc.com/news/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n String[] temp1 = news[1].split(\"-\");\r\n \r\n try{ // if the serial is not attached\r\n Integer.parseInt(temp1[temp1.length-1]);\r\n }\r\n catch(Exception e){ continue; };\r\n \r\n if(temp1.length < 2) // if it is not even a topic\r\n continue;\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * BBC_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }",
"@Override\r\n\tpublic String getPage() {\n\t\ttry {\r\n\t\t\tWriter wr = new OutputStreamWriter(\r\n\t\t\t\t\tnew FileOutputStream(OutputPath), \"utf-8\");\r\n\t\t\tList<String> colleges = IOUtil.read2List(\r\n\t\t\t\t\t\"property/speciality.properties\", \"GBK\");\r\n\t\t\tfor (String college : colleges) {\r\n\t\t\t\tfor (int i = 1; i < 10000; i++) {\r\n\t\t\t\t\tString html = getSeach(college, null, null, 1, i);\r\n\t\t\t\t\tif (html.equals(\"\")) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tDocument page = Jsoup.parse(html);\r\n\t\t\t\t\tElements authors = page.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\"class\", \"listBox wauto clearfix\");\r\n\t\t\t\t\tfor (Element author : authors) {\r\n\t\t\t\t\t\tElement e = author.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\"xuezheName\").get(0);\r\n\t\t\t\t\t\tElement a = e.getElementsByAttributeValue(\"target\",\r\n\t\t\t\t\t\t\t\t\"_blank\").first();\r\n\t\t\t\t\t\tString name = a.text();\r\n\t\t\t\t\t\tString school = author.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\t\"class\", \"f14\").text();\r\n\t\t\t\t\t\tString id = a.attr(\"href\");\r\n\t\t\t\t\t\tString speciallity = author\r\n\t\t\t\t\t\t\t\t.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\t\t\"xuezheDW\").first().text();\r\n\t\t\t\t\t\twr.write(school + \"\\t\" + id + \"\\t\" + speciallity\r\n\t\t\t\t\t\t\t\t+ \"\\r\\n\");\r\n\t\t\t\t\t\tSystem.out.println(i + \":\" + school);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Before\n public void setup() throws IOException {\n REQUEST_FILE_MAPPING.put(TEST_URL_PAGINATION_1, \"/pagination_1.html\");\n REQUEST_FILE_MAPPING.put(TEST_URL_PAGINATION_2, \"/pagination_2.html\");\n REQUEST_FILE_MAPPING.put(TEST_URL_PAGINATION_ABSENT, \"/pagination_3.html\");\n REQUEST_FILE_MAPPING.put(TEST_URL_AD_CONTENT_1, \"/ad_content_1.html\");\n\n\n JSoupDocumentRetriever jSoupDocumentRetriever = mock(JSoupDocumentRetriever.class);\n when(jSoupDocumentRetriever.getDocument(anyString())).thenAnswer(new Answer<Document>() {\n @Override\n public Document answer(InvocationOnMock invocation) throws Throwable {\n Object[] args = invocation.getArguments();\n String url = (String) args[0];\n\n return getDocument(REQUEST_FILE_MAPPING.get(url));\n }\n });\n\n when(jSoupDocumentRetriever.getDocument(anyString(), anyInt())).thenAnswer(new Answer<Document>() {\n @Override\n public Document answer(InvocationOnMock invocation) throws Throwable {\n Object[] args = invocation.getArguments();\n String url = (String) args[0];\n\n return getDocument(REQUEST_FILE_MAPPING.get(url));\n }\n });\n\n when(jSoupDocumentRetriever.getNumberedPage(anyString(), anyInt())).thenAnswer(new Answer<String>() {\n @Override\n public String answer(InvocationOnMock invocation) throws Throwable {\n Object[] args = invocation.getArguments();\n String url = (String) args[0];\n int pageNumber = (Integer) args[1];\n\n return new JSoupDocumentRetriever().getNumberedPage(url, pageNumber);\n }\n });\n\n imobiParser = new ImobiParser(jSoupDocumentRetriever);\n }",
"private void getArticles() throws Exception {\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\n\n\t\t\tStringBuilder uriBuilder = new StringBuilder(BASE_URL);\n\t\t\turiBuilder.append(mURL);\n\n\t\t\tHttpGet request = new HttpGet(uriBuilder.toString());\n\t\t\tHttpResponse response = httpClient.execute(request);\n\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\n\t\t\tif (status != HttpStatus.SC_OK) {\n\n\t\t\t\t// Log whatever the server returns in the response body.\n\t\t\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\n\t\t\t\tresponse.getEntity().writeTo(ostream);\n\t\t\t\tmHandler.sendEmptyMessage(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tInputStream content = response.getEntity().getContent();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(content));\n\t\t\tStringBuilder result = new StringBuilder();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tresult.append(line);\n\t\t\t}\n\n\t\t\t// Clean up and close connection.\n\t\t\tcontent.close();\n\n\t\t\tString html = result.toString();\n\t\t\t//This is our regex to match each article\n\t\t\t//This website's html is not xml compatible so regex is next best thing\n\t\t\tPattern p = Pattern.compile(\"<td class=\\\"title\\\"><a href=\\\"(.*?)\\\".*?>(.*?)<\\\\/a>(<span class=\\\"comhead\\\">(.*?)<\\\\/span>)?.*?<\\\\/td><\\\\/tr><tr><td colspan=2><\\\\/td><td class=\\\"subtext\\\">.*? by <a href=\\\"user\\\\?.*?\\\">(.*?)<\\\\/a>.*?<a href=\\\"item\\\\?id=(.*?)\\\">\");\n\t\t\tMatcher m = p.matcher(html);\n\t\t\tList<Article> articles = new ArrayList<Article>();\n\t\t\twhile(m.find()) {\n\t\t\t\tString url = m.group(1);\n\t\t\t\tString title = m.group(2);\n\t\t\t\tString domain = m.group(4);\n\t\t\t\tString author = m.group(5);\n\t\t\t\tString discussionID = m.group(6);\n\t\t\t\tArticle eachArticle = new Article(title, domain, url, author, discussionID);\n\t\t\t\tarticles.add(eachArticle); \n\t\t\t}\n\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putParcelableArrayList(\"articles\", (ArrayList<? extends Parcelable>) articles);\n\t\t\tmsg.setData(bundle);\n\t\t\tmHandler.sendMessage(msg);\n\t\t}",
"public interface Crawler {\n\t/**\n\t * Gets the location where crawled content is saved.\n\t * \n\t * @return location string of crawled content\n\t */\n\tpublic String getDumpLocation();\n\n\t/**\n\t * Starts the crawling from the root source of target.\n\t * \n\t * @throws IOException\n\t */\n\tpublic void disperse() throws IOException;\n\n\t/**\n\t * Crawls every <code>url</code> within the <code>target</code> url\n\t * \n\t * @param url\n\t * url which is either <code>target</code> or the one nested\n\t * inside\n\t * @param target\n\t * the target url declared to crawl\n\t * @throws IOException\n\t */\n\tpublic void crawl(final String url, final String target) throws IOException;\n\n\t/**\n\t * Picks up data from webpage.\n\t * \n\t * @param doc\n\t * <code>Document</code> retrieved from <code>url</code>\n\t * @param url\n\t * @return list of <code>Nugget</code> objects consisting of relevant data\n\t */\n\tpublic List<Nugget> scavenge(final Document doc, final String url);\n\n}"
] | [
"0.59827656",
"0.55267704",
"0.5469996",
"0.5464554",
"0.5449969",
"0.54482967",
"0.54414624",
"0.5390499",
"0.5372284",
"0.5350453",
"0.5311134",
"0.5307786",
"0.5268598",
"0.5220493",
"0.52129936",
"0.5206582",
"0.51699764",
"0.51551276",
"0.51388574",
"0.5108591",
"0.50896984",
"0.5088251",
"0.50597",
"0.50543594",
"0.502015",
"0.5016578",
"0.5001115",
"0.49975303",
"0.49884656",
"0.4980882",
"0.49584696",
"0.49534175",
"0.4951862",
"0.4941122",
"0.49397036",
"0.49343047",
"0.4920968",
"0.4919679",
"0.4913504",
"0.49004963",
"0.4895109",
"0.48881546",
"0.48830935",
"0.4875142",
"0.4875142",
"0.48662087",
"0.48419234",
"0.48353812",
"0.48325747",
"0.48260096",
"0.48260096",
"0.48203772",
"0.48176998",
"0.4813934",
"0.48093313",
"0.48038808",
"0.479978",
"0.47992265",
"0.4796447",
"0.47860107",
"0.47860095",
"0.47845164",
"0.47812274",
"0.4778699",
"0.47736183",
"0.47722045",
"0.47707197",
"0.4770691",
"0.47658396",
"0.4764005",
"0.4751955",
"0.47505423",
"0.4750511",
"0.47414845",
"0.47414845",
"0.47409886",
"0.4734552",
"0.472707",
"0.47242907",
"0.4722525",
"0.47175553",
"0.4716781",
"0.47164124",
"0.47144762",
"0.47121963",
"0.47116494",
"0.4711408",
"0.4708006",
"0.47078457",
"0.47061196",
"0.4703779",
"0.47017902",
"0.47016138",
"0.46985918",
"0.46818572",
"0.46687776",
"0.46675602",
"0.4662341",
"0.46616298",
"0.46593165",
"0.46547908"
] | 0.0 | -1 |
Stabilisce se la modifica della tipologia ha avuto successo | public static boolean createFile() throws IOException {
String bytes = "";
byte[] write = bytes.getBytes(); //Salva i bytes della stringa nel byte array
if(!fileName.exists()){
Path filePath = Paths.get(fileName.toString()); //Converte il percorso in stringa
Files.write(filePath, write); // Creare il File
Main.log("File \"parametri\" creato con successo in " + fileName.toString());
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }",
"public void modificar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puede dejar cuadros en blanco\");//C.P.M Verificamos que todas las casillas esten llenas de lo contrario lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario todo esta bien y prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos al modelo la informacion\r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.modificar();//C.P.M ejecutamos la funcion modificar del modelo y esperamos algun error\r\n if (Error.equals(\"\")) {//C.P.M si el error viene vacio es que no ocurrio algun error \r\n JOptionPane.showMessageDialog(null, \"La configuracion se modifico correctamente\");\r\n } else {//C.P.M de lo contrario lo notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, Error);\r\n }\r\n }\r\n }",
"public boolean ModificarUsuario(Usuario creador, int id, String nombreMostrar, boolean admin,int tipoPersonal,int tipodescuento, boolean notas, boolean habilitacion,boolean profesor, int ciProfesor){\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Update sistemasEM.usuarios set mostrar=?, admin=?, permisosPersonal=?, permisosDescuento=?, notas=?, habilitacion=?, profesor=?,ciProfesor=? where id=\"+id;\r\n PreparedStatement s= connection.prepareStatement(sql);\r\n int i=1;\r\n s.setString(i++, nombreMostrar);\r\n s.setBoolean(i++, admin);\r\n s.setInt(i++, tipoPersonal);\r\n s.setInt(i++, tipodescuento);\r\n s.setBoolean(i++, notas);\r\n s.setBoolean(i++, habilitacion);\r\n s.setBoolean(i++, profesor);\r\n s.setInt(i++, ciProfesor);\r\n int result = s.executeUpdate();\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return false;\r\n }",
"@Override\r\n\t\t\tpublic void onSuccess() {\n\t\t\t\tfinal User c = userManager.getCurrentUser(User.class);\r\n\t\t\t\tShowToast(\"修改成功:\"+c.getNick());\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }",
"public boolean estaEnModoAvion();",
"private void checkRole() {\n if (tools.checkNewPassword(new String(txtNewPass.getPassword()))) {\n if (new String(txtNewPass.getPassword()).equals(new String(txtConfirmPass.getPassword()))) {\n try {\n controller.changePassword(employee.getUsername(), new String(txtNewPass.getPassword()));\n Tools tools = new Tools();\n tools.sendMessage(employee, 3);\n tampilPesan(\"Password successfully updated.\");\n Login login = new Login(sessionFactory);\n this.getParent().add(login);\n login.setLocation(480, 200);\n login.setVisible(true);\n \n dispose();\n } catch (SQLException ex) {\n Logger.getLogger(ChangePasswordView.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n tampilPesan(\"New password doesn't match with confirm password\");\n }\n } else {\n tampilPesan(\"Password must have 8 characters minimum containing Uppercase, Lowercase, and number!!!\");\n }\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usuarioBean = (Dr_siseg_usuarioBean) this.manejoFacesContext.obtenerObjetoSession(\"usuario\");\n if(this.usuarioBean != null){\n estado = true;\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_ADMIN\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"ADMIN\";\n// this.disableBotonFinalizar=\"false\";\n// this.visibleImprimirComprobanteEncargado=\"true\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n\n }else{\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_PF1\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"PF1\";\n// this.disableBotonFinalizar=\"true\";\n// this.visibleImprimirComprobanteEncargado=\"false\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n }\n }\n\n }else{\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n }\n }catch(Exception ex){\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n // this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppMADEB/cr.ac.una.reg.info.contenido/moduloFuncionario/estudiante/e_editarDireccion.jspx\");\n }//\n return estado;\n }",
"public int modificar(TratamientoVO tratamiento) {\n\t\treturn 0;\n\t}",
"private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}",
"public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }",
"public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }",
"public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,PresuTipoProyecto presutipoproyecto,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(presutipoproyecto.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(presutipoproyecto.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!presutipoproyecto.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(presutipoproyecto.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }",
"private boolean puedeModificarAprRepOtroUsuario(String empresa, String local, String tipoDocumento, String codigoDocumento, String codigoVistoBueno, boolean checkSeleccionado, int fila, int columna){\n boolean blnRes=false;\n String strArlVisBueDbCodEmp=\"\", strArlVisBueDbCodLoc=\"\", strArlVisBueDbCodTipDoc=\"\", strArlVisBueDbCodDoc=\"\";\n String strArlVisBueDbCodVisBue=\"\", strArlVisBueDbEstVisBue=\"\", strArlVisBueDbCodUsr=\"\";\n String strTblVisBueDbCodEmp=empresa;\n String strTblVisBueDbCodLoc=local;\n String strTblVisBueDbCodTipDoc=tipoDocumento;\n String strTblVisBueDbCodDoc=codigoDocumento;\n String strTblVisBueDbCodVisBue=codigoVistoBueno;\n boolean blnChkSel=checkSeleccionado;\n int intFil=fila;\n int intCol=columna;\n int w=0;\n //System.out.println(\"puedeModificarAprRepOtroUsuario: \" + arlDatCodVisBueDB.toString());\n try{\n for(int k=0; k<arlDatCodVisBueDB.size(); k++){\n w=0;\n strArlVisBueDbCodEmp=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_EMP_DB);\n strArlVisBueDbCodLoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_LOC_DB);\n strArlVisBueDbCodTipDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_TIP_DOC_DB);\n strArlVisBueDbCodDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_DOC_DB);\n strArlVisBueDbCodVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB);\n strArlVisBueDbEstVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB);\n strArlVisBueDbCodUsr=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB);\n\n if(strTblVisBueDbCodEmp.equals(strArlVisBueDbCodEmp)){\n if(strTblVisBueDbCodLoc.equals(strArlVisBueDbCodLoc)){\n if(strTblVisBueDbCodTipDoc.equals(strArlVisBueDbCodTipDoc)){\n if(strTblVisBueDbCodDoc.equals(strArlVisBueDbCodDoc)){\n if(strArlVisBueDbCodVisBue.equals(strTblVisBueDbCodVisBue)){\n if( (strArlVisBueDbEstVisBue.equals(\"A\")) || (strArlVisBueDbEstVisBue.equals(\"D\")) ){\n if(! strArlVisBueDbCodUsr.equals(\"\"+objParSis.getCodigoUsuario())){\n objTblMod.setChecked(blnChkSel, intFil, intCol);\n mostrarMsgInf(\"<HTML>El visto bueno que intenta modificar ya fue Aprobado/Reprobado por otro usuario.<BR>El otro usuario debe reversar para que ud. pueda realizar la Aprobación/Reprobación,<BR> o dicho usuario deberá modificarlo. </HTML>\");\n blnRes=true;\n break;\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,TarjetaCredito tarjetacredito,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tarjetacredito.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tarjetacredito.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tarjetacredito.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tarjetacredito.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"private void modificarViaje(Viaje vje2, Boolean estabaCargado2,\r\n\t\t\tBoolean estabaPago2, Boolean estabaDescargado2,\r\n\t\t\tBoolean estabaCobrado2, Boolean estabaPagoFlete2,\r\n\t\t\tBoolean estabaPagoDescargador2) {\r\n\t\tgreetingService.ModificarViaje(vje2, estabaCargado2, estabaPago2,\r\n\t\t\t\testabaDescargado2, estabaCobrado2, estabaPagoFlete2,\r\n\t\t\t\testabaPagoDescargador2, new AsyncCallback<String>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\terrorLabel.setText(\"Error al modificar el viaje.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\tif (chkDescargarPago.getValue()\r\n\t\t\t\t\t\t\t\t|| chkDescargar.getValue()) {\r\n\t\t\t\t\t\t\tDouble tonOrigen = Double.parseDouble(tbToneladas\r\n\t\t\t\t\t\t\t\t\t.getText());\r\n\t\t\t\t\t\t\tDouble tonRealDescargadas = Double\r\n\t\t\t\t\t\t\t\t\t.parseDouble(tbDescargaRealToneladas\r\n\t\t\t\t\t\t\t\t\t\t\t.getText());\r\n\t\t\t\t\t\t\tif (tonOrigen > tonRealDescargadas) {\r\n\t\t\t\t\t\t\t\tvje.setKilos(String.valueOf(tonOrigen\r\n\t\t\t\t\t\t\t\t\t\t- tonRealDescargadas));\r\n\t\t\t\t\t\t\t\t//TODO Al cerrar el viaje sobrante \r\n\t\t\t\t\t\t\t\t//se debe cerrar la ventana.\r\n\t\t\t\t\t\t\t\tCrearViaje viajeSobrante = new CrearViaje(vje,\r\n\t\t\t\t\t\t\t\t\t\tlv);\r\n\t\t\t\t\t\t\t\tdialogBox = createDialogBox(\"Crear viaje.\",\r\n\t\t\t\t\t\t\t\t\t\tviajeSobrante);\r\n\t\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlv.cerrarDialogBox();\r\n\t\t\t\t\t\t// Window.alert(\"Se modifico el viaje correctamente.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}",
"private void salir(){\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Salir\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.exit(0);\r\n\t}",
"boolean verificarLogin(FichaDocente regDcnt);",
"@Test\r\n public void testModificarUsuario() {\r\n System.out.println(\"ModificarUsuario\");\r\n Usuario pusuario = new Usuario();\r\n pusuario.setCodigo(1);\r\n pusuario.setNroDocumento(\"93983454\");\r\n pusuario.setNombre(\"Maria\");\r\n pusuario.setApellidoPaterno(\"Estrada\");\r\n pusuario.setApellidoMaterno(\"Perez\");\r\n pusuario.setUsuario(\"MEstrada\");\r\n pusuario.setContrasenha(\"Estrada9829\");\r\n pusuario.setConfirmContrasenha(\"Estrada9829\");\r\n pusuario.setEmail(\"mestrada@gmail.com\");\r\n pusuario.setFechaIngreso(new Date(2012, 8, 21));\r\n pusuario.setCargo(\"Vendedor\");\r\n Rol rol1 = new Rol();\r\n rol1.setCodigoRol(1);\r\n rol1.setDescripcionRol(\"Vendedor\");\r\n pusuario.setRol(rol1);\r\n \r\n BLUsuario instance = new BLUsuario();\r\n Result expResult = new Result(ResultType.Ok, \"El usuario ha sido modificado correctamente.\", null);\r\n Result result = instance.ModificarUsuario(pusuario);\r\n \r\n System.out.println(result.getMensaje());\r\n assertEquals(expResult.getDetalleMensaje(), result.getDetalleMensaje());\r\n assertEquals(expResult.getMensaje(), result.getMensaje()); \r\n assertEquals(expResult.getTipo(), result.getTipo()); \r\n }",
"public boolean cadastrarLogin(UsuarioLogin login){\n \n sql = \"INSERT INTO usuario_login(nome_usr, senha_usr, tipo_usr) VALUES (? , ?, ?)\";\n \n con = ConnectionFactory.getConnetion();\n try{\n ps = con.prepareStatement(sql);\n ps.setString(1, login.getNome_usr());\n ps.setString(2, login.getSenha_usr());\n ps.setString(3, login.getTipo_usr());\n ps.executeUpdate();\n\n// chama classe para alterar cor do JOptionPane\n// Mensagem msg = new Mensagem();\n// msg.showMessageDialog(null, \"Usuário cadastrado com Sucesso!\", \"Confirmação\", JOptionPane.PLAIN_MESSAGE);\n \n JOptionPane.showMessageDialog(null, \"Usuário cadastrado com Sucesso!\", \"Aviso\", JOptionPane.WARNING_MESSAGE);\n return true;\n }catch (SQLException sqle) {\n String sqlState = sqle.getSQLState();\n if(sqlState.equals(\"23505\")){ \n JOptionPane.showMessageDialog(null, \"Usuário já cadastrado!\", \"Aviso\", \n JOptionPane.WARNING_MESSAGE);\n }else{\n JOptionPane.showMessageDialog(null, \"Falha na Conexão: \" + sqle);\n// JOptionPane.showMessageDialog(null, \"Falha na Conexão!\", \"Aviso\", JOptionPane.WARNING_MESSAGE);\n }\n }finally{\n ConnectionFactory.closeConnection(con, ps);\n }\n return false;\n }",
"public boolean checkUniqueLoginOnUpdate(Object objectOfRole) {\n \tif(objectOfRole instanceof Patient) {\n \t\tPatient patient = (Patient) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(patient.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(patient.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(patient.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Employee) {\n \t\tEmployee employee = (Employee) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(employee.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(employee.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(employee.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Doctor) {\n \t\tDoctor doctor = (Doctor) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(doctor.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(doctor.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(doctor.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Owner) {\n \t\tOwner owner = (Owner) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(owner.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(owner.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(owner.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} \n return false;\n }",
"public void verificarRol() throws IOException {\n\t\tif (FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"email\") != null) {\n\t\t\tObject rol = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"rol\");\n\n\t\t\tif ((Integer) rol != 1) {\n\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"home.xhtml\");\n\t\t\t} else {\n\t\t\t\t// System.out.println(\"sin permisos\");\n\t\t\t}\n\t\t}\n\t}",
"private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}",
"public String modificarUsuario() {\n\t\tString stringIdUsuario = session.getAttribute(\"id\").toString();\n\t\tInteger intIdUsuario = Integer.parseInt(stringIdUsuario);\n\t\t\n\t\tFacesContext con = FacesContext.getCurrentInstance();\n\t\tHttpServletRequest request = (HttpServletRequest) con.getExternalContext().getRequest();\n\t\tString cambioDeTexto = request.getParameter(\"myForm:texto\");\n\t\tString passwordViejo = request.getParameter(\"myForm:password\");\n\t\tString passwordNuevo = request.getParameter(\"myForm:passwordNuevo\");\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorId(intIdUsuario);\n\t\tif (usuarioDb != null) {\n\t\t\tif(usuarioService.validarNoCaracteresEspeciales(cambioDeTexto)==true) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" error al modificar texto.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t\terror =\"Campo texto no permitido\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror = usuarioService.usuarioModificaPasswordyTexto(cambioDeTexto, passwordViejo, passwordNuevo, intIdUsuario);\n\t\t\t}\n\t\t}\n\t\treturn \"home\";\n\t\t\n\t}",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }",
"private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }",
"@Action( value=\"modificaUser\", results= {\n @Result(name=SUCCESS, type=\"dispatcher\", location=\"/jsp/welcome.jsp\") } ) \t \n public String modificaUser() \n {\t \t \n \t \n \t ActionContext contexto = ActionContext.getContext();\n \t \n \t ResultSet result1=null;\n \t ResultSet result3=null;\n \t PreparedStatement ps=null;\n \t PreparedStatement ps2=null;\n \t PreparedStatement ps3=null;\n \t try \n \t {\t \n \t\t getConection();\n \t\t \n \t\t String consulta2 = (\"SELECT * FROM peliculas;\");\n \t\t ps2 = con.prepareStatement(consulta2);\n \t\t result1=ps2.executeQuery();\n \t\t \n \t\t while(result1.next())\n \t\t {\n \t\t peli = new Peliculas(result1.getInt(\"id_peli\"),result1.getString(\"titulo\"),result1.getString(\"genero\"),result1.getString(\"director\"),result1.getString(\"actor1\"),result1.getString(\"actor2\"),result1.getString(\"anio\"),result1.getString(\"fotopeli\"),result1.getFloat(\"valoracion\"));\n \t\t listaPelis.add(peli);\n \t\t }\n \t\t if ((String) contexto.getSession().get(\"loginId\")!=null)\n\t {\n String consulta3 =(\"SELECT * FROM USUARIO WHERE nick= '\"+ (String) contexto.getSession().get(\"loginId\")+\"';\");\n ps3 = con.prepareStatement(consulta3);\n result3=ps3.executeQuery();\n \n while(result3.next()) {\n \t rol=result3.getString(\"tipo\");\n }\n } \n \t\t \n \t String consulta = (\"UPDATE USUARIO SET apellido='\"+ getApellido()+\"',passwd='\"+ getPasswd()+\"',nombre='\"+ getNombre()+\"',mail='\"+ getMail()+\"' WHERE nick='\"+ getNick()+\"';\");\n \t ps = con.prepareStatement(consulta);\n \n \t \n \t\t \n \t ps.executeUpdate();\n \n \t\t \n \t\t \n \t} catch (Exception e) \n \t{\n \t System.err.println(\"Error\"+e); \n \t return ERROR;\n \t} finally\n \t{ try\n {\n \t if(con != null) con.close();\n \t if(ps != null) ps.close();\n \t if(ps2 != null) ps2.close();\n \t if(result1 !=null) result1.close();\n \t } catch (Exception e) \n \t {\n \t System.err.println(\"Error\"+e); \n \t }\n \t}\n \treturn SUCCESS;\n }",
"private void fncConversacionPendienteSessionActiva() {\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == true && \r\n Storage.fncStorageEncontrarUnaLinea(perfil.stgChats, yoker) == true\r\n ){\r\n\r\n // Agrego un nuevo mensaje a la conversion original\r\n // por que si perfil me tiene como amigo pudo estar enviado mesajes... (Entonces es el más actualizado)\r\n String chat_original = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat_original, mensaje);\r\n\r\n // Registrar a perfil en mi cuenta o session_activa\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n\r\n // Regitrar a perfil en mi cuenta o session_activa (Este no es necesario)\r\n // Storage.fncStorageActualizarUnaLinea(session_activa.stgChats, perfil);\r\n\r\n // Clonar la conversion de perfil a session_activa (Entonces es el más actualizado)\r\n String chat_clone = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat_original), chat_clone);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Tienes una conversación pendiente con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n }else{ \r\n\r\n // Agrego un nuevo mensaje en la conversación de session_activa\r\n String chat = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat, mensaje);\r\n\r\n // Clonar la conversion de session_activa a perfil \r\n String chat_clone = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat), chat_clone);\r\n\r\n // * Verificar que los puedan conversar entre ellos ....\r\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == false && \r\n Storage.fncStorageEncontrarUnaLinea(session_activa.stgFriends, perfil_seleccionado) == false\r\n ){\r\n\r\n Storage.fncStorageActualizarUnaLinea(perfil.stgFriends, yoker);\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Haz recuperado la conversación con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n\r\n }else JOptionPane.showMessageDialog(null, \"Mensaje enviado.\"); \r\n } \r\n }",
"private static void registrarAuditoriaDetallesPresuTipoProyecto(Connexion connexion,PresuTipoProyecto presutipoproyecto)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getid_empresa().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getcodigo().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getnombre().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,DatoGeneralEmpleado datogeneralempleado,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(datogeneralempleado.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(datogeneralempleado.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!datogeneralempleado.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(datogeneralempleado.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }",
"private boolean SecuenciaValidacion() {\n String cuenta = jTextFieldUser.getText().trim();\n String contrasenia = new String(jPasswordFieldPswd.getPassword());\n\n JDialogSplash jDialogSplash = new JDialogSplash(this, ModalityType.APPLICATION_MODAL);\n jDialogSplash.setLocationRelativeTo(this);\n jDialogSplash.setVisible(true);\n\n if (cuenta.equals(id) && contrasenia.equals(pass)) {\n LOG.info(\"Logging successful\");\n return true;\n } else {\n LOG.info(\"Logging failed\");\n return false;\n }\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,PlantillaFactura plantillafactura,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(plantillafactura.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(plantillafactura.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!plantillafactura.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(plantillafactura.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onSuccess(\r\n\t\t\t\t\t\t\t\t\t\tResultadoActualizacionEntidad result) {\n\t\t\t\t\t\t\t\t\tvista.getBotonGuardar().setEnabled(false);\r\n\t\t\t\t\t\t\t\t\tvista.deshabilitarInputText();\r\n\t\t\t\t\t\t\t\t\tvista.getBotonCancelar().setText(\"Aceptar\");\r\n\t\t\t\t\t\t\t\t}",
"private void guardar() {\r\n\t\tif(Gestion.isModificado() && Gestion.getFichero()!=null){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Gestion.isModificado() && Gestion.getFichero()==null){\r\n\t\t\tguardarComo();\r\n\t\t}\r\n\t\telse if(frmLigaDeFtbol.getTitle()==\"Liga de Fútbol\" && !Gestion.isModificado())\r\n\t\t\tguardarComo();\r\n\t}",
"public int modificar(Connection conn, alertas objeto) {\r\n\t\ttry {\r\n\r\n\t\t\tPreparedStatement statement = conn\r\n\t\t\t\t\t.prepareStatement(\"update alertas set DESCRIPCION = ?, FECHA_INI = ?, FECHA_FIN = ?, ESTADO = ?, DESCRIPCION2 = ? where ID_ALERTA = ?\");\r\n\t\t\tstatement.setString(1, objeto.getDescripcion());\r\n\t\t\tstatement.setString(2, objeto.getFechaInicio());\r\n\t\t\tstatement.setString(3, objeto.getFechaDinalizacion());\r\n\t\t\tstatement.setString(4, objeto.getEstado());\r\n\t\t\tstatement.setString(5, objeto.getDescripcion2());\r\n\t\t\tstatement.setInt(6, objeto.getAlerta());\r\n\t\t\tstatement.execute();\r\n\t\t\tstatement.close();\r\n\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\"Se ha Modificado un Registro! \", \"Aviso!\",\r\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn 1;\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No se Modificó Registro :\"\r\n\t\t\t\t\t+ e.getMessage(), \"Alerta!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}",
"private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }",
"@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}",
"private boolean saveCGuias() {\r\n //Se asigna el valor del tipo de procedimiento que viene de ser ejecutado,\r\n // 1 si es una NUEVA guia\r\n // 2 si es una guia MODIFICADA\r\n int proceso = tipoOperacion; \r\n\r\n //Ejecuta los procesos predeterminados para el guardado de la guia\r\n setCurrentOperation();\r\n //Se asignan los valores del objeto \r\n boolean result = false;\r\n log_CGuias log_cguias = new log_CGuias();\r\n\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n log_cguias.setNumguia(tb_guias.getItems().get(i).getGuias()); \r\n log_cguias.setFeccaja(Date.valueOf(dt_relacion.getValue()));\r\n\r\n result = \r\n Ln.getInstance().save_log_CGuias_caja(log_cguias, proceso, i, ScreenName);\r\n }\r\n\r\n //Si el Resultado es correcto\r\n if(result){\r\n //Se Notifica al usuario\r\n tf_nroguia.setText(Datos.getNumRela());\r\n Gui.getInstance().showMessage(\"La \" + ScreenName + \" se ha Guardado Correctamente!\", \"I\");\r\n return true;\r\n } \r\n return true;\r\n }",
"private void isCanSave() {\r\n\t\tsalvar.setEnabled(!hasErroNome(nome.getText()) && !hasErroIdade(idade.getText()) && validaSituacao());\r\n\t}",
"private static void handleLogin(Operations o) {\n\t\tswitch(o)\n\t\t{\n\t\tcase ERROR:\n\t\t\tloginGUI.textField.setEnabled(true);\n\t\t\tloginGUI.textField_2.setEnabled(true);\n\t\t\tloginGUI.textField_1.setEnabled(true);\n\t\t\tloginGUI.EnablePassField();\n\t\t\tloginGUI.btnLogin.setEnabled(true);\n\t\t\tJOptionPane.showMessageDialog(LoginCont.mainframe, \"Error:User and/or Password is incorrect!\");\n\t\t\tloginGUI.btnExit.setEnabled(true);\n\t\t\tbreak;\n\t\tcase ALLOW_LOG:\n\t\t\tloginGUI.btnLogin.setEnabled(false);\n\t\t\tloginGUI.btnLogout.setEnabled(true);\n\t\t\tloginGUI.setVisible(false);\t\n\t\t\tMenuGUI mh1=new MenuGUI(loginGUI);\n\t\t\tString buttonNames[];\n\t\t\tbuttonNames = new String[]{\"Station Control\",\"Purchase Plan\",\"Modify Customer\",\"Manage Sales\", \"NFC Module\",\"Manage Fuel\",\"Messages\",\"Invoices\",\"Reports\", \"House Fuel Orders\"};\n\t\t\tmh1.setButtonNames(buttonNames);\n\t\t\t//get the user_type and user the string privilegeLevel to allow certain functions\n\t\t\tSystem.out.println(currUser.getUserType().toString()); // getting the usertype and user correctly\n\t\t\tboolean[] allowedButtons = currUser.getUserType().getPrivilegeLevels();\n\t\t\tfor(int i=0;i<allowedButtons.length;i++)\n\t\t\t{\n\t\t\t\tmh1.functionButton[i].setEnabled(allowedButtons[i]);\n\t\t\t\tmh1.functionButton[i].setVisible(allowedButtons[i]);\n\t\t\t}\n\t\t\tbreak; \n\t\tcase USER_ALREADY_LOGGED:\n\t\t\tJOptionPane.showMessageDialog(LoginCont.mainframe, \"Error:User Already Logged In!\");//do something else after wards like - get the full User Details and display a corresponding GUI\n\t\t\tloginGUI.textField.setEnabled(true);\n\t\t\tloginGUI.textField_2.setEnabled(true);\n\t\t\tloginGUI.textField_1.setEnabled(true);\n\t\t\tloginGUI.EnablePassField();\n\t\t\tloginGUI.btnLogin.setEnabled(true);\n\t\t\tloginGUI.btnExit.setEnabled(true);\n\t\t\tbreak;\n\t\t}\t\n\t}",
"public void verModificarDatosEntidad(String entidad, ArrayList entidadencontrada)\r\n\t{\r\n\t\tif(entidad.equalsIgnoreCase(\"Rol\"))\r\n\t\t{\r\n\t\t\tRol encontrado = (Rol)entidadencontrada.get(0);\r\n\t\t\tmodificardatosrol = new ModificarDatosRol(this, encontrado);\r\n\t\t\tmodificardatosrol.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Prueba\"))\r\n\t\t{\r\n\t\t\tPrueba encontrado = (Prueba)entidadencontrada.get(0);\r\n\t\t\tmodificardatosprueba = new ModificarDatosPrueba(this, encontrado);\r\n\t\t\tmodificardatosprueba.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Pregunta\"))\r\n\t\t{\r\n\t\t\tPregunta encontrado = (Pregunta)entidadencontrada.get(0);\r\n\t\t\tmodificardatospregunta = new ModificarDatosPregunta(this, encontrado);\r\n\t\t\tmodificardatospregunta.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Escala\"))\r\n\t\t{\r\n\t\t\tEscala encontrado = (Escala)entidadencontrada.get(0);\r\n\t\t\tmodificarescala = new ModificarDatosEscala(this, encontrado);\r\n\t\t\tmodificarescala.setVisible(true);\r\n\t\t\tcaracteristicasescal.clear();\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Competencia\"))\r\n\t\t{\r\n\t\t\tCompetencia encontrado = (Competencia)entidadencontrada.get(0);\r\n\t\t\tmodificarcompetencia = new ModificarDatosCompetencia(this, encontrado);\r\n\t\t\tmodificarcompetencia.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Caracteristica\"))\r\n\t\t{\r\n\t\t\tCaracteristica encontrado = (Caracteristica)entidadencontrada.get(0);\r\n\t\t\tmodificarcaracter = new ModificarDatosCaracteristica(this, encontrado);\r\n\t\t\tmodificarcaracter.setVisible(true);\r\n\t\t}\r\n\t}",
"private boolean guardarAutorizacionReserva(){\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n lblMsgSis.setText(\"Guardando datos...\");\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\n pgrSis.setIndeterminate(true);\n int intNumFil=objTblMod.getRowCountTrue(), intCodEmp, intCodLoc, intCodCot;\n for (int i=0; i<intNumFil;i++){\n if (objUti.parseString(objTblMod.getValueAt(i,0)).equals(\"M\")){ \n intCodEmp=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_EMP).toString() );\n intCodLoc=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_LOC).toString() );\n intCodCot=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_COT).toString() );\n if(objTblMod.isChecked(i, INT_TBL_DAT_CHK_AUTORIZAR)){\n if(validaStock(intCodEmp, intCodLoc, intCodCot)){\n if(validaControlesCxC(intCodEmp, intCodLoc, intCodCot)){\n if(validaDatosAutorizacion(i,intCodEmp, intCodLoc,intCodCot)){\n // AUTORIZACION\n if(tblDat.getValueAt(i, INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"F\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(objDatItm.modificaItemTerminalOcupado(intCodEmp, intCodLoc, intCodCot)){\n if(guardarAutorizacionFacturacionAutomatica(conLoc,i,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit(); \n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n blnCotVen=true;\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n conLoc.close();\n conLoc=null; \n }\n }\n else if(tblDat.getValueAt(i,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(guardarAutorizacionReservaEmpresa(conLoc,i ,intCodEmp,intCodLoc, intCodCot)){\n conLoc.commit();\n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n }\n else{\n blnRes=false;\n conLoc.rollback();\n }\n conLoc.close();\n conLoc=null; \n }\n }\n }\n }\n else{\n blnRes=false;\n }\n }\n else{\n blnRes=false;\n }\n }else if(objTblMod.isChecked(i,INT_TBL_DAT_CHK_DENEGAR)){\n /* DENEGAR */\n if(revisarCotizacionPendiente(intCodEmp,intCodLoc,intCodCot)){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(cambiarEstadoCotizacionDenegada(conLoc,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit();\n enviarCorreoSolicitudDenegada(intCodEmp,intCodLoc,intCodCot);\n }\n else{\n conLoc.rollback();\n }\n }\n conLoc.close();\n conLoc=null;\n }\n else{\n MensajeInf(\"La cotizacion \"+intCodCot+\" no se puede denegar, ya ha sido autorizada. Debe solicitar cancelacion. \");\n }\n }\n blnRes=false;\n blnGenSolTra=false;\n }\n }\n pgrSis.setIndeterminate(false);\n \n if(!blnIsCotVen){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n cargarDetReg(conLoc);\n conLoc.close();\n conLoc=null;\n }\n blnRes=true;\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }",
"protected boolean checkPossoRegistrare(String titolo, String testo) {\n return uploadService.checkModificaSostanziale(titolo, testo, tagHeadTemplateAvviso, \"}}\");\n }",
"public void verSesionAdministrador(Administrador actualadmin)\r\n\t{\r\n\t\tSesion sesio = new Sesion();\r\n\t\tGregorianCalendar calendario = new GregorianCalendar();\r\n\t\tString fechasesion = calendario.get(Calendar.YEAR)+\"-\"+(calendario.get(Calendar.MONTH)+1)+\"-\"+calendario.get(Calendar.DAY_OF_MONTH);\r\n\t\tString horainicial = calendario.get(Calendar.HOUR_OF_DAY)+\":\"+calendario.get(Calendar.MINUTE)+\":\"+calendario.get(Calendar.SECOND);\r\n\t\tsesio.setFechasesion(fechasesion);\r\n\t\tsesio.setHorainicial(horainicial);\r\n\t\tsesio.setHorafinal(\"NULL\");\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tSesionBD.insertar(sesio, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tSesion sesioningr = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tsesioningr = SesionBD.buscarFechaHora(fechasesion, horainicial, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(sesioningr != null)\r\n\t\t{\r\n\t\t\tSesionAdministrador nuevasesion = new SesionAdministrador();\r\n\t\t\tnuevasesion.setIdsesion(sesioningr.getIdsesion());\r\n\t\t\tnuevasesion.setIdadministrador(actualadmin.getIdadmin());\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conector = new Conector();\r\n\t\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\t\tSesionAdministradorBD.insertar(nuevasesion, conector);\r\n\t\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tsesionadministrador = new SesionAdministradorI(this, actualadmin, sesioningr);\r\n\t\t\t\tsesionadministrador.setVisible(true);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public boolean savePatente(Patente patente) {\n this.setSuccess(true);\n // numero da patente, se negativo\n if (patente.getNumero() < 1) {\n this.setSuccess(false);\n return this.patenteSuccess();\n }\n // titulo invenção - testa - vazio ou nulo\n if (StringUtil.getInstance().isEmpty(patente.getTituloInvencao())) {\n this.success = false;\n return this.patenteSuccess();\n }\n if (StringUtil.getInstance().isNull(patente.getTituloInvencao())) {\n this.setSuccess(false);\n return this.patenteSuccess();\n }\n // area invenção - testa - vazio ou nulo\n if (StringUtil.getInstance().isEmpty(patente.getAreaInvencao())) {\n this.setSuccess(false);\n return this.patenteSuccess();\n }\n if (StringUtil.getInstance().isNull(patente.getAreaInvencao())) {\n this.setSuccess(false);\n return this.patenteSuccess();\n }\n // testa inconsistencia de dia e mês\n if (patente.getDia() > 31 || patente.getMes() > 12) {\n this.setSuccess(false);\n return this.patenteSuccess();\n }\n // se chegou até aqui, dados aprovados\n /*\n Aqui é enviado os dados para o dao que, se retornar true,\n foram inseridos com sucesso, do contrário, em algum momento\n fora encontrado um erro ou exeção.\n */\n this.setSuccess(this.getDaoPatente().savePatente(patente));\n return this.patenteSuccess();\n }",
"private void editAccountType() throws Exception, EditUserException {\n String userChange = userIDInput.getText();\n String accountTypeInput = accountTypeValueEdit;\n try {\n Admin.editAccountType(userChange, accountTypeInput);\n String msg = \"Change user \" + userChange + \" to \" + accountTypeInput + \" success!\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset values\n userIDInput.setText(\"\");\n } catch (NullPointerException e) {\n String msg = \"Edit User Error: Empty values. Please try again.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new NullPointerException(msg);\n } catch (SQLException e) {\n String msg = \"Edit User SQL Error: Could not add to database.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new Exception(msg);\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"public boolean modificarRol(Tbl_rol trol)\n\t{\n\t\tboolean modificado=false;\t\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Getting connection thread, important!\n\t\t\tConnection con = connectionP.getConnection();\n\n\t\t\tthis.getRS(con);\n\t\t\trsRol.beforeFirst();\n\t\t\twhile (rsRol.next())\n\t\t\t{\n\t\t\t\tif(rsRol.getInt(1)==trol.getId())\n\t\t\t\t{\n\t\t\t\t\trsRol.updateString(\"rol\", trol.getRol());\n\t\t\t\t\trsRol.updateString(\"descripcion\", trol.getDescripcion());\n\t\t\t\t\trsRol.updateInt(\"estado\", 2);\n\t\t\t\t\trsRol.updateRow();\n\t\t\t\t\tmodificado=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Closing connection thread, very important!\n\t\t\tconnectionP.closeConnection(con);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"ERROR modificarRol() \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn modificado;\n\t\t\n\t}",
"private static void registrarAuditoriaDetallesTarjetaCredito(Connexion connexion,TarjetaCredito tarjetacredito)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_empresa().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_sucursal().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_banco().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcodigo().equals(tarjetacredito.getTarjetaCreditoOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getnombre().equals(tarjetacredito.getTarjetaCreditoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getnombre_corto().equals(tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getnombre_corto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getnombre_corto() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.NOMBRECORTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getdigito_valido().equals(tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getdigito_valido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getdigito_valido().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.DIGITOVALIDO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getdigito_tarjeta().equals(tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getdigito_tarjeta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getdigito_tarjeta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.DIGITOTARJETA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcomision().equals(tarjetacredito.getTarjetaCreditoOriginal().getcomision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcomision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcomision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcomision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcomision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.COMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getinteres().equals(tarjetacredito.getTarjetaCreditoOriginal().getinteres()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getinteres()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getinteres().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getinteres()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getinteres().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.INTERES,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getmonto_minimo().equals(tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getmonto_minimo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getmonto_minimo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.MONTOMINIMO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getporcentaje_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getporcentaje_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getporcentaje_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.PORCENTAJERETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcomision_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcomision_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcomision_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.COMISIONRETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_retencion_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_retencion_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_retencion_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESRETENCIONREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_pago_banco_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_pago_banco_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_pago_banco_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESPAGOBANCOREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_comision_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_comision_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_comision_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESCOMISIONREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_tipo_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_tipo_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_tipo_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDTIPORETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_tipo_retencion_iva().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_tipo_retencion_iva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_tipo_retencion_iva().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDTIPORETENCIONIVA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable_comision().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable_comision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLECOMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_pago_banco().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_pago_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_pago_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULAPAGOBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable_diferencia().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable_diferencia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLEDIFERENCIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULARETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_comision().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_comision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULACOMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"public String actualizarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n ArrayList list_st_comentarios = new ArrayList();\n /* Campos requeridos para registrar un funcionario */\n if(this.getIdRol() == 0)list_st_comentarios.add(\" el número\");\n if(this.getNombreRol().equals(\"\"))list_st_comentarios.add(\" el Nombre\");\n if(this.getDescripcionRol().equals(\"\"))list_st_comentarios.add(\" la Descripción\");\n\n if(!list_st_comentarios.isEmpty())\n {\n for(int i = 0; i < list_st_comentarios.size();i++)\n {\n if(list_st_comentarios.size() == 1)\n vst_mensaje = (String)list_st_comentarios.get(i)+\".\";\n else if(i == 0)\n vst_mensaje += (String)list_st_comentarios.get(i);\n else if(i == list_st_comentarios.size()-1 )\n vst_mensaje += \" y \" + (String)list_st_comentarios.get(i)+\".\";\n else\n vst_mensaje += \", \" + (String)list_st_comentarios.get(i);\n }\n }\n\n if(!list_st_comentarios.isEmpty())\n {\n vst_mensaje = \"Para actualizar el rol debe ingresar \"+ vst_mensaje;\n this.setMsg(vst_mensaje);\n return \"faltandatos\";\n }\n else\n {\n if(new ToolBean().ValidarEsNumero(Integer.toString(this.getIdRol())))\n {\n if(!new ToolBean().ValidarEsPalabra(this.getNombreRol()))\n {\n this.setMsg(\"El nombre del rol debe contener únicamente letras.\");\n return \"\";\n }\n else if(!new ToolBean().ValidarEsPalabra(this.getDescripcionRol()))\n {\n this.setMsg(\"La descripción del rol debe contener únicamente letras.\");\n return \"\";\n }\n else\n {\n Servicio.rolModificar(this);\n //this.list_ins_RolBeanUpdate(this);// <== para el PROTOTIPO\n Servicio.rolListarTodos(this);\n\n if(this.getIdRol() == 0)\n return \"noexiste\";\n else\n return \"actualizado\";\n }\n }\n else\n {\n this.setMsg(\"El ID del Rol debe ser un valor numérico.\");\n return \"\";\n }\n }\n }",
"public boolean crarUsuario(Usuario creador, String nombre, String nombreMostrar, String contrasena, boolean cambiarContra,boolean admin,int tipoPersonal,int tipodescuento, boolean notas, boolean habilitacion,boolean profesor, int ciProfesor){\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"insert into sistemasEM.usuarios (nombre, mostrar, contrasena,cambiarContra,admin,permisosPersonal,permisosDescuento,notas, habilitacion,profesor,ciProfesor) values(?,?,MD5(?),?,?,?,?,?,?,?,?)\";\r\n PreparedStatement s= connection.prepareStatement(sql);\r\n int i=1;\r\n s.setString(i++, nombre);\r\n s.setString(i++, nombreMostrar);\r\n s.setString(i++, contrasena);\r\n s.setBoolean(i++, cambiarContra);\r\n s.setBoolean(i++, admin);\r\n s.setInt(i++, tipoPersonal);\r\n s.setInt(i++, tipodescuento);\r\n s.setBoolean(i++, notas);\r\n s.setBoolean(i++, habilitacion);\r\n s.setBoolean(i++, profesor);\r\n s.setInt(i++, ciProfesor);\r\n int result = s.executeUpdate();\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return false;\r\n }",
"@Override\n\tpublic void respuestaCompletada(WSInfomovilMethods metodo,\n\t\t\tlong milisegundo, WsInfomovilProcessStatus status) {\n\t\tif(alerta != null)\n\t\t\talerta.dismiss();\n\t\tdatosUsuario = DatosUsuario.getInstance();\n\t\timagenAdapter.setListAdapter(datosUsuario.getListaImagenes());\n\t\tarrayGaleria = datosUsuario.getListaImagenes();\n\t\timagenAdapter.notifyDataSetChanged();\n\t\tif (status == WsInfomovilProcessStatus.EXITO) {\n\t\t\talerta = new AlertView(activity, AlertViewType.AlertViewTypeInfo, getResources().getString(R.string.txtActualizacionCorrecta));\n\t\t\talerta.setDelegado(this);\n\t\t\talerta.show();\n\t\t}\n\t\telse {\n\t\t\tif (arrayGaleriaAux != null && arrayGaleriaAux.size()>0) {\n\t\t\t\tdatosUsuario.setListaImagenes(arrayGaleriaAux);\n\t\t\t}\n\t\t\talerta = new AlertView(activity, AlertViewType.AlertViewTypeInfo, getResources().getString(R.string.txtErrorActualizacion));\n\t\t\talerta.setDelegado(this);\n\t\t\talerta.show();\n\t\t}\n\n\t}",
"private void registraLog(int aTipo, String aMensagem)\n\t{\n\t\tif (aTipo == Definicoes.FATAL)\n\t\t\tlogger.fatal(aMensagem);\n\t\telse if (aTipo == Definicoes.ERRO)\n\t\t\t\tlogger.error(aMensagem);\n\t\telse if (aTipo == Definicoes.WARN)\n\t\t\t\tlogger.warn(aMensagem);\n\t\telse if (aTipo == Definicoes.INFO)\n\t\t\t\tlogger.info(aMensagem);\n\t\telse if (aTipo == Definicoes.DEBUG)\n\t\t{\n\t\t\t\tif (arqConfig.getSaidaDebug())\n\t\t\t\t\tlogger.debug(aMensagem);\n\t\t}\n\t\telse logger.warn(\"SEVERIDADE NAO DEFINIDA - \" + aMensagem);\n\t}",
"public String editChannelType() throws Exception {\n log.info(\"Begin method preparePage of ChannelTypeDAO ...\");\n\n HttpServletRequest req = getRequest();\n SaleChannelTypeForm f = this.saleChannelTypeForm;\n String ajax = QueryCryptUtils.getParameter(req, \"ajax\");\n List<ActionLogsObj> lstLogObj = new ArrayList<ActionLogsObj>();\n\n if (\"1\".equals(ajax)) {\n f.resetForm();\n req.setAttribute(\"toEditChannelType\", 0);\n } else {\n // lay thong tin shop cu de ghi Log :\n ChannelType channelType = new ChannelTypeDAO().findById(f.getChannelTypeId());\n ChannelType oldChannelType = new ChannelType();\n BeanUtils.copyProperties(oldChannelType, channelType);\n oldChannelType.setStockType(null);\n if (checkValidateToEdit()) {\n channelType.setCheckComm(f.getCheckComm());\n channelType.setIsVtUnit(f.getIsVtUnit());\n channelType.setName(f.getName());\n channelType.setObjectType(f.getObjectType());\n channelType.setStatus(f.getStatus());\n channelType.setStockReportTemplate(f.getStockReportTemplate());\n channelType.setStockType(f.getStockType());\n channelType.setPricePolicyDefault(f.getPricePolicyDefault());\n channelType.setDiscountPolicyDefault(f.getDiscountPolicyDefault());\n channelType.setCode(f.getCode());\n// f.copyDataToBO(bo);\n getSession().saveOrUpdate(channelType);\n //ANHTT: thuc hien ghi Log :\n\n lstLogObj.add(new ActionLogsObj(oldChannelType, channelType));\n saveLog(Constant.ACTION_EDIT_TYPE_CHANNEL, \"Cập nhật thông tin loại kênh bán hàng\", lstLogObj, channelType.getChannelTypeId(),Constant.CATALOGUE_TYPE_OF_CHANNEL,Constant.EDIT);\n\n f.resetForm();\n //f.setMessage(\"Đã sửa thông tin đối tác !\");\n req.setAttribute(\"returnMsg\", \"channelType.edit.success\");\n List listChannelType = new ArrayList();\n listChannelType = findAll();\n req.getSession().removeAttribute(\"listChannelType\");\n req.getSession().setAttribute(\"listChannelType\", listChannelType);\n AppParamsDAO appParamsDAO = new AppParamsDAO();\n appParamsDAO.setSession(this.getSession());\n List<AppParams> listPricePolicy = appParamsDAO.findAppParamsByType(Constant.APP_PARAMS_PRICE_POLICY);\n req.setAttribute(\"listPricePolicy\", listPricePolicy);\n List<AppParams> listDiscountPolicy = appParamsDAO.findAppParamsByType(Constant.APP_PARAMS_DISCOUNT_POLICY);\n req.setAttribute(\"listDiscountPolicy\", listDiscountPolicy);\n }\n\n\n }\n req.setAttribute(\"toEditChannelType\", 0);\n pageForward = ADD_NEW_SALE_CHANNEL_TYPE;\n log.info(\"End method preparePage of ChannelTypeDAO\");\n return pageForward;\n }",
"public void actionPerformed(ActionEvent e) {\n if(e.getSource()== adminView.jbtnAdminCerrarSession){\r\n adminView.setVisible(false);\r\n loginview .MustraLogin();\r\n }\r\n \r\n //PRIVILEGIOS -PERMISOS \r\n if(e.getSource() == adminView.btnAdminPermisoRegistrar){\r\n String nombre = (String)adminView.textAdminPermisoNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminPermisoDescripcion.getText().toUpperCase();\r\n \r\n \r\n String rstaRegistroPermiso = modelPermisoDAO.insertarDatosPermiso(nombre, descripcion);\r\n if(rstaRegistroPermiso != null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroPermiso);\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoListar){\r\n \r\n setTablePermiso(adminView.tableAdminPermiso);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoActualizar){\r\n int filaActualizarPermiso = adminView.tableAdminPermiso.getSelectedRow();\r\n int numFilas = adminView.tableAdminPermiso.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 0));\r\n adminView.textAdminPermisoNombre.setText(String.valueOf(adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 1)));\r\n adminView.textAdminPermisoDescripcion.setText(String.valueOf(adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 2)));\r\n \r\n adminView.btnAdminPermisoActualizar.setEnabled(false);\r\n adminView.btnAdminPermisoRegistrar.setEnabled(false);\r\n adminView.btnAdminPermisoEliminar.setEnabled(false);\r\n adminView.btnAdminPermisoListar.setEnabled(false);\r\n adminView.textAdminPermisoBuscar.setEditable(false);\r\n adminView.jbtnAdminPErmisoActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.jbtnAdminPErmisoActualizarOK){\r\n String nombre = (String)adminView.textAdminPermisoNombre.getText();\r\n String descripcion = (String)adminView.textAdminPermisoDescripcion.getText();\r\n \r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosPermiso(nombre, descripcion,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosPermisos();\r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoEliminar){\r\n int filaInicioPermiso = adminView.tableAdminPermiso.getSelectedRow();\r\n int numFilas = adminView.tableAdminPermiso.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombrePermiso=\"\";\r\n if( filaInicioPermiso >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombrePermiso= String.valueOf(adminView.tableAdminPermiso.getValueAt(i+filaInicioPermiso, 0));\r\n listaNombre .add(nombrePermiso);\r\n }\r\n for (int i = 0; i < listaNombre.size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosPermiso(listaNombre.get(i));\r\n }\r\n }\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n \r\n \r\n //PRIVILEGIOS -ROLES\r\n if(e.getSource() == adminView.btnAdminRolRegistrar1){\r\n String nombre = (String)adminView.textAdminRolNombre1.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminRolDescripcion1.getText().toUpperCase();\r\n \r\n \r\n String rstaRegistroPermiso = modelPermisoDAO.insertarDatosRol(nombre, descripcion);\r\n if(rstaRegistroPermiso != null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroPermiso);\r\n setTableRol(adminView.tableAdminRol);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminRolListar1){\r\n \r\n setTableRol(adminView.tableAdminRol);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminRolActualizar1){\r\n int filaActualizarRol = adminView.tableAdminRol.getSelectedRow();\r\n int numFilas = adminView.tableAdminRol.getSelectedRowCount();\r\n if(filaActualizarRol >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminRol.getValueAt(filaActualizarRol, 0));\r\n adminView.textAdminRolNombre1.setText(String.valueOf(adminView.tableAdminRol.getValueAt(filaActualizarRol, 1)));\r\n adminView.textAdminRolDescripcion1.setText(String.valueOf(adminView.tableAdminRol.getValueAt(filaActualizarRol, 2)));\r\n \r\n adminView.btnAdminRolActualizar1.setEnabled(false);\r\n adminView.btnAdminRolRegistrar1.setEnabled(false);\r\n adminView.btnAdminRolEliminar1.setEnabled(false);\r\n adminView.btnAdminRolListar1.setEnabled(false);\r\n adminView.textAdminRolBuscar1.setEditable(false);\r\n adminView.jbtnAdminRolActualizarOK1.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.jbtnAdminRolActualizarOK1){\r\n String nombre = (String)adminView.textAdminRolNombre1.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminRolDescripcion1.getText().toUpperCase();\r\n \r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosRol(nombre, descripcion,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableRol(adminView.tableAdminRol);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosRol();\r\n }\r\n if(e.getSource() == adminView.btnAdminRolEliminar1){\r\n int filaInicioRol= adminView.tableAdminRol.getSelectedRow();\r\n int numFilas = adminView.tableAdminRol.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreRol=\"\";\r\n if( filaInicioRol >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreRol= String.valueOf(adminView.tableAdminRol.getValueAt(i+filaInicioRol, 0));\r\n listaNombre .add(nombreRol);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosRol(listaNombre.get(i));\r\n }\r\n }\r\n setTablePermiso(adminView.tableAdminRol);\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n } \r\n //EMPLEADOS - BENEFICIOS\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosRegistrar){\r\n String nombre = (String)adminView.textEmpleadosBeneficiosNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textEmpleadosBeneficiosDescripcion.getText().toUpperCase();\r\n String porcentaje = (String)adminView.textEmpleadosBeneficiosPorcentaje.getText().toUpperCase();\r\n \r\n String rstaRegistroBeneficio = modelPermisoDAO.insertarDatosEmpleadoBeneficio(nombre, descripcion,porcentaje);\r\n if(rstaRegistroBeneficio!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroBeneficio);\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosBeneficiosEmpleadosAgisnar){\r\n int filaActualizar = adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n int filaActualizar2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getSelectedRow();\r\n int numFilas2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getSelectedRowCount();\r\n if(filaActualizar2>= 0 && numFilas2 ==1){\r\n String respuesta = modelPermisoDAO.insertarDatosEmp_Ben((String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getValueAt(filaActualizar2, 0),\r\n (String) adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizar, 0));\r\n \r\n if(respuesta != null){\r\n JOptionPane.showMessageDialog(null, \"Beneficio Asignado\");\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Error Inesperado, no se pudo concluir con la operacion\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Beneficio\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosListar){\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosActualizar){\r\n int filaActualizarBeneficio = adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n if(filaActualizarBeneficio >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 0));\r\n adminView.textEmpleadosBeneficiosNombre.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 1)));\r\n adminView.textEmpleadosBeneficiosDescripcion.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 2)));\r\n adminView.textEmpleadosBeneficiosPorcentaje.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 3)));\r\n \r\n adminView.btnEmpleadosBeneficiosActualizar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosEliminar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosRegistrar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosListar.setEnabled(false);\r\n adminView.textEmpleadosBeneficiosBuscarNombre.setEditable(false);\r\n adminView.btnEmpleadosBeneficiosActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosActualizarOK){\r\n String nombre = (String)adminView.textEmpleadosBeneficiosNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textEmpleadosBeneficiosDescripcion.getText().toUpperCase();\r\n String porcentaje = (String)adminView.textEmpleadosBeneficiosPorcentaje.getText().toUpperCase();\r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoBeneficio(nombre, descripcion,porcentaje,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosEmpleadoBeneficio();\r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosEliminar){\r\n int filaInicioBeneficio= adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleadoBeneficio(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n \r\n //EMPLEADOS - HORARIOS\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosRegistrar){\r\n \r\n String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n /* Calendar c = Calendar.getInstance();\r\n String dia = Integer.toString(c.get(Calendar.DATE));\r\n int mes = c.get(Calendar.MONTH)+1;\r\n String annio = Integer.toString(c.get(Calendar.YEAR));\r\n String fechaActualHoraInicio = annio+\"-\"+mes+\"-\"+dia;\r\n String fechaActualHoraFinal = annio+\"-\"+mes+\"-\"+dia;\r\n */\r\n String horaInicial = adminView.SpinnerAdminEmpleadosHorariosHoraInicial.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal.getValue().toString();\r\n \r\n if((horaInicial .compareTo(horaFinal)) < 0){\r\n String rstaRegistroHorario = modelPermisoDAO.insertarDatosEmpleadoHorario(diaHora,horaInicial,horaFinal);\r\n if(rstaRegistroHorario!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroHorario);\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n \r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+horaInicial+\" es mayor a Fecha Fin : \"+horaFinal,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n }\r\n if(e.getSource()== adminView.btnAdminEmpleadosHorariosEmpleadosAsignar){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n int filaActualizar2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getSelectedRow();\r\n int numFilas2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getSelectedRowCount();\r\n if(filaActualizar2>= 0 && numFilas2 ==1){\r\n String respuesta = modelPermisoDAO.insertarDatoseEmp_hor((String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getValueAt(filaActualizar2, 0),\r\n (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 0));\r\n \r\n if(respuesta != null){\r\n JOptionPane.showMessageDialog(null, \"Horario Asignado\");\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else JOptionPane.showMessageDialog(null, \"Error Inesperado, no se pudo concluir con la operacion\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Horario\");\r\n }\r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosListar){\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizar){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 0));\r\n //adminView.SpinnerAdminEmpleadosHorariosHoraInicial.setValue((String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 2));\r\n\r\n adminView.jComboBoxAdminEmpleadosHorariosDias.setSelectedItem(String.valueOf(adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 1)));\r\n \r\n /*SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n */\r\n String dateTime = (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 2);\r\n String dateTime2 = (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 3); \r\n \r\n Date date,date2;\r\n try {\r\n date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraInicial.setValue(date);\r\n \r\n date2 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime2);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraFinal.setValue(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n adminView.btnAdminEmpleadosHorariosActualizar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosEliminar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosRegistrar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia.setEditable(false);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizarOK){\r\n String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n String horaInicial = adminView.SpinnerAdminEmpleadosHorariosHoraInicial.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal.getValue().toString();\r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoHorario(diaHora ,horaInicial,horaFinal ,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n LimpiarElementosEmpleadoHorario();\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosEliminar){\r\n int filaInicio= adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreHorario=\"\";\r\n if( filaInicio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreHorario= String.valueOf(adminView.tableAdminEmpleadosHorarios.getValueAt(i+filaInicio, 0));\r\n listaNombre .add(nombreHorario);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleadoHorario(listaNombre.get(i));\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n //Sistema de COntrol\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosRegistrar1){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n try {\r\n cedula =(String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getValueAt(filaActualizar, 0);\r\n emp_hor empleado_horario = new emp_hor();\r\n String horaInicial = adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.getValue().toString();\r\n \r\n empleado_horario=modelPermisoDAO.listEmpleadoEmp_horXCedula(cedula).get(0);\r\n //System.out.println(\"Cod \"+empleado_horario.getEh_codigo()+\" Hor: \"+empleado_horario.getEh_fk_horario()+\" Cedula: \"+empleado_horario.getEh_fk_empleado());\r\n \r\n if((horaInicial .compareTo(horaFinal)) < 0){\r\n String rstaRegistroHorario = modelPermisoDAO.insertarDatosEmpleadoCheck(empleado_horario.getEh_codigo(),horaInicial,horaFinal);\r\n if(rstaRegistroHorario!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroHorario);\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n \r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+horaInicial+\" es mayor a Fecha Fin : \"+horaFinal,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n } catch (IndexOutOfBoundsException e12) {\r\n JOptionPane.showMessageDialog(null, \"Por favor debe Añadir un horario al Empleado Selccionado\");\r\n }\r\n \r\n \r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n } \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosEliminar1){\r\n int filaInicio= adminView.tableAdminEmpleadosHorarios1.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios1.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreHorario=\"\";\r\n if( filaInicio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreHorario= String.valueOf(adminView.tableAdminEmpleadosHorarios1.getValueAt(i+filaInicio, 0));\r\n listaNombre .add(nombreHorario);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosCheck(listaNombre.get(i));\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizar1){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios1.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 0));\r\n \r\n String dateTime = (String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 3);\r\n String dateTime2 = (String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 4); \r\n \r\n Date date,date2;\r\n try {\r\n date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime);\r\n adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.setValue(date);\r\n \r\n date2 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime2);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.setValue(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n adminView.btnAdminEmpleadosHorariosActualizar1.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosEliminar1.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosRegistrar1.setEnabled(false);\r\n //adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia1.setEditable(false);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK1.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizarOK1){\r\n // String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n String horaInicial = adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.getValue().toString();\r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoCheck(horaInicial,horaFinal ,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.btnAdminEmpleadosHorariosActualizar1.setEnabled(true);\r\n adminView.btnAdminEmpleadosHorariosEliminar1.setEnabled(true);\r\n adminView.btnAdminEmpleadosHorariosRegistrar1.setEnabled(true);\r\n //adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia1.setEditable(true);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK1.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n LimpiarElementosEmpleadoHorario();\r\n }\r\n \r\n //EMPLEADOS\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarTiendas){\r\n setEmpleadosTienda(adminView.TableAdminEmpleadosBuscarTiendas);\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosRegistrar){\r\n String cedula =(String) adminView.textAdminEmpleadosCedula.getText().toUpperCase();\r\n String primerNombre = (String)adminView.textAdminEmpleadosPrimerNOmbre.getText().toUpperCase();\r\n String segundoNombre=(String) adminView.textAdminEmpleadosSegundoNombre.getText().toUpperCase();\r\n String primerApellido = (String)adminView.textAdminEmpleadosPrimerApellido.getText().toUpperCase();\r\n String segundoApellido= (String)adminView.textAdminEmpleadosSegundoApellido.getText().toUpperCase();\r\n String salario= (String)adminView.textAdminEmpleadosSalario.getText().toUpperCase();\r\n String telefono =(String)adminView.textAdminEmpleadosTelefono.getText().toUpperCase();\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n String usuario = (String)adminView.textAdminEmpleadosUsuario.getText().toUpperCase();\r\n String pass = (String)adminView.textAdminEmpleadosContrasena.getText().toUpperCase();\r\n String pregunta = (String)adminView.textAdminEmpleadosPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = (String)adminView.textAdminEmpleadosRespuestaSecreta.getText().toUpperCase();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n int filaActualizarRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRow();\r\n int numFilasRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRowCount(); \r\n if(filaActualizarRol>= 0 && numFilasRol ==1){\r\n int filaActualizarPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRow();\r\n int numFilasRolPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilasRolPermiso ==1){\r\n System.out.println(\"Entro\");\r\n int respuestaEmpleado = modelPermisoDAO.insertEmpleados(cedula,\r\n primerNombre, segundoNombre, \r\n primerApellido, segundoApellido, \r\n salario/*, diasVaciones*/, fechaNac, telefono,\r\n String.valueOf(adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0)),\r\n /*Usuaruio*/ usuario,pass,pregunta,respuesta,\r\n /*ROl _PER*/\r\n /*ROL*/\r\n String.valueOf(adminView.jTableAdminEmpleadosBuscarRol.getValueAt(filaActualizarRol, 0)),\r\n /*PERMISO*/\r\n String.valueOf(adminView.jTableAdminEmpleadosBuscarPermisos.getValueAt(filaActualizarPermiso, 0)) \r\n );\r\n \r\n if(respuestaEmpleado > 0){\r\n JOptionPane.showMessageDialog(null, \" Registro Exitoso \");\r\n }else JOptionPane.showMessageDialog(null, \"Ha Ocurriodo un Error \");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un tipo de Permiso\");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un tipo ROL\");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un Departamento\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Invalido\"); \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarEmpleados1){\r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n System.out.println(\"Entro\");\r\n setEmpleados(adminView.TableAdminEmpleadosBuscar1, String.valueOf(adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0)));\r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo una TIENDA\");\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosActualizar){\r\n int filaActualizar = adminView.TableAdminEmpleadosBuscar1.getSelectedRow();\r\n int numFilas = adminView.TableAdminEmpleadosBuscar1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n cedula =(String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 0);\r\n \r\n modelPermisoDAO.setUpdateEmpleado(cedula,\r\n adminView.textAdminEmpleadosCedula, \r\n adminView.textAdminEmpleadosPrimerNOmbre, \r\n adminView.textAdminEmpleadosSegundoNombre, \r\n adminView.textAdminEmpleadosPrimerApellido, \r\n adminView.textAdminEmpleadosSegundoApellido, \r\n adminView.textAdminEmpleadosSalario,\r\n adminView.textAdminEmpleadosTelefono,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textAdminEmpleadosFechaNacimiento, \r\n adminView.textAdminEmpleadosUsuario, \r\n adminView.textAdminEmpleadosContrasena, \r\n adminView.textAdminEmpleadosPreguntaSecreta, \r\n adminView.textAdminEmpleadosRespuestaSecreta);\r\n \r\n /*adminView.textAdminEmpleadosCedula.setText(cedula);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 1));\r\n \r\n adminView.textAdminEmpleadosPrimerApellido.setText((String)adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 2));\r\n \r\n adminView.textAdminEmpleadosSalario.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 3));\r\n */\r\n \r\n adminView.textAdminEmpleadosCedula.setEditable(false);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setEditable(false);\r\n adminView.textAdminEmpleadosSegundoNombre.setEditable(false);\r\n adminView.textAdminEmpleadosPrimerApellido.setEditable(false);\r\n adminView.textAdminEmpleadosSegundoApellido.setEditable(false);\r\n adminView.textAdminEmpleadosUsuario.setEditable(false);\r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n \r\n adminView.textAdminEmpleadosBuscarCedula2.setEditable(false);\r\n adminView.textAdminEmpleadosFechaNacimiento.setEnabled(false);\r\n adminView.btnAdminEmpleadosActualizar.setEnabled(false);\r\n adminView.btnAdminEmpleadosEliminar.setEnabled(false);\r\n adminView.btnAdminEmpleadosRegistrar.setEnabled(false);\r\n adminView.btnAdminEmpleadosListarEmpleados1.setEnabled(false);\r\n \r\n adminView.btnAdminEmpleadosActuaizarOK.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosActuaizarOK){\r\n String cedula =(String) adminView.textAdminEmpleadosCedula.getText().toUpperCase();\r\n String primerNombre = (String)adminView.textAdminEmpleadosPrimerNOmbre.getText().toUpperCase();\r\n String segundoNombre=(String) adminView.textAdminEmpleadosSegundoNombre.getText().toUpperCase();\r\n String primerApellido = (String)adminView.textAdminEmpleadosPrimerApellido.getText().toUpperCase();\r\n String segundoApellido= (String)adminView.textAdminEmpleadosSegundoApellido.getText().toUpperCase();\r\n String salario= (String)adminView.textAdminEmpleadosSalario.getText().toUpperCase();\r\n String telefono =(String)adminView.textAdminEmpleadosTelefono.getText().toUpperCase();\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n String usuario = (String)adminView.textAdminEmpleadosUsuario.getText().toUpperCase();\r\n String pass = (String)adminView.textAdminEmpleadosContrasena.getText().toUpperCase();\r\n String pregunta = (String)adminView.textAdminEmpleadosPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = (String)adminView.textAdminEmpleadosRespuestaSecreta.getText().toUpperCase();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n int x=-1,y=-1,z=-1;\r\n \r\n \r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n x=Integer.parseInt((String) adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0));\r\n }\r\n \r\n int filaActualizarRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRow();\r\n int numFilasRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRowCount(); \r\n if(filaActualizarRol>= 0 && numFilasRol ==1){\r\n y=Integer.parseInt((String) adminView.jTableAdminEmpleadosBuscarRol.getValueAt(filaActualizarRol , 0));\r\n }\r\n \r\n int filaActualizarPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRow();\r\n int numFilasRolPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilasRolPermiso ==1){\r\n \r\n z=Integer.parseInt((String) adminView.jTableAdminEmpleadosBuscarPermisos.getValueAt(filaActualizarPermiso , 0));\r\n \r\n \r\n }\r\n int respuestActualizacion= modelPermisoDAO.actualizarEmpleado(\r\n cedula\r\n , primerNombre\r\n , primerApellido\r\n , segundoNombre\r\n , segundoApellido\r\n , salario\r\n ,telefono\r\n // , diasVaciones\r\n , fechaNac\r\n , usuario\r\n , pass\r\n , pregunta\r\n , respuesta\r\n , x\r\n , y\r\n , z); \r\n if(respuestActualizacion>0){\r\n \r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.textAdminEmpleadosCedula.setText(\"\");\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText(\"\");\r\n adminView.textAdminEmpleadosSegundoNombre.setText(\"\");\r\n adminView.textAdminEmpleadosPrimerApellido.setText(\"\");\r\n adminView.textAdminEmpleadosSegundoApellido.setText(\"\");\r\n adminView.textAdminEmpleadosSalario.setText(\"\"); \r\n // adminView.textAdminEmpleadosDiasVacaciones.setText(\"\");\r\n adminView.textAdminEmpleadosFechaNacimiento.setDate(null);\r\n adminView.textAdminEmpleadosUsuario.setText(\"\");\r\n adminView.textAdminEmpleadosContrasena.setText(\"\");\r\n adminView.textAdminEmpleadosPreguntaSecreta.setText(\"\");\r\n adminView.textAdminEmpleadosRespuestaSecreta.setText(\"\");\r\n adminView.textAdminEmpleadosTelefono.setText(\"\");\r\n adminView.textAdminEmpleadosCedula.setEditable(true);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setEditable(true);\r\n adminView.textAdminEmpleadosSegundoNombre.setEditable(true);\r\n adminView.textAdminEmpleadosPrimerApellido.setEditable(true);\r\n adminView.textAdminEmpleadosSegundoApellido.setEditable(true);\r\n adminView.textAdminEmpleadosUsuario.setEditable(true);\r\n adminView.textAdminEmpleadosContrasena.setEditable(true);\r\n adminView.textAdminEmpleadosPreguntaSecreta.setEditable(true);\r\n adminView.textAdminEmpleadosRespuestaSecreta.setEditable(true);\r\n \r\n adminView.textAdminEmpleadosBuscarCedula2.setEditable(true);\r\n adminView.textAdminEmpleadosFechaNacimiento.setEnabled(true);\r\n adminView.btnAdminEmpleadosActualizar.setEnabled(true);\r\n adminView.btnAdminEmpleadosEliminar.setEnabled(true);\r\n adminView.btnAdminEmpleadosRegistrar.setEnabled(true);\r\n adminView.btnAdminEmpleadosListarEmpleados1.setEnabled(true);\r\n \r\n adminView.btnAdminEmpleadosActuaizarOK.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n } else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosEliminar){\r\n int filaInicioBeneficio= adminView.TableAdminEmpleadosBuscar1.getSelectedRow();\r\n int numFilas = adminView.TableAdminEmpleadosBuscar1.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.TableAdminEmpleadosBuscar1.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleado(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n \r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosListarPermiso){\r\n setTablePermiso(adminView.jTableAdminEmpleadosBuscarPermisos);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarROL){\r\n setTableRol(adminView.jTableAdminEmpleadosBuscarRol);\r\n \r\n }\r\n \r\n \r\n //Vacciones Empleados\r\n \r\n if(e.getSource() == adminView.btnAdminVacacionesRegistrar2){\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaInicio = dateFormat.format(adminView.textAdminVacacionesFechaInicial.getDate());\r\n String fechaFin = dateFormat.format(adminView.textAdminVacacionesFechaFinal.getDate());\r\n \r\n int filaActualizar = adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getSelectedRowCount();\r\n \r\n if(filaActualizar>= 0 && numFilas ==1){\r\n if((fechaInicio.compareTo(fechaFin)) < 0){\r\n String cedula =(String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getValueAt(filaActualizar, 0);\r\n int rstaRegistro = modelPermisoDAO.insertVacaionesEmpleados(fechaInicio,fechaFin,cedula);\r\n if(rstaRegistro>0){\r\n JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n \r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+fechaInicio+\" es mayor a Fecha Fin : \"+fechaFin,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n \r\n }\r\n \r\n /* if(e.getSource() == adminView.btnAdminVacacionesListar2){ \r\n setVacacionesEmpleados(adminView.tableAdminVacacionesuscarTienda/*,cedula*; \r\n }*/\r\n if(e.getSource() == adminView.btnAdminVacacionesActualizar2){\r\n int filaActualizar = adminView.tableAdminVacacionesuscarTienda.getSelectedRow();\r\n int numFilas = adminView.tableAdminVacacionesuscarTienda.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n cedula =(String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 0);\r\n \r\n String dateTime = (String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 3);\r\n String dateTime2 = (String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 4); \r\n \r\n try {\r\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dateTime);\r\n adminView.textAdminVacacionesFechaInicial.setDate(date);\r\n Date date2 = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dateTime2);\r\n adminView.textAdminVacacionesFechaFinal.setDate(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n adminView.textAdminVacacionesEmpleadosBuscarTiendaNombre.setEditable(false);\r\n\r\n \r\n adminView.btnAdminVacacionesActualizar2.setEnabled(false);\r\n \r\n adminView.btnAdminVacacionesEliminar2.setEnabled(false);\r\n adminView.btnAdminVacacionesRegistrar2.setEnabled(false);\r\n //adminView.btnAdminVacacionesListar2.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminVacacionesActualizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminVacacionesActualizarOK2){\r\n \r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaInicio = dateFormat.format(adminView.textAdminVacacionesFechaInicial.getDate());\r\n String fechaFin = dateFormat.format(adminView.textAdminVacacionesFechaFinal.getDate());\r\n \r\n \r\n if((fechaInicio.compareTo(fechaFin)) < 0){\r\n \r\n int rstaRegistro = modelPermisoDAO.actualizarVacaionesEmpleados(fechaInicio,fechaFin,cedula);\r\n if(rstaRegistro>0){\r\n JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n adminView.textAdminVacacionesEmpleadosBuscarTiendaNombre.setEditable(true);\r\n\r\n \r\n adminView.btnAdminVacacionesActualizar2.setEnabled(true);\r\n \r\n adminView.btnAdminVacacionesEliminar2.setEnabled(true);\r\n adminView.btnAdminVacacionesRegistrar2.setEnabled(true);\r\n // adminView.btnAdminVacacionesListar2.setEnabled(true);\r\n \r\n \r\n adminView.btnAdminVacacionesActualizarOK2.setEnabled(false);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+fechaInicio+\" es mayor a Fecha Fin : \"+fechaFin,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminVacacionesEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminVacacionesuscarTienda.getSelectedRow();\r\n int numFilas = adminView.tableAdminVacacionesuscarTienda.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminVacacionesuscarTienda.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteVacaionesEmpleados(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n \r\n //Clientes Juridicos y Natural\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosRegistrar){\r\n String capital = adminView.textRegistroCLienteJuridicoCapitalDisponible.getText().toUpperCase();\r\n String denominacion= adminView.textRegistroCLienteJuridicoDenominacionComercial.getText().toUpperCase();;\r\n String email= adminView. textRegistroCLienteJuridicoEmail.getText();\r\n String pass= adminView.textRegistroCLienteJuridicoPass.getText().toUpperCase();;\r\n String pregunta= adminView. textRegistroCLienteJuridicoPreguntaSecreta.getText().toUpperCase();;\r\n String razon= adminView.textRegistroCLienteJuridicoRazonSocial.getText().toUpperCase();;\r\n String respuesta= adminView.textRegistroCLienteJuridicoRespuestaSecreta.getText().toUpperCase();;\r\n String rif= adminView.textRegistroCLienteJuridicoRif.getText().toUpperCase();;\r\n String user= adminView.textRegistroCLienteJuridicoUsuario.getText().toUpperCase();;\r\n String telefono= adminView.textRegistroCLienteJuridicoTelefono.getText();\r\n \r\n String web= adminView.textRegistroCLienteJuridicoWeb.getText();\r\n \r\n if(ExpresionesRegulares.validarCorreo(email)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n if(ExpresionesRegulares.validarWeb(web)){\r\n int filaActualizar = adminView.tableAdminJuridicosTiendas1.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosTiendas1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertJuridico(rif, denominacion,razon,web,capital, (String) adminView.tableAdminJuridicosTiendas1.getValueAt(filaActualizar, 0),\r\n \"1\",\"1\"\r\n /*Usuario*/\r\n ,user,pass, pregunta,respuesta,\r\n /*Mail*/\r\n email,\r\n /*Telefono*/\r\n \"Oficina Central\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Tienda\");\r\n }\r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Pagina WEB incorrecta\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalRegistro){\r\n String apellido= adminView.textRegistroCLienteNaturalApellido.getText().toUpperCase();;\r\n String cedula = adminView.textRegistroCLienteNaturalCedula.getText().toUpperCase();\r\n String mail= adminView.textRegistroCLienteNaturalEmail.getText();\r\n String nombre= adminView.textRegistroCLienteNaturalNombre.getText().toUpperCase();\r\n String pass = adminView.textRegistroCLienteNaturalPass.getText().toUpperCase();\r\n String pregunta = adminView.textRegistroCLienteNaturalPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = adminView.textRegistroCLienteNaturalRespuestaSecreta.getText().toUpperCase();\r\n String rif= adminView.textRegistroCLienteNaturalRif.getText().toUpperCase();\r\n String apellido2= adminView.textRegistroCLienteNaturalSegundoApellido.getText().toUpperCase();\r\n String nombre2= adminView.textRegistroCLienteNaturalSegundoNombre.getText().toUpperCase();\r\n String telefono= adminView.textRegistroCLienteNaturalTelefono.getText().toUpperCase();\r\n String user= adminView.textRegistroCLienteNaturalUser.getText().toUpperCase();\r\n \r\n if(ExpresionesRegulares.validarCorreo(mail)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n int filaActualizar = adminView.tableAdminNaturalesTiendas.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesTiendas.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertNatural(cedula ,rif,nombre\r\n ,nombre2,apellido,apellido2, (String) adminView.tableAdminNaturalesTiendas.getValueAt(filaActualizar, 0),\r\n \"1\"\r\n /*Usuario*/\r\n ,user,pass, pregunta,respuesta,\r\n /*Mail*/\r\n mail,\r\n /*Telefono*/\r\n \"Telefono personal\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Tienda\");\r\n }\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosEliminar1){\r\n int filaInicioBeneficio= adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminJuridicosBuscarClientsJuridicos.getValueAt(i+filaInicioBeneficio, 1));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteJuridicos(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminNaturalesBuscarCleintesNaturales.getValueAt(i+filaInicioBeneficio, 1));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteNaturales(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosActualizar1){\r\n int filaActualizar = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminJuridicosBuscarClientsJuridicos.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdateJuridico(codigo_permiso,\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial, \r\n adminView.textRegistroCLienteJuridicoRazonSocial, \r\n adminView.textRegistroCLienteJuridicoRif, \r\n adminView.textRegistroCLienteJuridicoTelefono, \r\n adminView.textRegistroCLienteJuridicoWeb, \r\n adminView.textRegistroCLienteJuridicoEmail,\r\n adminView.textRegistroCLienteJuridicoCapitalDisponible,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textRegistroCLienteJuridicoUsuario, \r\n adminView.textRegistroCLienteJuridicoPass, \r\n adminView.textRegistroCLienteJuridicoPreguntaSecreta, \r\n adminView.textRegistroCLienteJuridicoRespuestaSecreta\r\n );\r\n \r\n /*adminView.textAdminEmpleadosCedula.setText(cedula);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 1));\r\n \r\n adminView.textAdminEmpleadosPrimerApellido.setText((String)adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 2));\r\n \r\n adminView.textAdminEmpleadosSalario.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 3));\r\n */\r\n \r\n adminView.textAdminClientesJuridicosBuscarClintes.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoRazonSocial.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoRif.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoUsuario.setEditable(false);\r\n \r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n \r\n \r\n adminView.btnAdminClientesJuridicosRegistrar.setEnabled(false);\r\n adminView.btnAdminClientesJuridicosActualizar1.setEnabled(false);\r\n adminView.btnAdminClientesJuridicosEliminar1.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminClientesJuridicosActuaizarOK1.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosActuaizarOK1){\r\n String capital = adminView.textRegistroCLienteJuridicoCapitalDisponible.getText().toUpperCase();\r\n String denominacion= adminView.textRegistroCLienteJuridicoDenominacionComercial.getText().toUpperCase();;\r\n String email= adminView. textRegistroCLienteJuridicoEmail.getText();\r\n String pass= adminView.textRegistroCLienteJuridicoPass.getText().toUpperCase();;\r\n String pregunta= adminView. textRegistroCLienteJuridicoPreguntaSecreta.getText().toUpperCase();;\r\n String razon= adminView.textRegistroCLienteJuridicoRazonSocial.getText().toUpperCase();;\r\n String respuesta= adminView.textRegistroCLienteJuridicoRespuestaSecreta.getText().toUpperCase();;\r\n String rif= adminView.textRegistroCLienteJuridicoRif.getText().toUpperCase();;\r\n String user= adminView.textRegistroCLienteJuridicoUsuario.getText().toUpperCase();;\r\n String telefono= adminView.textRegistroCLienteJuridicoTelefono.getText();\r\n \r\n String web= adminView.textRegistroCLienteJuridicoWeb.getText();\r\n \r\n if(ExpresionesRegulares.validarCorreo(email)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n if(ExpresionesRegulares.validarWeb(web)){\r\n \r\n \r\n int rta= modelPermisoDAO.actualizarJuridico(rif, denominacion,razon,web,capital,\r\n \"1\",\"1\"\r\n /*Usuario*/\r\n ,pass, pregunta,respuesta,\r\n /*Mail*/\r\n email,\r\n /*Telefono*/\r\n telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.textAdminClientesJuridicosBuscarClintes.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoRazonSocial.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoRif.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoUsuario.setEditable(true);\r\n\r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n\r\n\r\n adminView.btnAdminClientesJuridicosRegistrar.setEnabled(true);\r\n adminView.btnAdminClientesJuridicosActualizar1.setEnabled(true);\r\n adminView.btnAdminClientesJuridicosEliminar1.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminClientesJuridicosActuaizarOK1.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Pagina WEB incorrecta\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminClientesNaturalActualizar2){\r\n int filaActualizar = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminNaturalesBuscarCleintesNaturales.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdateNatural(codigo_permiso,\r\n adminView.textRegistroCLienteNaturalNombre, \r\n adminView.textRegistroCLienteNaturalSegundoNombre, \r\n adminView.textRegistroCLienteNaturalApellido, \r\n adminView.textRegistroCLienteNaturalSegundoApellido, \r\n adminView.textRegistroCLienteNaturalTelefono, \r\n adminView.textRegistroCLienteNaturalCedula,\r\n adminView.textRegistroCLienteNaturalRif,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textRegistroCLienteNaturalEmail, \r\n adminView.textRegistroCLienteNaturalUser, \r\n adminView.textRegistroCLienteNaturalPass, \r\n adminView.textRegistroCLienteNaturalPreguntaSecreta,\r\n adminView.textRegistroCLienteNaturalRespuestaSecreta\r\n );\r\n \r\n \r\n adminView.textAdminClientesNaturalesBuscarClientes.setEditable(false);\r\n adminView.textRegistroCLienteNaturalNombre.setEditable(false);\r\n adminView.textRegistroCLienteNaturalSegundoNombre.setEditable(false);\r\n adminView.textRegistroCLienteNaturalApellido.setEditable(false);\r\n adminView.textRegistroCLienteNaturalSegundoApellido.setEditable(false);\r\n \r\n adminView.textRegistroCLienteNaturalCedula.setEditable(false);\r\n adminView.textRegistroCLienteNaturalRif.setEditable(false);\r\n adminView.textRegistroCLienteNaturalUser.setEditable(false);\r\n \r\n \r\n adminView.btnAdminClientesNaturalRegistro.setEnabled(false);\r\n adminView.btnAdminClientesNaturalActualizar2.setEnabled(false);\r\n adminView.btnAdminClientesNaturalEliminar2.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminClientesNaturalActuaizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalActuaizarOK2){\r\n String apellido= adminView.textRegistroCLienteNaturalApellido.getText().toUpperCase();;\r\n String cedula = adminView.textRegistroCLienteNaturalCedula.getText().toUpperCase();\r\n String mail= adminView.textRegistroCLienteNaturalEmail.getText();\r\n String nombre= adminView.textRegistroCLienteNaturalNombre.getText().toUpperCase();\r\n String pass = adminView.textRegistroCLienteNaturalPass.getText().toUpperCase();\r\n String pregunta = adminView.textRegistroCLienteNaturalPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = adminView.textRegistroCLienteNaturalRespuestaSecreta.getText().toUpperCase();\r\n String rif= adminView.textRegistroCLienteNaturalRif.getText().toUpperCase();\r\n String apellido2= adminView.textRegistroCLienteNaturalSegundoApellido.getText().toUpperCase();\r\n String nombre2= adminView.textRegistroCLienteNaturalSegundoNombre.getText().toUpperCase();\r\n String telefono= adminView.textRegistroCLienteNaturalTelefono.getText();\r\n String user= adminView.textRegistroCLienteNaturalUser.getText().toUpperCase();\r\n \r\n if(ExpresionesRegulares.validarCorreo(mail)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n \r\n \r\n int rta= modelPermisoDAO.actualizarNatural(cedula , \"1\"\r\n /*Usuario*/\r\n ,pass, pregunta,respuesta,\r\n /*Mail*/\r\n mail,\r\n /*Telefono*/\r\n telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa Exitoso\");\r\n adminView.textAdminClientesNaturalesBuscarClientes.setEditable(true);\r\n adminView.textRegistroCLienteNaturalNombre.setEditable(true);\r\n adminView.textRegistroCLienteNaturalSegundoNombre.setEditable(true);\r\n adminView.textRegistroCLienteNaturalApellido.setEditable(true);\r\n adminView.textRegistroCLienteNaturalSegundoApellido.setEditable(true);\r\n\r\n adminView.textRegistroCLienteNaturalCedula.setEditable(true);\r\n adminView.textRegistroCLienteNaturalRif.setEditable(true);\r\n adminView.textRegistroCLienteNaturalUser.setEditable(true);\r\n\r\n\r\n adminView.btnAdminClientesNaturalRegistro.setEnabled(true);\r\n adminView.btnAdminClientesNaturalActualizar2.setEnabled(true);\r\n adminView.btnAdminClientesNaturalEliminar2.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminClientesNaturalActuaizarOK2.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n \r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n //PERSONA CONTACO\r\n if(e.getSource() == adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1){\r\n String cedula= adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.getText().toUpperCase();;\r\n String nombre= adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.getText().toUpperCase();\r\n String apellido= adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.getText();\r\n String telefono= adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1.getText();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n int filaActualizar = adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertPersonaContacto(cedula, nombre\r\n ,apellido,\r\n (String) adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getValueAt(filaActualizar, 0),\r\n \r\n /*Telefono*/\r\n \"Oficina Central\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deletePErsonaContaco(listaNombre.get(i));\r\n JOptionPane.showMessageDialog(null, \"Gestion Exitosa\");\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos un Contacto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosPersonaContacoActualizar2){\r\n int filaActualizar = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdatePersonaContacto(codigo_permiso,\r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1, \r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1, \r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1, \r\n adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1);\r\n \r\n \r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.setEditable(false);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarPErsona2.setEditable(false);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarEmpleado1.setEditable(false);\r\n \r\n \r\n \r\n \r\n adminView.btnAdminClientesJuridicosPersonaContacoActualizar2.setEnabled(false);\r\n adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2.setEnabled(false);\r\n adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar a un Contacto\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2){\r\n String telefono= adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1.getText();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n \r\n \r\n int rta= modelPermisoDAO.actualizarNPersonaContaco(\r\n \r\n \r\n /*Telefono*/\r\n telefono,codigo_permiso);\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitoso\");\r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.setEditable(true);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarPErsona2.setEditable(true);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarEmpleado1.setEditable(true);\r\n\r\n\r\n\r\n\r\n adminView.btnAdminClientesJuridicosPersonaContacoActualizar2.setEnabled(true);\r\n adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2.setEnabled(true);\r\n adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n \r\n }\r\n }",
"public void ingresaAdministrativo() {\n\tEstableceDatosAdministrativos();\n\tint cambio=0;\n\tdo {\n\t\t\n\t\ttry {\n\t\t\tsetMontoCredito(Double.parseDouble(JOptionPane.showInputDialog(\"Ingrese el monto del credito (�3 600 000 maximo)\")));\n\t\t\tcambio=1;\n\t\t\tif(getMontoCredito()<0||getMontoCredito()>3600000) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El monto debe ir de �0 a �3600000\");\n\t\t\t}\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese solo numeros\");\n\t\t}\n\t}while(getMontoCredito()<0||getMontoCredito()>3600000||cambio==0);\n\tsetInteres(12);\n\tsetPlazo(60);\n\tsetCuotaPagar(calculoCuotaEspecialOrdinario());\n\testableceEquipoComputo();\n}",
"private void actualitzaPasswd(String nou){\n user.setPasswd(nou);\n try{\n helperU.actualitzar(user, false);\n \n info(\"Contrasenya actualitzada!\");\n }catch(Exception ex){\n avis(\"Error al actualitzar la contrasenya!\");\n }\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n ReadFile rf = new ReadFile();//instance class\n Password ClassPass = new Password();//instance class\n String levelPass = ClassPass.algorithmPass(TFAddPassword.getText());\n //validate not null fieldtext\n if ((TFAddPassword.getText().length() != 0) && (TFAddPhoneNumber.getText().length() != 0) && \n (TFAddAltEmail.getText().length() != 0)&& (!TFAddPhoto.getText().equals(\"Seleccionar archivo\")) && (jDCDate.getDate() != null)) \n {\n if (levelPass.equals(\"Nivel Alto.\") || levelPass.equals(\"Nivel Medio.\") || levelPass.equals(\"Nivel Medio alto.\")) \n {\n String formato = jDCDate.getDateFormatString(); \n Date fecha = jDCDate.getDate();\n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String passCypher = ClassPass.P_encode(\"meia\", TFAddPassword.getText());//encode\n int Tel = 0;\n Tel = Integer.parseInt(TFAddPhoneNumber.getText());\n String message = rf.InsertUser2(user,passCypher,String.valueOf(sdf.format(fecha).toString()),\n TFAddAltEmail.getText(), Tel,photo,false,true);\n if (message.equals(\"Modificado con exito.\")) {\n JOptionPane.showMessageDialog(null,message, \"Modificar Usuario\", JOptionPane.INFORMATION_MESSAGE);\n //Regresar al Login\n this.dispose();\n }\n else{\n JOptionPane.showMessageDialog(null,message, \"Crear Uusario\", JOptionPane.INFORMATION_MESSAGE);\n } \n }else{\n JOptionPane.showMessageDialog(null,\"Aumente nivel de contraseña.\", \"Campo Contraseña\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Existen todavia campos vacios.\", \"Campo Vacio\", JOptionPane.INFORMATION_MESSAGE);\n } \n\n }",
"private void registraLog(int aTipo, String aMensagem)\n\t{\n\t\tArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance();\n\t\tif (aTipo == Definicoes.FATAL)\n\t\t\tlogger.fatal(aMensagem);\n\t\telse if (aTipo == Definicoes.ERRO)\n\t\t\t\tlogger.error(aMensagem);\n\t\telse if (aTipo == Definicoes.WARN)\n\t\t\t\tlogger.warn(aMensagem);\n\t\telse if (aTipo == Definicoes.INFO)\n\t\t\t\tlogger.info(aMensagem);\n\t\telse if (aTipo == Definicoes.DEBUG)\n\t\t{\n\t\t\t\tif (arqConf.getSaidaDebug())\n\t\t\t\t\tlogger.debug(aMensagem);\n\t\t}\n\t\telse logger.warn(\"SEVERIDADE NAO DEFINIDA - \" + aMensagem);\n\t}",
"public void registrarAdministrador() throws IOException {\n\n //asignamos al usuario la imagen de perfil default\n usuarioView.setUsuarioFotoRuta(getPathDefaultUsuario());\n usuarioView.setUsuarioFotoNombre(getNameDefaultUsuario());\n\n //Se genera un login y un pass aleatorio que se le envia al proveedor\n MD5 md = new MD5();\n GenerarPassword pass = new GenerarPassword();\n SendEmail email = new SendEmail();\n\n password = pass.generarPass(6);//Generamos pass aleatorio\n\n //Encriptamos las contraseñas\n usuarioView.setUsuarioPassword(md.getMD5(password));//Se encripta la contreseña\n usuarioView.setUsuarioRememberToken(md.getMD5(password));\n\n //el metodo recibe los atributos, agrega al atributo ciudad del objeto usuario un objeto correspondiente, \n //de la misma forma comprueba el rol y lo asocia, por ultimo persiste el usuario en la base de datos\n usuarioView.setSmsCiudad(ciudadDao.consultarCiudad(usuarioView.getSmsCiudad()));//Asociamos una ciudad a un usuario\n usuarioView.setSmsRol(rolDao.consultarRol(usuarioView.getSmsRol()));//Asociamos un rol a un usuario\n usuarioView.setUsuarioEstadoUsuario(1);//Asignamos un estado de cuenta\n usuarioView.setSmsNacionalidad(nacionalidadDao.consultarNacionalidad(usuarioView.getSmsNacionalidad()));\n\n //registramos el usuario y recargamos la lista de clientes\n usuarioDao.registrarUsuario(usuarioView);\n usuariosListView = adminDao.consultarUsuariosAdministradores();\n\n //Enviar correo\n email.sendEmailAdministradorBienvenida(usuarioView, password);\n\n //limpiamos objetos\n usuarioView = new SmsUsuario();\n password = \"\";\n }",
"public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException {\n res_id = mod_res_id;\n res_type = RES_TYPE_MOD;\n res_upd_user = prof.usr_id;\n\n super.checkTimeStamp(con);\n\n if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) {\n // Check if the question is ordered in 1,2,3....\n if (!checkQorder(con)) {\n //Questions are not in the correct order.\n throw new qdbErrMessage(\"MOD001\");\n }\n }\n\n //if the module is standard test or dynamic test\n //make sure that you can only turn the module online\n //if the test has question/criteria defined in it\n if (res_status.equalsIgnoreCase(RES_STATUS_ON)) {\n if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) {\n if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) {\n if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n }\n }\n\n super.updateStatus(con);\n\n // permission records have to be cleared no matter mod_instructor is specified or not\n dbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n if (mod_instructor_ent_id_lst != null) {\n for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false);\n }\n }\n\n //Dennis, 2000-12-13, impl release control\n //If the new status == DATE, update the eff_start/end_datetime in Module\n //if(res_status.equalsIgnoreCase(RES_STATUS_DATE))\n //2001-01-05, all status will have eff datetime\n updateEffDatetime(con);\n }",
"@Override\r\n\t\t\t\t\tpublic void onSuccess(CellComAjaxResult arg0) {\n\t\t\t\t\t\tDismissProgressDialog();\r\n\t\t\t\t\t\tLoginComm modifyPwdComm = arg0.read(LoginComm.class,\r\n\t\t\t\t\t\t\t\tCellComAjaxResult.ParseType.GSON);\r\n\t\t\t\t\t\tString state = modifyPwdComm.getReturnCode();\r\n\t\t\t\t\t\tString msg = modifyPwdComm.getReturnMessage();\r\n\t\t\t\t\t\tif (!FlowConsts.STATUE_1.equals(state)) {\r\n\t\t\t\t\t\t\tShowMsg(msg);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tSharepreferenceUtil.write(ModifyPwdActivity.this,\r\n\t\t\t\t\t\t\t\t\tSharepreferenceUtil.fileName, \"pwd\",\r\n\t\t\t\t\t\t\t\t\tAESEncoding.Encrypt(newpwdettxt,\r\n\t\t\t\t\t\t\t\t\t\t\tFlowConsts.key));\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\t\tModifyPwdActivity.this.finish();\r\n\t\t\t\t\t\tShowMsg(\"密码修改成功\");\r\n//\t\t\t\t\t\tstartTask(oldpwdettxt, newpwdettxt, newpwdettxt);\r\n\t\t\t\t\t}",
"@Override\r\n\tpublic Admin savelog(Admin log) {\n\t\treturn user.savelog(log);\r\n\t}",
"private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }",
"public String update() {\n\t\tif (getElement().getIdTipo() == null) {\n\t\t\tFacesContext.getCurrentInstance()\n\t\t\t\t\t.addMessage(\n\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\tnew FacesMessage(\"Tipo non valido\",\n\t\t\t\t\t\t\t\t\t\"Selezionare il tipo.\"));\n\t\t\treturn null;\n\t\t}\n\t\tModulo t = getSession().update(element);\n\t\t// refresh locale\n\t\telement = t;\n\t\trefreshModel();\n\t\t// vista di destinzione\n\t\toperazioniLogHandler.save(OperazioniLog.MODIFY, JSFUtils.getUserName(),\n\t\t\t\t\"modifica moduli: \" + this.element.getNome());\n\t\treturn viewPage();\n\t}",
"public void testModifierUtilisateur() {\n System.out.println(\"modifierUtilisateur\");\n Utilisateur putilisateur = null;\n boolean expResult = false;\n boolean result = Utilisateur.modifierUtilisateur(putilisateur);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\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 }",
"private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}",
"public void setFechaImplementacionActividad(int IdActividad, String tipo) throws IOException{\n TipoActividad tipoActividad = TipoActividad.valueOf(tipo.toUpperCase());\n FechaImplementacion = new Date();\n if((fDatos.setFechaImplementacionActividad(FechaImplementacion, IdActividad, AccionSeleccionada.getId()))== -1){\n switch(tipoActividad){\n case CORRECTIVA->mostrarErrorCorrectiva(IdActividad);\n case PREVENTIVA->mostrarErrorPreventiva(IdActividad);\n default->mostrarErrorActividad(IdActividad);\n }\n }else{\n // recargar vista de seguimiento\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }",
"private void modificaAccount(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n HttpSession session = request.getSession();\r\n\r\n String codiceFiscale = request.getParameter(\"codiceFiscale\");\r\n String nome = request.getParameter(\"nome\");\r\n String cognome = request.getParameter(\"cognome\");\r\n String sesso = request.getParameter(\"sesso\");\r\n String email = request.getParameter(\"email\");\r\n String residenza = request.getParameter(\"residenza\");\r\n String luogoDiNascita = request.getParameter(\"luogoDiNascita\");\r\n String dataDiNascita = request.getParameter(\"dataDiNascita\");\r\n String password = request.getParameter(\"password\");\r\n String confermaPsw = request.getParameter(\"confermaPsw\");\r\n\r\n if (validazione(codiceFiscale, nome, cognome, sesso, email, residenza, luogoDiNascita, \r\n dataDiNascita, password, confermaPsw)) {\r\n\r\n // Medico medico = MedicoModel.getMedicoByCF(codiceFiscale);\r\n Medico medico = (Medico) session.getAttribute(\"utente\");\r\n\r\n if (medico != null) {\r\n\r\n if (!email.equals(medico.getEmail()) && MedicoModel\r\n .checkEmail(email)) {\r\n response.sendRedirect(\"./ModificaAccountMedicoView.jsp?notifica=EmailGiaInUso\");\r\n return;\r\n }\r\n\r\n medico.setNome(nome);\r\n medico.setCognome(cognome);\r\n medico.setSesso(sesso);\r\n medico.setEmail(email);\r\n medico.setResidenza(residenza);\r\n medico.setLuogoDiNascita(luogoDiNascita);\r\n\r\n if (!dataDiNascita.equals(\"\")) {\r\n medico.setDataDiNascita(LocalDate.parse(dataDiNascita, DateTimeFormatter.ofPattern(\"dd/MM/yyyy\")));\r\n }\r\n MedicoModel.updateMedico(medico);\r\n password = CriptazioneUtility.criptaConMD5(password);// serve a criptare la pasword in MD5\r\n // prima di registrarla nel db ps.non\r\n // cancellare il commento quando\r\n // spostate la classe\r\n\r\n MedicoModel.updatePasswordMedico(medico.getCodiceFiscale(), password);\r\n session.setAttribute(\"medico\", medico);\r\n\r\n response.sendRedirect(\"./profilo.jsp?notifica=modificaEffettuata\");\r\n\r\n } else {\r\n request.setAttribute(\"notifica\", \"Non e' stato trovato il medico da aggiornare\");\r\n RequestDispatcher requestDispatcher = request.getRequestDispatcher(\"./dashboard.jsp\");\r\n requestDispatcher.forward(request, response);\r\n }\r\n } else {\r\n request.setAttribute(\"notifica\", \"Uno o piu' parametri del medico non sono validi.\");\r\n RequestDispatcher requestDispatcher = \r\n request.getRequestDispatcher(\"./ModificaAccountMedicoView.jsp\");\r\n requestDispatcher.forward(request, response);\r\n }\r\n }",
"public void showOpinionCreatedMessage(int success) {\n if (success == 2) { // Update Opinion\n Toast.makeText(getBaseContext(), \"Opinión actualizada con éxito\", Toast.LENGTH_LONG).show();\n } else if (success == 1) { // Insert Opinion\n Toast.makeText(getBaseContext(), \"Opinión enviada con éxito\", Toast.LENGTH_LONG).show();\n } else { // Insert & Update Failed\n Toast.makeText(getBaseContext(), \"Intentelo más tarde\", Toast.LENGTH_LONG).show();\n }\n }",
"private Long modificarTelefono(Telefono telefono) {\n\t\ttry {\n\t\t\tgTelefono.modify(telefono);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn telefono.getIdTelefono();\n\t}",
"public boolean ModificarUsuario(String user, UsuarioDTO u) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n String sql = \"UPDATE usuario SET nombre = ?, apellido = ?, descripcion = ?,\"\n + \"telefono = ?, direccion = ? , usuario = ?, email = ?, \"\n + \"fecha_nacimiento = ?, sexo=? WHERE id =\" + conocerID(user);\n try {\n ps = c.getConexion().prepareStatement(sql);\n UsuarioDTO tmp = conocerUsuario(user);\n ps.setString(1, (u.getNombre() != null) ? u.getNombre() : tmp.getNombre());\n ps.setString(2, (u.getApellido() != null) ? u.getApellido() : tmp.getApellido());\n ps.setString(3, (u.getDescripcion() != null) ? u.getDescripcion() : tmp.getDescripcion());\n ps.setString(4, (u.getTelefono() != null) ? u.getTelefono() : tmp.getTelefono());\n ps.setString(5, (u.getDireccion() != null) ? u.getDireccion() : tmp.getDireccion());\n ps.setString(6, (u.getUsuario() != null) ? u.getUsuario() : tmp.getUsuario());\n ps.setString(7, (u.getEmail() != null) ? u.getEmail() : tmp.getEmail());\n ps.setDate(8, (u.getFecha_Nacimiento().length()>0) ? Date.valueOf(u.getFecha_Nacimiento()) : Date.valueOf(tmp.getFecha_Nacimiento()));\n ps.setString(9, (u.getSexo() != null) ? u.getSexo() : tmp.getSexo());\n ps.executeUpdate();\n return true;\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"protected void submitEdit(ActionEvent e) {\n\t\tString oldPassword = oldPasswordTextField.getText().toString();\r\n\t\tString newPassword = newPasswordTextField.getText().toString();\r\n\t\tString confirmPassword = confirmPasswordTextField.getText().toString();\r\n\t\tif(com.car.util.StringUtil.isEmpty(oldPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请填写旧密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(com.car.util.StringUtil.isEmpty(newPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请填写新密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(com.car.util.StringUtil.isEmpty(confirmPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请确认新密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(!newPassword.equals(confirmPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"两次密码输入不一致!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"系统管理员\".equals(MaimFrame.userType.getName())) {\r\n\t\t\tAdminDao adminDao = new AdminDao();\r\n\t\t\tAdmin adminTmp = new Admin();\r\n\t\t\tAdmin admin = (Admin)MaimFrame.userObject;\r\n\t\t\tadminTmp.setName(admin.getName());\r\n\t\t\tadminTmp.setId(admin.getId());\r\n\t\t\tadminTmp.setPassword(oldPassword);\r\n\t\t\tJOptionPane.showMessageDialog(this, adminDao.editPassword(adminTmp, newPassword));\r\n\t\t\tadminDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"客户\".equals(MaimFrame.userType.getName())){\r\n\t\t\tCustomerDao customerDao = new CustomerDao();\r\n\t\t\tCustomer customerTmp = new Customer();\r\n\t\t\tCustomer customer = (Customer)MaimFrame.userObject;\r\n\t\t\tcustomerTmp.setName(customer.getName());\r\n\t\t\tcustomerTmp.setPassword(oldPassword);\r\n\t\t\tcustomerTmp.setId(customer.getId());\r\n\t\t\tJOptionPane.showMessageDialog(this, customerDao.editPassword(customerTmp, newPassword));\r\n\t\t\tcustomerDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"员工\".equals(MaimFrame.userType.getName())){\r\n\t\t\tEmployeeDao employeeDao = new EmployeeDao();\r\n\t\t\tEmployee employeeTmp = new Employee();\r\n\t\t\tEmployee employee = (Employee)MaimFrame.userObject;\r\n\t\t\temployeeTmp.setName(employee.getName());\r\n\t\t\temployeeTmp.setPassword(oldPassword);\r\n\t\t\temployeeTmp.setId(employee.getId());\r\n\t\t\tJOptionPane.showMessageDialog(this, employeeDao.editPassword(employeeTmp, newPassword));\r\n\t\t\temployeeDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"public void atualizarStatusAgendamento() {\n\n if (agendamentoLogic.editarStatusTbagendamento(tbagendamentoSelected, tbtipostatusagendamento)) {\n AbstractFacesContextUtils.addMessageInfo(\"Status atualizado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao alterar status do agendamento.\");\n }\n }",
"@Override\n\t/*Método que se utilizará en el momento de modificar los datos de un usuario desde su panel de usuario*/\n\tpublic String modificarUsuario(String nombreusuario, String nombre,String apellidos,String clave,String email,String premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sqldatos=\"select * from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //selecciono los datos actuales del usuario\n\t\t\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sqldatos);\n\t\t\t//Las siguientes variables guardarán los datos del usuario que tienen en la base de datos \n\t\t\tString nombrebd=\"\";\n\t\t\tString apellidosbd=\"\"; \n\t\t\tString clavebd= \"\"; \n\t\t\tString emailbd= \"\";\n\t\t\tString premiumbd=\"\";\n\t\t\twhile(rs.next()) {\n\t\t\t\tnombrebd=rs.getString(\"nombre\");\n\t\t\t\tapellidosbd= rs.getString(\"apellidos\"); \n\t\t\t\tclavebd= rs.getString(\"clave\"); \n\t\t\t\temailbd=rs.getString(\"email\");\n\t\t\t\tpremiumbd=rs.getString(\"premium\");\n\t\t\t}\n\t\t\t\n\t\t\t//en caso de que algunos de los campos de ese formulario NO estén completos, se pondrán los datos que ya se tenían en la BD relacionados con el mismo\n\t\t\t//si esto no se hiciese así, quedarían datos en blanco\n\t\t\tif(nombre.equals(\"\")) {\n\t\t\t\tnombre=nombrebd;\n\t\t\t}\n\t\t\tif(apellidos.equals(\"\")) {\n\t\t\t\tapellidos=apellidosbd;\n\t\t\t}\n\t\t\tif(clave.equals(\"\")) {\n\t\t\t\tclave=clavebd;\n\t\t\t}\n\t\t\tif(email.equals(\"\")) {\n\t\t\t\temail=emailbd;\n\t\t\t}\n\t\t\tif(premium.equals(\"\")) {\n\t\t\t\tpremium=premiumbd;\n\t\t\t}\n\t\t\t\n\t\t\tString sqlmodificacion=\"Update usuarios SET nombre='\"+nombre+\"', apellidos='\"+apellidos+\"',clave='\"+clave+\"', email='\"+email+\"', premium='\"+premium+\"' where nombreusuario LIKE '\"+nombreusuario+\"'\";\n\t\t\tst.executeQuery(sqlmodificacion); //se modifica el usuario \n\t\t\tst.close();\n\t\t\treturn \"OK\"; //se devuelve para mostrarse en la web este mensaje\n\t\t}catch(Exception e){\n\t\t\treturn e.getMessage();\n\t\t}finally{\n\t\t\tcon.desconectar();\n\t\t}\n\t}",
"private void verificaTipoUsuario(Usuario usuario) {\n \n if( usuario.getTipoUsuario() == 3 ){ //Usuário apenas visualização\n adicionarInvAnimaisBT.setEnabled(false);\n adicionarInvBenfeitoriasBT.setEnabled(false);\n adicionarInvMaquinasBT.setEnabled(false);\n adicionarInvTerrasBT.setEnabled(false);\n \n editarInvAnimaisBT.setEnabled(false);\n editarInvBenfeitoriasBT.setEnabled(false);\n editarInvMaquinasBT.setEnabled(false);\n editarInvTerrasBT.setEnabled(false);\n \n removerInvAnimaisBT.setEnabled(false);\n removerInvBenfeitoriasBT.setEnabled(false);\n removerInvMaquinasBT.setEnabled(false);\n removerInvTerrasBT.setEnabled(false);\n \n atividadeLeiteBT.setEnabled(false);\n custoOportBT.setEnabled(false);\n salarioMinimoBT.setEnabled(false);\n \n valorGastoAnimaisBT.setEnabled(false);\n vidaUtilReprodBT.setEnabled(false);\n vidaUtilServBT.setEnabled(false);\n }\n \n }",
"public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void run() {\n AlertDialog.Builder mesg = new AlertDialog.Builder(EditarFichaConsulta.this);\n mesg.setMessage(\"Editado com Sucesso!\");\n mesg.setTitle(\"\");\n mesg.setCancelable(false);\n mesg.setNeutralButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n //mesg.setIcon(android.R.drawable.ic_dialog_alert);\n mesg.show();\n // onLoginFailed();\n progressDialog.dismiss();\n }",
"public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;",
"public void successfulCreation(String type) {\n switch (type) {\n case \"Attendee\":\n System.out.println(\"Attendee Created\");\n break;\n case \"Organizer\":\n System.out.println(\"Organizer Created\");\n break;\n case \"Speaker\":\n System.out.println(\"Speaker Created\");\n break;\n case \"VIP\":\n System.out.println(\"VIP Created\");\n break;\n }\n }",
"@Then(\"^o usuario se loga no aplicativo cetelem$\")\n\tpublic void verificaSeUsuarioLogadoComSucesso() throws Throwable {\n\t\tAssert.assertTrue(login.validaSeLoginSucesso());\n\n\t}",
"public void registrarUsuarioFinal(){\r\n Usuario nuevoUsuario= new Usuario();\r\n nuevoUsuario.setNombreUsuario(nuevoNombreUsuario);\r\n nuevoUsuario.setPassword(nuevoPasswordUsuario);\r\n nuevoUsuario.setTipoUsuario(\"final\");\r\n \r\n IUsuarioDAO iusuarioDAO = new UsuarioDAOImp();\r\n iusuarioDAO.agregarUsuario(nuevoUsuario);\r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Usuario registrado\", \"Usuario registrado exitosamente\");\r\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\r\n\r\n }",
"@Override\n\t\t\t\t\t\tpublic void onSyncSuccess() {\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}",
"@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }",
"private void authSuccess(String str, Utilis.AuthType type) {\n Utilis.setSharePreference(AppConstant.PREF_PARENT_LOGIN_INFO, str);\n Utilis.setSharePreference(AppConstant.PREF_AUTH_TYPE, type.name());\n startActivity(new Intent(LoginActivity.this, ChildActivity.class));\n finish();\n }",
"@Override\n public void onClick(View v) {\n trasferisci_utente();\n\n // controlla se tutti i dati sono inseriti\n if (checkInput())\n {\n creaUser();\n NOME = username.getText().toString();\n CHIAVE = password.getText().toString();\n\n // controlla se l'utente USER con i dati inseriti negli edit_text è gia presente\n if (checkUser(persone, NOME, CHIAVE)) {\n\n errore_utente.setVisibility(View.GONE);\n\n // impedisce a due utenti di avere lo stesso username\n if(checkUsername(persone, NOME)) {\n\n errore_duplicato_username.setVisibility(View.GONE);\n\n persone.add(user);\n\n Intent showResult = new Intent(Registration.this, MainActivity.class);\n showResult.putExtra(PERSONA_PATH, persone);\n //showResult.putExtra(UTENTE_PATH, user);\n startActivity(showResult);\n } else {\n errore_duplicato_username.setVisibility(View.VISIBLE);\n }\n } else {\n errore_utente.setVisibility(View.VISIBLE);\n }\n }\n }",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,GrupoBodega grupobodega,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(grupobodega.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grupobodega.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!grupobodega.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(grupobodega.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public boolean actualizar(JComboBox cbx, JTextField txtDNI, JTextField txtNombre, JTextField txtApellidos,\n JTextField txtTelef, int id) {\n\n dConfirmar = new D_Confirmar(new JFrame(), true);\n\n mComboRoll = (M_ComboRoll) cbx.getSelectedItem();\n\n mUsuarios.setDni(txtDNI.getText());\n mUsuarios.setNombre(txtNombre.getText());\n mUsuarios.setApellidos(txtApellidos.getText());\n mUsuarios.setTelefono(txtTelef.getText());\n mUsuarios.setRoll(mComboRoll.getId());\n mUsuarios.setId(id);\n\n if (sUsuario.actualizarUsuarios(mUsuarios)) {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Hecho.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Registro Actualizado con exito\".toUpperCase());\n limpiarCajas(txtDNI, txtNombre, txtApellidos, txtTelef, cbx);\n mostrarTablaUsuario(V_PanelUsuario.tblUsuarios);\n dConfirmar.setVisible(true);\n return true;\n } else {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Error.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Al parecer ocurrio un error\".toUpperCase());\n limpiarCajas(txtDNI, txtNombre, txtApellidos, txtTelef, cbx);\n dConfirmar.setVisible(true);\n return false;\n }\n }",
"public boolean cambiarContrasena(Usuario creador, int id, String contrasenaNueva, String contrasenaAnterior,boolean cambiarContra){\r\n if(creador.isAdmin()){\r\n try {\r\n String sql=\"\";\r\n if(cambiarContra){\r\n sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=1 where id=\"+id;\r\n }\r\n else{\r\n sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=0 where id=\"+id;\r\n }\r\n Statement s= connection.createStatement();\r\n int result = s.executeUpdate(sql);\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n else{\r\n if(creador.getId()== id){\r\n try {\r\n String sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=0 where id=\"+id + \" and contrasena=MD5('\"+contrasenaAnterior+\"')\";\r\n Statement s= connection.createStatement();\r\n int result = s.executeUpdate(sql);\r\n if(result>0){\r\n creador.setCambiarcontra(false);\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}",
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,ClienteArchivo clientearchivo,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(clientearchivo.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(clientearchivo.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!clientearchivo.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(clientearchivo.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}",
"public boolean salvar()\r\n\t{\n\t\ttry \r\n\t\t{\r\n\t\t\tif(caixaCpf.getText()!=null)\r\n\t\t\t{\r\n\t\t\t\tTecnico tecnico = new Tecnico();\r\n\t\t\t\tUnidade unidade = new UnidadeDAO().buscaSigla(comboUnidadeTrab.getSelectedItem().toString());\r\n\t\t\t\t\r\n\t\t\t\tDate data = new Date (Integer.parseInt(caixaAno.getText())-1900,Integer.parseInt(caixaMes.getText()) -1 , \r\n\t\t\t\t\t\t\t\t\t Integer.parseInt(caixaDia.getText()));\r\n\t\t\t\t\r\n\t\t\t\ttecnico.setCpf(caixaCpf.getText());\r\n\t\t\t\ttecnico.setNome(caixaNome.getText());\r\n\t\t\t\ttecnico.setNascimento(data);\r\n\t\t\t\ttecnico.setEmailInstitucional(caixaEmailInstitucional.getText());\r\n\t\t\t\ttecnico.setEmailSecundario(caixaEmailSecundario.getText());\r\n\t\t\t\ttecnico.setSiape(caixaSiape.getText());\r\n\t\t\t\ttecnico.setUnidade(unidade);\r\n\r\n\t\t\t\t\r\n\t\t\t\tTecnicoDAO tecnicoInsere = new TecnicoDAO();\r\n\t\t\t\t\r\n\t\t\t\tif(tecnicoInsere.insereTecnico(tecnico))\r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\t\r\n\t\t\te1.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t} \r\n\t\tcatch (SQLException e1) \r\n\t\t{\r\n\t\t\te1.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean onOkClicked() {\n try {\n if (form.isValid()) {\n String userName = form.getFieldValue(SysUser.USER_NAME_PROPERTY);\n String userAccount = form.getFieldValue(SysUser.USER_ACCOUNT_PROPERTY);\n String passWord = form.getFieldValue(SysUser.USER_PASSWORD_PROPERTY);\n String cPassWord = form.getFieldValue(\"cPassWord\");\n if (!passWord.equals(cPassWord)) {\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setValue(\"\");\n form.getField(\"cPassWord\").setValue(\"\");\n form.getField(SysUser.USER_PASSWORD_PROPERTY).setFocus(true);\n addModel(\"msg\", \"密码不一致\");\n } else if (SysUserDao.getInstance().canCreate(getSysUser().getObjectContext(), userAccount)) {\n if (SysUserDao.getInstance().createSysUser(getSysUser().getObjectContext(), userName, userAccount, passWord)) {\n setRedirect(UserListPage.class);\n } else {\n addModel(\"msg\", \"失败\");\n }\n } else {\n form.getField(SysUser.USER_ACCOUNT_PROPERTY).setFocus(true);\n addModel(\"msg\", \"账号已存在\");\n }\n }\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n }\n return true;\n }"
] | [
"0.63751656",
"0.6286331",
"0.62574834",
"0.62163085",
"0.6159455",
"0.6122496",
"0.6068756",
"0.60353696",
"0.6002391",
"0.5900883",
"0.58819497",
"0.5876016",
"0.5845768",
"0.5845768",
"0.5774138",
"0.5735693",
"0.57287896",
"0.5722365",
"0.56929266",
"0.5688401",
"0.5671086",
"0.5667931",
"0.56572497",
"0.56548774",
"0.56375784",
"0.56273156",
"0.5624736",
"0.56087327",
"0.56009805",
"0.55947614",
"0.5591763",
"0.55906874",
"0.55899614",
"0.5589214",
"0.5587386",
"0.5580051",
"0.55687994",
"0.55686045",
"0.55630213",
"0.5556276",
"0.5555137",
"0.55532795",
"0.5549367",
"0.5546638",
"0.554234",
"0.5541785",
"0.55400395",
"0.5536558",
"0.55330247",
"0.5528744",
"0.5527977",
"0.5527264",
"0.55266315",
"0.5515302",
"0.55140585",
"0.55137146",
"0.55058455",
"0.55029166",
"0.55008864",
"0.5495368",
"0.5495212",
"0.5488831",
"0.54884994",
"0.54850495",
"0.5484952",
"0.54828036",
"0.5476135",
"0.54630226",
"0.5451319",
"0.54480904",
"0.5447075",
"0.5446642",
"0.5446629",
"0.54433477",
"0.54385567",
"0.54380965",
"0.54289764",
"0.5420093",
"0.5409526",
"0.5405306",
"0.54042983",
"0.5395623",
"0.53948116",
"0.53937024",
"0.53930634",
"0.5387342",
"0.5385661",
"0.5384181",
"0.53841615",
"0.5383777",
"0.53818154",
"0.5380827",
"0.5371097",
"0.53696406",
"0.5365316",
"0.53649133",
"0.536426",
"0.5362",
"0.535557",
"0.5352823",
"0.5342971"
] | 0.0 | -1 |
Cria o banco de dados com um script SQL | public RepositorioPalestraScript(Context ctx) {
// Criar utilizando um script SQL
dbHelper = new SQLiteHelper(ctx, RepositorioPalestraScript.NOME_BANCO, RepositorioPalestraScript.VERSAO_BANCO,
RepositorioPalestraScript.SCRIPT_DATABASE_CREATE, RepositorioPalestraScript.SCRIPT_DATABASE_DELETE);
// abre o banco no modo escrita para poder alterar tamb�m
db = dbHelper.getWritableDatabase();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void criarTabela(Connection connection) throws IOException, SQLException {\n final Path sqlFile = Paths.get(\"coursera.sql\");\n String sqlData = new String(Files.readAllBytes(sqlFile));\n Statement statement = connection.createStatement();\n statement.executeUpdate(sqlData);\n statement.close();\n connection.close();\n }",
"@Override\n public void execute()\n {\n mDbHandle.execSQL(CREATE_TABLE_BLOOD_SUGAR);\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n //SQLiteDatabase es semejante al session de hibernate\n ejecutarScript(db,R.array.scriptCreate);\n }",
"public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }",
"DataBase createDataBase();",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }",
"public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Before\n public void seedDatabase() {\n final String seedDataScript = loadAsString(\"pacmabooks.sql\");\n\n try (Connection connection = ds.getConnection()) {\n for (String statement : splitStatements(new StringReader(\n seedDataScript), \";\")) {\n connection.prepareStatement(statement).execute();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n System.out.println(\"--------------------------------------------------- Seeding DID NOT WOKK\");\n e.printStackTrace();\n throw new RuntimeException(\"Failed seeding database\", e);\n }\n System.out.println(\"Seeding works\");\n\n }",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(FrasesDataSource.CREATE_FRASES_SCRIPT);\n //Insertar registros iniciales\n db.execSQL(FrasesDataSource.INSERT_FRASES_SCRIPT);\n\n /* Nota: Se utiliza execSQL() ya que las sentencias son\n para uso interno y no están relacionadas con entradas\n proporcionadas por los usuarios.\n */\n }",
"public void creatDataBase(String dbName);",
"Database createDatabase();",
"protected abstract void createDatabaseData(EntityManager entityManager);",
"public EstadosSql() {\r\n }",
"public static Statement usarCrearTablasBD( Connection con ) {\n\t\ttry {\n\t\t\tStatement statement = con.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // poner timeout 30 msg\n\t\t\tstatement.executeUpdate(\"create table if not exists items \" +\n\t\t\t\t\"(id integer, name string, timeperunit real)\");\n\t\t\tlog( Level.INFO, \"Creada base de datos\", null );\n\t\t\treturn statement;\n\t\t} catch (SQLException e) {\n\t\t\tlastError = e;\n\t\t\tlog( Level.SEVERE, \"Error en creación de base de datos\", e );\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public void createDepartamentoTable() throws SQLException {\n\t\tString sql = \"create table departamento (piso int, depto varchar(100), expensas double,\ttitular varchar(100))\";\n\t\tConnection c = DBManager.getInstance().connect();\n\t\tStatement s = c.createStatement();\n\t\ts.executeUpdate(sql);\n\t\tc.commit();\n\t\t\t\n\t}",
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }",
"private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }",
"public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"private void createDataBaseStructure(DataSource dataSource, String driverClass) throws IOException {\n\t\tResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();\n\t\tdatabasePopulator.setContinueOnError(true);\n\t\t\n\t\tif (driverClass.equals(LocalConstants.DATABASES.hsql.driverClass)) {\n\t\t\tdatabasePopulator.addScripts(new ClassPathResource(\"hsqldb.sql\"), getModifiiedSessionTableSql());\n\t\t} else {\n\t\t\tdatabasePopulator.addScripts(new ClassPathResource(\"schema.sql\"), getModifiiedSessionTableSql());\n\t\t}\n\n\t\tDatabasePopulatorUtils.execute(databasePopulator, dataSource);\n\t}",
"private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }",
"private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }",
"@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }",
"private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }",
"private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}",
"@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }",
"public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString nombrebd = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector(\"information_schema\");\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tnombrebd = CrearBD.buscarBaseDatos(nombrebuscado, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(nombrebd == null)\r\n\t\t{\r\n\t\t\tint numerotablascreadas = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conectora = new Conector(\"information_schema\");\r\n\t\t\t\tconectora.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.crearBaseDatos(nombrebuscado, conectora);\r\n\t\t\t\tconectora.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 1; i < 20; i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tString nombretabla = i+\".sql\";\r\n\t\t\t\t\tString contenidotabla = ejecutarCodigoSQLtablas(nombretabla);\r\n\t\t\t\t\tif(!contenidotabla.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorb = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorb.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(contenidotabla, conectorb);\r\n\t\t\t\t\t\tconectorb.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tnumerotablascreadas++;\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\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo \"+nombretabla,\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numerotablascreadas == 19)\r\n\t\t\t\t{\r\n\t\t\t\t\tejecutarCodigoSQLdatos(nombrebuscado);\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\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void createDatabase() throws SQLException\r\n {\r\n myStmt.executeUpdate(\"create database \" + dbname);\r\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n executeSQLScript(db, \"sql/cstigo_v\" + DATABASE_VERSION + \".sql\");\n }",
"public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }",
"public static void createDatabase() throws SQLException {\n\t\tSystem.out.println(\"DROP database IF EXISTS project02;\");\n\t\tstatement = connection.prepareStatement(\"DROP database IF EXISTS project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"CREATE database project02;\");\n\t\tstatement = connection.prepareStatement(\"CREATE database project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"USE project02;\");\n\t\tstatement = connection.prepareStatement(\"USE project02;\");\n\t\tstatement.executeUpdate();\n\t}",
"public void init() {\n\t\tTypedQuery<Personne> query = em.createQuery(\"SELECT p FROM Personne p\", Personne.class);\n\t\tList<Personne> clients = query.getResultList();\n\t\tif (clients.size()==0) {\n\t\t\tSqlUtils.executeFile(\"exemple.sql\", em);\n\t\t}\n\t}",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.get(this.getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getClassLoader()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getResource(\"create-campina-schema.sql\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toURI()), Charset.forName(\"UTF-8\"));\n\n\t\t\tfinal List<String> statements = new ArrayList<>(lines.size());\n\t\t\tString statement = \"\";\n\t\t\tfor (String string : lines) {\n\t\t\t\tstatement += \" \" + string;\n\t\t\t\tif (string.endsWith(\";\")) {\n\t\t\t\t\tstatements.add(statement);\n\t\t\t\t\tstatement = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(\"DROP SCHEMA IF EXISTS campina\")) {\n\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t}\n\t\t\t\tfor (String string : statements) {\n\t\t\t\t\tlog.info(\"Executing ddl: \" + string);\n\t\t\t\t\ttry (final PreparedStatement pstmt = con.prepareStatement(string)) {\n\t\t\t\t\t\tpstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new IllegalStateException(\"Could not setup db\", e);\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tlog.error(\"Could not setup database\", e);\n\t\t\tthrow new IllegalStateException(\"ddl file load failed\", e);\n\t\t}\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database finished\");\n\t\tlog.info(\"------------------------------------------\");\n\t}",
"public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrings.createDB[i]);\n } catch (Exception e) {\n Logger.write(\"FATAL\", \"DB\", \"Failed to create databse: \" + e);\n }\n }",
"public static void main(String[] args) {\n MySQLScriptGen databaseobject = new MySQLScriptGen();\n\n //this is same for every model\n JsonFileReader jsonFileReader = JsonFileReader.getInstance();\n JSONObject pim = jsonFileReader.getplatformIndependentModel();\n String ddl_script = databaseobject.createDDLScript(pim);\n String dml_script = databaseobject.createDMLScript(pim);\n String dql_script = databaseobject.createDQLScript(pim);\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\\n\\n\");\n System.out.println(ddl_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DML_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(dml_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DML_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DQL_BEGIN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(dql_script);\n System.out.println(\"\\n\\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>RIP_SQL_GEN_DQL_END>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"nikita@gmail.com\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"paul200@mail.ru\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"alexfilatov@mail.ru\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"yaroslavobruch@gmail.com\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"nikita@yandex.ru\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"public void createDataBase() throws IOException {\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n\n } else {\n this.getReadableDatabase();\n try {\n copyDataBase();\n } catch (IOException e) {\n Log.e(\"tle99 - create\", e.getMessage());\n }\n }\n }",
"public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}",
"public SQLHelper(Context context) {\n super(context, NOME_BANCO, null, VERSAO_BANCO);\n }",
"public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}",
"public void makeSQL(String dropStament, String insertStament, String createStament, boolean[] isString, String patho, String nameFile, String filtroRow, int columnaActive){\n\t\tmanagerDB.executeScript_Void(dropStament);\n\n\t\t/* Listo los archivos que hay en la carpeta para hallar el que se llama descripcion*/ \n\t\tFile[] listOfFiles = new File(patho).listFiles();\n\t\tint i=0;\n\t\twhile ( i<listOfFiles.length && !listOfFiles[i].toString().contains(nameFile) )\n\t\t\ti++;\n\n\t\t// Si encontre el archivo creo la tabla, genero un scrip de insertar, lo ejecuto desde la consola y lo borro e inserto los datos\n\t\tif (i<listOfFiles.length){\n\n\t\t\tmanagerDB.executeScript_Void(createStament);\t\t\t\t\n\n\t\t\tif (managerDB.createExecutorFile(\"C:\\\\\", \"prueba\")){\n\t\t\t\tParserSNOMED.fileToSqlScript(patho,listOfFiles[i].getName().toString(),insertStament, filtroRow,columnaActive);\n\t\t\t\tSystem.out.println(patho + listOfFiles[i].getName().toString());\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1000); \n\n\t\t\t\t\tRuntime.getRuntime().exec(\"cmd /c start C:\\\\prueba.bat\");\n\t\t\t\t\tmanagerDB.waitUntisFinishConsole(\"C://\",\"done.prov\" );\n\n\t\t\t\t\t// Borro todos los archivos luego de que termine el script\n\t\t\t\t\tFile file = new File(\"C:\\\\done.prov\"); \tfile.delete();\n\t\t\t\t\t//\t\t\tfile = new File(\"C:\\\\auxFile.sql\"); \tfile.delete();\n\t\t\t\t\tfile = new File(\"C:\\\\prueba.bat\");\t\tfile.delete();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();}\t\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args)throws Exception{\n\t\tgetconnection();\r\n\t\t\tCreatTable();\r\n\t\t\t\r\n\t}",
"private void createTable() throws Exception{\n Statement stm = this.con.createStatement();\n\n String query = \"CREATE TABLE IF NOT EXISTS \" + tableName +\n \"(name VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" city VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" phone VARCHAR( 15 ) NOT NULL, \" +\n \"PRIMARY KEY (phone) )\";\n stm.execute(query);\n }",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"public static void createDB(String name) {\n\t\ttry {\n\t\t\tString Query = \"CREATE DATABASE \" + name;\n\t\t\tStatement st = conexion.createStatement();\n\t\t\tst.executeUpdate(Query);\n\t\t\tSystem.out.println(\"DB creada con exito!\");\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la DB \" + name + \"de forma exitosa.\");\n\t\t} catch (SQLException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\tSystem.out.println(\"Error creando la DB.\");\n\t\t}\n\t}",
"@POST\n @Produces({\"application/json\"})\n public String createDb() throws WebApplicationException {\n HibernateEntityManager emAdm = PersistenceManager.getInstance().getEntityManagerAdmin();\n SQLQuery qCreate = emAdm.getSession().createSQLQuery(\"CREATE DATABASE test_jeff template=postgis\");\n try{\n qCreate.executeUpdate();\n }catch(SQLGrammarException e){\n System.out.println(\"Error !!\" + e.getSQLException());\n emAdm.close();\n return e.getSQLException().getLocalizedMessage();\n }\n emAdm.close();\n Map properties = new HashMap();\n //change the connection string to the new db\n properties.put(\"hibernate.connection.url\", \"jdbc:postgresql_postGIS://192.168.12.36:5432/test_jeff\");\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"dataPU\", properties); \n return \"Yeah\";\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n querysDB = new QuerysDB();\n db.execSQL(querysDB.createTableUsuario());\n Log.e(\"ERROR\",\"ERROR::::::::::::::::\");\n db.execSQL(querysDB.createTableDepartamento());\n }",
"public CriaBanco (Context context){\n\n super (context, NOME_BD, null, VERSAO);\n }",
"@Override\n\tpublic void CreateDatabaseFromFile() {\n\t\tfinal String FILENAME = \"fandv.sql\";\n\t\tint[] updates = null;\n\t\ttry {\n\t\t\tMyDatabase db = new MyDatabase();\n\t\t\tupdates = db.updateAll(FILENAME);\n\t\t} catch (FileNotFoundException | SQLException | ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Database issue\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < updates.length; i++) {\n\t\t\tsum += updates[i];\n\t\t}\n\t\tSystem.out.println(\"Number of updates: \" + sum);\n\t}",
"public void startDatabase(SQLiteDatabase db)\n {\n\n String sqlNotas = \"CREATE TABLE IF NOT EXISTS NOTAS (\"\n + \"TITULO text,\"\n + \"CONTEUDO text\"\n +\")\";\n\n\n //db.execSQL(dropNotas);\n db.execSQL(sqlNotas);\n\n }",
"@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString[] tables = CREATE_TABLES.split(\";\");\n\t\tfor(String SQL : tables){\n\t\t db.execSQL(SQL);\n\t\t}\n\t}",
"private void initDb() throws SQLException {\n statement = conn.createStatement();\n for (String sql : TABLES_SQL) {\n statement.executeUpdate(sql);\n }\n }",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"public static void main(String[] args) throws DBManagerException, DaoException {\n\t\t\n\t\t\n\t\tDBManager dbManager = new DBManagerJPA();\n\t\t\n\t\tdbManager.init();\n\t\n\t\tFuncionarioDao dao = new FuncionarioDaoJPAHibernate();\n\t\n\t\tFuncionario funcionario = new Funcionario();\n\t\t\n\t\tfuncionario.setCargo(Cargo.CAIXA);\n\t\tfuncionario.setLogin(\"caixa\");\n\t\tfuncionario.setSenha(\"caixa\");\n\t\t\n\t\tdao.insert(funcionario);\n\t}",
"static void resetTestDatabase() {\n String URL = \"jdbc:mysql://localhost:3306/?serverTimezone=CET\";\n String USER = \"fourthingsplustest\";\n\n InputStream stream = UserStory1Test.class.getClassLoader().getResourceAsStream(\"init.sql\");\n if (stream == null) throw new RuntimeException(\"init.sql\");\n try (Connection conn = DriverManager.getConnection(URL, USER, null)) {\n conn.setAutoCommit(false);\n ScriptRunner runner = new ScriptRunner(conn);\n runner.setStopOnError(true);\n runner.runScript(new BufferedReader(new InputStreamReader(stream)));\n conn.commit();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n System.out.println(\"Done running migration\");\n }",
"private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}",
"@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"mario46@hotmail.com\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}",
"public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }",
"public void createDatabaseFromAssets() throws IOException {\n try {\n copyDatabase();\n }\n catch (IOException e) {\n LogUtility.NoteLog(e);\n throw new Error(\"Error copying database\");\n }\n }",
"private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }",
"private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }",
"public void createDataBase() throws IOException{\n \n \tboolean dbExist = checkDataBase();\n \t\n \n \tif(dbExist){\n \t\t//do nothing - database already exists\n \t\tLog.d(\"Database Check\", \"Database Exists\");\n\n \t}else{\n \t\tLog.d(\"Database Check\", \"Database Doesn't Exist\");\n \t\tthis.close();\n \t\t//By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n \tthis.getReadableDatabase();\n \tthis.close();\n \ttry {\n \t\t\tcopyDataBase();\n \t\t\tLog.d(\"Database Check\", \"Database Copied\");\n \n \t\t} catch (IOException e) {\n \t\tLog.d(\"I/O Error\", e.toString());\n\n \t\tthrow new Error(\"Error copying database\");\n \t}\n \tcatch (Exception e) { \n \t\tLog.d(\"Exception in createDatabase\", e.toString());\n \t\t\n \t}\n \t}\n \n }",
"@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}",
"private static void createBasicSqlTable(String sql)\r\n throws ConnectionFailedException, DatabaseException {\r\n try (Connection conn = connect();\r\n Statement stmt = conn.createStatement()) {\r\n stmt.execute(sql);\r\n } catch (SQLException e) {\r\n throwException(e);\r\n } catch (ClassNotFoundException e) {\r\n throwConnectionException(e);\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tAluno cesar = new Aluno(\"Cesar\",80,26);\n\t\tGenericDao dao = new GenericDao();\n\t\tdao.generateSQL(cesar);\t\t\n\t}",
"private void createDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n for (File sentiment : sentimentsFoldersList) {\r\n try {\r\n String queryCreate\r\n = \"CREATE TABLE \" + sentiment.getName().toUpperCase()\r\n + \" (WORD VARCHAR(50), COUNT_RES INT, PERC_RES FLOAT, COUNT_TWEET INT, PRIMARY KEY(WORD) )\";\r\n Statement st_create = conn.createStatement();\r\n st_create.executeUpdate(queryCreate);\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" CREATED\");\r\n st_create.close();\r\n } catch (SQLException ex) {\r\n if (ex.getErrorCode() == 955) {\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" WAS ALREADY PRESENT...\");\r\n }\r\n }\r\n }\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }",
"private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }",
"public void doCreateTable();",
"public static void createOrders() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Orders (\" +\n \"Prod_ID INTEGER, \" +\n \"ProductName VARCHAR(20), \" +\n \"Employee_ID INTEGER )\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Orders Table Created\");\n }",
"String getInitSql();",
"Statement createStatement();",
"Statement createStatement();",
"Statement createStatement();",
"public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }",
"private void createTransactionsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE transactions \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"owner INT, amount DOUBLE, source BIGINT, sourceType VARCHAR(20), target BIGINT, targetType VARCHAR(20), comment VARCHAR(255), time BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table transactions\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of transactions table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}",
"private void runSqlFromFile(String fileName) throws IOException {\n String[] sqlStatements = StreamUtils.copyToString( new ClassPathResource(fileName).getInputStream(), Charset.defaultCharset()).split(\";\");\n for (String sqlStatement : sqlStatements) {\n sqlStatement = sqlStatement.replace(\"CREATE TABLE \", \"CREATE TABLE OLD\");\n sqlStatement = sqlStatement.replace(\"REFERENCES \", \"REFERENCES OLD\");\n sqlStatement = sqlStatement.replace(\"INSERT INTO \", \"INSERT INTO OLD\");\n jdbcTemplate.execute(sqlStatement);\n }\n }",
"@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }",
"public void createGraphDB() throws SQLException {\n \t\tString nodes = \"insert into nodes(id,label,url,sex,single) select fbid,name,'http://www.facebook.com/profile.php?id='||fbid,sex,single from users;\";\n \t\tString edges = \"insert into edges select distinct users.fbid as source, friends.friendfbid as target, '5' as weight, 'knows' as name from users join friends where friends.userid=users.id\";\n \t\tpreparedStatement = connect.prepareStatement(nodes);\n \t\tpreparedStatement.execute();\n \t\tpreparedStatement = connect.prepareStatement(edges);\n \t\tpreparedStatement.execute();\n \t\tpreparedStatement.close();\n \t}",
"public static void main(String[] args) {\n EntityManagerFactory fabrica = Persistence.createEntityManagerFactory(\"oracle\");\n EntityManager em = fabrica.createEntityManager();\n\n //Instanciar um novo aluno sem o código(Estado: new - não gerenciado)\n Aluno aluno = new Aluno(\"Gabriel\", \"2TDSJ\",\n new GregorianCalendar(200, Calendar.JULY, 10), Periodo.MATUTINO, true);\n //Adiciona o aluno no contexto do Entity Manager(gerencia-lo)\n em.persist(aluno);\n //Começar com uma transação\n em.getTransaction().begin();\n //Realizar o commit\n em.getTransaction().commit();\n\n System.out.println(\"Aluno Registrado\");\n //Atualiza o valor no banco, faz um update automatico.\n aluno.setNome(\"Luiz\");\n\n ///Fechar\n em.close();\n fabrica.close();\n }",
"@Before\n public void setUp() {\n DB.sql2o = new Sql2o(\"jdbc:postgresql://localhost:5432/hair_salon_test\", \"alexander\", \"1234\");\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n for (int i = 0; i<onCreateScripts.length; i++)\n db.execSQL(onCreateScripts[i]);\n }",
"public void init() throws SQLException {\n EventBusInstance.getInstance().register(new BestEffortsDeliveryListener());\n if (TransactionLogDataSourceType.RDB == transactionConfig.getStorageType()) {\n Preconditions.checkNotNull(transactionConfig.getTransactionLogDataSource());\n createTable();\n }\n }",
"private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }",
"public static void initDB() {\r\n\t\tboolean ok = false;\r\n\t\ttry(Connection c = DriverManager.getConnection(\"jdbc:hsqldb:file:burst_db\", \"SA\", \"\")) {\r\n\t\t\tString testSQL = \"select count(*) from TB_USERS;\";\r\n\t\t\ttry(PreparedStatement s = c.prepareStatement(testSQL)) {\r\n\t\t\t\ttry(ResultSet rs = s.executeQuery()) {\r\n\t\t\t\t\trs.next();\r\n\t\t\t\t\tSystem.out.println(\"There are \"+rs.getInt(1)+\" known users.\");\r\n\t\t\t\t\tok = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t//Don't panic, table doesn't exist\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//Panic! Cannot connect to DB\r\n\t\t}\r\n\t\t\r\n\t\tif(!ok) {\r\n\t\t\tSystem.out.println(\"Creating Database\");\r\n\t\t\t\r\n\t\t\ttry(Connection c = DriverManager.getConnection(\"jdbc:hsqldb:file:burst_db\", \"SA\", \"\")) {\r\n\t\t\t\tString createSQL = \"create table TB_USERS (USERID varchar(255),BURSTADDRESS varchar(255), BURSTNUMERIC varchar(255));\";\r\n\t\t\t\ttry(Statement s = c.createStatement()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ts.execute(createSQL);\r\n\t\t\t\t\t\tok = true;\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void insertTestDataLight() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_fonctionnel_sample.sql\");\n\t}",
"public void CrearBDatos(Connection conn, String sNombreBDatos) {\r\n\t\tString \tsqlDB=consultas.CrearBDatos(sNombreBDatos),\r\n\t\t\t\tsqlUsarDB=consultas.UsarBDatos(sNombreBDatos),\r\n\t\t\t\tsqlTablaCliente=consultas.CrearTablaCliente(),\r\n\t\t\t\tsqlTablaDepartamento=consultas.CrearTablaDepartamentos(),\r\n\t\t\t\tsqlTablaFuncionarios=consultas.CrearTablaFuncionarios(),\r\n\t\t\t\tsqlTablaHorasFun=consultas.CrearTablaHorasFunc(),\r\n\t\t\t\tsqltablaServicios=consultas.CrearTablaServicios();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStatement stmt=conn.createStatement();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tstmt.executeUpdate(sqlDB);\r\n\t\t\t\tstmt.executeUpdate(sqlUsarDB);\r\n\t\t\t\tstmt.executeUpdate(sqlTablaCliente);\r\n\t\t\t\tstmt.executeUpdate(sqlTablaDepartamento);\t\t\t\t\r\n\t\t\t\tstmt.executeUpdate(sqlTablaFuncionarios);\r\n\t\t\t\tstmt.executeUpdate(sqltablaServicios);\r\n\t\t\t\tstmt.executeUpdate(sqlTablaHorasFun);\r\n\t\t\t\tstmt.close();\r\n\t\t\t\r\n\t\t\t}catch (SQLException e){stmt.close(); e.getStackTrace();}\r\n\t\t}catch (SQLException e){\te.getStackTrace();}\r\n\t\tAgregarDepartamentos(conn);\r\n\r\n\t}"
] | [
"0.6744755",
"0.6449692",
"0.61798257",
"0.6154338",
"0.61523306",
"0.6117116",
"0.6096901",
"0.5968841",
"0.5939357",
"0.5939243",
"0.588141",
"0.58660847",
"0.582596",
"0.5802035",
"0.57980263",
"0.5772556",
"0.57671875",
"0.5759276",
"0.5752097",
"0.57512325",
"0.57345605",
"0.5734225",
"0.57114565",
"0.5705261",
"0.5701654",
"0.5695327",
"0.5692029",
"0.56898516",
"0.568064",
"0.5651705",
"0.56440735",
"0.5638489",
"0.5629286",
"0.56218916",
"0.5621687",
"0.56203395",
"0.561289",
"0.5612142",
"0.5599458",
"0.55941546",
"0.5589348",
"0.5581882",
"0.55791634",
"0.55512714",
"0.5550455",
"0.5548219",
"0.5547346",
"0.5534088",
"0.55337137",
"0.5521009",
"0.5507866",
"0.55058813",
"0.5505198",
"0.54942745",
"0.5476049",
"0.5474678",
"0.547307",
"0.5467451",
"0.54641485",
"0.54538965",
"0.5447067",
"0.5445345",
"0.54440755",
"0.5441949",
"0.5435313",
"0.54299444",
"0.5424229",
"0.54201174",
"0.5406709",
"0.5398286",
"0.53947175",
"0.53849894",
"0.5383587",
"0.5370997",
"0.5369406",
"0.53571934",
"0.53380036",
"0.5333316",
"0.5323491",
"0.5321058",
"0.5316065",
"0.53141767",
"0.53126603",
"0.53065485",
"0.52948505",
"0.52948505",
"0.52948505",
"0.5293182",
"0.5285978",
"0.5279942",
"0.52780503",
"0.52776146",
"0.52713466",
"0.52694666",
"0.5267256",
"0.5258961",
"0.5258535",
"0.52561677",
"0.5253041",
"0.52522725"
] | 0.63886344 | 2 |
Use EyePotentialAnalyzer to find potential of making eyes. | private void verifyEyePotential(boolean forBlackGroup, int expectedSizeOfGroup, float expectedPotential) {
IGoGroup group = getBiggestGroup(forBlackGroup);
int size = group.getNumStones();
assertEquals("Unexpected size of test group.", expectedSizeOfGroup, size);
EyePotentialAnalyzer analyzer = new EyePotentialAnalyzer(group, new GroupAnalyzerMap());
analyzer.setBoard(getBoard());
float eyePotential = analyzer.calculateEyePotential();
assertEquals("Unexpected group eye potential", expectedPotential, eyePotential, TOLERANCE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getEyes();",
"public int getEyes() {\n return eyes_;\n }",
"public int getEyes() {\n return eyes_;\n }",
"public Builder setEyes(int value) {\n bitField0_ |= 0x00000080;\n eyes_ = value;\n onChanged();\n return this;\n }",
"boolean hasEyes();",
"private void startEyeTracking() {\n if (!mFaceAnalyser.isTrackingRunning()) {\n mFaceAnalyser.startFaceTracker();\n mUserAwarenessListener.onEyeTrackingStarted(); //notify caller\n }\n }",
"public Builder clearEyes() {\n bitField0_ = (bitField0_ & ~0x00000080);\n eyes_ = 0;\n onChanged();\n return this;\n }",
"public Location getEyeLocation ( ) {\n\t\treturn extract ( handle -> handle.getEyeLocation ( ) );\n\t}",
"public void run() {\n\t\t/* HOOKE POTENTIAL PARAMETERS */\n\t\t/* ************************** */\n\t\tPotentialLookup hookeLook;\n\t\tdouble tolerance = 1e-4;\n\t\t\n\t\tHookePotential hooke;\n\t\tdouble cBrDist = 1.91;\n\t\t// nu = 267 cm-1 from handbook of chemistry and physics\n\t\t// mu = 12.01 * 79.9 / (12.01 + 79.9) / 1000 / 6.022e23 = 1.73e-26\n\t\t// k = (2*PI*3e10*267)^2 * 1.73e-26 = 43.82\n\t\tdouble cBrSpringConstant;\n\t\tcBrSpringConstant = 43.82;\t// upper Limit\n//\t\tcBrSpringConstant /= 4;\t\t// lower limit\n\t\t\n\t\t/* ********************************** */\n\t\t/* LENNARD JONES POTENTIAL PARAMETERS */\n\t\t/* ********************************** */\n\t\tPotentialLookup ljl;\n\t\tLennardJonesPotential ljp;\n\t\tdouble lookupPrecision = 0.001;\n\t\tint Z1 = 35;\n\t\tint Z2 = 35;\n\t\tdouble Z1Z2_distance = 3.8;\n\t\tdouble zeroPotentialDistance;\n\t\tdouble wellDepth = 0.034891;\n\t\t\n\t\tzeroPotentialDistance = Z1Z2_distance / Math.pow(2., (1./6.));\n\t\tljp = new LennardJonesPotential(Z1, Z2, zeroPotentialDistance, wellDepth);\n\t\thooke = new HookePotential(6, 35, cBrDist, cBrSpringConstant);\n\n\t\tJAtom center = new JAtom(6, new JVector(0, 0, 0));\n\t\tJVector ligandPos = new JVector(1, 1, 1).unit();\n\t\tligandPos.multiply(1.91);\n\t\tJAtom ligand = new JAtom(35, ligandPos);\n\t\tIdealTetrahedron test = new IdealTetrahedron(center, ligand);\n\t\t\n\t\tVector<JAtom> tempAtoms = new Vector<JAtom>();\n\t\tfor(JAtom atom : test.getAtoms())\n\t\t\ttempAtoms.add(atom);\n\t\t\n\t\tJAtom[] atoms = new JAtom[tempAtoms.size()]; \n\t\tatoms = tempAtoms.toArray(atoms);\n//\t\twhile(true) {\n\t\t\n\t\tJAtom br = atoms[1];\n\t\tJVector brBrforce = new JVector();\n\t\tJVector betweenBr;\n\t\tdouble distBetweenBr;\n\t\tfor(int i = 2; i < atoms.length; i++) {\n\t\t\tbetweenBr = JVector.subtract(br.getPosition(), atoms[i].getPosition());\n\t\t\tdistBetweenBr = betweenBr.length();\n\t\t\tbrBrforce.add_inPlace(JVector.multiply(betweenBr.unit(), ljp.calcF(distBetweenBr)));\n\t\t\t\n\t\t}\n\t\tdouble brBrDistBefore = JVector.distance(atoms[1].getPosition(), atoms[2].getPosition());\n\t\tdouble brBrForceBefore = ljp.calcF(brBrDistBefore);\n\t\tdouble cBrDistBefore = JVector.distance(atoms[0].getPosition(), atoms[1].getPosition());\n\t\tdouble newRestingPosition = cBrDist-(brBrforce.length() / cBrSpringConstant);\n\t\thooke = new HookePotential(6, 35, newRestingPosition, cBrSpringConstant);\n\t\tdouble cBrForceBefore = hooke.calcF(cBrDistBefore);\n\t\t\n\t\t\n\t\tJAtom[][] allSurroundings = buildSurroundings(atoms);\n\t\tfor(int i = 0; i < allSurroundings.length; i++) {\n\t\t\tSystem.out.println(\"Atom type/idx: \" + atoms[i].getZ() + \"/\" + atoms[i].atomID);\n\t\t\tfor(int j = 0; j < allSurroundings[i].length; j++) {\n\t\t\t\tSystem.out.println(\"\\tSurrounding atom type/idx: \" + allSurroundings[i][j].getZ() + \n\t\t\t\t\t\t\"/\" + allSurroundings[i][j].atomID);\n\t\t\t}\n\t\t}\n\t\tJVector[] force = new JVector[atoms.length];\n\t\tfor(int i = 0; i < force.length; i++)\n\t\t\tforce[i] = new JVector();\n\t\tpotentials = new Vector<Potential>();\n\t\tpotentials.add(ljp);\n\t\tpotentials.add(hooke);\n\t\tMyPrintStream movie = new MyPrintStream(new File(\"test.xyz\"));\n\t\tmovie.println(atoms.length);\n\t\tmovie.println();\n\t\t\n\t\tint idx = 0;\n\t\twhile(idx < 100) {\n\t\t\tfor(int i = 0; i < force.length; i++) {\n\t\t\t\tforce[i].setI(0);\n\t\t\t\tforce[i].setJ(0);\n\t\t\t\tforce[i].setK(0);\n\t\t\t}\n\t\t\tcalcForces(atoms, allSurroundings, force);\n\t\t\tmoveAtoms(atoms, force);\n\t\t\tprintPositions(movie, atoms);\n//\t\t\tmovie.println();\n\t\t\tidx++;\n\t\t}\n\t\tmovie.flush();\n\t\tmovie.close();\n//\t\t}\n//\t\tSystem.out.println(\"Br-Br intramolecular force: \" + ljp.calcF(3.118993));\n//\t\tSystem.out.println(\"C-Br intramolecular force: \" + ljp.calcF(3.118993));\n\n\t\tdouble step = .05;\n\t\tdouble startVal = 1;\n\t\tdouble finishVal = 3;\n\t\tint numSteps = (int) Math.rint((finishVal - startVal) / step);\n\t\tJAtom c = atoms[0];\n\t\tbr = atoms[1];\n\t\tJVector cBrVec = JVector.subtract(br.getPosition(), c.getPosition()),\n\t\t\t\tintraMolecVec;\n\t\tdouble potVal, forceVal;\n\t\tJAtom a1, a2;\n\t\tSystem.out.println(\"Distance\\tPotentialEnergy\\tForce:\");\n\t\tfor(int i = 0; i < numSteps; i++) {\n\t\t\tcBrVec = cBrVec.unit();\n\t\t\tcBrVec.multiply(startVal + i*step);\n\t\t\tbr.setNewPos(cBrVec);\n\t\t\tforceVal = potVal = 0;\n\t\t\tfor(int a = 0; a < atoms.length; a++) {\n\t\t\t\ta1 = atoms[a];\n\t\t\t\tif(a1 == br)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tintraMolecVec = JVector.subtract(br.getPosition(), a1.getPosition());\n\t\t\t\tfor(Potential pot : potentials)\n\t\t\t\t\tif(pot.check(br.getZ(), a1.getZ())) {\n\t\t\t\t\t\tforceVal += pot.calcF(intraMolecVec.length());\n\t\t\t\t\t\tpotVal += pot.calcU(intraMolecVec.length());\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println((startVal + i*step) + \"\\t\" + potVal + \"\\t\" + forceVal);\n\t\t}\n\t\tdouble brBrDistAfter = JVector.distance(atoms[1].getPosition(), atoms[2].getPosition());\n\t\tdouble cBrDistAfter = JVector.distance(atoms[0].getPosition(), atoms[1].getPosition());\n\t\tdouble brBrForceAfter = ljp.calcF(brBrDistAfter);\n\t\tdouble cBrForceAfter = hooke.calcF(cBrDistAfter);\n\t\tSystem.out.println(\"Br-Br intermolecular distance/force before relaxing: \" + \n\t\t\t\tbrBrDistBefore + \"/\" + brBrForceBefore);\n\t\tSystem.out.println(\"Br-Br intermolecular distance/force after relaxing: \" + \n\t\t\t\tbrBrDistAfter + \"/\" + brBrForceAfter);\n\t\tSystem.out.println(\"C-Br intermolecular distance/force before relaxing: \" + \n\t\t\t\tcBrDistBefore + \"/\" + cBrForceBefore);\n\t\tSystem.out.println(\"C-Br intermolecular distance/force after relaxing: \" + \n\t\t\t\tcBrDistAfter + \"/\" + cBrForceAfter);\n\t\t\n\t\tSystem.out.println(\"New C-Br bond distance: \" + newRestingPosition);\n\t\tSystem.out.println(\"Total Br-Br force: \" + brBrforce.length());\n\t\t\n\t}",
"public void resetEye() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setBlink(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setWinkLeft(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setWinkRight(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLookLeft(false);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setLookRight(false);\n\t}",
"void analyze(CaveGen g) {\n caveGenCount += 1; \n\n // count the number of purple flowers\n int num = 0;\n for (Teki t: g.placedTekis) {\n if (t.tekiName.equalsIgnoreCase(\"blackpom\"))\n num += 1;\n }\n if (num > 5) num = 5;\n numPurpleFlowers[num] += 1;\n\n // report about missing treasures\n // print the seed everytime we see a missing treasure\n int minTreasure = 0, actualTreasure = 0;\n for (Item t: g.spawnItem) { minTreasure += t.min; }\n for (Teki t: g.spawnTekiConsolidated) { if (t.itemInside != null) minTreasure += t.min; }\n actualTreasure += g.placedItems.size();\n for (Teki t: g.placedTekis) {\n if (t.itemInside != null)\n actualTreasure += 1;\n }\n int expectedMissingTreasures = 0;\n if (\"CH29 1\".equals(g.specialCaveInfoName + \" \" + g.sublevel))\n expectedMissingTreasures = 1; // This level is always missing a treasure\n boolean missingUnexpectedTreasure = actualTreasure + expectedMissingTreasures < minTreasure;\n if (missingUnexpectedTreasure) {\n println(\"Missing treasure: \" + g.specialCaveInfoName + \" \" + g.sublevel + \" \" + Drawer.seedToString(g.initialSeed));\n missingTreasureCount += 1;\n }\n\n // Good layout finder (story mode)\n if (CaveGen.findGoodLayouts && !CaveGen.challengeMode && !missingUnexpectedTreasure) {\n boolean giveWorstLayoutsInstead = CaveGen.findGoodLayoutsRatio < 0;\n\n ArrayList<Teki> placedTekisWithItems = new ArrayList<Teki>();\n for (Teki t: g.placedTekis) {\n if (t.itemInside != null)\n placedTekisWithItems.add(t);\n }\n\n String ignoreItems = \"g_futa_kyodo,flower_blue,tape_blue,kinoko_doku,flower_red,futa_a_silver,cookie_m_l,chocolate\";\n String findTekis = \"\"; //\"whitepom,blackpom\";\n\n // Compute the waypoints on the shortest paths\n ArrayList<WayPoint> wpOnShortPath = new ArrayList<WayPoint>();\n for (Item t: g.placedItems) { // Treasures\n if (ignoreItems.contains(t.itemName.toLowerCase())) continue;\n WayPoint wp = g.closestWayPoint(t.spawnPoint);\n while (!wp.isStart) {\n if (!wpOnShortPath.contains(wp)) wpOnShortPath.add(wp);\n wp = wp.backWp;\n }\n }\n for (Teki t: placedTekisWithItems) { // Treasures inside enemies\n if (ignoreItems.contains(t.itemInside.toLowerCase())) continue;\n WayPoint wp = g.closestWayPoint(t.spawnPoint);\n while (!wp.isStart) {\n if (!wpOnShortPath.contains(wp)) wpOnShortPath.add(wp);\n wp = wp.backWp;\n }\n }\n for (Teki t: g.placedTekis) { // Other tekis\n if (findTekis.contains(t.tekiName.toLowerCase())) {\n WayPoint wp = g.closestWayPoint(t.spawnPoint);\n while (!wp.isStart) {\n if (!wpOnShortPath.contains(wp)) wpOnShortPath.add(wp);\n wp = wp.backWp;\n }\n }\n }\n /*if (g.placedHole != null) {\n WayPoint wp = g.closestWayPoint(g.placedHole);\n while (!wp.isStart) {\n if (!wpOnShortPath.contains(wp)) wpOnShortPath.add(wp);\n wp = wp.backWp;\n }\n }\n if (g.placedGeyser != null) {\n WayPoint wp = g.closestWayPoint(g.placedGeyser);\n while (!wp.isStart) {\n if (!wpOnShortPath.contains(wp)) wpOnShortPath.add(wp);\n wp = wp.backWp;\n }\n }*/\n\n // add up distance penalty for score\n int score = 0;\n for (WayPoint wp: wpOnShortPath) {\n score += wp.distToStart - wp.backWp.distToStart;\n } \n // add up enemy penalties for score\n for (Teki t: g.placedTekis) {\n WayPoint wp = g.closestWayPoint(t.spawnPoint);\n if (wpOnShortPath.contains(wp)) {\n score += Parser.tekiDifficulty.get(t.tekiName.toLowerCase());\n }\n }\n // add up gate penalties for score\n for (Gate t: g.placedGates) {\n WayPoint wp = g.closestWayPoint(t.spawnPoint);\n if (g.placedHole != null && g.placedHole.mapUnit.type == 0 && g.placedHole.mapUnit.doors.get(0).spawnPoint == t.spawnPoint)\n score += t.life / 3; // covers hole\n // if (g.placedGeyser != null && g.placedGeyser.mapUnit.type == 0 && g.placedGeyser.mapUnit.doors.get(0).spawnPoint == t.spawnPoint)\n // score += t.life / 3; // covers geyser\n if (wpOnShortPath.contains(wp))\n score += t.life / 3; // covers path back to ship\n }\n\n if (giveWorstLayoutsInstead) score *= -1;\n\n // keep a sorted list of the scores\n allScores.add(score);\n\n // only print good ones\n if (CaveGen.indexBeingGenerated > CaveGen.numToGenerate/10 && \n score <= allScores.get((int)(allScores.size()*Math.abs(CaveGen.findGoodLayoutsRatio))) \n || score == allScores.get(0) && CaveGen.indexBeingGenerated > CaveGen.numToGenerate/40) {\n CaveGen.images = true;\n println(\"GoodLayoutScore: \" + Drawer.seedToString(g.initialSeed) + \" -> \" + score);\n }\n else {\n CaveGen.images = false;\n }\n\n }\n\n // good layout finder (challenge mode)\n if (CaveGen.findGoodLayouts && CaveGen.challengeMode) {\n boolean giveWorstLayoutsInstead = CaveGen.findGoodLayoutsRatio < 0;\n\n // compute the number of pokos availible\n int pokosAvailible = 0;\n for (Teki t: g.placedTekis) {\n String name = t.tekiName.toLowerCase();\n if (plantNames.contains(\",\" + name + \",\")) continue;\n if (hazardNames.contains(\",\" + name + \",\")) continue;\n if (name.equalsIgnoreCase(\"egg\"))\n pokosAvailible += 10; // mitites\n else if (!noCarcassNames.contains(\",\" + name + \",\") && !name.contains(\"pom\"))\n pokosAvailible += Parser.pokos.get(t.tekiName.toLowerCase());\n if (t.itemInside != null)\n pokosAvailible += Parser.pokos.get(t.itemInside.toLowerCase());\n }\n for (Item t: g.placedItems)\n pokosAvailible += Parser.pokos.get(t.itemName.toLowerCase());\n\n // compute the number of pikmin*seconds required to complete the level\n float pikminSeconds = 0;\n for (Teki t: g.placedTekis) {\n if (plantNames.contains(\",\" + t.tekiName.toLowerCase() + \",\")) continue;\n if (hazardNames.contains(\",\" + t.tekiName.toLowerCase() + \",\")) continue;\n pikminSeconds += workFunction(g, t.tekiName, t.spawnPoint);\n if (t.itemInside != null)\n pikminSeconds += workFunction(g, t.itemInside, t.spawnPoint);\n }\n for (Item t: g.placedItems) {\n pikminSeconds += workFunction(g, t.itemName, t.spawnPoint);\n }\n pikminSeconds += workFunction(g, \"hole\", g.placedHole);\n pikminSeconds += workFunction(g, \"geyser\", g.placedGeyser);\n // gates??\n // hazards??\n \n int score = -pokosAvailible * 1000 + (int)(pikminSeconds/2);\n if (giveWorstLayoutsInstead) score *= -1;\n\n // keep a sorted list of the scores\n allScores.add(score);\n\n // only print good ones\n if (CaveGen.indexBeingGenerated > CaveGen.numToGenerate/10 && \n score <= allScores.get((int)(allScores.size()*Math.abs(CaveGen.findGoodLayoutsRatio))) \n || score == allScores.get(0) && CaveGen.indexBeingGenerated > CaveGen.numToGenerate/40) {\n CaveGen.images = true;\n println(\"GoodLayoutScore: \" + Drawer.seedToString(g.initialSeed) + \" -> \" + score);\n }\n else {\n CaveGen.images = false;\n }\n }\n }",
"private void startEyeTracking() {\n Log.d(\"Vision\", \"Going to start Recording Activity\");\n startCameraSource();\n leftEyeOpenProbability = 0;\n rightEyeOpenProbability = 0;\n probabilityCount = 0;\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n\n String eyeTrackginTimerString = preferences.getString(eyeTrackingTimer, \"5\");\n Log.d(\"EyeTracking\", \"Going to start eye tracking for \" + eyeTrackginTimerString);\n int timer = 5;\n try {\n timer = Integer.parseInt(eyeTrackginTimerString);\n } catch (Exception e) {\n timer = 5;\n }\n\n new Timer().schedule(new TimerTask() {\n @Override\n public void run() {\n finalProbablityCount = probabilityCount;\n finalLeftEyeProbablity = leftEyeOpenProbability / finalRightEyeProbablity;\n finalRightEyeProbablity = rightEyeOpenProbability / finalProbablityCount;\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n createMicrophone();\n// speakAnswer();\n }\n });\n\n }\n }, timer * 1000);\n }",
"private void stopEyeTracking() {\n //Stop eye tracking.\n if (mFaceAnalyser.isTrackingRunning()) {\n mFaceAnalyser.stopEyeTracker();\n mUserAwarenessListener.onEyeTrackingStop();\n }\n }",
"boolean setEyeColor(Gene gene){ \n\t\tif( gene.left.dominance && gene.right.dominance){ //RB\n\t\t\tthis.eyeColor = EyeColor.RED;\n\t\t\treturn true;\n\t\t} else if( gene.left.dominance ^ gene.right.dominance ){//hetero --> yellow\n\t\t\tthis.eyeColor = EyeColor.YELLOW; //needs to account for the two different kinds of Yellow\n\t\t\treturn true;\n\t\t} else if( !gene.left.dominance && !gene.right.dominance){ //rb --> blue\n\t\t\tthis.eyeColor = EyeColor.BLUE;\n\t\t\treturn true;\n\t\t} else{\n\t\t\tSystem.err.println(\"Error: Ugh, I can't believe you've done this.\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }",
"private short getHeadingAxe()\r\n\t{\r\n\t\t// Condition based on the angle change\r\n\t\tdouble difA = 0;\r\n\t\tshort movDir = 0;\r\n\r\n\t\t// Difference between the real and ideal angle\r\n\t\tdifA = Math.abs((this.pose.getHeading()/Math.PI*180) - Po_ExpAng);\r\n\t\t\r\n\t\t// Axe detection\r\n\t\tif ((Po_CORNER_ID % 2) == 0)\r\n\t\t{\r\n\t\t\t// Movement in x\r\n\t\t\tif (((Po_CORNER_ID == 0) && ((difA > 70) && (100*this.pose.getX() > 165))) || ((Po_CORNER_ID == 2) && ((difA > 70) && (100*this.pose.getX() < 160))) || ((Po_CORNER_ID == 4) && ((difA > 70) && (100*this.pose.getX() < 35))) || ((Po_CORNER_ID == 6) && ((difA > 70) && (100*this.pose.getX() < 5))))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t\tSound.beepSequenceUp();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Movement in y\r\n\t\t\tif (((Po_CORNER_ID == 1) && ((difA > 30) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 3) && ((difA > 70) && (100*this.pose.getY() < 45))) || ((Po_CORNER_ID == 5) && ((difA > 70) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 7) && (difA > 70) && (100*this.pose.getY() < 5)))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (((Po_AxeP == 0) && (movDir == 1)) || ((Po_AxeP == 1) && (movDir == 0)))\r\n\t\t{\r\n\t\t\tif (Po_CORNER_ID < 7)\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = Po_CORNER_ID + 1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = 0;\r\n\t\t\t\t\r\n\t\t\t\tif (this.parkingSlotDetectionIsOn)\r\n\t\t\t\t{\r\n\t\t\t\t\tPo_RoundF = 1;\t\t// Round finished, don't add any new parking slots\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPo_Corn = 1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tPo_Corn = 0;\r\n\t\t}\r\n\t\t\r\n\t\tPo_AxeP = movDir;\r\n\t\t\r\n\t\tLCD.drawString(\"Corn_ID: \" + (Po_CORNER_ID), 0, 6);\r\n\t\t\r\n\t\treturn movDir;\r\n\t}",
"@Test public void testTwoEyes_1() {\n testing(1, 1,\n \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦○◦○○\"\n + \"◦◦◦◦◦◦○●●\"\n + \"◦◦◦◦◦○●●◦\"\n + \"◦◦◦◦◦○●◦●\");\n }",
"public boolean hasEyes() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public void perdEnergieRandom() {\r\n Random rd = new Random();\r\n robots.get(rd.nextInt(robots.size() - 1)).perdEnergie(5);\r\n }",
"private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }",
"@Test public void testSingleEye_1() {\n testing(1, 1,\n \"◦●○◦◦◦◦◦◦\"\n + \"◦●○◦◦◦◦◦◦\"\n + \"◦●○◦◦◦◦◦◦\"\n + \"◦●○◦◦◦◦◦◦\"\n + \"●●○◦◦◦◦◦◦\"\n + \"○○○◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\"\n + \"◦◦◦◦◦◦◦◦◦\");\n }",
"public void roarEffect(boolean doesEarAffect, double strength) {\r\n\t\tList<Entity> roarAffection = this.world\r\n\t\t\t\t.getEntitiesWithinAABB(EntityPlayer.class, this.getEntityBoundingBox().expand(8, 5, 8));\r\n\t\tif (roarAffection != null) {\r\n\t\t\tif (!this.world.isRemote) {\r\n\t\t\tfor (Entity roarAffected : roarAffection) {\r\n\t\t\t\tif (roarAffected instanceof EntityPlayer && ((EntityPlayer) roarAffected).capabilities.isCreativeMode) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\troarAffected.addVelocity(strength, 0.2D, strength);\r\n\t\t\t\tif (doesEarAffect) {\r\n\t\t\t\t\t((EntityLivingBase) roarAffected).addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 80, 10));\r\n\t\t\t\t\t((EntityLivingBase) roarAffected)\r\n\t\t\t\t\t\t\t.addPotionEffect(new PotionEffect(MobEffects.MINING_FATIGUE, 80, 10));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public boolean hasEyes() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}",
"public void novice() {\n\t\tGenerator solve = new Generator();\n\t\tsolve.novice();\n\t\tAnswer = solve.getEquationResult();\n\t\tTextView Equation = (TextView) findViewById(R.id.textView3);\n\t\tEquation.setText(solve.getEquation());\n\t}",
"public void recalcDyeStats() {\n dyeINT = 0;\n dyeSTR = 0;\n dyeCON = 0;\n dyeMEN = 0;\n dyeWIT = 0;\n dyeDEX = 0;\n\n for (int i = 0; i < 3; i++) {\n final DyeData dye = dyes[i];\n if (dye == null) {\n continue;\n }\n if (!PlayerUtils.canPlayerWearDye(this, dye)) {\n continue;\n }\n\n dyeINT += dye._int;\n dyeSTR += dye.str;\n dyeMEN += dye.men;\n dyeCON += dye.con;\n dyeWIT += dye.wit;\n dyeDEX += dye.dex;\n }\n\n if (dyeINT > 5) {\n dyeINT = 5;\n }\n if (dyeSTR > 5) {\n dyeSTR = 5;\n }\n if (dyeMEN > 5) {\n dyeMEN = 5;\n }\n if (dyeCON > 5) {\n dyeCON = 5;\n }\n if (dyeWIT > 5) {\n dyeWIT = 5;\n }\n if (dyeDEX > 5) {\n dyeDEX = 5;\n }\n }",
"protected int[] evolve(BaseEvolution evolution) {\n Game.getPlayer().getMedalCase().increase(MedalTheme.POKEMON_EVOLVED);\n\n boolean sameName = nickname.equals(pokemon.getName());\n int numAbilities = this.getPokemonInfo().numAbilities();\n\n // Actually change Pokemon\n pokemon = evolution.getEvolution();\n\n // Set name if it was not given a nickname\n if (sameName) {\n nickname = pokemon.getName();\n }\n\n // Update ability\n this.assignAbility(numAbilities);\n\n // Update stats and return gain\n return this.setStats();\n }",
"public Alien(String name, int age, int weight, int numEyes, String eyecolor, boolean good) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.age = age;\n\t\tthis.weight = weight;\n\t\tthis.numEyes = numEyes;\n\t\tthis.eyecolor = eyecolor;\n\t\tthis.good = good;\n\t}",
"public void setEasterEgg(boolean easterEgg){\n\t\tthis.easterEgg = easterEgg;\n\t}",
"protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\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//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"boolean setEyeType( GeneSelector gene ){\n\t\tswitch(gene.display){\n\t\t\tcase 'C':\n\t\t\t\tthis.eyeType = EyeType.ROUND;\n\t\t\t\treturn true;\n\t\t\tcase 'B':\n\t\t\t\tthis.eyeType = EyeType.SAD;\n\t\t\t\treturn true;\n\t\t\tcase 'A':\n\t\t\t\tthis.eyeType = EyeType.CAT;\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\tSystem.err.println(\"Error: Ugh, I can't believe you've done this.\");\n\t\t\t\treturn false;\n\t\t}\n\n\t}",
"public Awale(Awale awale) {\r\n\tthis.listeners = new ArrayList<AwaleListener>();\r\n\tthis.currentSide = awale.currentSide;\r\n\tthis.size = awale.size;\r\n\tthis.territory = new short[2][size];\r\n\tSystem.arraycopy(awale.territory[0], 0, this.territory[0], 0,\r\n\t awale.territory[0].length);\r\n\tSystem.arraycopy(awale.territory[1], 0, this.territory[1], 0,\r\n\t awale.territory[1].length);\r\n\tthis.simulateTerritory = new short[2][size];\r\n\tSystem\r\n\t .arraycopy(awale.simulateTerritory[0], 0,\r\n\t this.simulateTerritory[0], 0,\r\n\t awale.simulateTerritory[0].length);\r\n\tSystem\r\n\t .arraycopy(awale.simulateTerritory[1], 0,\r\n\t this.simulateTerritory[1], 0,\r\n\t awale.simulateTerritory[1].length);\r\n\tthis.points = new short[2];\r\n\tSystem.arraycopy(awale.points, 0, this.points, 0, this.points.length);\r\n\r\n }",
"public void trackEnderpearls() {\n\n Set<EnderPearl> pearlsToTrack = new HashSet<>(launchedPearls);\n for (EnderPearl pearl : pearlsToTrack) {\n if (pearl.isValid()) {\n Block hitBlock;\n\n findCollision:\n {\n Vector start = pearl.getLocation().toVector();\n Vector finish = pearl.getVelocity().add(start);\n\n if (start.toBlockVector().equals(finish.toBlockVector())) {\n Block block = pearl.getLocation().getBlock();\n if (block.getType() == Material.END_GATEWAY) {\n hitBlock = block;\n break findCollision;\n }\n }\n else {\n BlockIterator ray = new BlockIterator(\n pearl.getWorld(),\n start,\n pearl.getVelocity().normalize(),\n 0,\n (int) Math.ceil(pearl.getVelocity().length()));\n while (ray.hasNext()) {\n Block block = ray.next();\n if (block.getType() == Material.END_GATEWAY) {\n hitBlock = block;\n break findCollision;\n }\n }\n }\n continue;\n }\n if (hitBlock.getType() == Material.END_GATEWAY && Teleportal.getFromStruct(hitBlock) != null) {\n\n // TODO find collided face instead of using the ender pearl's yaw\n float yaw = 0 - pearl.getLocation().getYaw();\n BlockFace hitFace = Utils.yawToBlockFace(yaw).getOppositeFace();\n\n ProjectileHitEvent event = new ProjectileHitEvent(pearl, null, hitBlock, hitFace);\n getServer().getPluginManager().callEvent(event);\n pearl.remove();\n }\n }\n launchedPearls.remove(pearl);\n }\n }",
"public static native void OpenMM_AmoebaVdwForce_getParticleExclusions(PointerByReference target, int particleIndex, PointerByReference exclusions);",
"public void evolve_enviroment() {\r\n\r\n // this.main_population.update_population();\r\n // get the indices of the best individual in the main population\r\n int main_pop_best = this.main_population.getBest_indices();\r\n\r\n // create a new individua with the genes of the best individual\r\n this.pop_best = new individual(this.main_population.getPopulation()[main_pop_best].getGenes(), solutions, output); // best individual in population\r\n\r\n // perform selection, crossover and mutation\r\n this.roulette_selection();\r\n this.crossover();\r\n this.mutate(this.prob);\r\n this.tournament_selection(); // survivor selection\r\n\r\n // find the indices of the worst individual and replace it with the best from the last generation\r\n this.main_population.setIndividual(pop_best, this.main_population.find_Worst_indicies());\r\n this.main_population.update_population();\r\n\r\n }",
"public void secrete() {\n\t\t/* Instantiate a new virus particle */\n\t\tSim.lps.add(new Lambda_phage(prob_surface, prob_enzymes));\n\t}",
"void object_on_eyes_level_calc(){\n down_angle=Math.abs(down_angle);\n up_angle=Math.abs(up_angle);\n angle_with_ground=90-angle_with_ground;\n distance_from_object=human_length*Math.tan(Math.toRadians(angle_with_ground));\n double part_down=distance_from_object*Math.tan(Math.toRadians(down_angle));\n double part_up=distance_from_object*Math.tan(Math.toRadians(up_angle));\n length_of_object=part_down+part_up;\n object_height_from_ground=human_length-part_down;\n ORI.setText(\"length_of_object :\\n\" +String.valueOf(String.format(\"%.2f\",(length_of_object/100)))\n +\" M\"+ \"\\n\" + \"distance_from_object :\\n\" + String.valueOf(String.format(\"%.2f\",(distance_from_object/100)))+\n \" M\" + \"\\n\"+\"height_from_ground :\\n\" + String.valueOf(String.format(\"%.2f\",(object_height_from_ground/100)))+\" M\");\n ORI.setVisibility(View.VISIBLE);\n }",
"public void getProbe () {\n double prxg;\n int index;\n double effaoa = effective_aoa();\n /* get variables in the generating plane */\n if (Math.abs(ypval) < .01) ypval = .05;\n getPoints(xpval,ypval);\n\n solver.getVel(lrg,lthg);\n loadProbe();\n\n pxg = lxgt;\n pyg = lygt;\n prg = lrgt;\n pthg = lthgt;\n pxm = lxmt;\n pym = lymt;\n /* smoke */\n if (pboflag == 3 ) {\n prxg = xpval;\n for (index =1; index <=POINTS_COUNT; ++ index) {\n getPoints(prxg,ypval);\n xg[19][index] = lxgt;\n yg[19][index] = lygt;\n rg[19][index] = lrgt;\n thg[19][index] = lthgt;\n xm[19][index] = lxmt;\n ym[19][index] = lymt;\n if (stall_model_type != STALL_MODEL_IDEAL_FLOW) { // stall model\n double apos = stall_model_type == STALL_MODEL_DFLT ? +10 : stall_model_apos;\n double aneg = stall_model_type == STALL_MODEL_DFLT ? -10 : stall_model_aneg;\n if (xpval > 0.0) {\n if (effaoa > apos && ypval > 0.0) { \n ym[19][index] = ym[19][1];\n } \n if (effaoa < aneg && ypval < 0.0) {\n ym[19][index] = ym[19][1];\n }\n }\n if (xpval < 0.0) {\n if (effaoa > apos && ypval > 0.0) { \n if (xm[19][index] > 0.0) {\n ym[19][index] = ym[19][index-1];\n }\n } \n if (effaoa < aneg && ypval < 0.0) {\n if (xm[19][index] > 0.0) {\n ym[19][index] = ym[19][index-1];\n }\n }\n }\n }\n solver.getVel(lrg,lthg);\n prxg = prxg + vxdir*STEP_X;\n }\n }\n return;\n }",
"public void onScannedRobot(ScannedRobotEvent e)\n {\n BadBoy en = (BadBoy)enemies.get(e.getName());\n \n if(en == null){\n en = new BadBoy();\n enemies.put(e.getName(), en);\n }\n \n \n en.hp = true;\n en.energy = e.getEnergy();\n en.pos = hallarPunto(myPos, e.getDistance(), getHeadingRadians() + e.getBearingRadians());\n \n // normal target selection: the one closer to you is the most dangerous so attack him\n //si no le queda vida al objetivo actual CHANGE TARGET m8\n \n if(!objetivo.hp || e.getDistance() < myPos.distance(objetivo.pos)) {\n objetivo = en;\n }\n \n \n }",
"@Override\n public void onUpdate(FaceDetector.Detections<Face> detectionResults, Face face) {\n mOverlay.add(mEyesGraphic);\n\n updatePreviousProportions(face);\n\n float leftOpenScore = face.getIsLeftEyeOpenProbability();\n if (leftOpenScore == Face.UNCOMPUTED_PROBABILITY) {\n //cannot be computed nothing is done\n } else {\n isLeftOpen = (leftOpenScore > EYE_CLOSED_THRESHOLD);\n }\n\n float rightOpenScore = face.getIsRightEyeOpenProbability();\n if (rightOpenScore == Face.UNCOMPUTED_PROBABILITY) {\n //false nothing done\n } else {\n isRightOpen = (rightOpenScore > EYE_CLOSED_THRESHOLD);\n }\n\n\n if(face.getEulerZ()>20){\n isRotateRight = true;\n if (rotated==0){\n }\n rotated++;\n //security measure only true after you've passed the prev one\n if (winked>0){\n rotated++;\n }\n\n }\n\n winkLeft = !isLeftOpen && isRightOpen;\n if (winkLeft && rotated>0){\n winked++;\n }\n\n if (face.getIsSmilingProbability()>SMILE_THRESHOLD){\n isSmile = true;\n if (winked>0 && rotated>0){\n smile++;\n }\n\n }\n /*\n Log.i(\"test\",\"Y rotation is\" +face.getEulerY());\n Log.i(\"test\",\"Z rotation is\" +face.getEulerZ());\n Log.i(\"test\",\"smilin prob is\" +face.getIsSmilingProbability());\n*/\n mEyesGraphic.updateItem(face, rotated, winked, smile);\n }",
"public boolean getEasterEgg() {\n\t\treturn easterEgg;\n\t}",
"public Builder clearEyeColor() {\n \n eyeColor_ = getDefaultInstance().getEyeColor();\n onChanged();\n return this;\n }",
"@Override\n public void resetFog()\n {\n confirmedVisibles.clear();\n for( int y = 0; y < mapHeight; ++y )\n {\n for( int x = 0; x < mapWidth; ++x )\n {\n isFogged[x][y] = true;\n }\n }\n // then reveal what we should see\n if (null == viewer)\n return;\n for( Army army : master.game.armies )\n {\n if( viewer.isEnemy(army) )\n continue;\n for( Commander co : army.cos )\n {\n for( Unit unit : co.units )\n {\n for( XYCoord coord : Utils.findVisibleLocations(this, unit, false) )\n {\n revealFog(coord, false);\n }\n // We need to do a second pass with piercing vision so we can know whether to reveal the units\n for( XYCoord coord : Utils.findVisibleLocations(this, unit, true) )\n {\n revealFog(coord, true);\n }\n }\n for( XYCoord xyc : co.ownedProperties )\n {\n revealFog(xyc, true); // Properties can see themselves and anything on them\n MapLocation loc = master.getLocation(xyc);\n for( XYCoord coord : Utils.findVisibleLocations(this, loc.getCoordinates(), Environment.PROPERTY_VISION_RANGE) )\n {\n revealFog(coord, false);\n }\n }\n }\n }\n }",
"private TargetInformation findPeg(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = true;\r\n\t\t\r\n\t long[] xsums = sums(image, true);\r\n\t long[] ysums = sums(image, false);\r\n\t \r\n\t List<PeakLoc> ypeaks = findPeaks(ysums);\r\n\t List<PeakLoc> xpeaks = findPeaks(xsums);\r\n\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t // Target is only found if we have exactly 2 x peaks, representing both of the pieces of tape\r\n\t if ((xpeaks.size() == 2) && (ypeaks.size() > 0)){\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(1).getStart() + xpeaks.get(0).getStop()) / 2;\r\n\t \tret.gap = xpeaks.get(1).getStart() - xpeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(1).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(0).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = ypeaks.get(0).getStart() + ret.height/2;\r\n\t \tret.rightOfTarget = xpeaks.get(0).maxValue < xpeaks.get(1).maxValue;\r\n\t \t\r\n \t\tret.pixelsPerInch = ret.height / pegHeightInches;\r\n \t\t\r\n\t \tret.aimX = ret.x + cameraOffsetInches * ret.pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t return ret;\r\n\t}",
"public synchronized static Everbie getEverbie(){\n \t\tif (!Everbie.exists()){\n \t\t\teverbie = new Everbie(DEFAULT_NAME, DEFAULT_RACE);\n \t\t}\n \t\treturn everbie;\n \t}",
"protected static Electronics goodElectronicValues(String eidField, String enameField, String eyearField, String epriceField, String emakerField) throws Exception {\n Electronics myElec;\n String[] ID, strPrice;\n String Name;\n int Year;\n double Price;\n\n try {\n ID = eidField.split(\"\\\\s+\");\n if (ID.length > 1 || ID[0].equals(\"\")) {\n throw new Exception(\"ERROR: The ID must be entered\\n\");\n }\n if (ID[0].length() != 6) {\n throw new Exception(\"ERROR: ID must be 6 digits\\n\");\n }\n if (!(ID[0].matches(\"[0-9]+\"))) {\n throw new Exception(\"ERROR: ID must only contain numbers\");\n }\n Name = enameField;\n if (Name.equals(\"\")) {\n throw new Exception(\"ERROR: Name of product must be entered\\n\");\n }\n if (eyearField.equals(\"\") || eyearField.length() != 4) {\n throw new Exception(\"ERROR: Year of product must be entered\\n\");\n } else {\n Year = Integer.parseInt(eyearField);\n if (Year > 9999 || Year < 1000) {\n throw new Exception(\"ERROR: Year must be between 1000 and 9999 years\");\n }\n }\n\n strPrice = epriceField.split(\"\\\\s+\");\n if (strPrice.length > 1 || strPrice[0].equals(\"\")) {\n Price = 0;\n } else {\n Price = Double.parseDouble(strPrice[0]);\n }\n\n myElec = new Electronics(ID[0], Name, Year, Price, emakerField);\n ProductGUI.Display(\"elec fields are good\\n\");\n return myElec;\n } catch (Exception e) {\n throw new Exception(e.getMessage());\n }\n\n }",
"public void useRuneEssence(boolean use) {\n essence = use ? RunePouchHandler.RUNE_ESSENCE_ID : RunePouchHandler.PURE_ESSENCE_ID;\n }",
"private List<Enemy> filterEnemies(List<Enemy> enemies, Point towerPosition) {\n return enemies.stream().filter(e -> canReach(new Point((int) e.getX(), (int) e.getY()), towerPosition)).collect(Collectors.toList());\n }",
"@Override\n\tpublic void makeEyesWithMan() {\n\t\tSystem.out.println(\"Å×ÃÄÑÛÄØ¡£¡£¡£\");\n\t}",
"public static Experiment lawson1162_E() { \n\n\t\tExperiment experiment = createLawsonExperiment( 1162, false );\n\t\t\n\t\tComplexMatrix pm = new ComplexMatrix(2);\n\t\t\n\t\tpm.set( 0, 0, 9.778932093636766E-6, +1.1539001755855298 );\n\t\tpm.set( 0, 1, 9.54090827267122E-6, -0.5761611044097982); //these minus signs are made up\n\t\tpm.set( 1, 0, -4.664462353536279E-6, -0.5776434681545166); //these minus signs are made up\n\t\tpm.set( 1, 1, -1.2050992588859665E-5,+1.153881700898593);\n\t\t\n\t\texperiment.setActual(pm);\n\t\t\n\t\treturn experiment;\n\t}",
"@Override\r\n public void mouseMoved(MouseEvent e) {\r\n int mouseX = e.getX();\r\n int mouseY = e.getY();\r\n\r\n if (eyesOpen == true) {\r\n //top left\r\n if (mouseX <= 385) {\r\n System.out.println(\"385\");\r\n }\r\n if (mouseX >= 390) {\r\n System.out.println(\"390\");\r\n }\r\n if (mouseX <= 385 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 380;\r\n eyeball1Y = 240;\r\n eyeball2X = 417;\r\n eyeball2Y = 240;\r\n }\r\n //bottom left\r\n if (mouseX <= 385 && mouseY >= 257) {\r\n eyeball1X = 380;\r\n eyeball1Y = 245;\r\n eyeball2X = 417;\r\n eyeball2Y = 245;\r\n }\r\n //top middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY > 207) {\r\n eyeball1X = 385;\r\n eyeball1Y = 240;\r\n eyeball2X = 420;\r\n eyeball2Y = 240;\r\n }\r\n //bottom middle\r\n if (mouseX >= 390 && mouseX <= 410 && mouseY >= 267) {\r\n eyeball1X = 385;\r\n eyeball1Y = 245;\r\n eyeball2X = 420;\r\n eyeball2Y = 245;\r\n }\r\n //top right\r\n if (mouseX > 410 && mouseY <= 245 && mouseY > 207) {\r\n eyeball1X = 390;\r\n eyeball1Y = 240;\r\n eyeball2X = 425;\r\n eyeball2Y = 240;\r\n }\r\n //bottom right\r\n if (mouseX > 410 && mouseY >= 257) {\r\n eyeball1X = 390;\r\n eyeball1Y = 245;\r\n eyeball2X = 425;\r\n eyeball2Y = 245;\r\n }\r\n\r\n }\r\n }",
"public void experimenterAndPlotter() {\n\t\tfinal RewardFunction rf = new GoalBasedRF(this.goalCondition, 5., -0.1);\n\n\t\t/**\n\t\t * Create factories for Q-learning agent and SARSA agent to compare\n\t\t */\n\n\t\tLearningAgentFactory qLearningFactory = new LearningAgentFactory() {\n\n\t\t\t@Override\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"Q-learning\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new QLearning(domain, rf, tf, 0.99, hashingFactory, 0.3,\n\t\t\t\t\t\t0.1);\n\t\t\t}\n\t\t};\n\n\t\tLearningAgentFactory sarsaLearningFactory = new LearningAgentFactory() {\n\n\t\t\t@Override\n\t\t\tpublic String getAgentName() {\n\t\t\t\treturn \"SARSA\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic LearningAgent generateAgent() {\n\t\t\t\treturn new SarsaLam(domain, rf, tf, 0.99, hashingFactory, 0.0,\n\t\t\t\t\t\t0.1, 1.);\n\t\t\t}\n\t\t};\n\n\t\tStateGenerator sg = new ConstantStateGenerator(this.initialState);\n\n\t\tLearningAlgorithmExperimenter exp = new LearningAlgorithmExperimenter(\n\t\t\t\t(SADomain) this.domain, rf, sg, 10, 100, qLearningFactory,\n\t\t\t\tsarsaLearningFactory);\n\n\t\texp.setUpPlottingConfiguration(500, 250, 2, 1000,\n\t\t\t\tTrialMode.MOSTRECENTANDAVERAGE,\n\t\t\t\tPerformanceMetric.CUMULATIVESTEPSPEREPISODE,\n\t\t\t\tPerformanceMetric.AVERAGEEPISODEREWARD);\n\n\t\texp.startExperiment();\n\n\t\texp.writeStepAndEpisodeDataToCSV(\"expData\");\n\n\t}",
"public ZElectricMeterExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void addEyeResetKills() {\n persistentValues.summoningEyeCount++;\n persistentValues.totalKills += persistentValues.kills;\n persistentValues.kills = -1; // This is triggered before the death of the killed zealot, so the kills are set to -1 to account for that.\n saveValues();\n }",
"public void wearOutfit() {\r\n for (int index = 0; index < mTops.size(); index++) {\r\n mTops.get(index).setWorn(true);\r\n }\r\n for (int index = 0; index < mBottoms.size(); index++) {\r\n mBottoms.get(index).setWorn(true);\r\n }\r\n if (mShoes != null) {\r\n mShoes.setWorn(true);\r\n }\r\n for (int index = 0; index < mAccessories.size(); index++) {\r\n mAccessories.get(index).setWorn(true);\r\n }\r\n if (mHat != null) {\r\n mHat.setWorn(true);\r\n }\r\n }",
"public Eleve() {\r\n\t\tsuper();\r\n\t}",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"public EpsilonGreedyExploration(double epsilon) {\n this.epsilon = epsilon;\n }",
"@Test\n\tpublic void testGetEnergyConsumption() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.setSkillLevel(0);\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\tassertTrue(explorer.getEnergyConsumption() == 0);\n\t\tif(robot.distanceToObstacle(Direction.FORWARD) > 0) {\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 6);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.RIGHT) > 0) {\n\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 10);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.LEFT) > 0) {\n\t\t\trobot.rotate(Turn.LEFT);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 11);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.BACKWARD) > 0) {\n\t\t\trobot.rotate(Turn.AROUND);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 15);\n\t\t}\n\t\tassertTrue(explorer.getEnergyConsumption() > 0);\n\t}",
"@Test\n public final void testParseWhereExtraValue() throws Exception {\n\n try (InputStream is = this.getClass()\n .getResourceAsStream( \"/data/loader/expression/experimentalDesignTestExtra.txt\" )) {\n\n experimentalDesignImporter.importDesign( ee, is );\n }\n\n ee = this.eeService.thawLite( ee );\n\n Collection<BioMaterial> bms = new HashSet<>();\n for ( BioAssay ba : ee.getBioAssays() ) {\n BioMaterial bm = ba.getSampleUsed();\n bms.add( bm );\n }\n this.aclTestUtils.checkEEAcls( ee );\n\n this.checkResults( bms );\n }",
"public Gene getEnzyme() {\n if (Reaction_Type.featOkTst && ((Reaction_Type)jcasType).casFeat_enzyme == null)\n jcasType.jcas.throwFeatMissing(\"enzyme\", \"uk.ac.bbk.REx.types.Reaction\");\n return (Gene)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Reaction_Type)jcasType).casFeatCode_enzyme)));}",
"public Predator reproduce() {\n if(eaten < 2) return null;\n else {\n if ((int) (Math.random() * 100) >= 80) {\n predatorsSpawned++;\n return new Predator(((int) ((speed + Math.random()) * 5)), ((int) (maxEnergy + Math.random()\n * 50)), world, true);\n }\n predatorsSpawned++;\n return new Predator(speed, maxEnergy, world);\n }\n }",
"public static native void OpenMM_AmoebaVdwForce_setParticleExclusions(PointerByReference target, int particleIndex, PointerByReference exclusions);",
"public void onScannedRobot(ScannedRobotEvent e) {\r\n\t\tif (isFriend(e.getName())) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tEnemy en;\r\n\t\tif (targets.containsKey(e.getName())) {\r\n\t\t\ten = (Enemy) targets.get(e.getName());\r\n\t\t} else {\r\n\t\t\ten = new Enemy();\r\n\t\t\ttargets.put(e.getName(), en);\r\n\t\t}\r\n\t\t// the next line gets the absolute bearing to the point where the bot is\r\n\t\tdouble absbearing_rad = (getHeadingRadians() + e.getBearingRadians())\r\n\t\t\t\t% (2 * PI);\r\n\t\t// this section sets all the information about our target\r\n\t\ten.name = e.getName();\r\n\t\tdouble h = normaliseBearing(e.getHeadingRadians() - en.heading);\r\n\t\th = h / (getTime() - en.ctime);\r\n\t\ten.changehead = h;\r\n\t\ten.x = getX() + Math.sin(absbearing_rad) * e.getDistance(); // works out\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the x\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// coordinate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of where\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// target is\r\n\t\ten.y = getY() + Math.cos(absbearing_rad) * e.getDistance(); // works out\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the y\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// coordinate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of where\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// target is\r\n\t\ten.bearing = e.getBearingRadians();\r\n\t\ten.heading = e.getHeadingRadians();\r\n\t\ten.ctime = getTime(); // game time at which this scan was produced\r\n\t\ten.speed = e.getVelocity();\r\n\t\ten.distance = e.getDistance();\r\n\t\ten.live = true;\r\n\t\tif ((en.distance < target.distance) || (target.live == false)) {\r\n\t\t\ttarget = en;\r\n\t\t}\r\n\t}",
"public void meleemode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n firemode = getOthers();\r\n if(getOthers() == 1) {\r\n duelmode(e);\r\n } runaway(e);\r\n }",
"public String getEmotionName() {\n return emotionName;\n }",
"public List<Emotion> getEmotions();",
"public void setExperiment(Experiment e){\r\n \tthis.experiment = e;\r\n \tthis.exptID = e.getId();\r\n this.maxExperimentValue = experiment.getMaxAbsValue();\r\n }",
"private void enemyEncounter()\n {\n currentEnemies = currentRoom.getEnemies();\n \n if(currentEnemies.size() > 0)\n {\n for(Enemy e : currentEnemies)\n {\n System.out.println(\"\\n\" + \"A \" + e.getName() + \" stares menacingly!\" + \"\\n\");\n enemyName = e.getName();\n \n }\n enemyPresent = true;\n clearExits();\n }\n else{\n setExits(); \n }\n }",
"public void setShowEvidence(boolean showEvidence) {\n this.showEvidence = showEvidence;\n }",
"private void setEnergia(double nuovaEnergia)\r\n\t{\r\n\t\tif (nuovaEnergia > MAX) energia = MAX;\r\n\t\telse if (nuovaEnergia < 0.0) energia = 0.0;\r\n\t\telse energia = nuovaEnergia;\r\n\r\n\t\tstorico = allarga(storico);\r\n\r\n\t\tstorico[storico.length-1] = energia;\r\n\t\t\r\n\t}",
"public int[] findVerticalSeam() {\n\n int[] seam = new int[height()];\n\n // Tracks columns of least-energy seams.\n int[][] edgeTo = new int[width()][height()];\n\n // Store cumulative energy of the seams that go through each pixel.\n double[][] distTo = new double[width()][height()];\n\n // Initialize all distances to infinity, except top row.\n for (int col = 0; col < width(); col++) {\n for (int row = 0; row < height(); row++) {\n if (row == 0) distTo[col][row] = energy[col][row];\n else distTo[col][row] = Double.POSITIVE_INFINITY;\n }\n }\n\n // Builds least-energy seams through picture.\n for (int row = 1; row < height(); row++) {\n for (int col = 0; col < width(); col++) {\n\n if (col > 0 && distTo[col - 1][row] > (energy[col - 1][row]\n + distTo[col][row - 1])) {\n\n distTo[col - 1][row] = energy[col - 1][row] + distTo[col][row - 1];\n edgeTo[col - 1][row] = col;\n }\n if (distTo[col][row] > (energy[col][row] + distTo[col][row - 1])) {\n\n distTo[col][row] = energy[col][row] + distTo[col][row - 1];\n edgeTo[col][row] = col;\n }\n if (col < width() - 1 && distTo[col + 1][row] > (energy[col + 1][row]\n + distTo[col][row - 1])) {\n\n distTo[col + 1][row] = energy[col + 1][row] + distTo[col][row - 1];\n edgeTo[col + 1][row] = col;\n }\n }\n }\n // Find the end of the least total energy seam.\n double leastEnergy = Double.POSITIVE_INFINITY;\n for (int col = 0; col < width() - 1; col++) {\n double currentEnergy = distTo[col][height() - 1];\n if (currentEnergy < leastEnergy) {\n leastEnergy = currentEnergy;\n seam[height() - 1] = col;\n }\n }\n // Back-track from end of seam to beginning.\n for (int row = height() - 1; row > 0; row--) {\n seam[row - 1] = edgeTo[seam[row]][row];\n }\n return seam;\n }",
"public EpiVariableSet randEpiVariableSet() {\n EpiVariableSet ev = epiVariableSampler.sampleEpiVariables(random);\n /// System.out.println(\"Epidemic variables: \" + ev.toString());\n return ev;\n }",
"@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }",
"private void setArmor() {\n\n if (VersionChecker.currentVersionIsUnder(12, 2)) return;\n if (!ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_ARMOR)) return;\n\n eliteMob.getEquipment().setItemInMainHandDropChance(0);\n eliteMob.getEquipment().setHelmetDropChance(0);\n eliteMob.getEquipment().setChestplateDropChance(0);\n eliteMob.getEquipment().setLeggingsDropChance(0);\n eliteMob.getEquipment().setBootsDropChance(0);\n\n if (hasCustomArmor) return;\n\n if (!(eliteMob instanceof Zombie || eliteMob instanceof PigZombie ||\n eliteMob instanceof Skeleton || eliteMob instanceof WitherSkeleton)) return;\n\n eliteMob.getEquipment().setBoots(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.AIR));\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.AIR));\n\n if (eliteMobLevel >= 12)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.LEATHER_HELMET));\n\n if (eliteMobLevel >= 14)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.LEATHER_BOOTS));\n\n if (eliteMobLevel >= 16)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));\n\n if (eliteMobLevel >= 18)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));\n\n if (eliteMobLevel >= 20)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.CHAINMAIL_HELMET));\n\n if (eliteMobLevel >= 22)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.CHAINMAIL_BOOTS));\n\n if (eliteMobLevel >= 24)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.CHAINMAIL_LEGGINGS));\n\n if (eliteMobLevel >= 26)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.CHAINMAIL_CHESTPLATE));\n\n if (eliteMobLevel >= 28)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));\n\n if (eliteMobLevel >= 30)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));\n\n if (eliteMobLevel >= 32)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));\n\n if (eliteMobLevel >= 34)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));\n\n if (eliteMobLevel >= 36)\n eliteMob.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));\n\n if (eliteMobLevel >= 38)\n if (ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_HELMETS))\n eliteMob.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));\n\n if (eliteMobLevel >= 40)\n eliteMob.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));\n\n if (eliteMobLevel >= 42)\n eliteMob.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));\n\n }",
"static double[] evolveWeights() throws Exception {\n\t\t// Create a random initial population\n\t\tRandom r = new Random();\n\t\t// Matrix is a two dimensional array, populationSize are rows, Genes are columns\n\t\tMatrix population = new Matrix(populationSize, numberofGenes);\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\t// returns elements(genes) of every row\n\t\t\t// Think of every row as a seperate chromosome of parent\n\t\t\tdouble[] chromosome = population.row(i);\n\t\t\t// create every gene for each chrosome in the population\n\t\t\tfor (int j = 0; j < chromosome.length; j++) {\n\t\t\t\tdouble gene = 0.03 * r.nextGaussian();\n\t\t\t\tchromosome[j] = gene;\n\t\t\t}\n\t\t}\n\n\t\tint generationNum = 0;\n\t\t// do battle with chromosomes until winning condition is found\n\t\t// Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t// NeuralAgent(population.row(0)))\n\t\twhile (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(0))) != -1) {\n\n\t\t\tSystem.out.println(\"Generation \" + (generationNum));\n\n\t\t\tint mightLive = r.nextInt(100);\n\n\t\t\tif (generationNum == 10)\n\t\t\t\tmutationRate -= 0.01;\n\t\t\tif (generationNum == 20)\n\t\t\t\tmutationRate -= 0.02;\n\t\t\tif (generationNum == 30)\n\t\t\t\tmutationRate -= 0.02;\n\n\t\t\t// Mutate the genes of the current population\n\t\t\tfor (int y = 0; y < populationSize; y++) {\n\t\t\t\tfor (int x = 0; x < numberofGenes; x++) {\n\t\t\t\t\tif (Math.random() <= mutationRate) {\n\t\t\t\t\t\tpopulation.changeGene(x, y, r.nextGaussian());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make random number of battles\n\t\t\tfor (int i = 0; i < 40; i++) {\n\t\t\t\t// Create two teams with two random chromosomes from the population\n\t\t\t\tint soldier_a = r.nextInt(population.rows());\n\t\t\t\tint soldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Ensure that both teams don't have the same chromosome\n\t\t\t\tif (soldier_a == soldier_b)\n\t\t\t\t\tsoldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Do Battle between teams and select winner\n\t\t\t\tif (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == 1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t}\n\n\t\t\t\telse if (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == -1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Reproduce for the population (This is where the magic happens)\n\t\t\t// int currentPopulation = population.rows();\n\t\t\twhile (population.rows() < 100) {\n\t\t\t\t// Retrieve random parent\n\t\t\t\tint parentID = r.nextInt(population.rows());\n\t\t\t\tdouble[] parent = population.row(parentID);\n\t\t\t\tint[] potentialPartners = new int[10];\n\t\t\t\tint abs_min_value = Integer.MIN_VALUE;\n\t\t\t\tBoolean foundpartner = false;\n\t\t\t\tint partner = 0;\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) {\n\t\t\t\t\tint potentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tif (parentID == potentialPartnerID)\n\t\t\t\t\t\tpotentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tpotentialPartners[i] = potentialPartnerID;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) // Finding most compatiable parent #2.\n\t\t\t\t{\n\t\t\t\t\tint compatiablity = similarities(parent, population.row(potentialPartners[i]));\n\t\t\t\t\tif (compatiablity > abs_min_value) {\n\t\t\t\t\t\tpartner = potentialPartners[i];\n\t\t\t\t\t\tfoundpartner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (foundpartner == false)\n\t\t\t\t\tpartner = r.nextInt(population.rows());\n\n\t\t\t\tdouble[] secondParent = population.row(partner);\n\t\t\t\tdouble[] newChild = population.newRow();\n\t\t\t\tint splitpoint = r.nextInt((int) numberofGenes / 4);\n\n\t\t\t\tfor (int i = 0; i < splitpoint; i++) // logic to a for loop and two if statements\n\t\t\t\t\tnewChild[i] = parent[i];\n\t\t\t\tfor (int i = splitpoint; i < numberofGenes; i++)\n\t\t\t\t\tnewChild[i] = secondParent[i];\n\n\t\t\t\t// for (int i = 0; i < population.rows(); i++) {\n\t\t\t\t// if (Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t\t\t// NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t// numOfWins++;\n\t\t\t\t// } else { }\n\n\t\t\t\t// Test for the best in the given population\n\t\t\t\t// win_Collection.add(numOfWins);\n\t\t\t\t// printWeights(population.row(0));\n\n\t\t\t}\n\t\t\tgenerationNum++;\n\t\t\tfor (int i = 0; i < population.rows(); i++) {\n\t\t\t\tif (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t\tnumOfWins++;\n\t\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of Winners: \" + numOfWins);\n\t\t\tnumOfWins = 0;\n\n\t\t}\n\t\tprintWeights(population.row(0));\n\t\treturn population.row(0);\n\t}",
"@Override\n\tpublic void startEating() {\n\t\tthrow new RuntimeException(\"Robot cant eat\");\n\t}",
"public Axe() {\n\t\t\tthis.name = \"Axe\";\n\t\t\tthis.damage = 20;\n\t\t}",
"private WrappedEngine() {\n logger = new ONDEXCoreLogger();\n addONDEXListener(logger);\n pluginLogger = new ONDEXPluginLogger();\n EnvironmentVariable ev = new EnvironmentVariable(\"ONDEX VAR=\" + Config.ondexDir);\n ev.setLog4jLevel(Level.INFO);\n fireEventOccurred(ev);\n }",
"public static Experiment lawson20000_E() {\n\n\t\tExperiment experiment = createLawsonExperiment( 20000, false );\n\t\t\n\t\tComplexMatrix pm = new ComplexMatrix(2);\n\t\n\t\tpm.set( 0, 0, 0.0026796461850070916, 1.1547117187626192);\n\t\tpm.set( 0, 1, -0.005355947642798394,-0.5753838008250742); \n\t\tpm.set( 1, 0, -0.0013400923944905092,-0.5769008999640821); \n\t\tpm.set( 1, 1, 0.0052748992510345824, 1.1527933048685672);\n\t\t\n\t\texperiment.setActual(pm);\n\t\t\n\t\treturn experiment;\n\t}",
"private Circle eye(int x, int y) {\n final Circle eye = new Circle(1.5, Color.BLACK);\n eye.setCenterX(x);\n eye.setCenterY(y);\n return eye;\n }",
"void object_below_eyes_level_calc(){\n down_angle=Math.abs(down_angle);\n up_angle=Math.abs(up_angle);\n angle_with_ground=90-angle_with_ground;\n distance_from_object=human_length*Math.tan(Math.toRadians(angle_with_ground));\n double all=distance_from_object*Math.tan(Math.toRadians(down_angle));\n double part=distance_from_object*Math.tan(Math.toRadians(up_angle));\n length_of_object=all-part;\n object_height_from_ground=human_length-all;\n ORI.setText(\"length_of_object :\\n\" +String.valueOf(String.format(\"%.2f\",(length_of_object/100))) +\" M\"+ \"\\n\" + \"distance_from_object :\\n\" + String.valueOf(String.format(\"%.2f\",(distance_from_object/100)))+\" M\" + \"\\n\"+\"height_from_ground :\\n\" + String.valueOf(String.format(\"%.2f\",(object_height_from_ground/100)))+\" M\");\n ORI.setVisibility(View.VISIBLE);\n }",
"public void onDrawEye(Eye eye) {\r\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\r\n\r\n checkGLError(\"colorParam\");\r\n\r\n // Apply the eye transformation to the camera.\r\n Matrix.multiplyMM(view, 0, eye.getEyeView(), 0, camera, 0);\r\n\r\n // Set the position of the light\r\n Matrix.multiplyMV(lightPosInEyeSpace, 0, view, 0, LIGHT_POS_IN_WORLD_SPACE, 0);\r\n\r\n float[] perspective = eye.getPerspective(Z_NEAR, Z_FAR);\r\n for (GLSelectableObject cube : cubes) {\r\n // Build the ModelView and ModelViewProjection matrices\r\n // for calculating cube position and light.\r\n Matrix.multiplyMM(modelView, 0, view, 0, cube.getModel(), 0);\r\n Matrix.multiplyMM(modelViewProjection, 0, perspective, 0, modelView, 0);\r\n cube.drawCube();\r\n }\r\n\r\n // Set modelView for the floor, so we draw floor in the correct location\r\n Matrix.multiplyMM(modelView, 0, view, 0, floor.getModel(), 0);\r\n Matrix.multiplyMM(modelViewProjection, 0, perspective, 0, modelView, 0);\r\n floor.drawFloor();\r\n currentTool.getTool().onDrawEye(eye);\r\n }",
"public void setEngine(Engine e) {\n engine = e;\n if (e.engineValid) {\n setOriginalWalkMP(calculateWalk());\n }\n }",
"private static void runHQ() throws GameActionException {\n\t\tif (Clock.getRoundNum() < 3) {\t\t\t\n\t\t\tif (rc.isActive()) {\n\t\t\t\tDirection spawnDir = dir[rand.nextAnd(7)];\n\t\t\t\tif (rc.senseObjectAtLocation(curLoc.add(spawnDir)) == null) {\n\t\t\t\t\trc.spawn(spawnDir);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif (pastrLocations[0] == null) {\n\t\t\t\tpastrLocations[0] = getBestPastrLocNearMeBasedOnCowGrowthRate();\n\t\t\t\trc.broadcast(0, pastrLocations[0].x * 100 + pastrLocations[0].y);\n\t\t\t}\n\t\t}\n\t\tdouble d = rc.senseCowsAtLocation(new MapLocation(8,11));\n\t\tSystem.out.println(d);\n\t}",
"private AgeableModel findLeftEyeModel(int eyeSlot, BeNMDojutsu leftEye)\n {\n return new ModelLeftEye(leftEye.getSize(), eyeSlot);\n }",
"public void BigE_and_Truana()\r\n\t{\r\n\t\t/* ____________ First get an approximate value of BIGE ______________________*/\r\n\t\t\r\n\t\tTANE = Trig.DegTAN ( EM ) / ( Trig.DegCOS ( EM ) - E );\r\n\t BIGE = Math.atan ( TANE ) * TRGVAR.R_to_D;\r\n\t E0 = E * TRGVAR.R_to_D;\r\n\t \r\n\t BIGE = BIGE % 360;\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t BIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \r\n\t /* ____________ Get more accurate value of BIGE by iteration ______________________*/\r\n\t \r\n\t COUNT = 0;\r\n\t ERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 );\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t while ( ERROR > 0.000001 || COUNT < 20) {\r\n\t \tBIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \tERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 ); //loop body\r\n\t \tBIGE0 = BIGE;\r\n\t \tCOUNT++;\r\n\t \t}\r\n\t \r\n\t TANVB2 = Math.sqrt (( 1.+E ) / ( 1.-E )) * Trig.DegTAN ( BIGE / 2. );\r\n\t \r\n\t TRUANA = 2. * Math.atan ( TANVB2 ) * TRGVAR.R_to_D;\r\n\t TRUANA = TRUANA % 360;\r\n\t \r\n\t System.out.println( \" ERROR = \" + ERROR + \" COUNT = \" + COUNT + \" BIGE = \" + BIGE + \" TRUANA = \" + TRUANA );\r\n\t \r\n\r\n\t}",
"public static native double OpenMM_AmoebaMultipoleForce_getAEwald(PointerByReference target);",
"public void instantiateEvidence(Configuration evid) {\n ProbabilityTree tree, twig;\n Configuration conf;\n PTreeCredalSet pot, pot2;\n FiniteStates variable;\n int i, j, v;\n \n conf = new Configuration(evid,new NodeList(variables));\n if (conf.size() != 0) {\n pot = (PTreeCredalSet)copy();\n for (i=0 ; i<conf.size() ; i++) {\n variable = conf.getVariable(i);\n v = conf.getValue(i);\n \n // building a tree for variable\n tree = new ProbabilityTree(variable);\n for (j=0 ; j<tree.child.size() ; j++) {\n twig = (ProbabilityTree) tree.child.elementAt(j);\n twig.label = 2;\n if (j == v)\n twig.value = 1.0;\n tree.leaves++;\n }\n // building the potential for the variable\n pot2 = new PTreeCredalSet();\n pot2.variables.addElement(variable);\n pot2.setTree(tree);\n // combination\n \n pot = (PTreeCredalSet)pot.combine(pot2);\n }\n this.setTree(pot.getTree());\n }\n }",
"public final void testAeLigature() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException, SolrServerException \n\t{\n\t\tcloseSolrProxy();\n\t\tcreateFreshIx(\"aeoeLigatureTests.mrc\");\n\t\tString fldName = \"title_245a_search\";\n\n\t\t// upper case\n\t\tSet<String> docIds = new HashSet<String>();\n\t\tdocIds.add(\"Ae1\");\n\t\tdocIds.add(\"Ae2\");\n\t\tassertSearchResults(fldName, \"Æon\", docIds);\n\t\tassertSearchResults(fldName, \"Aeon\", docIds);\n\n\t\t// lower case\n\t\tdocIds.clear();\n\t\tdocIds.add(\"ae1\");\n\t\tdocIds.add(\"ae2\");\n\t\tassertSearchResults(fldName, \"Encyclopædia\", docIds);\n\t\tassertSearchResults(fldName, \"Encyclopaedia\", docIds);\n\t}",
"public void setRightEye(Eye rightEye) {\n\t\tremoveSceneObject(this.rightEye);\n\t\t\n\t\t// ... and add the new one\n\t\tthis.rightEye = rightEye;\n\t\taddSceneObject(rightEye);\n\t}",
"public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}",
"public void setLeftEye(Eye leftEye) {\n\t\tremoveSceneObject(this.leftEye);\n\t\t\n\t\t// ... and add the new one\n\t\tthis.leftEye = leftEye;\n\t\taddSceneObject(leftEye);\n\t}",
"public void setEpsilon(double e) {\n\t\tepsilon = e;\n\t}",
"public Builder setEyeColor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n eyeColor_ = value;\n onChanged();\n return this;\n }",
"public double getEnergia() { return energia; }",
"private double calculateEwaldCoefficient(double cutoffDistance, double tolerance)\n\t{\n\t\tint i,k;\n\t\tdouble x,xlo,xhi,y;\n\t\tdouble ratio;\n\t\tratio = tolerance + 1.0;\n\t\tx = 0.5;\n\t\ti = 0;\n\t\twhile (ratio >= tolerance){\n\t\t\ti = i + 1;\n\t\t\tx = 2.0 * x;\n\t\t\ty = x * cutoffDistance;\n\t\t\tratio = ErrorFunction.erfc(y) / cutoffDistance;\n\t\t}\n\t\t//use a binary search to refine the coefficient\n\t\tk = i + 60;\n\t\txlo = 0.0;\n\t\txhi = x;\n\t\tfor(i=0;i<k;i++){\n\t\t\tx = (xlo+xhi) / 2.0;\n\t\t\ty = x * cutoffDistance;\n\t\t\tratio = ErrorFunction.erfc(y) / cutoffDistance;\n\t\t\tif (ratio >= tolerance){\n\t\t\t\txlo = x;\n\t\t\t}\n\t\t\telse{\n\t\t\t\txhi = x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"[SPMEList] Chose ewald coefficient of \"+x);\n\t\treturn x;\n\t}",
"public void setEBrake(boolean ebrake) {\n\t\tthis.engineFailureStatus();\n\t\tthis.brakeFailureStatus();\n\t\tthis.signalFailureStatus();\n if(!this.brakeFailureActive && !this.signalFailureActive && !this.engineFailureActive) {\n this.emerBrake = ebrake;\n } else if(this.brakeFailureActive || this.signalFailureActive || this.engineFailureActive){\n\t\t\tthis.emerBrake = true;\n\t\t}\n }",
"public Vector3f getEyeRay(float x, float y) {\n Vector4f tmp = new Vector4f(x, y, 0.0f, 1.0f);\n GraphicsContext.getTransformation().getProjectionMatrix().transform(tmp);\n tmp.mul(1.0f / tmp.w);\n Vector3f tmp2 = new Vector3f(tmp.x, tmp.y, tmp.z);\n tmp2.sub(position);\n\n return tmp2;\n }",
"Analyzer getAnalyzer() {\r\n if (analyzer != null)\r\n return analyzer;\r\n analyzer = TweetAnalyzerFactory.createAnalyzer(prop, true);\r\n return analyzer;\r\n }"
] | [
"0.58747905",
"0.5754674",
"0.57161736",
"0.55945635",
"0.5386386",
"0.5308433",
"0.50024176",
"0.4972838",
"0.49638227",
"0.49087587",
"0.48277438",
"0.48138207",
"0.4786618",
"0.47793785",
"0.47775826",
"0.47674623",
"0.47546914",
"0.4748292",
"0.4713343",
"0.47040167",
"0.46898142",
"0.46874484",
"0.46732777",
"0.46453354",
"0.46294013",
"0.46194",
"0.4609046",
"0.46090057",
"0.4604102",
"0.45927835",
"0.4578209",
"0.45726535",
"0.4570975",
"0.45626184",
"0.45622626",
"0.45569512",
"0.45020914",
"0.44941178",
"0.4490938",
"0.4479751",
"0.44776827",
"0.4450976",
"0.4449106",
"0.44331956",
"0.44294906",
"0.4427565",
"0.44081792",
"0.4392226",
"0.4388484",
"0.43797094",
"0.4371634",
"0.4364872",
"0.43572214",
"0.43497184",
"0.43489957",
"0.43370488",
"0.43368414",
"0.43300685",
"0.4328266",
"0.431781",
"0.43162832",
"0.43094683",
"0.43091363",
"0.43068475",
"0.43021184",
"0.43002748",
"0.42969447",
"0.42936358",
"0.42910317",
"0.4283269",
"0.42810464",
"0.42766777",
"0.42740718",
"0.4272871",
"0.4271566",
"0.42590407",
"0.42540604",
"0.4252963",
"0.4248354",
"0.42401403",
"0.42392817",
"0.42383516",
"0.42378023",
"0.4232121",
"0.4231128",
"0.42300776",
"0.42274037",
"0.422657",
"0.4224713",
"0.42242524",
"0.42216557",
"0.42213708",
"0.4219702",
"0.42169848",
"0.42126068",
"0.42108288",
"0.42107713",
"0.420177",
"0.41987923",
"0.41889495"
] | 0.49369654 | 9 |
Method to assert the pivotal tracker features.project with the Mach2 features.project tables. | @Then("^Validate project table against pivotal project$")
public void allInformationOfPivotalTrackerProjectsShouldBeDisplayedInProjectTableWidgetOfMach() {
JsonPath jsonPath = resources.getResponse().jsonPath();
// assertEquals(jsonPath.get("name"), tableProjectValues.get("name"));
// assertEquals(jsonPath.get("current_iteration_number"), tableProjectValues.get("current_iteration"));
// assertEquals(jsonPath.get("week_start_day"), tableProjectValues.get("week_start_date"));
assertEquals(jsonPath.get("name"), "AT01 project-01");
assertEquals(jsonPath.get("week_start_day"), "Monday");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testMainScenario() {\n\t\tProject project = this.db.project().create(\"Test project\", 200, \"13-05-2014\", null);\n\n//Test #1\t\t\n\t\tassertEquals(project.getActivities().size(), 0);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 0);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tActivity activity1 = this.db.activity().createProjectActivity(project.getId(), \"activity1\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\t\tActivity activity2 = this.db.activity().createProjectActivity(project.getId(), \"activity2\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\n//Test #2\t\t\n\t\tassertEquals(project.getActivities().size(), 2);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tDeveloper developer = this.db.developer().readByInitials(\"JL\").get(0);\n\t\tDeveloper developer2 = this.db.developer().readByInitials(\"PM\").get(0);\n\t\tDeveloper developer3 = this.db.developer().readByInitials(\"GH\").get(0);\n\t\tDeveloper developer4 = this.db.developer().readByInitials(\"RS\").get(0);\n\t\tactivity1.addDeveloper(developer);\n\t\tactivity1.addDeveloper(developer2);\n\t\tactivity1.addDeveloper(developer3);\n\t\tactivity1.addDeveloper(developer4);\n\n//Test #3\n\t\t//Tests that the initials of all developers are stored correctly\t\t\n\t\tassertEquals(activity1.getAllDevsInitials(),\"JL,PM,GH,RS\");\n\t\tassertEquals(activity1.getAllDevsInitials() == \"The Beatles\", false); //Please fail!\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer.getId(), activity1.getId(), false);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer2.getId(), activity1.getId(), false);\n\t\t\n\t\t//Showed in the project maintainance view, and is relevant to the report\n\t\tassertEquals(activity1.getHoursRegistered(),6);\n\t\t\n//Test #4\n\t\t//Tests normal registration\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 3);\n\t\tassertEquals(project.getEstHoursRemaining(), 194);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 6);\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer3.getId(), activity2.getId(), true);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer4.getId(), activity2.getId(), true);\n\n//Test #5\n\t\t//Tests that assits also count\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 6);\n\t\tassertEquals(project.getEstHoursRemaining(), 188);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 12);\n\t}",
"@Test\n public void canGetProjectsForOrganisation() {\n Long orgID = 709814L; //existing vertec Organisation\n String uri = baseURI + \"/organisation/\" + orgID + \"/projects\";\n\n ProjectsForAddressEntry pfo = getFromVertec(uri, ProjectsForAddressEntry.class).getBody();\n assertEquals(\"Got wrong organisation\", orgID, pfo.getOrganisationId());\n assertTrue(\"Deutsche Telekom\".equals(pfo.getOrganisationName()));\n\n assertTrue(2 <= pfo.getProjects().size());\n assertEquals(pfo.getProjects().get(0).getV_id().longValue(), 2073414L);\n assertEquals(pfo.getProjects().get(1).getV_id().longValue(), 16909140L);\n\n List<JSONPhase> phasesForProj1 = pfo.getProjects().get(0).getPhases();\n List<JSONPhase> phasesForProj2 = pfo.getProjects().get(1).getPhases();\n\n assertEquals(\"Wrong phases gotten\", phasesForProj1.size(), 2); //project inactve so should not change in the future,\n assertEquals(\"Wrong phases gotten\", phasesForProj2.size(), 3); //but if these assertions fail check on vertec how many phases the project has\n\n\n assertEquals(2073433L, phasesForProj1.get(0).getV_id().longValue());\n assertEquals(2073471L, phasesForProj1.get(1).getV_id().longValue());\n\n assertEquals(16909162L, phasesForProj2.get(0).getV_id().longValue());\n assertEquals(17092562L, phasesForProj2.get(1).getV_id().longValue());\n assertEquals(17093158L, phasesForProj2.get(2).getV_id().longValue());\n\n assertTrue(pfo.getProjects().get(0).getTitle().equals(\"T-Mobile, Internet Architect\"));\n assertFalse(pfo.getProjects().get(0).getActive());\n assertTrue(pfo.getProjects().get(0).getCode().equals(\"C11583\"));\n assertEquals(pfo.getProjects().get(0).getClientRef().longValue(), 709814L);\n assertEquals(pfo.getProjects().get(0).getCustomerId(), null);\n assertEquals(pfo.getProjects().get(0).getLeader_ref().longValue(), 504354L);\n //type not uses\n //currency not used\n assertTrue(pfo.getProjects().get(0).getCreationDate().equals(\"2008-08-27T14:22:47\"));\n //modifiedDate will change so check is not very useful here\n\n //phases\n JSONPhase phase = phasesForProj1.get(1);\n assertFalse(phase.getActive());\n assertTrue(phase.getDescription().equals(\"Proposal\"));\n assertTrue(phase.getCode().equals(\"10_PROPOSAL\"));\n assertEquals(3, phase.getStatus());\n assertTrue(phase.getSalesStatus().contains(\"30\"));\n assertTrue(phase.getExternalValue().equals(\"96,000.00\"));\n assertTrue(phase.getStartDate().equals(\"\"));\n assertTrue(phase.getEndDate().equals(\"\"));\n assertTrue(phase.getOfferedDate().equals(\"2008-08-27\"));\n assertTrue(phase.getCompletionDate().equals(\"\"));\n assertTrue(phase.getLostReason().contains(\"suitable resource\"));\n assertTrue(phase.getCreationDate().equals(\"2008-08-27T14:25:38\"));\n assertTrue(phase.getRejectionDate().equals(\"2008-10-31\"));\n\n assertEquals(504354, phase.getPersonResponsible().longValue());\n }",
"@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }",
"@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}",
"@Test\n public void testGetSelectedProject() {\n System.out.println(\"getSelectedProject\");\n ProjectEditController instance = new ProjectEditController();\n Project expResult = new Project();\n instance.prepareEditProject(expResult);\n Project result = instance.getSelectedProject();\n assertEquals(expResult, result);\n\n }",
"public BaseMsg verifyProjectInfo(long projectId);",
"@Test\n\tpublic void testValidors() throws ParseException {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 0);\n\t}",
"public void openUpProject(Subproject project) {\n\t\tSubprojectField field=project.setChip(current.removeChip());\n\t\tcurrent.raiseScore(field.getAmountSZT());\n\t}",
"@Test\n public void projectMetrics() {\n assertProjectMetrics(340, 161, 179, 78054, 28422, 49632);\n }",
"@Test\n\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}",
"@Test\n public void testEquals_3()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Project();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }",
"@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }",
"@Test\n public void testEquals_2()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Project();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }",
"boolean hasProject();",
"public void testDemo() throws Exception {\n // prepare data\n Client client = createClient(200);\n Project project = createProjectWithClient(100, client);\n createProjectWithClient(101, client);\n createProjectWithClient(102, client);\n createProjectWithClient(103, client);\n getEntityManager().getTransaction().commit();\n\n // retrieve bean\n InitialContext ctx = new InitialContext();\n ProjectDAORemote bean = (ProjectDAORemote) ctx.lookup(\"client_project_entities_dao/ProjectDAOBean/remote\");\n\n Filter filter = new EqualToFilter(\"projectStatus\", project.getProjectStatus().getId());\n\n List<Project> projects;\n\n // get project for corresponding id\n Project tempProject = bean.retrieveById(100L);\n\n // get all projects\n projects = bean.retrieveAll();\n\n // get all projects with the name \"name\"\n projects = bean.searchByName(\"name\");\n\n // get all that match the given filter\n projects = bean.search(filter);\n\n // save or update a project\n bean.save(project);\n\n // delete the project\n bean.delete(project);\n\n // get project for corresponding id without projectChildren\n tempProject = bean.retrieveById(100L, false);\n\n // get project for corresponding id with projectChildren\n tempProject = bean.retrieveById(100L, true);\n\n // get all projects without projectChildrens\n projects = bean.retrieveAll(false);\n\n // get all projects with projectChildrens\n projects = bean.retrieveAll(true);\n\n // get projects by user\n projects = bean.getProjectsByUser(\"username\");\n\n // get all projects only\n projects = bean.retrieveAllProjectsOnly();\n\n // search projects by project name\n projects = bean.searchProjectsByProjectName(\"projectname\");\n\n // search projects by client name\n projects = bean.searchProjectsByClientName(\"clientname\");\n\n // get contest fees by project\n List<ProjectContestFee> fees = bean.getContestFeesByProject(100L);\n\n // save contest fees\n bean.saveContestFees(fees, 100L);\n\n // check client project permission\n boolean clientProjectPermission = bean.checkClientProjectPermission(\"username\", 100L);\n\n // check po number permission\n boolean poNumberPermission = bean.checkPoNumberPermission(\"username\", \"123456A\");\n\n // add user to billing projects.\n bean.addUserToBillingProjects(\"username\", new long[] {100, 101, 102});\n\n // remove user from billing projects.\n bean.removeUserFromBillingProjects(\"ivern\", new long[] {100, 201});\n\n // get the projects by the given client id.\n projects = bean.getProjectsByClientId(200);\n }",
"@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n hardMap.createLanes();\n\n assertTrue((countObstacles(hardMap) >= countObstacles(mediumMap)) && (countObstacles(mediumMap) >= countObstacles(easyMap)));\n assertTrue((countPowerups(hardMap) <= countPowerups(mediumMap)) && (countPowerups(mediumMap) <= countPowerups(easyMap)));\n }",
"public void test_61277a() {\n \t\tIProject project = getProject(getUniqueString());\n \t\tIProject destProject = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tensureDoesNotExistInWorkspace(destProject);\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tString qualifier = getUniqueString();\n \t\tPreferences node = context.getNode(qualifier);\n \t\tString key = getUniqueString();\n \t\tString value = getUniqueString();\n \t\tnode.put(key, value);\n \t\tassertEquals(\"1.0\", value, node.get(key, null));\n \n \t\ttry {\n \t\t\t// save the prefs\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t}\n \n \t\t// rename the project\n \t\ttry {\n \t\t\tproject.move(destProject.getFullPath(), true, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.0\", e);\n \t\t}\n \n \t\tcontext = new ProjectScope(destProject);\n \t\tnode = context.getNode(qualifier);\n \t\tassertEquals(\"3.0\", value, node.get(key, null));\n \t}",
"public void testCriaProjeto (){\n ProjetoDAO.criarProjeto(proj3);\n Projeto aux = ProjetoDAO.getProjetoByNome(\"proj3\");\n assertEquals(proj3.getNome(), aux.getNome());\n }",
"private boolean testPersistenceManager (final PersistenceManager pm){\n\t\ttry {\n\t\t\tfinal Iterator it = pm.getExtent(Project.class, true).iterator();\n\t\t} catch (Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }",
"public void testGetProjectByName() throws Exception {\r\n ProjectData projectData = new ProjectData();\r\n projectData.setName(\"project1\");\r\n projectData.setDescription(\"des\");\r\n\r\n projectService.createProject(projectData);\r\n\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tProjectData pd = null;\r\n\t\tfor (int i = 0; i < 100; i++) {\r\n\t pd = projectService.getProjectByName(\"project1\", 1);\r\n\t\t}\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Run getProjectByName used \" + (end - start) + \"ms\");\r\n\r\n assertEquals(\"The project data is wrong.\", pd.getDescription(), projectData.getDescription());\r\n assertEquals(\"The project data is wrong.\", pd.getName(), projectData.getName());\r\n }",
"public void testMsProjectType() throws MPXJException {\n TaskManager taskManager = getTaskManager();\n CustomPropertyDefinition col5 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col5\", null);\n col5.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"NUMBER1\");\n\n CustomPropertyDefinition col4 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col4\", null);\n\n CustomPropertyDefinition col3 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col3\", null);\n col3.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"COST10\");\n\n CustomPropertyDefinition col2 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col2\", null);\n CustomPropertyDefinition col1 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col1\", null);\n col1.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"NUMBER3\");\n\n Map<CustomPropertyDefinition, FieldType> mapping = CustomPropertyMapping.buildMapping(taskManager);\n assertEquals(TaskField.NUMBER3, mapping.get(col1));\n assertEquals(TaskField.NUMBER4, mapping.get(col2));\n assertEquals(TaskField.COST10, mapping.get(col3));\n assertEquals(TaskField.NUMBER2, mapping.get(col4));\n assertEquals(TaskField.NUMBER1, mapping.get(col5));\n }",
"public void testProjectMove() {\n\t\tIProject project1 = getProject(getUniqueString());\n\t\tIProject project2 = getProject(getUniqueString());\n\t\t\n \t\tensureExistsInWorkspace(new IResource[] {project1}, true);\n \t\tString qualifier = getUniqueString();\n \t\tString key = getUniqueString();\n \t\tString value = getUniqueString();\n \t\tPreferences node = new ProjectScope(project1).getNode(qualifier);\n \t\tnode.put(key, value);\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t}\n\t\t// move project\n \t\ttry {\n\t\t\tproject1.move(new Path(project2.getName()), false, null);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.0\", e);\n \t\t}\n\t\t\n\t\t// ensure that preferences for the old project are removed\n \t\tnode = Platform.getPreferencesService().getRootNode().node(ProjectScope.SCOPE);\n \t\tassertNotNull(\"2.1\", node);\n \t\ttry {\n\t\t\tassertTrue(\"2.2\", !node.nodeExists(project1.getName()));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"2.3\", e);\n \t\t}\n\t\t\n\t\t// ensure preferences are preserved\n\t\tnode = Platform.getPreferencesService().getRootNode().node(ProjectScope.SCOPE);\n\t\tassertNotNull(\"2.3\", node);\n\t\ttry {\n\t\t\tassertTrue(\"2.4\", node.nodeExists(project2.getName()));\n\t\t} catch (BackingStoreException e) {\n\t\t\tfail(\"2.5\", e);\n\t\t}\n \t\tnode = node.node(project2.getName());\n \t\tassertNotNull(\"3.1\", node);\n \t\ttry {\n \t\t\tassertTrue(\"3.2\", node.nodeExists(qualifier));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.3\", e);\n \t\t}\n \t\tnode = node.node(qualifier);\n \t\tassertNotNull(\"4.1\", node);\n \t\tassertEquals(\"4.2\", value, node.get(key, null));\n \t}",
"public void test2() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis like \" + \"\\\"%m%\" + \"\\\";\");\r\n\t\tVector<Object> v1 = tbl.getGrid().get(0);\r\n\t\tVector<Object> v2 = tbl.getGrid().get(1);\r\n\t\tVector<Object> v3 = tbl.getGrid().get(2);\r\n\t\tassertTrue(v1.get(0).equals(\"Mumbai\"));\r\n\t\tassertTrue(v2.get(0).equals(\"Rome\")); \r\n\t\tassertTrue(v3.get(0).equals(\"Melbourne\"));\r\n\t}",
"public void testAdaptToFpProject() throws Exception {\n\t\tassertTrue(FedoraPackagerUtils.getProjectType(this.iProject) == FedoraPackagerUtils.ProjectType.CVS);\n\t}",
"@Test\n public void getProjectsWhenNoProjectInserted() throws InterruptedException {\n List<Project> actualProjects = LiveDataTestUtil.getValue(projectDao.getProjects());\n //Then : the retrieved list is empty\n assertTrue(actualProjects.isEmpty());\n }",
"@Test\n\tpublic void testCreate() throws Exception {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tDate startDate = new Date();\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tcalendar.setTime(startDate);\n\t\tcalendar.add(Calendar.MONTH, 2);\n\t\t//\"name\":\"mizehau\",\"introduction\":\"dkelwfjw\",\"validityStartTime\":\"2015-12-08 15:06:21\",\"validityEndTime\":\"2015-12-10 \n\n\t\t//15:06:24\",\"cycle\":\"12\",\"industry\":\"1202\",\"area\":\"2897\",\"remuneration\":\"1200\",\"taskId\":\"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\"\n\t\tProject a = new Project();\n\t\tDate endDate = calendar.getTime();\n\t\tString name = \"mizehau\";\n\t\tString introduction = \"dkelwfjw\";\n\t\tString industry = \"1202\";\n\t\tString area = \"test闫伟旗创建项目\";\n\t\t//String document = \"test闫伟旗创建项目\";\n\t\tint cycle = 12;\n\t\tString taskId = \"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\";\n\t\tdouble remuneration = 1200;\n\t\tTimestamp validityStartTime = Timestamp.valueOf(sdf.format(startDate));\n\t\tTimestamp validityEndTime = Timestamp.valueOf(sdf.format(endDate));\n\t\ta.setArea(area);\n\t\ta.setName(name);\n\t\ta.setIntroduction(introduction);\n\t\ta.setValidityStartTime(validityStartTime);\n\t\ta.setValidityEndTime(validityEndTime);\n\t\ta.setCycle(cycle);\n\t\ta.setIndustry(industry);\n\t\ta.setRemuneration(remuneration);\n\t\ta.setDocument(taskId);\n\t\tProject p = projectService.create(a);\n\t\tSystem.out.println(p);\n\t}",
"private void compareProjects(int errorTag, IProject[] projects, IProject[] projects2) {\n \t\tassertEquals(errorTag + \".1.0\", projects.length, projects2.length);\n \t\tfor (int i = 0; i < projects.length; i++) {\n \t\t\tassertTrue(errorTag + \".1.\" + (i + 1), projects[i].getName().equals(projects2[i].getName()));\n \t\t}\n \t}",
"@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }",
"public void test_GetClientForProject_Failure2() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Project project = new Project();\r\n project.setCreateDate(new Date());\r\n project.setDescription(\"desc\");\r\n project.setModifyDate(new Date());\r\n project.setName(\"name\");\r\n project.setUserId(1);\r\n entityManager.persist(project);\r\n\r\n entityManager.close();\r\n\r\n beanUnderTest.getClientForProject(project.getProjectId());\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public boolean insertProject(Project project) throws EmployeeManagementException;",
"@Test\n\tpublic void testExistsProjectOpen() throws Exception {\n\t\tassertExists(\"The Rodin project should exist\", rodinProject);\n\n\t\t// Try after unloading the project from the database \n\t\trodinProject.close();\n\t\tassertExists(\"The Rodin project should exist\", rodinProject);\n\t\tassertFalse(\"The existence test should not have opened the project\",\n\t\t\t\trodinProject.isOpen());\n\t}",
"@Test\n public void testEquals_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Object();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }",
"public void test_61277b() {\n \t\tIProject project1 = getProject(getUniqueString());\n \t\tIProject project2 = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(new IResource[] {project1}, true);\n \t\tPreferences node = new ProjectScope(project1).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\tnode.put(\"key\", \"value\");\n \t\tassertTrue(\"1.0\", !getFileInWorkspace(project1, ResourcesPlugin.PI_RESOURCES).exists());\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tassertTrue(\"1.1\", getFileInWorkspace(project1, ResourcesPlugin.PI_RESOURCES).exists());\n \t\t// move project and ensures charsets settings are preserved\n \t\ttry {\n \t\t\tproject1.move(project2.getFullPath(), false, null);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.99\", e);\n \t\t}\n \t\tassertTrue(\"2.0\", getFileInWorkspace(project2, ResourcesPlugin.PI_RESOURCES).exists());\n \t\tnode = new ProjectScope(project2).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\tassertEquals(\"2.1\", \"value\", node.get(\"key\", null));\n \t}",
"public void test3() throws ClassNotFoundException, SQLException {\r\n\t\tsqlTable tbl = new sqlTable();\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"Mumbai\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"Asia\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE metropolis = \" + \"\\\"New York\" + \"\\\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(1).equals(\"North America\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 20400000 +\";\"); \r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"Mumbai\"));\r\n\t\ttbl.printInAplication(\"SELECT * FROM metropolises WHERE population >= \" + 21000000 +\";\");\r\n\t\tassertTrue(tbl.getGrid().get(0).get(0).equals(\"New York\"));\r\n\t}",
"public boolean verifyAdd() {\n\t\treturn projTable.findElement(By.linkText(nameOfProject)).isDisplayed();\n\t}",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }",
"@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"@Then(\"^story is displayed in the project page$\")\n public void newStoryNameIsDisplayedInTheProjectPage() {\n assertion.assertTrue(project.isVisibleStory(helper.getStoryVariable()));\n }",
"@Test\n public void insertAndGetProjects() throws InterruptedException {\n insertProjects();\n\n setProjectIds(); //We set id after insertion in database not to interfere with autogenerate\n\n List<Project> expectedProjects = Arrays.asList( //We prepare id sorted expected list\n PROJECT_MAGICGITHUB,\n PROJECT_ENTREVOISINS,\n PROJECT_MAREU\n );\n\n //When : we get the list of projects\n List<Project> actualProjects = LiveDataTestUtil.getValue(projectDao.getProjects());\n\n //Then : the retrieved list contains the three projects sorted by id (insertion order)\n assertArrayEquals(expectedProjects.toArray(), actualProjects.toArray());\n }",
"public void testGetProjetoByNome() {\n System.out.println(\"getProjetoByNome\");\n String nome = \"proj2\";\n Projeto expResult = proj2;\n Projeto result = ProjetoDAO.getProjetoByNome(nome);\n assertEquals(expResult.getNome(), result.getNome());\n }",
"LectureProject createLectureProject();",
"@Test\r\n\tpublic void testGetPastPregnancies() {\r\n\t\ttry {\r\n\t\t\tList<PregnancyInfo> list = pregnancyData.getRecords(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnancies());\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}",
"@Test\n \tpublic void testCreateMindProject() throws Exception {\n \t\tString name = \"Test\" ; //call a generator which compute a new name\n \t\tGTMenu.clickItem(\"File\", \"New\", FRACTAL_MIND_PROJECT);\n \t\tGTShell shell = new GTShell(Messages.MindProjectWizard_window_title);\n \t\t//shell.findTree().selectNode(\"Mind\",FRACTAL_MIND_PROJECT);\n \t\t//shell.findButton(\"Next >\").click();\n \t\tshell.findTextWithLabel(\"Project name:\").typeText(name);\n \t\tshell.close();\n \t\t\n \t\tTestMindProject.assertMindProject(name);\t\t\n \t}",
"@Given(\"I am on the Project Contact Details Page\")\n public void i_am_on_the_project_contact_details_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n i_click_on_create_a_new_project();\n\n }",
"@Test\n\tpublic void getProjects() {\n\t\tList<Project> projects = new ArrayList<Project>();\n\t\tprojects.add(project);\n\t\twhen(repository.findAll()).thenReturn(projects);\n\t\tassertEquals(controller.getAllProjects(), projects);\n\t}",
"@Test\n public void testCopyFeatureTable() throws SQLException, IOException {\n AlterTableUtils.testCopyFeatureTable(activity, geoPackage);\n }",
"@Test\n\tpublic void shouldFireAssertIfAllPresent() {\n\n\t\tval mapa = new LinkedHashMap<String, String>();\n\t\tmapa.put(\"name\", \"myproject\");\n\t\tmapa.put(\"project_type\", \"billable\");\n\t\tmapa.put(\"start_date\", \"1-1-15\");\n\t\tmapa.put(\"end_date\", \"1-1-16\");\n\t\truleObj.setData(mapa);\n\n\t\tkSession = kbase.newStatefulKnowledgeSession();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tEvaluator eval = (Evaluator) ruleObj;\n\t\tkSession.insert(eval);\n\t\tkSession.insert(list);\n\n\t\tint actualNumberOfRulesFired = kSession.fireAllRules();\n\n\t\tassertEquals(list.size(), 0);\n\t}",
"@Test\r\n\tpublic void testAddPortfolios2() {\n\t\tassertTrue(\"Error adding initial stocks to portfolios\", false);\r\n\t}",
"@Test\r\n public void testGetAllFestivities() {\r\n System.out.println(\"getAllFestivities\");\r\n List<Festivity> result = Database.getAllFestivities();\r\n assertTrue(result.size() > 0 );\r\n }",
"public void test_GetClientForProject_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n Project project = new Project();\r\n project.setCreateDate(new Date());\r\n project.setDescription(\"desc\");\r\n project.setModifyDate(new Date());\r\n project.setName(\"name\");\r\n project.setUserId(1);\r\n entityManager.persist(project);\r\n\r\n entityManager.enablePersistenceException(true);\r\n\r\n beanUnderTest.getClientForProject(project.getProjectId());\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }",
"public boolean updateProject(Project project);",
"@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}",
"@Test\n public void should_compare_issues_with_database_format() {\n DefaultIssue newIssue = newDefaultIssue(\" message \", 1, RuleKey.of(\"squid\", \"AvoidCycle\"), \"checksum1\");\n IssueDto referenceIssue = newReferenceIssue(\"message\", 1, \"squid\", \"AvoidCycle\", \"checksum2\");\n \n IssueTrackingResult result = new IssueTrackingResult();\n tracking.mapIssues(newArrayList(newIssue), newArrayList(referenceIssue), null, null, result);\n assertThat(result.matching(newIssue)).isSameAs(referenceIssue);\n }",
"public void testGetProjectByNameUserRole() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n ProjectData projectData = new ProjectData();\r\n projectData.setName(\"project1\");\r\n projectData.setDescription(\"Hello\");\r\n\r\n projectService.createProject(projectData);\r\n\r\n // 1 is the user id\r\n ProjectData pd = projectService.getProjectByName(\"project1\", 1);\r\n\r\n assertNotNull(\"null project data received\", pd);\r\n }",
"public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}",
"private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }",
"@Override\r\n protected void setUp() throws Exception {\r\n deleteAllProjects();\r\n\r\n lookupProjectServiceRemoteWithUserRole();\r\n }",
"public void testProjectDelete() {\n \t\t// create the project\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\t// set some settings\n \t\tString qualifier = getUniqueString();\n \t\tString key = getUniqueString();\n \t\tString value = getUniqueString();\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tPreferences node = context.getNode(qualifier);\n \t\tPreferences parent = node.parent().parent();\n \t\tnode.put(key, value);\n \t\tassertEquals(\"1.0\", value, node.get(key, null));\n \n \t\ttry {\n \t\t\t// delete the project\n \t\t\tproject.delete(IResource.FORCE | IResource.ALWAYS_DELETE_PROJECT_CONTENT, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\t// project pref should not exist\n \t\t\tassertTrue(\"3.0\", !parent.nodeExists(project.getName()));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \n \t\t// create a project with the same name\n \t\tensureExistsInWorkspace(project, true);\n \n \t\t// ensure that the preference value is not set\n \t\tassertNull(\"4.0\", context.getNode(qualifier).get(key, null));\n \t}",
"public static MapList getCurrentUserProjects(Context context, String[] args) throws MatrixException {\n MapList projectList = new MapList();\n try {\n // rp3 : This needs to be tested to make sure the result creates no issue and returns the same set\n projectList = (MapList) JPO.invoke(context, \"emxProjectSpace\", null, \"getAllProjects\", args, MapList.class);\n\n // rp3 : Replace this code with the JPO invoke from the program central API.\n /*\n * com.matrixone.apps.common.Person person = (com.matrixone.apps.common.Person) DomainObject.newInstance(context, DomainConstants.TYPE_PERSON); com.matrixone.apps.program.ProjectSpace\n * project = (com.matrixone.apps.program.ProjectSpace) DomainObject.newInstance(context, DomainConstants.TYPE_PROJECT_SPACE,DomainConstants.PROGRAM);\n * \n * String ctxPersonId = person.getPerson(context).getId(); person.setId(ctxPersonId);\n * \n * //System.out.println(\"the project id is \" + ctxPersonId);\n * \n * StringList busSelects = new StringList(11); busSelects.add(project.SELECT_ID); busSelects.add(project.SELECT_TYPE); busSelects.add(project.SELECT_NAME);\n * busSelects.add(project.SELECT_CURRENT);\n * \n * //projectList = project.getUserProjects(context,person,null,null,null,null); // expand to get project members Pattern typePattern = new Pattern(DomainConstants.TYPE_PROJECT_SPACE);\n * typePattern.addPattern(DomainConstants.TYPE_PROJECT_CONCEPT);\n * \n * projectList = (person.getRelatedObjects( context, // context DomainConstants.RELATIONSHIP_MEMBER, // relationship pattern typePattern.getPattern(), // type filter. busSelects, //\n * business selectables null, // relationship selectables true, // expand to direction false, // expand from direction (short) 1, // level null, // object where clause null)); //\n * relationship where clause\n */\n\n // System.out.println(\"the project list is \" + projectList);\n } catch (Exception ex) {\n throw (new MatrixException(\"emxMsoiPMCUtil:getCurrentUserProjects : \" + ex.toString()));\n }\n return projectList;\n }",
"private void add_proj_DATABASE(Project project) {\n }",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }",
"public void querySubProjects() {\r\n\t\t// Create a task\r\n\t\tProject master = new Project();\r\n\t\tmaster.setName(\"INFRASTRUCTURE\");\r\n\t\tmaster.setDisplayName(\"Infrastructure\");\r\n\t\tmaster.setDescription(\"Project to setup the new infrastructure\");\r\n\t\tmaster = (Project) aggregateService.create(master, new Settings());\t\r\n\r\n\t\t// Create 2 dependents\r\n\t\tProject A = new Project();\r\n\t\tA.setName(\"SETUP_NETWORK\");\r\n\t\tA.setDisplayName(\"Setup network\");\r\n\t\tA.setDescription(\"Project to lay the network cables and connect to routers\");\r\n\t\tA = (Project) aggregateService.create(A, new Settings());\r\n\r\n\t\tProject B = new Project();\r\n\t\tB.setName(\"SETUP_TELEPHONE\");\r\n\t\tB.setDisplayName(\"Setup telephone\");\r\n\t\tB.setDescription(\"Setup the telephone at each employee desk\");\r\n\t\tB = (Project) aggregateService.create(B, new Settings());\r\n\r\n\t\tMap<String, Project> subProjects = new HashMap<String, Project>();\r\n\t\tsubProjects.put(A.getName(), A);\r\n\t\tsubProjects.put(B.getName(), B);\r\n\t\tmaster.setSubProjects(subProjects);\r\n\t\tmaster = (Project) aggregateService.read(master, getSettings());\t\t\r\n\r\n\t\t// query the task object\r\n\t\tSettings settings = new Settings();\r\n\t\tsettings.setView(aggregateService.getView(\"SUBPROJECTS\"));\t\t\r\n\t\tList<?> toList = aggregateService.query(master, settings);\r\n\r\n\t\tassert(toList.size() == 1);\t\t\r\n\r\n\t\tObject obj = toList.get(0);\r\n\t\tassert(Project.class.isAssignableFrom(obj.getClass()));\r\n\r\n\t\tProject root = (Project) obj;\r\n\t\tassert(root.getSubProjects() != null && root.getSubProjects().size() == 2);\r\n\t\tassert(root.getSubProjects().get(\"SETUP_NETWORK\").getName().equals(\"SETUP_NETWORK\"));\r\n\t\tassert(root.getSubProjects().get(\"SETUP_TELEPHONE\").getName().equals(\"SETUP_TELEPHONE\"));\t\t\r\n\t}",
"@Test\n public void shouldCreateEpiDataTravel() {\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataTravel(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(1));\n }",
"private void setup(final CascadeProject project) {\n\t\tif (resultSet == null) {\n\t\t\tresultSet = new TreeSet<CascadeResult>();\n\t\t}\n\t}",
"public void testProjectServiceClientAccuracy2() throws Exception {\n assertNotNull(\"fail to create ctor.\", new ProjectServiceClient(new URL(wsdl)));\n }",
"@Override\n\tpublic List<ProjectInfo> findProject(ProjectInfo project) {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findProject\",project);\n\t}",
"@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }",
"private void assertPropertyEquals(final AbstractFeature f, final String mfidref,\n final String startTime, final String endTime, final double[] trajectory,\n final Object state, final Object typeCode)\n {\n assertEquals(\"mfidref\", mfidref, f.getPropertyValue(\"mfidref\"));\n assertEquals(\"startTime\", instant(startTime), f.getPropertyValue(\"startTime\"));\n assertEquals(\"endTime\", instant(endTime), f.getPropertyValue(\"endTime\"));\n assertEquals(\"state\", state, f.getPropertyValue(\"state\"));\n assertEquals(\"typeCode\", typeCode, f.getPropertyValue(\"\\\"type\\\" code\"));\n if (isMovingFeature) {\n assertPolylineEquals(trajectory, (Polyline) f.getPropertyValue(\"trajectory\"));\n } else {\n assertArrayEquals(\"trajectory\", trajectory, (double[]) f.getPropertyValue(\"trajectory\"), STRICT);\n }\n }",
"@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}",
"public void testCreatePhases_Normal() throws Exception {\n Project project = new Project(new Date(), new DefaultWorkdays());\n project.setId(1);\n Phase[] phases = new Phase[3];\n for (int i = 0; i < phases.length; ++i) {\n phases[i] = new Phase(project, 12345678);\n Phase phase = phases[i];\n phase.setFixedStartDate(parseDate(\"2006-01-01 11:11:13.11\" + i));\n phase.setScheduledStartDate(parseDate(\"2006-01-02 11:11:13.11\" + i));\n phase.setScheduledEndDate(parseDate(\"2006-01-03 11:11:13.11\" + i));\n phase.setActualStartDate(parseDate(\"2006-01-04 11:11:13.11\" + i));\n phase.setActualEndDate(parseDate(\"2006-01-05 11:11:13.11\" + i));\n phase.setPhaseStatus(new PhaseStatus(2, \"Open\"));\n phase.setPhaseType(new PhaseType(1, \"dummy\"));\n phase.setId(1234500 + i);\n }\n\n // add some dependencies\n Phase another = new Phase(project, 12345);\n another.setId(3);\n phases[0].addDependency(new Dependency(another, phases[0], false, true, 123456));\n phases[0].addDependency(new Dependency(phases[1], phases[0], true, false, 654321));\n\n // create the phases in persistence\n persistence.createPhases(phases, \"testCreatePhases_Normal\");\n\n // validate the phases records(randomly)\n DBRecord[] phaseRecords =\n TestHelper\n .getPhaseRecords(\" WHERE create_user=\\'testCreatePhases_Normal\\' ORDER BY project_phase_id ASC\");\n assertEquals(\"Failed to create all phases.\", phases.length, phaseRecords.length);\n assertEquals(\"Failed to store fixed_start_time.\", phases[1].getFixedStartDate(), phaseRecords[1]\n .getValue(\"fixed_start_time\"));\n assertEquals(\"Failed to store phase length.\", new Long(phases[0].getLength()), phaseRecords[0]\n .getValue(\"duration\"));\n assertEquals(\"Failed to store phase type.\", new Long(phases[2].getPhaseStatus().getId()),\n phaseRecords[2].getValue(\"phase_status_id\"));\n\n // validate the dependency\n DBRecord[] dependencyRecords =\n TestHelper.getDependencyRecords(\" WHERE dependent_phase_id=\" + phases[0].getId()\n + \" ORDER BY dependency_phase_id ASC\");\n assertEquals(\"Should contain 2 dependencies.\", 2, dependencyRecords.length);\n assertEquals(\"Failed add dependency with old record.\", new Long(3), dependencyRecords[0]\n .getValue(\"dependency_phase_id\"));\n assertEquals(\"Failed add dependency with old record.\", new Long(phases[1].getId()),\n dependencyRecords[1].getValue(\"dependency_phase_id\"));\n }",
"public void assertForFindMapGoogle(Map personMap) {\r\n\t\tassertNotNull(personMap);\r\n\t\tassertEquals(PERSON_GOINGMM_COUNT, personMap.size());\r\n\t}",
"public void createProject(Project newProject);",
"@Test\n public void testCase1() {\n File base = new File(DIR, \"case1\");\n File pl0 = new File(base, \"pl0/EASy\");\n File pl1 = new File(base, \"pl1/EASy\");\n try {\n Location pl0Loc = VarModel.INSTANCE.locations().addLocation(pl0, OBSERVER);\n Location pl1Loc = VarModel.INSTANCE.locations().addLocation(pl1, OBSERVER);\n // add Parent\n pl1Loc.addDependentLocation(pl0Loc);\n \n VarModel.INSTANCE.loaders().registerLoader(ModelUtility.INSTANCE, OBSERVER);\n \n List<ModelInfo<Project>> infos = VarModel.INSTANCE.availableModels().getModelInfo(\"pl1\");\n Assert.assertNotNull(infos);\n Assert.assertTrue(1 == infos.size());\n Project project = VarModel.INSTANCE.load(infos.get(0));\n Assert.assertNotNull(project);\n \n VarModel.INSTANCE.locations().removeLocation(pl1Loc, OBSERVER);\n VarModel.INSTANCE.locations().removeLocation(pl0Loc, OBSERVER);\n VarModel.INSTANCE.loaders().unregisterLoader(ModelUtility.INSTANCE, OBSERVER);\n } catch (ModelManagementException e) {\n Assert.fail(\"unexpected exception \" + e);\n }\n }",
"public void testGetProjectPhasesLongArray_Normal() throws Exception {\n Project[] projects = persistence.getProjectPhases(new long[] {2, 1});\n\n // validate the sequence.\n assertEquals(\"1st project should have id=2\", 2, projects[0].getId());\n assertEquals(\"2nd project should have id=1\", 1, projects[1].getId());\n\n // veiry all the phases are retrieved.\n assertEquals(\"project 2 should have 2 phases.\", 2, projects[0].getAllPhases().length);\n assertEquals(\"project 1 should have 4 phases.\", 4, projects[1].getAllPhases().length);\n\n // randomly pick some phase and dependency to check\n Phase[] phases = projects[1].getAllPhases();\n Arrays.sort(phases, new PhaseIdComparator());\n assertEquals(\"Failed to set project of phase.\", projects[1], phases[0].getProject());\n assertEquals(\"Failed to set phase status.\", 1, phases[0].getPhaseStatus().getId());\n assertEquals(\"Failed to set phase type.\", 1, phases[0].getPhaseType().getId());\n assertEquals(\"Failed to set length\", 6000, phases[0].getLength());\n assertEquals(\"Failed to get all dependencies.\", 1, phases[1].getAllDependencies().length);\n assertEquals(\"Failed to get dependency.\", 2, phases[2].getAllDependencies()[0].getDependency()\n .getId());\n assertEquals(\"Invalid dependency lagtime between 3 and 2.\", 24000, phases[2].getAllDependencies()[0]\n .getLagTime());\n }",
"private void assertAll() {\n\t\t\n\t}",
"public void setProject( ProjectEntity project ) {\n this.project = project;\n }",
"public void testRetrieveProjectsById() throws RetrievalException {\r\n System.out.println(\"Demo 4: Retrieves the projects by id.\");\r\n\r\n // Retrieve a known project\r\n ExternalProject project = defaultDBProjectRetrieval.retrieveProject(2);\r\n System.out.println(project.getId());\r\n\r\n // Outputs its info.\r\n System.out.println(project.getComponentId());\r\n System.out.println(project.getForumId());\r\n System.out.println(project.getName());\r\n System.out.println(project.getVersion());\r\n System.out.println(project.getVersionId());\r\n System.out.println(project.getDescription());\r\n System.out.println(project.getComments());\r\n System.out.println(project.getShortDescription());\r\n System.out.println(project.getFunctionalDescription());\r\n String[] technologies = project.getTechnologies(); // should not be null\r\n for (int t = 0; t < technologies.length; t++) {\r\n System.out.println(\"Uses technology: \" + technologies[t]);\r\n }\r\n\r\n // Not found ĘC should be null which is acceptable\r\n ExternalProject shouldBeNull = defaultDBProjectRetrieval.retrieveProject(Long.MAX_VALUE);\r\n System.out.println(shouldBeNull);\r\n\r\n // Should only have a maximum of 1 entry.\r\n ExternalProject[] projects = defaultDBProjectRetrieval.retrieveProjects(new long[] {1, 100});\r\n System.out.println(projects.length);\r\n System.out.println(projects[0].getName());\r\n\r\n System.out.println();\r\n }",
"@Test\n\tpublic void test() {\n\t\tString url = \"jdbc:sqlite:\" + Paths.get(\"\")+\"weatherapp.db\";\n\t\tWeatherDatabase db = new WeatherDatabase(url);\n\t\tassert(db.citiesTableFilled());\n\t\tassert(db.containsCity(\"Boston\", \"MA\"));\n\t\tassert(!db.containsCity(\"Boston\", \"RI\"));\n//\t\t\n\t}",
"public boolean[] hasConflictsAndChanges(Project project);",
"@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}",
"public void testAssociation2() {\n \t\tString ID1 = \"iu.1\";\n \t\tString ID2 = \"iu.2\";\n \t\tString IDF1 = \"iu.fragment.1\";\n \t\tIInstallableUnit iu1 = createEclipseIU(ID1);\n \t\tIInstallableUnit iu2 = createEclipseIU(ID2);\n \t\tIInstallableUnit iuf1 = createBundleFragment(IDF1);\n \t\tProfileChangeRequest req = new ProfileChangeRequest(createProfile(getName()));\n \t\treq.addInstallableUnits(iu1, iuf1, iu2);\n \t\tcreateTestMetdataRepository(new IInstallableUnit[] {iu1, iuf1, iu2});\n \t\tIQueryable<IInstallableUnit> additions = createPlanner().getProvisioningPlan(req, null, null).getAdditions();\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(ID1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + ID1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + ID1, 1, iu.getFragments().size());\n \t\t\tassertEquals(\"Attached fragment to IU \" + ID1, IDF1, iu.getFragments().iterator().next().getId());\n \t\t}\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(ID2), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + ID2, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + ID2, 1, iu.getFragments().size());\n \t\t\tassertEquals(\"Attached fragment to IU \" + ID2, IDF1, iu.getFragments().iterator().next().getId());\n \t\t}\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(IDF1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + IDF1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + IDF1, 0, iu.getFragments().size());\n \t\t}\n \t}",
"private void insertProjectTable() {\n name.setCellValueFactory(new PropertyValueFactory<>(\"nameId\"));\n dateStart.setCellValueFactory(new PropertyValueFactory<>(\"dateStart\"));\n dateFinish.setCellValueFactory(new PropertyValueFactory<>(\"dateFinish\"));\n place.setCellValueFactory(new PropertyValueFactory<>(\"place\"));\n car.setCellValueFactory(new PropertyValueFactory<>(\"cars\"));\n instructors.setCellValueFactory(new PropertyValueFactory<>(\"instructors\"));\n description.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n author.setCellValueFactory(new PropertyValueFactory<>(\"author\"));\n }",
"@Test\n public void testGetAttributes() throws Exception {\n System.out.println(\"getAttributes\");\n \n ProjectEditController instance = new ProjectEditController();\n ArrayList<ProjectAttribute> expResult = null;\n ArrayList<ProjectAttribute> result = instance.getAttributes();\n assertEquals(expResult, result);\n\n }",
"public void testGetProjectPhasesLong_Simple() throws Exception {\n Project project = persistence.getProjectPhases(2);\n\n // check the project\n assertEquals(\"Failed to set project id.\", 2, project.getId());\n assertEquals(\"Failed to set startDate\", parseDate(\"2006-01-01 11:11:11.111\"), project.getStartDate());\n Phase[] phases = project.getAllPhases();\n assertEquals(\"Should contain 2 phases.\", 2, phases.length);\n\n // pick a phase instance to check its fields\n Phase phase = null;\n for (int i = 0; i < phases.length; ++i) {\n if (phases[i].getId() == 5) {\n phase = phases[i];\n }\n }\n assertEquals(\"Failed to set project of phase.\", project, phase.getProject());\n assertEquals(\"Failed to set phase status.\", 3, phase.getPhaseStatus().getId());\n assertEquals(\"Failed to set phase type.\", 1, phase.getPhaseType().getId());\n assertEquals(\"Failed to set fixedStartTime.\", parseDate(\"2006-01-01 11:11:11.222\"), phase\n .getFixedStartDate());\n assertEquals(\"Failed to set scheduledStartTime\", parseDate(\"2006-01-01 11:11:11.333\"), phase\n .getScheduledStartDate());\n assertEquals(\"Failed to set scheduledEndTime\", parseDate(\"2006-01-01 11:11:22.444\"), phase\n .getScheduledEndDate());\n assertEquals(\"Failed to set actualStartTime\", parseDate(\"2006-01-01 11:11:11.555\"), phase\n .getActualStartDate());\n assertEquals(\"Failed to set actualEndTime\", parseDate(\"2006-01-01 11:11:11.666\"), phase\n .getActualEndDate());\n assertEquals(\"Failed to set length\", 6000, phase.getLength());\n }",
"@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}",
"@Test\n public void createValidFlightFromGUI() {\n JButton buttonAddFlight = addFlight.getButtonAddFlight();\n\n addFlight.getTxtflightname().setText(\"TEST_FLIGHT_NAME\");\n addFlight.getTxtdate().setDate(new Date(2021, 3, 30));\n addFlight.getTxtdtime().setText(\"TEST_DEPART_TIME\");\n addFlight.getTxtarrtime().setText(\"TEST_ARRIVAL_TIME\");\n addFlight.getTxtflightcharge().setText(\"TEST_FLIGHT_CHARGE\");\n addFlight.getTxtsource().setSelectedIndex(0);\n addFlight.getTxtdepart().setSelectedIndex(0);\n\n Mockito.when(mockDAO.createFlight(Mockito.any(Flight.class))).thenReturn(true);\n buttonAddFlight.doClick();\n robot.keyPress(KeyEvent.VK_ENTER);\n robot.keyRelease(KeyEvent.VK_ENTER);\n Mockito.verify(mockDAO).createFlight(Mockito.any(Flight.class));\n }",
"public void test_55410() {\n \t\tIProject project1 = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(new IResource[] {project1}, true);\n \t\tPreferences node = new ProjectScope(project1).getNode(ResourcesPlugin.PI_RESOURCES).node(\"subnode\");\n \t\tString key1 = \".\";\n \t\tString key2 = \"x\";\n \t\tString value1 = getUniqueString();\n \t\tString value2 = getUniqueString();\n \t\tnode.put(key1, value1);\n \t\tnode.put(key2, value2);\n \t\tassertEquals(\"0.8\", value1, node.get(key1, null));\n \t\tassertEquals(\"0.9\", value2, node.get(key2, null));\n \t\tIFile prefsFile = getFileInWorkspace(project1, ResourcesPlugin.PI_RESOURCES);\n \t\tassertTrue(\"1.0\", !prefsFile.exists());\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t}\n \t\tassertTrue(\"1.1\", prefsFile.exists());\n \t\tProperties props = new Properties();\n \t\tInputStream contents = null;\n \t\ttry {\n \t\t\tcontents = prefsFile.getContents();\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.2\", e);\n \t\t}\n \t\ttry {\n \t\t\tprops.load(contents);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.3\", e);\n \t\t} finally {\n \t\t\tif (contents != null)\n \t\t\t\ttry {\n \t\t\t\t\tcontents.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore\n \t\t\t\t}\n \t\t}\n \t\tassertEquals(\"2.0\", value2, props.getProperty(\"subnode/\" + key2));\n \t\tassertEquals(\"2.1\", value1, props.getProperty(\"subnode/\" + key1));\n \t}",
"public void testConfigureProject() {\n UMLModelManager umlModelManager = new UMLModelManager();\n instance.configureProject(umlModelManager);\n\n assertSame(\"Failed to configure project.\", umlModelManager, instance.getUMLModelManager());\n }",
"public Project getProject(int projectId) throws EmployeeManagementException;",
"public void testProjectsView() {\n ProjectsTabOperator.invoke();\n // needed for slower machines\n JemmyProperties.setCurrentTimeout(\"JTreeOperator.WaitNextNodeTimeout\", 30000); // NOI18N\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n Node sampleClass1Node = new Node(sample1Node, SAMPLE1_FILE_NAME);\n // test pop-up menu actions\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n copyAction.perform(sampleClass1Node);\n // \"Paste\"\n PasteAction pasteAction = new PasteAction();\n // \"Refactor\"\n String refactorItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_Action\");\n // \"Copy...\"\n String copyItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_CopyAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + copyItem).perform(sample1Node);\n\n String copyClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_CopyClass\");\n NbDialogOperator copyClassDialog = new NbDialogOperator(copyClassTitle);\n // \"Refactor\"\n String refactorLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"CTL_Finish\");\n new JButtonOperator(copyClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n copyClassDialog.waitClosed();\n\n Node newClassNode = new Node(sample1Node, \"SampleClass11\"); // NOI18N\n // \"Cut\"\n CutAction cutAction = new CutAction();\n cutAction.perform(newClassNode);\n // package created by default when the sample project was created\n Node sampleProjectPackage = new Node(sourcePackagesNode, SAMPLE_PROJECT_NAME.toLowerCase());\n // \"Move...\"\n String moveItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_MoveAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + moveItem).perform(sampleProjectPackage);\n new EventTool().waitNoEvent(1000);\n // confirm refactoring\n // \"Move Class\"\n String moveClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_MoveClass\");\n NbDialogOperator moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n try {\n moveClassDialog.waitClosed();\n } catch (TimeoutExpiredException e) {\n // try it once more\n moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n }\n // \"Delete\"\n newClassNode = new Node(sampleProjectPackage, \"SampleClass11\"); // NOI18N\n new EventTool().waitNoEvent(2000);\n new DeleteAction().perform(newClassNode);\n DeleteAction.confirmDeletion();\n }",
"public void testDeletaProjeto() {\n String nome = \"proj3\";\n ProjetoDAO.deletaProjeto(nome);\n Projeto aux = ProjetoDAO.getProjetoByNome(nome);\n assertNull(aux);\n }",
"public void testGetProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"GetProject\", \"-recursive\",\n \"-label\", SRC_LABEL, \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath() };\n // Set up a SOSGet task\n sosGet.setProject(project);\n sosGet.setVssServerPath(VSS_SERVER_PATH);\n sosGet.setSosServerPath(SOS_SERVER_PATH);\n sosGet.setProjectPath(VSS_PROJECT_PATH);\n sosGet.setLabel(SRC_LABEL);\n sosGet.setUsername(SOS_USERNAME);\n sosGet.setSosHome(SOS_HOME);\n sosGet.setNoCache(true);\n sosGet.setNoCompress(false);\n sosGet.setVerbose(false);\n sosGet.setRecursive(true);\n\n commandline = sosGet.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"GetProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"GetProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"GetProject extra args\");\n }\n }",
"private void compareProjects(DoapProject[] projects,\n\t\t\tDoapProject[] result) {\n\t\tassertEquals(projects.length, result.length);\n\t\tfor (int i = 0; i < projects.length; i++) {\n\t\t\tboolean found = false;\n\t\t\tfor (int j = 0; j < result.length; j++) {\n\t\t\t\tif (projects[i].getName() == null) {\n\t\t\t\t\tif (result[j].getName() == null) {\n\t\t\t\t\t\tif (projects[i].getHomePage() == null) {\n\t\t\t\t\t\t\tif (result[j].getHomePage() == null) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (projects[i].getHomePage().equals(result[j].getHomePage())) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (projects[i].getName().equals(result[j].getName())) {\n\t\t\t\t\tif (projects[i].getHomePage() == null) {\n\t\t\t\t\t\tif (result[j].getHomePage() == null) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (projects[i].getHomePage().equals(result[j].getHomePage())) {\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\tfail(\"Project not found: \"+projects[i].getName());\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n\tpublic void testAddPortfolios1() {\n\t\tassertTrue(\"Error adding initial stocks to portfolios\", false);\r\n\t}",
"@Before\n public void setUp() throws Exception {\n hc.getParams().setParameter(ClientPNames.HANDLE_REDIRECTS, Boolean.FALSE);\n hc.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BEST_MATCH);\n \n logout = reqFactory.createLogoutRequest().asHttpGet();\n adminLogin = reqFactory.createLoginRequest(adminUser).asHttpPost();\n basicUserLogin = reqFactory.createLoginRequest(basicUser).asHttpPost();\n authorizedUserLogin = reqFactory.createLoginRequest(authorizedUser).asHttpPost();\n \n if (!areObjectsSeeded) {\n \n // Login as the administrator and create a project. Assign the\n // basic user as the Pi and logout.\n project = new Project();\n \n project.setDescription(\"A seeded project for use with ITs\");\n project.setEndDate(DateTime.now());\n project.setFundingEntity(\"NSF\");\n project.setStartDate(DateTime.now());\n project.setName(\"Seeded Project\");\n project.addNumber(\"1234\");\n project.setFundingEntity(\"Cash Money\");\n project.addPi(basicUser.getId());\n \n HttpAssert.assertStatus(hc, adminLogin, 300, 399, \"Unable to login admin user!\");\n \n project = reqFactory.createProjectApiAddRequest(project).execute(hc);\n \n HttpAssert.assertStatus(hc, new HttpGet(urlConfig.getProjectUrl(project.getId()).toURI()), 200,\n \"Unable to retrieve project \" + project);\n HttpAssert.assertStatus(hc, logout, 300, 399, \"Unable to logout admin user!\");\n \n // Login as the basic user, create the collection, and logout.\n collection = new Collection();\n collection.setId(reqFactory.createIdApiRequest(Types.COLLECTION).execute(hc));\n collection.setTitle(\"Seeded Collection\");\n collection.setSummary(\"A seeded collection for use with ITs\");\n List<PersonName> creators = new ArrayList<PersonName>();\n creators.add(new PersonName(\"Mr.\", \"John\", \"Jack\", \"Doe\", \"II\"));\n collection.setCreators(creators);\n \n HttpAssert.assertStatus(hc, basicUserLogin, 300, 399, \"Unable to login as basic user!\");\n HttpAssert.assertStatus(hc, reqFactory.createCollectionRequest(collection, project).asHttpPost(), 300, 399,\n \"Unable to create collection \" + collection);\n HttpAssert.assertStatus(hc, new HttpGet(urlConfig.getViewCollectionUrl(collection.getId()).toURI()), 200,\n \"Unable to view collection \" + collection);\n HttpAssert.assertStatus(hc, logout, 300, 399, \"Unable to logout basic user!\");\n \n assertNotNull(\"Expected a Collection to be created in the archive!\",\n archiveSupport.pollAndQueryArchiveForCollectionDu(collection.getId()));\n \n // Load sample datafile\n sampleDataFile = createSampleDataFile(\"DepositStatusIT\", \".txt\");\n sampleDataFile.deleteOnExit();\n areObjectsSeeded = true;\n }\n }",
"@Test\r\n\tpublic void testObjects() {\n\t\tFlight f1 = new Flight(1001, \"BLR\", \"BOM\");\r\n\t\tFlight f2 = new Flight(1001, \"BLR\", \"BOM\");\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertSame(\"Objects are not same\",f1,f2);\r\n\t\t//assertEquals(\"Objects are not equal\",f1,f2);\r\n\t\t//assertNull(f2);\r\n\t\tassertNotNull(f2);\r\n\t\t\r\n\t\t\r\n\t}"
] | [
"0.6202144",
"0.6084493",
"0.58789074",
"0.5607782",
"0.55786896",
"0.54454976",
"0.5382753",
"0.5352526",
"0.5311986",
"0.5288375",
"0.52813095",
"0.5269525",
"0.5266502",
"0.52591753",
"0.5251256",
"0.5219594",
"0.5216023",
"0.5202607",
"0.51442105",
"0.5126661",
"0.5125641",
"0.50962204",
"0.507784",
"0.5056564",
"0.50435233",
"0.5020717",
"0.50156504",
"0.50141615",
"0.49996883",
"0.4997048",
"0.499246",
"0.49837455",
"0.4980811",
"0.49805623",
"0.49793246",
"0.49760443",
"0.49760354",
"0.49732873",
"0.49695453",
"0.4952036",
"0.49431434",
"0.49277034",
"0.49165118",
"0.490486",
"0.49028832",
"0.48675156",
"0.48649836",
"0.48628163",
"0.48584324",
"0.4855633",
"0.484365",
"0.48347607",
"0.48301822",
"0.48268467",
"0.4826626",
"0.4814432",
"0.48143986",
"0.48107633",
"0.48035482",
"0.48010314",
"0.47954044",
"0.47924334",
"0.47882456",
"0.4786959",
"0.4782179",
"0.4774092",
"0.47720876",
"0.47683665",
"0.47666755",
"0.47470975",
"0.47446096",
"0.47438496",
"0.47434834",
"0.47420776",
"0.474155",
"0.47347733",
"0.4733818",
"0.4729499",
"0.4728837",
"0.47223246",
"0.4721862",
"0.4721801",
"0.4721348",
"0.47205728",
"0.47196344",
"0.47114775",
"0.47008947",
"0.46968627",
"0.4695596",
"0.46926224",
"0.46891624",
"0.46860418",
"0.4682134",
"0.46728155",
"0.46674106",
"0.4667127",
"0.46651477",
"0.4665104",
"0.46616",
"0.46602285"
] | 0.70120996 | 0 |
GENLAST:event_jLabel3MouseClicked /GET AND SET | public String getIdProcuratore() {
return idProcuratore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void jLabelImagen3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelImagen3MouseClicked\n // TODO add your handling code here:\n }",
"private void jLabel97MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tSystem.out.println(\"Clicked on: \" + x + \",\" + y);\r\n\t\t\tif (lastSelected != null) {\r\n\t\t\t\tlastSelected.setBorder(null);\r\n\t\t\t}\r\n\t\t\tsetBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));\r\n\t\t\tGCollector.getInstance().getEnv().setAgentPosTextFields(x, y);\r\n\t\t\tGCollector.getInstance().getEnv().setModifyPosTextFields(x, y);\r\n\r\n\t\t\tlastSelected = (JLabel) e.getComponent();\r\n\t\t}",
"private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"private void jLabel83MousePressed(java.awt.event.MouseEvent evt) {\n }",
"private void labelEdit2MouseClicked(MouseEvent e) {\n }",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tl1.setText(\"You cliked the mouse\");\r\n\t}",
"protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}",
"public void mouseClicked(int mouseX, int mouseY, int mouse) {}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void mouseClicked(int arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void mouseClicked(MouseEvent event) { \n\t\t\n\t}",
"private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button 2\";\r\n\t\telse\r\n\t\t\tmsg+=\"Button 3\";\r\n\t\t\r\n\t\tmsg+=\"You are at position \"+\"<X \"+event.getX()+\" Y \"+event.getY()+\">\";\r\n\t\t\r\n\t\tif(event.getClickCount()==2)\r\n\t\t{\r\n\t\t\tmsg+=\" You double Clicked\";\r\n\t\t}\r\n\t\telse\r\n\t\t\tmsg+=\" You singel-Clicked\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent evt) {\r\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\n\t\tLabel_Selected((JLabel) e.getComponent());\n\t\t\n\t\tnow_x = e.getXOnScreen() - e.getComponent().getX();\n\t\tnow_y = e.getYOnScreen() - e.getComponent().getY();\n\t\tnow_w = e.getComponent().getWidth();\n\t\tnow_h = e.getComponent().getHeight();\n\t\tnow_L = e.getComponent().getX()+e.getComponent().getWidth();\n\t\tnow_D = e.getComponent().getY()+e.getComponent().getHeight();\n\t\t\n\t\tif(e.getX() > e.getComponent().getWidth()-5 && e.getX() < e.getComponent().getWidth() + 5) {\n\t\t\tnow_X = 'R';\n\t\t} else if(e.getX() > -5 && e.getX() < 5) {\n\t\t\tnow_X = 'L';\n\t\t}\n\t\tif(e.getY() > e.getComponent().getHeight()-5 && e.getY() < e.getComponent().getHeight() + 5) {\n\t\t\tnow_Y = 'D';\n\t\t} else if(e.getY() > -5 && e.getY() < 5) {\n\t\t\tnow_Y = 'U';\n\t\t}\n\t\t\n\t\tText_Set();\n\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}",
"protected void mouseClicked(int var1, int var2, int var3) {\r\n\t\tif (var3 == 0 && !this.floorNamesList.mousePressed(var1, var2)\r\n\t\t\t\t&& this.floorNamesList.extended) {\r\n\t\t\tthis.floorNamesList.minimize();\r\n\t\t} else if (this.floorNamesList.mousePressed(var1, var2)\r\n\t\t\t\t&& this.floorNamesList.extended) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsuper.mouseClicked(var1, var2, var3);\r\n\t}",
"public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mouseClicked(MouseEvent evt) {\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent event){}",
"protected void mouseClicked(int par1, int par2, int par3)\n {\n if (par3 == 0)\n {\n ChatClickData chatclickdata = mc.ingameGUI.func_50012_a(Mouse.getX(), Mouse.getY());\n\n if (chatclickdata != null)\n {\n URI uri = chatclickdata.func_50089_b();\n\n if (uri != null)\n {\n field_50065_j = uri;\n mc.displayGuiScreen(new GuiChatConfirmLink(this, this, chatclickdata.func_50088_a(), 0, chatclickdata));\n return;\n }\n }\n }\n\n field_50064_a.mouseClicked(par1, par2, par3);\n super.mouseClicked(par1, par2, par3);\n }",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic void mouseClicked(int p_73864_1_, int p_73864_2_, int p_73864_3_) {\n\t\tfield_154330_a.mouseClicked(p_73864_1_, p_73864_2_, p_73864_3_);\n\t\tsuper.mouseClicked(p_73864_1_, p_73864_2_, p_73864_3_);\n\t}",
"private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"@Override\r\n public void mouseClicked(MouseEvent cMouseEvent) \r\n {\n \r\n if ( m_jKvtTartList != null && cMouseEvent.getClickCount() == 2 ) \r\n {\r\n//nIdx = m_jKvtTartList.locationToIndex( cMouseEvent.getPoint()) ;\r\n//System.out.println(\"Double clicked on Item \" + nIdx);\r\n\r\n m_jFileValasztDlg.KivKvtbaValt() ;\r\n }\r\n }",
"public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent e) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void mouseClicked( MouseEvent event ){}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent event) {\n\n\t\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) { \r\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}"
] | [
"0.77796304",
"0.74359655",
"0.7293272",
"0.7288168",
"0.71667",
"0.6978751",
"0.6966391",
"0.67302454",
"0.6695268",
"0.6665258",
"0.666097",
"0.666097",
"0.665101",
"0.66123784",
"0.66095537",
"0.6608997",
"0.6608997",
"0.6602392",
"0.6597043",
"0.65934736",
"0.65934736",
"0.65934736",
"0.659174",
"0.65769786",
"0.65769786",
"0.65630376",
"0.6551924",
"0.6544373",
"0.6544373",
"0.6544373",
"0.6544373",
"0.6544373",
"0.6544373",
"0.6544373",
"0.6542037",
"0.6542037",
"0.6542037",
"0.6535722",
"0.65353507",
"0.65346164",
"0.65251654",
"0.65251654",
"0.65137243",
"0.65136456",
"0.6504558",
"0.65011007",
"0.65011007",
"0.65011007",
"0.65011007",
"0.64998186",
"0.6489887",
"0.6484492",
"0.6484492",
"0.6475971",
"0.6468519",
"0.64655614",
"0.6462887",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6462028",
"0.6457326",
"0.6449698",
"0.6447135",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.64471304",
"0.644382",
"0.64436686",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64427155",
"0.64366376",
"0.64314544",
"0.64314544",
"0.64275265",
"0.6423912",
"0.6423912",
"0.6423912"
] | 0.0 | -1 |
End of variables declaration//GENEND:variables | public void recibirDatos(Sector sector) {
this.txtNombreSector.setText(sector.getNombresector());
this.txtDescripcion.setText(sector.getDescripcionsector());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo21779D() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"public void mo21780E() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void m23075a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"public void func_70295_k_() {}",
"void mo57277b();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo56167c() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"private void yy() {\n\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"protected void initVars() {}",
"protected void mo6255a() {\n }"
] | [
"0.63617",
"0.6280625",
"0.61909467",
"0.6095729",
"0.6092663",
"0.607037",
"0.60523474",
"0.605212",
"0.6002499",
"0.59878224",
"0.5970378",
"0.59679425",
"0.5967425",
"0.5965642",
"0.596177",
"0.5942055",
"0.5908757",
"0.589693",
"0.589137",
"0.5882839",
"0.58795726",
"0.58542675",
"0.5850878",
"0.58504444",
"0.5841756",
"0.5839311",
"0.5834832",
"0.5821372",
"0.580889",
"0.5802595",
"0.5793358",
"0.5786154",
"0.5784295",
"0.5784031",
"0.57823145",
"0.5774607",
"0.5760889",
"0.57576865",
"0.574549",
"0.5742612",
"0.573284",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.5729986",
"0.57238674",
"0.5722988",
"0.5718144",
"0.5704055",
"0.56985307",
"0.56980056",
"0.56893533",
"0.5688039",
"0.5687071",
"0.56737286",
"0.5659433",
"0.56510425",
"0.5645038",
"0.564365",
"0.5642898",
"0.5641512",
"0.56405234",
"0.562868",
"0.56283444",
"0.56271064",
"0.5621948",
"0.5618186",
"0.56120354",
"0.5611326",
"0.5610841",
"0.5604668",
"0.5602491",
"0.56024784",
"0.5600282",
"0.559161",
"0.55856514",
"0.55762357",
"0.5570551",
"0.5569697",
"0.55596817",
"0.5552693",
"0.55520314",
"0.55489874",
"0.55482525",
"0.554708",
"0.55467427",
"0.55457246",
"0.5544302",
"0.5542325",
"0.55405486",
"0.5538116",
"0.5535594",
"0.55260235",
"0.5523616",
"0.5516166",
"0.550274",
"0.5501853"
] | 0.0 | -1 |
Called when a new message is found. | @Override
public void onFound(final Message message) {
mNearbyDevicesArrayAdapter.add(
DeviceMessage.fromNearbyMessage(message).getMessageBody());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onNewMessage(String message);",
"@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}",
"public void onMessageNotFound(Message message) throws MessagingException;",
"@Override\n\tpublic void onMessageReceived(Message m) {\n\t\thandle.addMessage(m);\n\t\trefreshMessages();\n\t}",
"@Override\n\tpublic void newMsg(String msg) throws RemoteException {\n\t\tchathistory.add(new chatmessage<String>(msg + \"\\n\"));\n\t}",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SEARCH_FINISHED:\n\t\t\t\t\tafterSearch();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}",
"@Override\n public void handleMessage(Message message) {}",
"@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onMessage(Message message) {\n\t\tTextMessage textMessage = (TextMessage) message;\n\t\ttry {\n\t\t\tString id = textMessage.getText();\n\t\t\tint i = Integer.parseInt(id);\n\t\t\tgoodsService.out(i);\n\t\t\tList<Goods> list = goodsService.findByZt();\n\t\t\tsolrTemplate.saveBeans(list);\n\t\t\tsolrTemplate.commit();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void getNewMessage() {\n boolean z;\n if (this.popupMessages.isEmpty()) {\n onFinish();\n finish();\n return;\n }\n if ((this.currentMessageNum != 0 || this.chatActivityEnterView.hasText() || this.startedMoving) && this.currentMessageObject != null) {\n int size = this.popupMessages.size();\n int i = 0;\n while (true) {\n if (i >= size) {\n break;\n }\n MessageObject messageObject = this.popupMessages.get(i);\n if (messageObject.currentAccount == this.currentMessageObject.currentAccount && messageObject.getDialogId() == this.currentMessageObject.getDialogId() && messageObject.getId() == this.currentMessageObject.getId()) {\n this.currentMessageNum = i;\n z = true;\n break;\n }\n i++;\n }\n }\n z = false;\n if (!z) {\n this.currentMessageNum = 0;\n this.currentMessageObject = this.popupMessages.get(0);\n updateInterfaceForCurrentMessage(0);\n } else if (this.startedMoving) {\n if (this.currentMessageNum == this.popupMessages.size() - 1) {\n prepareLayouts(3);\n } else if (this.currentMessageNum == 1) {\n prepareLayouts(4);\n }\n }\n this.countText.setText(String.format(\"%d/%d\", new Object[]{Integer.valueOf(this.currentMessageNum + 1), Integer.valueOf(this.popupMessages.size())}));\n }",
"public void newMessage(String new_message) {\r\n\t\tsynchronized(this.messages) {\r\n\t\t\tthis.messages.push(new_message);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onNewMessage(Chat chatToReply, Message message) {\n\t\tsynchronized (this) {\r\n\t\t\tcurMsg = message;\r\n\t\t\t_state = State.NEW_MESSAGE;\r\n\t\t\tnotify();\r\n\t\t}\t\t\r\n\t}",
"public void onMessage(Message message) {\n lastMessage = message;\n\n }",
"public void addMessage() {\n }",
"void onMessageReceived(Message message);",
"@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }",
"public void onMessage(String message) {\n\t\t\n\t}",
"@Override\r\n public void handleMessage(Message msg) {\n }",
"@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}",
"public void onMessage(Message message) {\n gameManager.onMessage(message);\n }",
"@Override\r\n public void onReceiveResult(Message message) {\r\n switch (message.what) {\r\n //TODO\r\n }\r\n }",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}",
"@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}",
"public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.bytesRecieved, this.getClass()), this\n\t\t.getMessageType(), TrackedMessage.objectSize(this));\n }",
"public void messageReceived(Message message) {\n\r\n\t\tLog.info(message.getMsg());\r\n\t}",
"public void recieveMessage( final String message ) {\r\n messages.add( message );\r\n }",
"@Override\n public void receiveMessage(String message) {\n }",
"@Override\n\tpublic void onMessageReceived(ACLMessage message) {\n\n\t}",
"public abstract void messageReceived(String message);",
"public void messageReceived(Message m) {\n\t\t\r\n\t}",
"private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }",
"public void OnMessageReceived(String msg);",
"private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }",
"private void onReceiveNewMessage(String topic, DataTransfer message) {\n Message msg = null;\n\n NotiAudio notiAudio = new NotiAudio();\n notiAudio.start();\n\n Object content = message.data;\n if (content instanceof String) {\n TextMessage textMessage = new TextMessage();\n textMessage.setContent(content.toString());\n msg = textMessage;\n } else if (content instanceof FileInfo) {\n FileMessage fileMessage = new FileMessage();\n fileMessage.setContent((FileInfo) content);\n msg = fileMessage;\n } else if (content instanceof Emoji) {\n EmojiMessage emojiMessage = new EmojiMessage();\n emojiMessage.setContent((Emoji) content);\n msg = emojiMessage;\n }\n\n if (msg != null) {\n msg.setFrom(message.name);\n msg.setTime(message.datetime);\n\n Messages messages = MessageManager.getInstance().append(topic, msg);\n boolean isGroup = messages.isGroup();\n\n boolean isCurrentChat = false;\n ChatBox chatBox = getCurrentChat();\n if (chatBox != null) {\n String current = chatBox.getTarget();\n if ((!isGroup && message.name.equals(current))\n || (isGroup && topic.equals(String.format(\"group/%s\", current)))) {\n isCurrentChat = true;\n }\n }\n\n ChatItem chatItem = getChatItemByMessages(messages);\n if (chatItem != null) {\n chatItem.setSeen(isCurrentChat);\n }\n\n if (isCurrentChat) {\n chatBox.addItem(msg);\n }\n\n updateChatItems(messages);\n }\n }",
"private void getMessage(MessageEvent messageEvent) {\n if(GUI.getInstance().getBusiness().getCurrentChat() != null && messageEvent.getMessageIn().getChatId() == GUI.getInstance().getBusiness().getCurrentChat().getId()) {\n Platform.runLater(() -> {\n IMessageIn message = messageEvent.getMessageIn();\n messages.add(message);\n });\n }\n }",
"private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }",
"public void onMessage(Message message)\n {\n \tObjectMessage om = (ObjectMessage) message;\n\t\tTypeMessage mess;\n\t\ttry {\n\t\t\tmess = (TypeMessage) om.getObject();\n\t\t\tint id = om.getIntProperty(\"ID\");\n\t\t\tview.updatelistTweetFeed(mess, id);\n\t\t\tSystem.out.println(\"received: \" + mess.toString());\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n }",
"public void setMessage(String newMsg) {\n this.message = newMsg;\n }",
"@Override\n public void addMessage(String message) {\n messages.add(message);\n }",
"public void fetchMessage(String messageId, @NonNull final SimpleCallback<DataSnapshot> finishedCallback) {\n getDb().getReference(getMessagePath() + messageId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists() && dataSnapshot.child(\"text\").exists() && dataSnapshot.child(\"timestamp\").exists()) {\n finishedCallback.callback(dataSnapshot);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // Do nothing\n }\n });\n }",
"public boolean hasNewMessage() throws RemoteException {\r\n return !messages.isEmpty();\r\n }",
"protected void handleMessage(Message msg) {}",
"public void handleMessage(Message message);",
"abstract void addMessage(Message message);",
"private void searchMessageAction(Message receivedMessage, DataOutputStream os) throws IOException, InterruptedException {\r\n\r\n\t\tSystem.out.println(LOG_TAG + \"Handler for SEARCH MESSAGE\");\r\n\r\n\t\tSystem.out.println(LOG_TAG + \"Send Ack\");\r\n\r\n\t\tSearchResourceMessage searchMessage = new SearchResourceMessage(receivedMessage);\r\n\r\n\t\tPeerCluster.search(searchMessage.getTime(), this.threadId);\r\n\r\n\t\tos.write((new AckMessage(this.listenerId, this.listenerAddr, this.listenerPort, 0, \"\")).generateXmlMessageString().getBytes());\r\n\t}",
"@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}",
"@Override\n\tpublic void visit(Message message) {\n\t}",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if(messageEvent.getPath().equals(BTCommType.GET_CONTACTS.toString())) {\n dataMap = DataMap.fromByteArray(messageEvent.getData());\n contacts = new ContactSync(dataMap);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mAdapter.notifyDataSetChanged();\n loadAdapter();\n }\n });\n }\n\n if(messageEvent.getPath().equals(BTCommType.GET_DRAWINGS.toString())) {\n List<AMessage> messages = new ArrayList<AMessage>();\n DataMap data = DataMap.fromByteArray(messageEvent.getData());\n\n List<String> emojis = data.getStringArrayList(\"emojis\");\n List<Integer> pos = data.getIntegerArrayList(\"emojisPositions\");\n\n int messageAmount = data.getInt(\"amountOfMessages\");\n for (int i = 0; i < messageAmount; i++) {\n if(pos.contains(i)){\n Emoticon emoji = new Emoticon(EmoticonType.valueOf(emojis.get(0)).getRes());\n emojis.remove(0);\n messages.add(emoji);\n } else {\n Drawing drawing = new Drawing(data.getFloatArray(\"y-coordinates \" + i)\n , data.getFloatArray(\"x-coordinates \" + i)\n , data.getLongArray(\"drawing-times \" + i)\n , data.getStringArray(\"actions \" + i)\n , data.getByteArray(\"staticDrawing \" + i));\n messages.add(drawing);\n }\n\n }\n Log.e(\"drawings\", \"new drawings\");\n MessageHolder.getInstance().setDrawings(messages);\n if(messageAmount < 1){\n Toast.makeText(getApplicationContext(), \"No messages found\", Toast.LENGTH_SHORT).show();\n }\n else {\n Intent intent = new Intent(this, ConversationViewActivity.class);\n intent.putExtra(BTCommType.SEND_TO_CONTACT.toString(), contact);\n startActivity(intent);\n this.finish();\n }\n }\n }",
"@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}",
"public void addMessage(String message) {\r\n returnObject.addMessage(message);\r\n }",
"@Override\n\tprotected void doAction(Object message) {\n\t\tlogger.info(\"File Scanner Fetch message Name -->:\"+message.toString());\n\t\ttry {\n\t\t\tFileParser.queue.put(message);\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.error(\"Error on add message to Parser\");\n\t\t}\n\t}",
"Message getCurrentMessage();",
"public void addMessage(String message);",
"public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}",
"public void messageReceived(String message) {\r\n\t\t// display incoming message to screen.\r\n\t\tthis.chatArea.append(message + \"\\n\");\r\n\t}",
"private void notifyOnTextReceived(String message) {\n synchronized (globalLock) {\n if (isRunning) {\n onTextReceived(message);\n }\n }\n }",
"@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}",
"public void messageArrived(StatusMessage statusMessage);",
"@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = server.getChannel(conf.getChannelName()); \n //Crear el missatge per a donar la benvinguda al usuari\n IChatMessage message = new ChatMessage(user, channel,\n \"Benvingut, \" + msg.getText().substring(ChatChannel.JOIN.length() + 1));\n //Enviar el missatge\n channel.sendMessage(message);\n }\n } catch (RemoteException e) {\n \n }\n }",
"@Override\n\tpublic void receive_message(Message m) {\n\t\t\n\t}",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SearchBluetoothActivity.DEVICE_DISCOVERIED:\n\t\t\t\tbdApdater.notifyDataSetChanged();\n\t\t\t\tToast.makeText(SearchBluetoothActivity.this, \"发现新设备:\" + devices.get(devices.size() - 1).getName(),\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.FINISH_DISCOVERIED:\n\t\t\t\tbt_searchBluetooth_searchBluetooth.setText(getResources().getString(R.string.bt_search_bluetooth_text));\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.REFRESH_LISTVIEW:\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Override\n public void onMessageReceived(RemoteMessage remoteMessage2) {\n Log.i(TAG, \"알림 메시지\" + remoteMessage2);\n\n remoteMessage = remoteMessage2;\n if(remoteMessage.getData().get(\"title\").equals(\"NEW!\")){\n sendNotificationNewDevice(remoteMessage.getData().get(\"body\"));\n }\n //String now = dateFormat.format (System.currentTimeMillis());\n else {\n sendNotificationDangerAlert();\n }\n }",
"public abstract void locationMessage(Message m);",
"protected void queryMsg() {\n\t\tif (currentPosition == 0) {//LIVE\n\t\t\tobtainLiveData(true, currentPosition, liveMaxChatId);\n\t\t} else {//CHAT\n\t\t\tobtainChatData(true, currentPosition, chatModels.get(0).getChatId());\n\t\t}\n\t}",
"@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onMessageCreate(MessageCreateEvent event) {\n\t\tif (event.getMessageContent().startsWith(\"!\") && event.getChannel().getId() == 310560101352210432L) {\r\n\t\t\t// remove prefix from string and anything after\r\n\t\t\tString command = event.getMessageContent().substring(1).split(\" \")[0].toLowerCase();\r\n\t\t\t// check if original command name\r\n\t\t\tif (commands.containsKey(command))\r\n\t\t\t\tcommands.get(command).process(event);\r\n\t\t\t// check if alternative name for command\r\n\t\t\telse if (commandAlternative.containsKey(command))\r\n\t\t\t\tcommands.get(commandAlternative.get(command)).process(event);\r\n\r\n\t\t\tlogger.info(event.getMessageAuthor().getDiscriminatedName() + \" invoked: \" + command);\r\n\t\t}\r\n\r\n\t}",
"void onDuplicateReceived(PubsubMessage pubsubMessage, SourceMessage current);",
"public abstract void onTextReceived(String message);",
"private Message onMessageReceived(String message, DecentSocket origin) {\n\t\tGson gson = new Gson();\n\t\tJsonObject messageObj = JsonParser.parseString(message).getAsJsonObject();\n\t\t//Timestamp member required for all messages\n\t\tif(messageObj.has(\"timestamp\")) {\n\t\t\tString type = messageObj.get(\"type\").getAsString();\n\t\t\tswitch(type) {\n\t\t\t\tcase \"chat\":\n\t\t\t\t\tchatMessageCallback.apply(gson.fromJson(message, ChatMessage.class), origin);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"peerAsk\":\n\t\t\t\t\treturn onPeerAskMessageReceived(gson.fromJson(message, PeerAskMessage.class), origin);\n\t\t\t\tcase \"peers\":\n\t\t\t\t\treturn onPeersMessageReceived(gson.fromJson(message, PeersMessage.class), origin);\n\t\t\t\tcase \"ping\":\n\t\t\t\t\treturn onPingMessageReceived(gson.fromJson(message, PingMessage.class), origin);\n\t\t\t\tcase \"pong\":\n\t\t\t\t\treturn onPongMessageReceived(gson.fromJson(message, PongMessage.class), origin);\n\t\t\t\tcase \"historyAsk\":\n\t\t\t\t\treturn onHistoryAskMessageReceived(gson.fromJson(message, HistoryAskMessage.class), origin);\n\t\t\t\tcase \"history\":\n\t\t\t\t\treturn onHistoryMessageReceived(gson.fromJson(message, HistoryMessage.class), origin);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public void handleMessage(ACLMessage message) {\n try {\n onMessage(message);\n } catch (Exception e) {\n e.getMessage();\n }\n }",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"public abstract void venueMessage(Message m);",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}",
"public void addMessage(String msg){messages.add(msg);}",
"public void onMessage(String message) {\n\t\t\t\t\tCometMessage msg = deserializeMessage(message);\n\t\t\t\t\tif(msg != null)\n\t\t\t\t\t\tlistener.onMessage(msg);\n\t\t\t\t}",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }",
"public void addMessage(EventMessage message) {\n }",
"Message getNextMessage();",
"void messageReceived(IMSession session, Message message);",
"@OnMessage\n\n public void onMessage(String message) {\n\n System.out.println(\"Received msg: \" + message);\n\n }",
"public final void manageMessage(Message message)\n\t{\n\t\tif(message.getText() != null)\n\t\t{\n\t\t\ttextMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getAudio() != null)\n\t\t{\n\t\t\taudioMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getDocument() != null)\n\t\t{\n\t\t\tdocumentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPhoto() != null)\n\t\t{\n\t\t\tphotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSticker() != null)\n\t\t{\n\t\t\tstickerMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVideo() != null)\n\t\t{\n\t\t\tvideoMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif(message.getVideoNote() != null)\n\t\t{\n\t\t\tvideoNoteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVoice() != null)\n\t\t{\n\t\t\tvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\tif(message.getContact() != null)\n\t\t{\n\t\t\tcontactMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLocation() != null)\n\t\t{\n\t\t\tlocationMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVenue() != null)\n\t\t{\n\t\t\tvenueMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif (message.getDice() != null)\n\t\t{\n\t\t\tdiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMember() != null)\n\t\t{\n\t\t\tnewChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMembers() != null)\n\t\t{\n\t\t\tnewChatMembersMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLeftChatMember() != null)\n\t\t{\n\t\t\tleftChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPinned_message() != null)\n\t\t{\n\t\t\tpinnedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatTitle() != null)\n\t\t{\n\t\t\tnewChatTitleMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatPhoto() != null)\n\t\t{\n\t\t\tnewChatPhotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetDeleteChatPhoto())\n\t\t{\n\t\t\tgroupChatPhotoDeleteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetGroupChatCreated())\n\t\t{\n\t\t\tgroupChatCreatedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getGame() != null)\n\t\t{\n\t\t\tgameMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSuccessfulPayment() != null)\n\t\t{\n\t\t\tsuccessfulPaymentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getInvoice() != null)\n\t\t{\n\t\t\tinvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t}",
"void onMessage(String pattern, String channel, String message);",
"@Override\n\tpublic void onMessageReceived(List<EMMessage> messages) {\n\t\tsuper.onMessageReceived(messages);\n\t\tconversationListFragment = new ConversationListFragment();\n\t\tconversationListFragment.refresh();\n\t}",
"void onSendMessageComplete(String message);",
"@Override\n\t\t\t\tpublic void messageArrived(MqttTopic topicName,\n\t\t\t\t\t\tMqttMessage message) throws Exception {\n\t\t\t\t\tSystem.out.println(\"messageArrived----------\");\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 1;\n\t\t\t\t\tmsg.obj = message.toString();\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}",
"@Override\n \t public void run() {\n \t \tGetMessageUnreadFunc();\n \t }",
"@Override\n\tpublic void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) {\n\n\t}",
"private void processMessage(Message message) {\n log(\"\");\n log(\"\");\n// log(\"recon list: \" + reconciliation);\n log(\"message\", message);\n\n switch (message.type) {\n // Response from server when registering\n case \"accepted\":\n accepted = true;\n\n // lobby leader, this user sets the info for all users.\n if (message.stringData != null && message.stringData.equals(\"leader\")) {\n\n LobbySettings lobbySettings = new LobbySettings();\n if (requestedGameType != null)\n lobbySettings.updateType(requestedGameType);\n log(\"req points\", requestedMapCntrlPoints);\n lobbySettings.setMap(requestedMapCntrlPoints);\n\n sendLobbySettingsToServer(lobbySettings);\n }\n\n if (message.name != name) {\n name = message.name;\n System.out.println(\"Name rejected. New name: \" + name);\n }\n\n break;\n // Resend register message\n case \"rejected\":\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n sendRegisterMessage();\n break;\n // the first game message from the server\n case \"initialUpdate\":\n EntityHandler eh = message.entityHandler;\n game.entityHandler = eh;\n game.modelLayer.setEntities(eh);\n game.lobbySettings = message.lobbySettings;\n game.timeRemaining = message.timeRemaining;\n game.teamsList = message.teamsList;\n game.tankID = message.stringData;\n game.teamID = message.teamID;\n tankToUsernameMap = message.tankToNameMap;\n log(String.format(\"We are '%s' on team %d.\", message.stringData, message.teamID));\n\n // TODO this is the shit\n game.map.loadMap(message.lobbySettings.getMap());\n game.setupTerrainFlag = true;\n\n started = true;\n\n game.postConnect();\n log(\"game started!!\");\n break;\n // main update case\n case \"update\":\n if (!started)\n return;\n\n log(\"received new entity handler\");\n\n EntityHandler serverEntityHandler = message.entityHandler;\n game.entityHandler = serverEntityHandler;\n tankToHeldLength = message.tankToHeldLength;\n game.modelLayer.setEntities(serverEntityHandler);\n\n game.entityHandler.constrainTanks(game.map);\n game.entityHandler.constrainCrates(game.map);\n game.entityHandler.constrainTurrets(game.tankID, Input.cursorPos);\n\n game.timeRemaining = message.timeRemaining;\n\n double serverPacketNumber = message.packetNum;\n log(\"server packet:\" + serverPacketNumber + \", last packet we sent:\" + packetNum);\n\n int i = 0;\n while (i < reconciliation.size()) {\n Message reconMessage = reconciliation.get(i);\n\n if (reconMessage.packetNum <= serverPacketNumber) {\n log(\"reconcile!, m packet:\" + reconMessage.packetNum + \"<= server packet:\" + serverPacketNumber);\n reconciliation.remove(i);\n } else {\n log(\"server lagging behind, apply inputs again for packet: \" + reconMessage.packetNum);\n\n Integer[] keysPressed = reconMessage.keysPressed;\n double mouseHeldTime = reconMessage.mouseHeldTime;\n reconciliationUpdate(keysPressed, mouseHeldTime);\n i++;\n }\n }\n break;\n case \"endUpdate\":\n if (!started)\n return;\n\n log(\"received final entity handler\");\n accepted = false;\n started = false;\n ended = true;\n game.entityHandler = message.entityHandler;\n game.modelLayer.setEntities(message.entityHandler);\n game.entityHandler.constrainTanks(game.map);\n game.entityHandler.constrainTurrets(game.tankID, Input.cursorPos);\n game.setEndOfGame(); // assuming we are in online mode\n break;\n case \"debug\":\n String str = message.stringData;\n log(str);\n testMessages.add(message);\n break;\n default:\n error(\"unknown type: \" + message.type);\n break;\n }\n }",
"@Override\n\tpublic void bibliographyObjectNotFound(String message) {\n\t\t_completionCallback.notifyStageCompletion();\n\t}",
"public void retrieveMessage(String message) throws RemoteException {\n\t}",
"private boolean messageIsNew( byte[] messageID ){\n \tsynchronized( this.messageIDs ){\n \t\tfor (int i = 0; i < messageIDs.size(); i++) {\n if (Arrays.equals(messageIDs.get(i), messageID)) {\n Log.d(TAG, \"Message already recieved, ID: \" + messageID[0]);\n return false;\n }\n }\n \t}\n \treturn true;\n }",
"public void addMessage(Message message) {\n history.add(message);\n }",
"protected void addMessage(IDBSMessage pMessage){\n\t\twMessages.add(pMessage);\n\t}",
"abstract public boolean onMessageReceived(MMXMessage message);",
"@Override\n\tpublic void messageReceived(Message message) {\n\t\tappend(String.format(\"<%s> %s\",message.getSource().getName(),message.getMessage().toString()));\n\t}",
"protected abstract void navigateToMessage(long messageId);"
] | [
"0.6941812",
"0.67870456",
"0.66561115",
"0.6579087",
"0.6429046",
"0.6423037",
"0.64059794",
"0.63626945",
"0.6341271",
"0.63334",
"0.63196003",
"0.62942135",
"0.6284951",
"0.6264151",
"0.6257922",
"0.6237564",
"0.6188571",
"0.616273",
"0.6105373",
"0.61039525",
"0.6088488",
"0.6085755",
"0.6065196",
"0.6064259",
"0.60471886",
"0.60263836",
"0.6025467",
"0.60237974",
"0.59968317",
"0.59936357",
"0.5978206",
"0.5932412",
"0.5920646",
"0.59187144",
"0.591792",
"0.5916519",
"0.5911878",
"0.59103125",
"0.5907175",
"0.59024173",
"0.5887807",
"0.5875133",
"0.5870028",
"0.5866011",
"0.58606",
"0.58464134",
"0.58167946",
"0.5813947",
"0.5813073",
"0.57957715",
"0.57796896",
"0.57582814",
"0.5756787",
"0.5754386",
"0.5752731",
"0.573588",
"0.57352936",
"0.57300484",
"0.5715723",
"0.5700396",
"0.56917465",
"0.5690345",
"0.56778866",
"0.56776226",
"0.5674529",
"0.56721187",
"0.5660923",
"0.5647462",
"0.5644556",
"0.56411207",
"0.56402546",
"0.56376016",
"0.5636445",
"0.5629224",
"0.56251144",
"0.5622214",
"0.56091446",
"0.56091446",
"0.56091446",
"0.56091446",
"0.5607421",
"0.55947363",
"0.5592652",
"0.55849797",
"0.5583956",
"0.558334",
"0.5583168",
"0.55821484",
"0.558122",
"0.5580569",
"0.55763125",
"0.5573901",
"0.55711776",
"0.5566465",
"0.5566373",
"0.55583227",
"0.5554253",
"0.5552161",
"0.5547373",
"0.55458134"
] | 0.5846779 | 45 |
Called when a message is no longer detectable nearby. | @Override
public void onLost(final Message message) {
mNearbyDevicesArrayAdapter.remove(
DeviceMessage.fromNearbyMessage(message).getMessageBody());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void reportUncertain() {\n mHandler.post(() -> {\n synchronized (mLock) {\n ITimeZoneProviderManager manager = mManager;\n if (manager != null) {\n try {\n TimeZoneProviderEvent thisEvent =\n TimeZoneProviderEvent.createUncertainEvent(\n SystemClock.elapsedRealtime());\n if (shouldSendEvent(thisEvent)) {\n manager.onTimeZoneProviderEvent(thisEvent);\n mLastEventSent = thisEvent;\n }\n } catch (RemoteException | RuntimeException e) {\n Log.w(TAG, e);\n }\n }\n }\n });\n }",
"@Override\n public void onLocationUnavailableArea(NMapLocationManager locationManager, NGeoPoint myLocation) {\n\n stopMyLocation();\n }",
"private void onLost() {\n // TODO: broadcast\n }",
"@Override\n\t\t\t\t\tpublic void onDisconnected(Robot arg0) {\n\t\t\t\t\t\tmRobot = null;\n\t\t\t\t\t}",
"public void onDisconnected() {\n\t\t\r\n\t}",
"@Override\n public void onMissing(FaceDetector.Detections<Face> detectionResults) {\n mOverlay.remove(mEyesGraphic);\n }",
"@Override\n public void onMissing(FaceDetector.Detections<Face> detectionResults) {\n /*try {\n mOverlay.remove(mEyesGraphic);\n }catch (NullPointerException e){\n e.printStackTrace();\n }*/\n }",
"@Override\n public void onObjectMessage(ReceivedObjectMessage message) {\n //ignore the message\n }",
"@Override\n public void unInvoke() {\n if (!(affected instanceof MOB))\n return;\n final MOB mob = (MOB) affected;\n\n super.unInvoke();\n\n if (canBeUninvoked())\n if ((mob.location() != null) && (!mob.amDead()))\n mob.location().show(mob, null, CMMsg.MSG_OK_VISUAL, L(\"<S-YOUPOSS> @x1 disappears.\", name().toLowerCase()));\n }",
"@Override\n public void onRemotePeerLeave(String remotePeerId, String message) {\n removePeerView(remotePeerId);\n }",
"public void goneOffline()\n\t{\n\t\tgetMainWindow().displayOfflineSymbol();\n\t\tmainWindow.displayMessage(Resources.getString(\"msg_disconnected\"));\n\t\tcloseAllRoomWindows();\n\t}",
"protected void disappear() {\n grid.addTokenAt(null, positionX, positionY);\n }",
"private void onEcologyDisconnected() {\n for (Room room : rooms.values()) {\n room.onEcologyDisconnected();\n }\n }",
"@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}",
"void onDisconnected();",
"@Override\n public void onDisconnected(CameraDevice camera) {\n Log.e(TAG, \"onDisconnected\");\n }",
"@Override\n protected final void onDisconnected() {\n mPilotingItf.cancelSettingsRollbacks()\n .resetLocation()\n .updateCurrentTarget(ReturnHomePilotingItf.Target.TAKE_OFF_POSITION)\n .updateGpsFixedOnTakeOff(false);\n if (!isPersisted()) {\n mPilotingItf.unpublish();\n }\n super.onDisconnected();\n }",
"void onRunawayReactionsDetected()\n {\n final List<String> observerNames =\n Arez.shouldCheckInvariants() && BrainCheckConfig.verboseErrorMessages() ?\n _pendingObservers.stream().map( Node::getName ).collect( Collectors.toList() ) :\n null;\n\n if ( ArezConfig.purgeReactionsWhenRunawayDetected() )\n {\n _pendingObservers.clear();\n }\n\n if ( Arez.shouldCheckInvariants() )\n {\n fail( () -> \"Arez-0101: Runaway reaction(s) detected. Observers still running after \" + _maxReactionRounds +\n \" rounds. Current observers include: \" + observerNames );\n }\n }",
"public void receivedInvalidMoveMessage();",
"protected void onDisconnected(long hconv)\n {\n }",
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locations.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMapLocation loc = iter.next();\r\n\t\t\tif (myRC.canSenseSquare(loc))\r\n\t\t\t\titer.remove();\r\n\t\t} \r\n\t\t\r\n\t\tlocations = navigation.sortLocationsByDistance(locations);\r\n\t\t//Collections.reverse(locations);\r\n\t\tfor (MapLocation block : locations) {\r\n\t\t\tif (gameMap.get(block).robotAtLocation == null){\r\n\t\t\t\t/* this location is unoccupied */\r\n\t\t\t\tblockLoc = block;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tblockLoc = null;\r\n\t}",
"@Override\n public void onDisconnected() {\n }",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n public void unInvoke() {\n if (!(affected instanceof MOB))\n return;\n final MOB mob = (MOB) affected;\n\n super.unInvoke();\n if ((canBeUninvoked())\n && (!mob.amDead())\n && (mob.location() != null))\n mob.location().show(mob, null, CMMsg.MSG_NOISYMOVEMENT, L(\"<S-NAME> manage(s) to survive the torture.\"));\n }",
"public void onSensorUnreliable ()\r\n\t{\r\n\t\tif ((System.currentTimeMillis())>5000)\r\n\t\t{\r\n\t\t\tLog.d(TAG,\"You need to calibrate your sensors.\");\r\n\t\t}\r\n\t}",
"@Override public void onDisconnected() {\n }",
"abstract protected void onDisconnection();",
"@Override\n\t\tpublic void agentDisconnected(String system_id) {\n final int N = mCallbacks.beginBroadcast();\n for (int i=0; i<N; i++) {\n try {\n mCallbacks.getBroadcastItem(i).agentDisconnection(system_id);\n } catch (RemoteException e) {\n // The RemoteCallbackList will take care of removing\n // the dead object for us.\n }\n }\n mCallbacks.finishBroadcast();\n\n\t\t\t// Remove all inputs for this agent\n\t\t\tagentsId.remove(system_id);\n\t\t\taCallback.get(system_id).kill();\n\t\t\taCallback.remove(system_id);\n\t\t}",
"@Override\n public void unInvoke() {\n if (!(affected instanceof MOB))\n return;\n final MOB mob = (MOB) affected;\n\n super.unInvoke();\n\n if (canBeUninvoked()) {\n if ((mob.location() != null) && (!mob.amDead()) && (mob.getWearPositions(Wearable.WORN_FEET) > 0)) {\n spreadImmunity(mob);\n mob.location().show(mob, null, CMMsg.MSG_OK_VISUAL, L(\"The fungus on <S-YOUPOSS> feet dies and falls off.\"));\n }\n }\n }",
"public void lambda$null$2$OculusLinkDisconnectedDialog() {\n if (this.mRegisteredObserver != 0) {\n setPendingSyntheticButtonClick(new DialogButton(\"cancel\"));\n }\n }",
"public void onIceDisconnected();",
"public void onDisconnected() {\n\n }",
"public void onDisconnected() {\n\n }",
"private void onUnavailable() {\n // TODO: broadcast\n }",
"@Override\n\tpublic void onDisconnected() {\n\n\t}",
"@Override\n public void onDisconnected() {\n }",
"@Override\n public boolean disconnectFromSensor() {\n return false;\n }",
"private void onstop() {\n\t\tnearby_baidumap.setMyLocationEnabled(false);// 关闭定位\n\t\tN_locationclient.stop();// 结束定位请求\n\t\tmyOrientationListener.stop();\n\t\tsuper.onStop();\n\n\t}",
"@Override\n public void onMissing(FaceDetector.Detections<Face> detectionResults)\n {\n int facesFound = detectionResults.getDetectedItems().size();\n\n Log.d(APP_LOG_TAG, \"face missing\");\n faceTrackingListener.onFaceMissing(facesFound);\n }",
"@Override public void onMissing(FaceDetector.Detections<Face> detectionResults) {\n VisionAPIManager.this.face = null;\n VisionAPIManager.this.rightEye = VisionAPIManager.this.leftEye = null;\n onComputeFaceDone.onNext(lastFrame);\n }",
"private void onUnknownMessage(ACLMessage msg) {\n\t\tLOG.warn(\"received unknown message: {}\", msg);\n\t}",
"void msgViewableChanged() {\n resetViewport(start);\n }",
"void onNoCollision();",
"@Override\n public void onTextMessage(ReceivedTextMessage message) {\n //ignore the message\n }",
"public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tnearby_mapview.onPause();\n\t}",
"public void stopMoving()\n {\n mouthPosition = 0;\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n messengerService = null;\n messengerServiceBound = false;\n }",
"private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }",
"@Override\n public void onMemberUnreachable(final Member member) {\n if(clusterReadView.isLeader()){\n LOGGER.info(\"I AM the LEADER and I am notifying other Scoop aware clients about [unreachableMember={}]\", member);\n\n final Event event = new Event();\n event.setEventType(UNREACHABLE_MEMBER_EVENT_TYPE);\n event.setOrderingKey(\"scoop-system\"); // TODO better ordering key?\n\n final HashMap<String, Object> metadata = Maps.newHashMap();\n metadata.put(\"id\", UUID.randomUUID().toString());\n\n final Map<String, String> bodyMap = Maps.newHashMap();\n bodyMap.put(UNREACHABLE_MEMBER_EVENT_BODY_KEY, member.address().toString());\n event.setBody(bodyMap);\n\n postEvent(scoopTopic, event);\n }\n else {\n LOGGER.debug(\"received event about [unreachableMember={}] but I am NOT the LEADER -> ignored\", member);\n }\n }",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tMessageReceiver.ehList.remove(this);// 取消监听推送的消息\r\n\t}",
"public void opponentDisconnected() {\n \t\tif (lobbyManager.getHostedGame() != null) { // we haven't actually started a game yet\n \t\t\thostWaitScreen.setPotentialOpponent(null);\n \t\t}\n \t\t\n \t\tif (gameInProgress) {\n \t\t\tJOptionPane.showMessageDialog(gameMain, \n \t\t\t\t\t\"Your opponent disconnected unexpectedly (they're probably scared of you)\", \"Disconnection\", JOptionPane.ERROR_MESSAGE);\n \t\t\tquitNetworkGame();\n \t\t}\n \t\t\n \t\tgameInProgress = false;\n \t\tlobbyManager.resetOpponentConnection();\n \t}",
"@Override\n public void onPeerDeclined(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }",
"public void onServiceDisconnected(ComponentName name) {\n \t\tlocalMonitor = null;\n \t}",
"private void goAway() {\n CollaborationConnection connection = CollaborationConnection\n .getConnection();\n Presence presence = connection.getPresence();\n if (presence.getMode().equals(Mode.available)) {\n previousPresence = presence;\n Presence newPresence = new Presence(presence.getType(),\n presence.getStatus(), presence.getPriority(), Mode.away);\n Tools.copyProperties(presence, newPresence);\n timerSetAway = sendPresence(connection, newPresence);\n }\n }",
"protected void onStop() {\n super.onStop();\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"walkersAvailable\");\n GeoFire geoFire = new GeoFire(ref);\n geoFire.removeLocation(userId);\n }",
"private void onGPSOff(Location defaultLocation) {\n currentLocation = defaultLocation;\n gpsLocationFound = false;\n requestForValidationOfQibla();\n }",
"public void stopTrackingNfc() {\n\t\tif (adapter == null) {\n\t\t\treturn;\n\t\t}\n\t\tadapter.disableForegroundDispatch(activity);\n\t}",
"@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"@Override\r\n\tpublic void onDeath() {\n\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,1F);\r\n\t}",
"protected void onBadCoords()\n\t{\n\t}",
"protected void onUnknownMessage(Object msg) {\n log.warn(\"Unknown msg: \" + msg);\n }",
"public void onServiceDisconnected(ComponentName className) {\n \tmServiceMessenger = null;\r\n setIsBound(false);\r\n }",
"@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}",
"private Message onPingMessageReceived(PingMessage m, DecentSocket origin) {\n\t\treturn null;\n\t}",
"protected void hideNotify () {\n if (timer != null) {\n timer.cancel ();\n timer = null;\n }\n\n cityMap.removeMapListener (this);\n }",
"void oracle(){\n if (this.neighbors < 1){\n if (!isAlive()){\n observer.deleteCell(id);\n }\n }\n }",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmoving = false;\n\t\t}",
"@Override\n\t protected void onPause() {\n\t \tsuper.onPause();\n\t \tmyLocationOverlay.disableMyLocation();\n\t \tunregisterReceiver(mProximityBroadcast);\n\t \tlocationManager.removeProximityAlert(mPendingstazionetermini);\n\t \tlocationManager.removeProximityAlert(mPendingpiazzadellarepubblica);\n\t \tlocationManager.removeProximityAlert(mPendingcolosseo);\n\t \tlocationManager.removeProximityAlert(mPendingcasadiromoloeremo);\n\t }",
"public void ignoreLocally(RoutingHeader routingHeader) {\n callbackHandler.notifyUnicastLost(routingHeader,data);\n operatingSystem.finishListener(this);\n \n }",
"public boolean detectBound(){\n // super.detectBound();\n if(posY > height || posY < 0){\n Main.enemies.remove(this);\n return true;\n }\n return false;\n\n }",
"@Override\n public void onCalled() {\n LogitowDeviceManager.current.logger.info(\"Logitow device {} disconnected!\", device);\n device.info.isConnected = false;\n }",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"public STATE_KEY eventRemoteStateMissedCall() {\n\t\tviewMissedNotification();\n\t\treturn STATE_KEY.NOT_CHANGE;\n\t}",
"@Override\r\n public void onConnectionSuspended(int cause) {\n mGoogleApiClient.connect();\r\n map.clear();\r\n markerCount = 0;\r\n }",
"@Override\n protected void onCancelled() {\n if (this.mListener != null) {\n this.mListener.onCapsulePingCancelled();\n }\n }",
"private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }",
"@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}",
"private boolean didPlayerLose() {\r\n return mouseListeningMode && bird.getNumThrowsRemaining() == 0;\r\n }",
"private static void turnAwayFromWall() {\n while (true) {\n if (readUsDistance() > OPEN_SPACE) {\n leftMotor.stop();\n rightMotor.stop();\n // re-calibrate theta, offset will be added to this angle\n odometer.setTheta(0);\n System.out.println(\"starting localization...\");\n prevDist = 255;\n dist = prevDist;\n break;\n }\n }\n }",
"public void notifySwitchAway() { }",
"@Override\n public void onPeerDisconnected(Node peer) {\n Log.i(TAG, \"Disconnected: \" + peer.getDisplayName() + \" (\" + peer.getId() + \")\");\n super.onPeerDisconnected(peer);\n SmartWatch.getInstance().sendDisconnectedWear();\n }",
"@Override\n public void onEmulatorDisconnected() {\n // Stop sensor event callbacks.\n stopSensors();\n }",
"private void onMapMoving(GoogleMap map){\n map.setOnCameraMoveStartedListener(new GoogleMap.OnCameraMoveStartedListener() {\n @Override\n public void onCameraMoveStarted(int reason) {\n if (reason == GoogleMap.OnCameraMoveStartedListener.REASON_GESTURE){\n if(isTracking){\n Position.stopTrackingPosition(fusedLocationClient, locationCallback);\n isTracking = false;\n }\n }\n }\n });\n }",
"public void mo8963a() {\n if ((this instanceof OnMessageListener) && this.f14276h != null) {\n this.f14276h.removeMessageListener((OnMessageListener) this);\n }\n this.f14275g = null;\n super.mo8963a();\n }",
"void firePeerDisconnected(ConnectionKey connectionKey);",
"public void onDisconnected() {\r\n // Display the connection status\r\n Toast.makeText(this, \"Disconnected. Please re-connect.\",\r\n Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }",
"public void removeLocationObserver(String location);",
"@Override\n\tpublic void playerDisconnected(String playerID, DisconnectReason reason) {\n\t}",
"@Override\n\tpublic void onInvisible() {\n\n\t}",
"protected void onServiceDisconnectedExtended(ComponentName className) {\n mAllowedToBind = false;\n\n }",
"@Override\n protected void onFar() {\n }",
"void disconnectedPlayerMessage(String name);",
"public void handleNotInUse() {\n InternalSubchannel.this.callback.onNotInUse(InternalSubchannel.this);\n }",
"public void showDisconnectedFoeMessage() {\n\t\tsetStatusBar(FOE_DISC_MSG);\n\t}",
"public void offMovimentSensor(){\r\n long timestamp= System.currentTimeMillis();\r\n for (Moviment sm:listSensorMoviment()){\r\n if(sm.isDetection()==true){\r\n long limit=sm.getTime()+sm.getInterval();\r\n if(timestamp>limit){\r\n sm.setDetection(false);\r\n sm.setTime(0);\r\n for (Light l:lights)\r\n l.setStatus(false);\r\n }\r\n }\r\n }\r\n }"
] | [
"0.59895486",
"0.5940291",
"0.58952135",
"0.5872525",
"0.5798502",
"0.57942545",
"0.5766342",
"0.5736653",
"0.564763",
"0.56285816",
"0.56270796",
"0.55817384",
"0.5552097",
"0.5533339",
"0.5518919",
"0.5517228",
"0.55103123",
"0.55078876",
"0.5496746",
"0.5478715",
"0.54402155",
"0.54397285",
"0.5435242",
"0.5435242",
"0.5435242",
"0.5430238",
"0.5425112",
"0.54111755",
"0.5394106",
"0.53916186",
"0.5389776",
"0.5385134",
"0.5362243",
"0.5361499",
"0.5361499",
"0.535488",
"0.5340267",
"0.52992964",
"0.5276855",
"0.5270219",
"0.5269992",
"0.52685446",
"0.52617484",
"0.5243021",
"0.5235818",
"0.52315223",
"0.5230988",
"0.5218392",
"0.52070963",
"0.5200717",
"0.51979375",
"0.5180443",
"0.51722515",
"0.5161588",
"0.51609474",
"0.51432705",
"0.51418924",
"0.5140829",
"0.5134041",
"0.5131561",
"0.5130474",
"0.5100591",
"0.50972074",
"0.5096074",
"0.5081834",
"0.50582916",
"0.505533",
"0.50505936",
"0.5047795",
"0.50473374",
"0.50384337",
"0.5035045",
"0.50332654",
"0.50225776",
"0.5018852",
"0.50147533",
"0.5013189",
"0.5010798",
"0.50107557",
"0.50104046",
"0.5005334",
"0.5004149",
"0.50036764",
"0.50011015",
"0.50001466",
"0.49990115",
"0.49968725",
"0.4996763",
"0.49935323",
"0.49926555",
"0.49913335",
"0.49773994",
"0.49766594",
"0.4974051",
"0.49737087",
"0.49724352",
"0.4972245",
"0.49673444",
"0.4964572",
"0.49624124"
] | 0.71424484 | 0 |
If GoogleApiClient is connected, perform sub actions in response to user action. If it isn't connected, do nothing, and perform sub actions when it connects (see onConnected()). | @Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
if (isChecked) {
subscribe();
} else {
unsubscribe();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void requestConnection() {\n getGoogleApiClient().connect();\n }",
"@Override\n public void onStart() {\n mGoogleApiClient.connect();\n super.onStart();\n }",
"@Override\n protected void onStart() {\n super.onStart();\n if (!mGoogleApiClient.isConnected()) {\n mGoogleApiClient.connect();\n }\n }",
"@Override\r\n protected void onStart() {\n super.onStart();\r\n mGoogleApiClient.connect();\r\n }",
"public void connectApiClient()\n {\n googleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n protected ConnectionResult doInBackground(Void... params) {\n ConnectionResult connectionResult = googleApiClient.blockingConnect(\n Constants.GOOGLE_API_CLIENT_TIMEOUT_S, TimeUnit.SECONDS);\n\n return connectionResult;\n }",
"@Override public void onConnected() {\n new LostApiClientImpl(application, new TestConnectionCallbacks(),\n new LostClientManager(clock, handlerFactory)).connect();\n }",
"@Override\n public void onStart() {\n super.onStart();\n try {\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n }\n } catch (Exception e) {\n e.printStackTrace();\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 }",
"@Override\n protected void onStart() {\n super.onStart();\n Log.i(TAG, \"In onStart() - connecting...\");\n googleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.e(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void onStart() {\n super.onStart();\n googleApiClient.connect();\n }",
"@Override\n public void onClick(View arg0) {\n Log.i(\"\", \"google button is clicked\");\n if (cd.isConnectingToInternet()) {\n\n mGoogleApiClient.connect();\n signInWithGplus();\n } else {\n String connection_alert = getResources().getString(\n R.string.alert_no_internet);\n Constant.showAlertDialog(mContext, connection_alert, false);\n }\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(\"Feelknit\", \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(DEBUG_TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tif (ConnectionActivity.isNetConnected(TrainerHomeActivity.this)) {\r\n\r\n\t\t\t\t\tmakeClientMissed();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog(TrainerHomeActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tapp.getMap().put(Constants.IS_CONNECT_SERVER, true);\n\t\t\t\t\t\tuserDialog.dismiss();\n\t\t\t\t\t}",
"public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }",
"public abstract void onClientConnect(ClientWrapper client);",
"void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConnection);\n }\n\n connections.animate().alpha(1);\n ButterKnife.apply(allViews, ENABLED, true);\n startActivity(new Intent(this, ControlsActivity.class));\n }",
"@Test public void connect_shouldAddConnectionCallbacks() throws Exception {\n new LostApiClientImpl(application, new LostApiClient.ConnectionCallbacks() {\n @Override public void onConnected() {\n // Connect second Lost client with new connection callbacks once the service has connected.\n new LostApiClientImpl(application, new TestConnectionCallbacks(),\n new LostClientManager(clock, handlerFactory)).connect();\n }\n\n @Override public void onConnectionSuspended() {\n }\n }, new LostClientManager(clock, handlerFactory)).connect();\n\n FusedLocationProviderApiImpl api =\n (FusedLocationProviderApiImpl) LocationServices.FusedLocationApi;\n\n // Verify both sets of connection callbacks have been stored in the service connection manager.\n assertThat(api.getServiceConnectionManager().getConnectionCallbacks()).hasSize(2);\n }",
"private void connectWithCallbacks(GoogleApiClient.ConnectionCallbacks callbacks) {\n googleApiClient = new GoogleApiClient.Builder(context)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(callbacks) // callbacks specific to the service\n .addOnConnectionFailedListener(connectionFailedListener) // callbacks when cannot connect to the client\n .build();\n Log.d(TAG,googleApiClient.toString());\n googleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n\n Log.i(TAG, \"GoogleApiClient connection suspended\");\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n // If the initial location was never previously requested, we use\n // FusedLocationApi.getLastLocation() to get it. If it was previously requested, we store\n // its value in the Bundle and check for it in onCreate(). We\n // do not request it again unless the user specifically requests location updates by pressing\n // the Start Updates button.\n //\n // Because we cache the value of the initial location in the Bundle, it means that if the\n // user launches the activity,\n // moves to a new location, and then changes the device orientation, the original location\n // is displayed as the activity is re-created.\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n // If the user presses the Start Updates button before GoogleApiClient connects, we set\n // mRequestingLocationUpdates to true (see startUpdatesButtonHandler()). Here, we check\n // the value of mRequestingLocationUpdates and if it is true, we start location updates.\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }",
"protected abstract void onConnect();",
"@Override\n public void onClick(View v) {\n mAndroidServer.listenForConnections(new AndroidServer.ConnectionCallback() {\n @Override\n public void connectionResult(boolean result) {\n if (result == true) {\n Toast.makeText(mActivity, \"SUCCESSFULLY CONNECTED TO A VIEWER\", Toast.LENGTH_LONG);\n }\n }\n });\n\n }",
"public abstract void onConnect();",
"@Override protected void onResume() {\n super.onResume();\n locationClient.connect();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId){\n // If the google API Client is not connected then connect it\n if(!googleApiClient.isConnected()){\n googleApiClient.connect();\n }\n\n // This will make the service stop when application is terminated\n return START_NOT_STICKY;\n }",
"public void handleConnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(true);\n setMessageText(\"Connected to \" + tallyDeviceName);\n\n // Waits for 2 seconds so that the user\n // can see the message and then exits the\n // activity\n timerHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n exitActivity();\n\n }\n\n }, 2000);\n\n }",
"private void initializeAndConnectGoogleApi() {\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n googleApiClient = new GoogleApiClient\n .Builder(this)\n .enableAutoManage(this, 0, this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n // Connect if it's not\n if (!googleApiClient.isConnected()) {\n googleApiClient.connect();\n }\n }",
"protected GoogleApiClient getGoogleApiClient() {\n return mClient;\n }",
"public void onServiceConnected() {\r\n\t\tapiEnabled = true;\r\n\r\n\t\t// Display the list of calls\r\n\t\tupdateList();\r\n }",
"@Override\n\t\tpublic void onConnected(Bundle arg0) {\n\t\t\tLocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, appLocationService);\n\t\t\tstartLocationUpdates();\n\t\t}",
"@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }",
"public interface OnConnectListener {\n void onStatusConnection(AndroidDevice androidDevice, boolean connected);\n void onConnected(AndroidDevice androidDevice);\n void onDisconnected(AndroidDevice androidDevice);\n void onTryConnect(AndroidDevice androidDevice);\n}",
"@Override\n public void clientTryingConnectionToHost(PiClient piClient) {\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(activity, \"Connecting\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(googleApiClient, this);\n }",
"private void initializeGoogleApiClient() {\n\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n\n }",
"public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }",
"protected void onConnect() {}",
"@Override\n public void onConnected(Bundle connectionHint) {\n //LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this); // LocationListener\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n customProgressDialog = CustomProgressDialog.show(LocationChooser.this);\n }\n }",
"abstract void onConnect();",
"public void setUpGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient\n .Builder(this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .enableAutoManage(this, this)\n .build();\n }",
"@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }",
"@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 }",
"protected void onRobotConnect (boolean bbUserNotify)\r\n\t{\r\n\t\tsetCOMStatus (true);\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"@Override\n public void onCreate() {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n\n /*conectar al servicio*/\n Log.w(TAG, \"onCreate: Conectando el google client\");\n googleApiClient.connect();\n\n\n //NOTIFICACION\n mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n stateService = Constants.STATE_SERVICE.NOT_CONNECTED;\n\n }",
"void onIceConnectionChange(boolean connected);",
"@Override\n protected void onStop() {\n if (mGoogleApiClient.isConnected()) {\n mGoogleApiClient.disconnect();\n }\n\n super.onStop();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (ConnectionActivity.isNetConnected(AdminLoginActivity.this)) {\r\n\r\n\t\t\t\t\tdoAdminLogin();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override public void onSignInButtonClicked() {\n mSignInClicked = true;\n mGoogleApiClient.connect();\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tint id = v.getId();\n\t\t\n\t\tif(id==R.id.connectbutton){\n\t\t\t/*I need to test the connection with the ip address*/\n\t\t\t/*for now ill just test the socket connection open and close\n\t\t\t * if it is a success ill start the game activity\n\t\t\t * if it is a fail then ill toast message saying try again\n\t\t\t */\n\t\t\tLog.d(null, \"connectbutton pushed\");\n\t\t\ttestConnection();\n\t\t\t\n\t\t}\n\t\telse if(id==R.id.startbutton){\n\t\t\tif(connection==true)\n\t\t\t\tstartGame(this,MainActivity.class);\n\t\t\telse\n\t\t\t\tToast.makeText(getApplicationContext(), \"Incorrect ip address try again\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\t\t\n\t}",
"public void doOnDisconnect() {\n\t\t// Shut off any sensors that are on\n\t\tMainActivity.this.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tresetAllOperations();\n\n\t\t\t\t\n\t\t\t\t// Make sure the LEDs go off\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.setLEDs(0, 0, 0);\n\t\t\t\t}\n\n\n\t\t\t\t// Only try and disconnect if already connected\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.disconnect();\n\t\t\t\t}\n\n\t\t\t\t// Remind people how to connect\n\t\t\t\ttvConnectInfo.setVisibility(TextView.VISIBLE);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }",
"private void onConnected() {\n \tmMeshHandler.removeCallbacks(connectTimeout);\n hideProgress();\n\n mConnectTime = SystemClock.elapsedRealtime();\n mConnected = true;\n\n mNavListener = new SimpleNavigationListener(stActivity.getFragmentManager(), stActivity);\n if (mDeviceStore.getSetting() == null || mDeviceStore.getSetting().getNetworkKey() == null) {\n Log.d(\"TEST\", \"TEST\");\n }\n startPeriodicColorTransmit();\n }",
"@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t Toast.makeText(context, \"Connected\", Toast.LENGTH_SHORT).show();\n\t\t mLocationClient.requestLocationUpdates(mLocationRequest,this);\n\t}",
"public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}",
"private void buildGoogleApiClient() {\n // Iitialize Google API client.\n if (googleApiClient == null) {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(Wearable.API) // Request access only to the wearable API.\n .build();\n }\n }",
"public void dispatchConnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientConnected(clientId);\n }\n }",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n readPreviousStoredDataAPI();\n Wearable.DataApi.addListener(mGoogleApiClient, this);\n }",
"@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"private synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(ActivityRecognition.API)\n .build();\n }",
"@Override\n public void clientConnectedToHost(PiClient piClient) {\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(activity, \"Connected\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n\tprotected void onResume() {\n\n\t\tactivityVisible = true;\n\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tLocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver(testHarnessUIController,\n\t\t\t\t\tTestHarnessService.IF_PROCESS_COMMAND);\n\t\t}\n\t\tsuper.onResume();\n\n\t\tif (showConnectionDialogOnResume) {\n\t\t\tshowConnectionDialogOnResume = false;\n\t\t\tif (this.connectionDialog != null && !this.connectionDialog.isVisible()) {\n\t\t\t\tconnectionDialog.show(getSupportFragmentManager(), \"ConnectionDialog\");\n\t\t\t}\n\t\t}\n\n\t\tif (dismissConnectionDialogOnResume) {\n\t\t\tdismissConnectionDialogOnResume = false;\n\t\t\tif (this.connectionDialog != null && this.connectionDialog.isVisible()) {\n\t\t\t\tconnectionDialog.dismiss();\n\t\t\t}\n\t\t\tconnectionDialog = null;\n\t\t}\n\t}",
"@Override\n public void onConnected(Bundle connectionHint) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest,\n this);\n }",
"protected abstract Result doInBackgroundConnected(Params... params);",
"protected synchronized void buildGoogleApiClient() {\n try {\n System.out.println(\"In GOOGLE API CLIENT\");\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n mGoogleApiClient.connect();\n createLocationRequest();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n if (startStep2(dialog)) {\n //Now make sure about location permission.\n if (checkPermissions()) {\n //Step 2: Start the Location Monitor Service\n //Everything is there to start the service.\n startStep3();\n } else if (!checkPermissions()) {\n requestPermissions();\n }\n }\n }",
"@Override\n public void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }",
"@Override\r\n public void onConnectionSuspended(int cause) {\n mGoogleApiClient.connect();\r\n map.clear();\r\n markerCount = 0;\r\n }",
"protected synchronized void buildGoogleApiClient() {\n// mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(LocationServices.API).build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n //.addApi(Places.GEO_DATA_API)\n //.addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"private void buildGoogleApiClient() {\n this.mGoogleApiClient = new GoogleApiClient.Builder(context)\n //.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(LocationServices.API)\n .build();\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }",
"protected synchronized void buildGoogleApiClient() {\n\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\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\r\n protected void onPostExecute(Void result){\n super.onPostExecute(result);\r\n if(!ConnectSuccess){\r\n finish(); //finishing process so the program doesn't overwork itself\r\n }\r\n else{\r\n isBtConnected = true; //connected and working\r\n }\r\n }",
"void onConnect();",
"@Override\n public void onConnected(Bundle connectionHint) {\n // Gets the best and most recent location currently available, which may be null\n // in rare cases when a location is not available.\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLastLocation != null) {\n if (!Geocoder.isPresent()) {\n Toast.makeText(rootView.getContext(), R.string.no_geocoder_available, Toast.LENGTH_LONG).show();\n return;\n }\n startIntentService();\n }\n }",
"@Override\n public void onConnected(Bundle arg0) {\n\n Toast.makeText(getContext(),\"Connected\",Toast.LENGTH_LONG);\n }",
"public void connected() {\n\t\tthis.model.setClient(this);\n\t\tfor (Option o : options) {\n\t\t\to.initiate(this);\n\t\t}\n\t}",
"@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n Toast.makeText(getApplicationContext(), \"We are connected\" , Toast.LENGTH_SHORT).show();\n\n }",
"protected synchronized void buildGoogleApiClient() {\r\n googleApiClient = new GoogleApiClient.Builder(this)\r\n .addConnectionCallbacks(this)\r\n .addOnConnectionFailedListener(this)\r\n .addApi(LocationServices.API)\r\n .build();\r\n }",
"@Override\n public void onConnect() {\n connected.complete(null);\n }",
"@Override\n public void onPause() {\n Log.i(TAG, \"OnPause, remote LocationClient\");\n if (mLocationClient != null) {\n Log.i(TAG, \"before location client disconnect\");\n mLocationClient.disconnect();\n }\n }",
"@Override\n protected void onPause() {\n super.onPause();\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n }",
"@Override\n public void onConnected(Bundle bundle) {\n\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n\n if (addGeofence) {\n addGeofencesButtonHandler();\n }\n }",
"@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }",
"public void OnConnectSuccess();",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t// Decide what to do based on the original request code\n\t\tswitch (requestCode) {\n\n\t\tcase CONNECTION_FAILURE_RESOLUTION_REQUEST:\n\t\t\t/*\n\t\t\t * If the result code is Activity.RESULT_OK, try to connect again\n\t\t\t */\n\t\t\tswitch (resultCode) {\n\t\t\tcase Activity.RESULT_OK:\n\t\t\t\tmLocationClient.connect();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\n public void connected() {\n int[] statusFlags={TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN,TurnBasedMatch.MATCH_TURN_STATUS_INVITED,TurnBasedMatch.MATCH_TURN_STATUS_COMPLETE,TurnBasedMatch.MATCH_TURN_STATUS_THEIR_TURN};\n Games.TurnBasedMultiplayer.loadMatchesByStatus(googleApiClient,statusFlags).setResultCallback(new ResultCallback<TurnBasedMultiplayer.LoadMatchesResult>() {\n @Override\n public void onResult(TurnBasedMultiplayer.LoadMatchesResult loadMatchesResult) {\n LoadMatchesResponse response=loadMatchesResult.getMatches();\n\n\n if (response.hasData()){\n\n int invitations=response.getInvitations()!=null? response.getInvitations().getCount():0;\n int turn = response.getMyTurnMatches()!=null? response.getMyTurnMatches().getCount():0;\n int completed = response.getCompletedMatches()!=null? response.getCompletedMatches().getCount():0;\n int their_turn = response.getTheirTurnMatches()!=null? response.getTheirTurnMatches().getCount():0;\n TurnBasedMatchBuffer buffer = response.getCompletedMatches();\n\n for (int i=0;i<completed;i++){\n TurnBasedMatch match = buffer.get(i);\n String msg;\n switch (match.getStatus()){\n case TurnBasedMatch.MATCH_STATUS_AUTO_MATCHING:\n msg=\"Auto matching\";\n break;\n case TurnBasedMatch.MATCH_STATUS_ACTIVE:\n msg=\"Active\";\n break;\n case TurnBasedMatch.MATCH_STATUS_COMPLETE:\n msg=\"Complete\";\n break;\n case TurnBasedMatch.MATCH_STATUS_EXPIRED:\n msg=\"Expired\";\n break;\n case TurnBasedMatch.MATCH_STATUS_CANCELED:\n msg=\"Canceled\";\n break;\n default:\n msg=\"Don't know\";\n break;\n }\n Log.d(TAG,\"Completed Matches: \" + i + \" status: \"+ msg);\n }\n\n\n //Toast.makeText(getApplicationContext(),\"Invitations: \" + invitations + \", Turn: \" + turn + \", Completed: \" + completed + \", Their turn: \" + their_turn,Toast.LENGTH_SHORT).show();\n response.release();\n }\n\n\n }\n });\n\n super.connected();\n multiplayerGameButton.setEnabled(true);\n }"
] | [
"0.6441393",
"0.6212144",
"0.613673",
"0.60974604",
"0.6090902",
"0.5993727",
"0.596454",
"0.5955517",
"0.5948642",
"0.5940004",
"0.59025335",
"0.58854777",
"0.58854777",
"0.5874491",
"0.5866932",
"0.58311415",
"0.578997",
"0.57727706",
"0.57603306",
"0.5699863",
"0.5594973",
"0.55916625",
"0.5549896",
"0.553264",
"0.5479617",
"0.5474963",
"0.5435012",
"0.54187334",
"0.5414336",
"0.54089534",
"0.534296",
"0.5327196",
"0.5327171",
"0.5316038",
"0.53089696",
"0.52955574",
"0.52831626",
"0.5247656",
"0.52259296",
"0.52131104",
"0.51780593",
"0.5174106",
"0.5173993",
"0.5157463",
"0.5111484",
"0.51090693",
"0.5107181",
"0.51061565",
"0.5098823",
"0.5082167",
"0.50772387",
"0.5075422",
"0.5070395",
"0.5069586",
"0.50685775",
"0.50644004",
"0.50560284",
"0.50547",
"0.505334",
"0.5053269",
"0.5045096",
"0.502518",
"0.50106245",
"0.5009357",
"0.49994454",
"0.49885222",
"0.49737826",
"0.49731192",
"0.49731192",
"0.49639982",
"0.4960283",
"0.49565277",
"0.49465114",
"0.49443066",
"0.49438864",
"0.4943271",
"0.4943047",
"0.493554",
"0.4931707",
"0.49278048",
"0.49212822",
"0.49132568",
"0.49075714",
"0.4905222",
"0.49049875",
"0.489928",
"0.48951405",
"0.48936352",
"0.4890597",
"0.4886",
"0.48846436",
"0.4883926",
"0.48834977",
"0.48825163",
"0.4880896",
"0.48787266",
"0.48738927",
"0.4869887",
"0.48694906",
"0.48686934"
] | 0.49633294 | 70 |
If GoogleApiClient is connected, perform pub actions in response to user action. If it isn't connected, do nothing, and perform pub actions when it connects (see onConnected()). | @Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
if (isChecked) {
publish();
} else {
unpublish();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void requestConnection() {\n getGoogleApiClient().connect();\n }",
"@Override\n public void onStart() {\n mGoogleApiClient.connect();\n super.onStart();\n }",
"@Override\n protected void onStart() {\n super.onStart();\n if (!mGoogleApiClient.isConnected()) {\n mGoogleApiClient.connect();\n }\n }",
"@Override\r\n protected void onStart() {\n super.onStart();\r\n mGoogleApiClient.connect();\r\n }",
"@Override\n public void onStart() {\n super.onStart();\n try {\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n protected void onStart() {\n super.onStart();\n Log.i(TAG, \"In onStart() - connecting...\");\n googleApiClient.connect();\n }",
"public void connectApiClient()\n {\n googleApiClient.connect();\n }",
"@Override\n public void onStart() {\n super.onStart();\n googleApiClient.connect();\n }",
"@Override public void onConnected() {\n new LostApiClientImpl(application, new TestConnectionCallbacks(),\n new LostClientManager(clock, handlerFactory)).connect();\n }",
"@Override\n public void onClick(View arg0) {\n Log.i(\"\", \"google button is clicked\");\n if (cd.isConnectingToInternet()) {\n\n mGoogleApiClient.connect();\n signInWithGplus();\n } else {\n String connection_alert = getResources().getString(\n R.string.alert_no_internet);\n Constant.showAlertDialog(mContext, connection_alert, false);\n }\n }",
"@Override\n protected ConnectionResult doInBackground(Void... params) {\n ConnectionResult connectionResult = googleApiClient.blockingConnect(\n Constants.GOOGLE_API_CLIENT_TIMEOUT_S, TimeUnit.SECONDS);\n\n return connectionResult;\n }",
"public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }",
"@Override\n public void clientTryingConnectionToHost(PiClient piClient) {\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(activity, \"Connecting\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public void clientConnectedToHost(PiClient piClient) {\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(activity, \"Connected\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.e(TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"private void publish() {\n Log.i(TAG, \"Publishing\");\n PublishOptions options = new PublishOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new PublishCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer publishing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mPublishSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Published successfully.\");\n } else {\n logAndShowSnackbar(\"Could not publish, status = \" + status);\n mPublishSwitch.setChecked(false);\n }\n }\n });\n }",
"void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConnection);\n }\n\n connections.animate().alpha(1);\n ButterKnife.apply(allViews, ENABLED, true);\n startActivity(new Intent(this, ControlsActivity.class));\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(\"Feelknit\", \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n Log.i(DEBUG_TAG, \"Connection suspended\");\n mGoogleApiClient.connect();\n }",
"private void initializeAndConnectGoogleApi() {\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n googleApiClient = new GoogleApiClient\n .Builder(this)\n .enableAutoManage(this, 0, this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n // Connect if it's not\n if (!googleApiClient.isConnected()) {\n googleApiClient.connect();\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tif (ConnectionActivity.isNetConnected(TrainerHomeActivity.this)) {\r\n\r\n\t\t\t\t\tmakeClientMissed();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog(TrainerHomeActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId){\n // If the google API Client is not connected then connect it\n if(!googleApiClient.isConnected()){\n googleApiClient.connect();\n }\n\n // This will make the service stop when application is terminated\n return START_NOT_STICKY;\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {\n if (isChecked) {\n subscribe();\n } else {\n unsubscribe();\n }\n }\n }",
"protected abstract void onConnect();",
"@Override\n public void onClick(View v) {\n mAndroidServer.listenForConnections(new AndroidServer.ConnectionCallback() {\n @Override\n public void connectionResult(boolean result) {\n if (result == true) {\n Toast.makeText(mActivity, \"SUCCESSFULLY CONNECTED TO A VIEWER\", Toast.LENGTH_LONG);\n }\n }\n });\n\n }",
"public abstract void onClientConnect(ClientWrapper client);",
"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 abstract void onConnect();",
"public void setUpGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient\n .Builder(this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .enableAutoManage(this, this)\n .build();\n }",
"public void onServiceConnected() {\r\n\t\tapiEnabled = true;\r\n\r\n\t\t// Display the list of calls\r\n\t\tupdateList();\r\n }",
"private void buildGoogleApiClient() {\n // Iitialize Google API client.\n if (googleApiClient == null) {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(Wearable.API) // Request access only to the wearable API.\n .build();\n }\n }",
"@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }",
"private void connectWithCallbacks(GoogleApiClient.ConnectionCallbacks callbacks) {\n googleApiClient = new GoogleApiClient.Builder(context)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(callbacks) // callbacks specific to the service\n .addOnConnectionFailedListener(connectionFailedListener) // callbacks when cannot connect to the client\n .build();\n Log.d(TAG,googleApiClient.toString());\n googleApiClient.connect();\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n // If the initial location was never previously requested, we use\n // FusedLocationApi.getLastLocation() to get it. If it was previously requested, we store\n // its value in the Bundle and check for it in onCreate(). We\n // do not request it again unless the user specifically requests location updates by pressing\n // the Start Updates button.\n //\n // Because we cache the value of the initial location in the Bundle, it means that if the\n // user launches the activity,\n // moves to a new location, and then changes the device orientation, the original location\n // is displayed as the activity is re-created.\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n // If the user presses the Start Updates button before GoogleApiClient connects, we set\n // mRequestingLocationUpdates to true (see startUpdatesButtonHandler()). Here, we check\n // the value of mRequestingLocationUpdates and if it is true, we start location updates.\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }",
"@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(googleApiClient, this);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tapp.getMap().put(Constants.IS_CONNECT_SERVER, true);\n\t\t\t\t\t\tuserDialog.dismiss();\n\t\t\t\t\t}",
"@Override protected void onResume() {\n super.onResume();\n locationClient.connect();\n }",
"protected synchronized void buildGoogleApiClient() {\n// mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(LocationServices.API).build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n //.addApi(Places.GEO_DATA_API)\n //.addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n if (mGoogleApiClient != null) {\n mGoogleApiClient.connect();\n customProgressDialog = CustomProgressDialog.show(LocationChooser.this);\n }\n }",
"public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }",
"protected GoogleApiClient getGoogleApiClient() {\n return mClient;\n }",
"@Override\n public void onCreate() {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n\n /*conectar al servicio*/\n Log.w(TAG, \"onCreate: Conectando el google client\");\n googleApiClient.connect();\n\n\n //NOTIFICACION\n mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n stateService = Constants.STATE_SERVICE.NOT_CONNECTED;\n\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic synchronized boolean doActivity() {\n\t\tJSONObject json = new JSONObject();\n\t\tjson.put(\"command\", SERVER_ANNOUNCE);\n\t\tjson.put(\"id\", id);\n\t\tjson.put(\"load\", loadConnections.size());\n\t\tjson.put(\"hostname\", Settings.getLocalHostname());\n\t\tjson.put(\"port\", Settings.getLocalPort());\n\t\tfor (Connection cons : broadConnections) {\n\t\t\tcons.writeMsg(json.toJSONString());\n\t\t}\n\t\treturn false;\n\t}",
"public void dispatchConnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientConnected(clientId);\n }\n }",
"protected void onConnect() {}",
"public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n readPreviousStoredDataAPI();\n Wearable.DataApi.addListener(mGoogleApiClient, this);\n }",
"@Override\n public void onConnectionSuspended(int cause) {\n\n Log.i(TAG, \"GoogleApiClient connection suspended\");\n }",
"private synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(ActivityRecognition.API)\n .build();\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n Log.i(TAG, \"Connected to GoogleApiClient\");\n\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }",
"private void startCall() {\n // If firebase isn't auth don't call\n if (mUser == null) return;\n setupLocalVideo();\n joinChannel();\n }",
"private void broadcastReadyAction() {\n Log.d(TAG, \"broadcastReadyAction start\");\n final Intent intent = new Intent();\n intent.setAction(BeaconsMonitoringService.SERVICE_READY_ACTION);\n getBaseContext().sendBroadcast(intent);\n Log.d(TAG, \"broadcastReadyAction end\");\n }",
"@Override\n public void opponentSurrender(int id) {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyOpponentSurrender(id);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending opponent surrender error\");\n }\n }",
"private void syncWithServer() {\n if (!mIsActivityResumedFromSleep) {\n LogHelper\n .log(TAG, \"Activity is not resuming from sleep. So service initialization will handle xmpp login.\");\n return;\n }\n RobotCommandServiceManager.loginXmppIfRequired(getApplicationContext());\n }",
"void notifyConnected(MessageSnapshot snapshot);",
"public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}",
"abstract void onConnect();",
"private void initializeGoogleApiClient() {\n\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n\n }",
"@Override\n\tprotected void onResume() {\n\n\t\tactivityVisible = true;\n\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tLocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver(testHarnessUIController,\n\t\t\t\t\tTestHarnessService.IF_PROCESS_COMMAND);\n\t\t}\n\t\tsuper.onResume();\n\n\t\tif (showConnectionDialogOnResume) {\n\t\t\tshowConnectionDialogOnResume = false;\n\t\t\tif (this.connectionDialog != null && !this.connectionDialog.isVisible()) {\n\t\t\t\tconnectionDialog.show(getSupportFragmentManager(), \"ConnectionDialog\");\n\t\t\t}\n\t\t}\n\n\t\tif (dismissConnectionDialogOnResume) {\n\t\t\tdismissConnectionDialogOnResume = false;\n\t\t\tif (this.connectionDialog != null && this.connectionDialog.isVisible()) {\n\t\t\t\tconnectionDialog.dismiss();\n\t\t\t}\n\t\t\tconnectionDialog = null;\n\t\t}\n\t}",
"protected synchronized void buildGoogleApiClient() {\n try {\n System.out.println(\"In GOOGLE API CLIENT\");\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n mGoogleApiClient.connect();\n createLocationRequest();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void firePeerConnected(ConnectionKey connectionKey);",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"@Override\n protected void onStart() {\n super.onStart();\n idsession = MyModel.getInstance().getIdsession();\n\n //Check if GooglePlayServices are available\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if(status == ConnectionResult.SUCCESS) {\n Log.d(\"GeoPost Location\", \"GooglePlayServices available\");\n } else {\n Log.d(\"GeoPost Location\", \"GooglePlayServices UNAVAILABLE\");\n if(googleApiAvailability.isUserResolvableError(status)) {\n Log.d(\"GeoPost Location\", \"Ask the user to fix the problem\");\n //If the user accepts to install the google play services,\n //a new app will open. When the user gets back to this activity,\n //the onStart method is invoked again.\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n } else {\n Log.d(\"GeoPost Location\", \"The problem cannot be fixed\");\n }\n }\n\n // Instantiate and connect GoogleAPIClient.\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n mGoogleApiClient.connect();\n }",
"private void buildApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addApi(Awareness.API)\n .addConnectionCallbacks(this)\n .build();\n mGoogleApiClient.connect();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n client = new GoogleApiClient.Builder(this)\n .addApi(LocationServices.API).addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n client.connect();\n }",
"private void buildGoogleApiClient() {\n this.mGoogleApiClient = new GoogleApiClient.Builder(context)\n //.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(LocationServices.API)\n .build();\n }",
"@Override\n\t\t\tpublic void onMessage(Connect connect, MessageEvent event){\n\t\t\t\tif(!event.getChannel().equalsIgnoreCase(\"AdminChat\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Get the message */\n\t\t\t\tString message = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tmessage = event.getMessageAsString();\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t/* Something went wrong, don't broadcast */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Broadcast it! */\n\t\t\t\tfor(Player player : plugin.getServer().getOnlinePlayers()){\n\t\t\t\t\tif(player.hasPermission(\"adminchat.use\")) player.sendMessage(message);\n\t\t\t\t}\n\t\t\t}",
"void onConnect();",
"@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }",
"public void executeBot(){\n if(botSignal){\n if(bot != null){\n bot.execute();\n }\n }\n botSignal=false;\n }",
"void onIceConnectionChange(boolean connected);",
"protected synchronized void buildGoogleApiClient() {\r\n googleApiClient = new GoogleApiClient.Builder(this)\r\n .addConnectionCallbacks(this)\r\n .addOnConnectionFailedListener(this)\r\n .addApi(LocationServices.API)\r\n .build();\r\n }",
"protected synchronized void buildGoogleApiClient() {\n\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"@Override\n public void onPause() {\n Log.i(TAG, \"OnPause, remote LocationClient\");\n if (mLocationClient != null) {\n Log.i(TAG, \"before location client disconnect\");\n mLocationClient.disconnect();\n }\n }",
"protected void onRobotConnect (boolean bbUserNotify)\r\n\t{\r\n\t\tsetCOMStatus (true);\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"@Override\n protected void onPause() {\n super.onPause();\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n }",
"protected synchronized void buildGoogleApiClient() {\n //Confirms no instance of GoogleApiClient has been instantiated\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\r\n\r\n if (activeNetwork != null && activeNetwork.isConnectedOrConnecting()) {\r\n // Set the isConnect variable to true so the Activity doesn't register another\r\n // ConnectivityListener\r\n isConnected = true;\r\n\r\n // Dismiss the Snackbar\r\n mSnackBar.dismiss();\r\n\r\n // Immediately sync all recipe sources\r\n syncImmediately();\r\n\r\n // Unregister the ConnectivityListener\r\n unregisterConnectivityListener();\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(TAG,\"btnConnect OnClick()...\");\n\t\t\t\twhatIShouldChoose();\n\t\t\t}",
"public void c() {\n if (!b()) {\n this.p = true;\n if (this.b == null) {\n this.b = this.t.zza(this.n.getApplicationContext(), (com.google.android.gms.internal.zzqv.zza) new zzb(this));\n }\n this.s.sendMessageDelayed(this.s.obtainMessage(1), this.q);\n this.s.sendMessageDelayed(this.s.obtainMessage(2), this.r);\n }\n }",
"@Test public void connect_shouldAddConnectionCallbacks() throws Exception {\n new LostApiClientImpl(application, new LostApiClient.ConnectionCallbacks() {\n @Override public void onConnected() {\n // Connect second Lost client with new connection callbacks once the service has connected.\n new LostApiClientImpl(application, new TestConnectionCallbacks(),\n new LostClientManager(clock, handlerFactory)).connect();\n }\n\n @Override public void onConnectionSuspended() {\n }\n }, new LostClientManager(clock, handlerFactory)).connect();\n\n FusedLocationProviderApiImpl api =\n (FusedLocationProviderApiImpl) LocationServices.FusedLocationApi;\n\n // Verify both sets of connection callbacks have been stored in the service connection manager.\n assertThat(api.getServiceConnectionManager().getConnectionCallbacks()).hasSize(2);\n }",
"public void fireInteraction() {\n Callback callback = this.mCallback;\n if (callback != null) {\n callback.onInteraction();\n }\n }",
"protected abstract Result doInBackgroundConnected(Params... params);",
"@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }",
"@Override\n public void onConnected(Bundle arg0) {\n\n Toast.makeText(getContext(),\"Connected\",Toast.LENGTH_LONG);\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this) //En este caso, necesitamos la api de google para recoger nuestra ubicacion\n .addOnConnectionFailedListener(this) // junto con la api FusedLocationProviderApi.\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"@Override\n\t\tpublic void onConnected(Bundle arg0) {\n\t\t\tLocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, appLocationService);\n\t\t\tstartLocationUpdates();\n\t\t}",
"@Override\n protected void onResume() {\n super.onResume();\n if (connection.isOnline(this)) new LoadMeetsAsync().execute();\n fab_toolbar.hide();\n }",
"@Ignore(\"FIXME: fix exception\")\n @Test\n public void transient_publish_connected() throws AblyException {\n AblyRealtime pubAbly = null, subAbly = null;\n String channelName = \"transient_publish_connected_\" + testParams.name;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n subAbly = new AblyRealtime(opts);\n\n /* wait until connected */\n new ConnectionWaiter(subAbly.connection).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", subAbly.connection.state, ConnectionState.connected);\n\n /* create a channel and subscribe */\n final Channel subChannel = subAbly.channels.get(channelName);\n Helpers.MessageWaiter messageWaiter = new Helpers.MessageWaiter(subChannel);\n new ChannelWaiter(subChannel).waitFor(ChannelState.attached);\n\n pubAbly = new AblyRealtime(opts);\n new ConnectionWaiter(pubAbly.connection).waitFor(ConnectionState.connected);\n Helpers.CompletionWaiter completionWaiter = new Helpers.CompletionWaiter();\n final Channel pubChannel = pubAbly.channels.get(channelName);\n pubChannel.publish(\"Lorem\", \"Ipsum!\", completionWaiter);\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n ErrorInfo errorInfo = completionWaiter.waitFor();\n assertEquals(\"Verify channel remains in initialized state\", pubChannel.state, ChannelState.initialized);\n\n messageWaiter.waitFor(1);\n assertEquals(\"Verify expected message received\", messageWaiter.receivedMessages.get(0).name, \"Lorem\");\n } finally {\n if(pubAbly != null) {\n pubAbly.close();\n }\n if(subAbly != null) {\n subAbly.close();\n }\n }\n }",
"protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API).build();\n }",
"public void onConnect()\n\t{\n\t\tString welcomeMessage = \"Hello! My name is BreenBot. Here's a list of things I can do for you:\";\n\n\t\tsendMessageAndAppend(this.channel, welcomeMessage);\n\n\t\tsendHelpOperations();\n\n\t\tsendMessageAndAppend(this.channel, \"Please use !help to get this list of operations again.\");\n\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tint id = v.getId();\n\t\t\n\t\tif(id==R.id.connectbutton){\n\t\t\t/*I need to test the connection with the ip address*/\n\t\t\t/*for now ill just test the socket connection open and close\n\t\t\t * if it is a success ill start the game activity\n\t\t\t * if it is a fail then ill toast message saying try again\n\t\t\t */\n\t\t\tLog.d(null, \"connectbutton pushed\");\n\t\t\ttestConnection();\n\t\t\t\n\t\t}\n\t\telse if(id==R.id.startbutton){\n\t\t\tif(connection==true)\n\t\t\t\tstartGame(this,MainActivity.class);\n\t\t\telse\n\t\t\t\tToast.makeText(getApplicationContext(), \"Incorrect ip address try again\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\t\t\n\t}"
] | [
"0.63107663",
"0.6188559",
"0.61451006",
"0.6077759",
"0.5998079",
"0.59758306",
"0.59465134",
"0.58842874",
"0.56607395",
"0.562781",
"0.5621587",
"0.55863047",
"0.55820674",
"0.5524278",
"0.5502265",
"0.5498566",
"0.54894817",
"0.54894817",
"0.5478921",
"0.54467976",
"0.54155916",
"0.54117984",
"0.5401912",
"0.5372959",
"0.5346663",
"0.53341603",
"0.53269845",
"0.53020906",
"0.5276914",
"0.5272913",
"0.5254756",
"0.52433854",
"0.5239703",
"0.52238226",
"0.52226543",
"0.5198271",
"0.5195972",
"0.51855755",
"0.51846164",
"0.51729226",
"0.516672",
"0.51649594",
"0.51455855",
"0.5135272",
"0.5130377",
"0.51132613",
"0.5103473",
"0.5102541",
"0.5102101",
"0.5091886",
"0.50879884",
"0.5078079",
"0.5071913",
"0.5059878",
"0.50493693",
"0.5048661",
"0.503352",
"0.5033029",
"0.50246453",
"0.5023984",
"0.50234294",
"0.5014011",
"0.50069255",
"0.5006047",
"0.50049835",
"0.49902102",
"0.49814647",
"0.49674556",
"0.4965814",
"0.49400887",
"0.49355185",
"0.49273443",
"0.49227548",
"0.49216145",
"0.49211597",
"0.4919118",
"0.49111587",
"0.49087197",
"0.49066603",
"0.49064615",
"0.49054515",
"0.49042794",
"0.4902923",
"0.49022117",
"0.49005964",
"0.48832953",
"0.4882787",
"0.48802996",
"0.48769245",
"0.48716015",
"0.48673713",
"0.4859585",
"0.48587325",
"0.4854919",
"0.48540857",
"0.48474237",
"0.48451066",
"0.48379043",
"0.48342142",
"0.48338813"
] | 0.57169443 | 8 |
Subscribes to messages from nearby devices and updates the UI if the subscription either fails or TTLs. | private void subscribe() {
Log.i(TAG, "Subscribing");
mNearbyDevicesArrayAdapter.clear();
SubscribeOptions options = new SubscribeOptions.Builder()
.setStrategy(PUB_SUB_STRATEGY)
.setCallback(new SubscribeCallback() {
@Override
public void onExpired() {
super.onExpired();
Log.i(TAG, "No longer subscribing");
runOnUiThread(new Runnable() {
@Override
public void run() {
mSubscribeSwitch.setChecked(false);
}
});
}
}).build();
Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)
.setResultCallback(new ResultCallback<Status>() {
@Override
public void onResult(@NonNull Status status) {
if (status.isSuccess()) {
Log.i(TAG, "Subscribed successfully.");
} else {
logAndShowSnackbar("Could not subscribe, status = " + status);
mSubscribeSwitch.setChecked(false);
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void subscribe() {\r\n\r\n OnUpdatePlayerSubscription subscription = OnUpdatePlayerSubscription.builder().build();\r\n subscriptionWatcher = awsAppSyncClient.subscribe(subscription);\r\n subscriptionWatcher.execute(subCallback);\r\n }",
"private void subscribeToScanSubscription() {\n mScanSubscription = BluetoothConnection.getBleClient(this).scanBleDevices(\n new ScanSettings.Builder()\n .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)\n .build(),\n\n new ScanFilter.Builder()\n .setServiceUuid(new ParcelUuid(BLUETOOTH_SERVICE_UUID))\n .build()\n )\n .subscribe(\n scanResult -> {\n // Process scan result here.\n RxBleDevice rxBleDevice = scanResult.getBleDevice();\n\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(() -> {\n if(!mBtDeviceAddress.contains(rxBleDevice.getMacAddress())) {\n CustomLogger.log(\"MainActivity: mLeScanCallback: Discovered device\" + rxBleDevice.getName());\n mBtDeviceObjectList.add(new BtDeviceObject(rxBleDevice, new Date().getTime()));\n mBtDeviceAddress.add(rxBleDevice.getMacAddress());\n mDeviceListAdapter.notifyDataSetChanged();\n } else {\n int indexOfBtDevice = mBtDeviceAddress.indexOf(rxBleDevice.getMacAddress());\n if(indexOfBtDevice != -1) {\n mBtDeviceObjectList.get(indexOfBtDevice).timeSinceLastUpdate = new Date().getTime();\n }\n }\n }\n );\n\n\n },\n throwable -> {\n // Handle an error here.\n CustomLogger.log(\"MainActivity: subscribeToScanSubscription: Failed to subscribe. throwable \" + throwable.getMessage(), 'e');\n\n }\n );\n }",
"private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }",
"private void handleEarlySubscribeReceived()\n {\n for(Jid from : earlySubscriptions.keySet())\n {\n handleSubscribeReceived(from, earlySubscriptions.get(from));\n }\n\n earlySubscriptions.clear();\n }",
"public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get subscriptions : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}",
"@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }",
"private void subscribe(final CallbackContext callbackContext)\n {\n this.subscriber = callbackContext;\n checkFirstRunEvent(this.cordova.getActivity().getApplicationContext());\n tryToConsumeEvent();\n }",
"public void Subscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Socket requestSocket = null;\n ObjectOutputStream out = null; // Gets and sends streams\n ObjectInputStream in = null;\n\n try {\n Client client = new Client();\n client.brokers = Subscriber.this.brokers;\n\n subscribedLists.add(busLineID);\n subscribedThreads.put(busLineID, client);\n\n int hash = HashTopic(busLineID);\n\n int no = FindBroker(hash);\n\n requestSocket = connectWithTimeout(no, TIMEOUT);\n\n subscribedSockets.put(busLineID, requestSocket);\n\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n String s = in.readUTF();\n\n out.writeUTF(\"subscriber\");\n\n out.flush();\n\n s = in.readUTF();\n\n out.writeUTF(\"subscribe\");\n\n out.flush();\n\n String msg = String.valueOf(busLineID);\n out.writeUTF(msg);\n out.flush();\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 4;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n\n while (true) {\n s = in.readUTF();\n visualizeData(s);\n\n message = MapsActivity.mainHandler.obtainMessage();\n message.what = 5;\n message.obj = s;\n\n MapsActivity.mainHandler.sendMessage(message);\n }\n } catch (SocketTimeoutException ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 8;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n subscribedLists.remove(busLineID);\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n } catch (Exception ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 7;\n message.obj = ex.toString();\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n }\n }",
"void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);",
"void subscribe();",
"@Override // com.oculus.deviceconfigclient.DeviceConfigCallback\n public void onSuccess() {\n DeviceConfigHelper.sHasSubscribed.set(true);\n DeviceConfigHelper.sDidSubscribeComplete.set(true);\n while (DeviceConfigHelper.sOnSubscribeCompleteCallbacks.peek() != null) {\n ((DeviceConfigHelperSubscribeCompletedCallback) DeviceConfigHelper.sOnSubscribeCompleteCallbacks.remove()).call();\n }\n }",
"public void subscribe() {\n mEventBus.subscribe(NetResponseProcessingCompletedEvent.CLASS_NAME, this);\n mEventBus.subscribe(FailureResponseDTO.CLASS_NAME, this);\n }",
"private void subscribeHandler(MqttSubscribeMessage subscribe) {\n\n final int messageId = subscribe.messageId();\n LOG.info(\"SUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_SUBSCRIBE\n\n List<AmqpTopicSubscription> topicSubscriptions =\n subscribe.topicSubscriptions().stream().map(topicSubscription -> {\n return new AmqpTopicSubscription(topicSubscription.topicName(), topicSubscription.qualityOfService());\n }).collect(Collectors.toList());\n\n AmqpSubscribeMessage amqpSubscribeMessage =\n new AmqpSubscribeMessage(this.mqttEndpoint.clientIdentifier(),\n topicSubscriptions);\n\n this.ssEndpoint.sendSubscribe(amqpSubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n\n List<MqttQoS> grantedQoSLevels = null;\n if (delivery.getRemoteState() == Accepted.getInstance()) {\n\n // QoS levels requested are granted\n grantedQoSLevels = amqpSubscribeMessage.topicSubscriptions().stream().map(topicSubscription -> {\n return topicSubscription.qos();\n }).collect(Collectors.toList());\n\n // add accepted topic subscriptions to the local collection\n amqpSubscribeMessage.topicSubscriptions().stream().forEach(amqpTopicSubscription -> {\n this.grantedQoSLevels.put(amqpTopicSubscription.topic(), amqpTopicSubscription.qos());\n });\n\n } else {\n\n // failure for all QoS levels requested\n grantedQoSLevels = new ArrayList<>(Collections.nCopies(amqpSubscribeMessage.topicSubscriptions().size(), MqttQoS.FAILURE));\n }\n\n this.mqttEndpoint.subscribeAcknowledge(messageId, grantedQoSLevels);\n\n LOG.info(\"SUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }",
"private Subscriber<BluetoothDevice> prepareConnectionSubscriber() {\n Subscriber<BluetoothDevice> subscriber = new Subscriber<BluetoothDevice>() {\n @Override\n public void onCompleted() {\n mProgressDialog.dismiss();\n finish();\n }\n\n @Override\n public void onError(Throwable e) {\n mProgressDialog.dismiss();\n Toast.makeText(SearchDevicesActivity.this, R.string.error_unable_to_connect, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNext(BluetoothDevice device) {\n Log.d(BtApplication.TAG, \"Connection Subscriber: \" + device.getName());\n AppSettings.putDeviceMacAddress(device.getAddress());\n }\n };\n return subscriber;\n }",
"private void subscribeTopics(String token) throws IOException {\n GcmPubSub pubSub = GcmPubSub.getInstance(this);\n for (String topic : TOPICS) {\n pubSub.subscribe(token, \"/topics/\" + topic, null);\n }\n }",
"private void handleSubscribeReceived(final Jid fromID,\n final String displayName)\n {\n // run waiting for user response in different thread\n // as this seems to block the packet dispatch thread\n // and we don't receive anything till we unblock it\n new Thread(new Runnable() {\n public void run()\n {\n if (logger.isTraceEnabled())\n {\n logger.trace(\n fromID\n + \" wants to add you to its contact list\");\n }\n\n // buddy want to add you to its roster\n ContactJabberImpl srcContact\n = ssContactList.findContactById(fromID);\n\n Presence.Type responsePresenceType = null;\n\n if(srcContact == null)\n {\n srcContact = createVolatileContact(fromID, displayName);\n }\n else\n {\n if(srcContact.isPersistent())\n responsePresenceType = Presence.Type.subscribed;\n }\n\n if(responsePresenceType == null)\n {\n AuthorizationRequest req = new AuthorizationRequest();\n AuthorizationResponse response\n = handler.processAuthorisationRequest(\n req, srcContact);\n\n if(response != null)\n {\n if(response.getResponseCode()\n .equals(AuthorizationResponse.ACCEPT))\n {\n responsePresenceType\n = Presence.Type.subscribed;\n if (logger.isInfoEnabled())\n logger.info(\n \"Sending Accepted Subscription\");\n }\n else if(response.getResponseCode()\n .equals(AuthorizationResponse.REJECT))\n {\n responsePresenceType\n = Presence.Type.unsubscribed;\n if (logger.isInfoEnabled())\n logger.info(\n \"Sending Rejected Subscription\");\n }\n }\n }\n\n // subscription ignored\n if(responsePresenceType == null)\n return;\n\n Presence responsePacket = new Presence(\n responsePresenceType);\n\n responsePacket.setTo(fromID);\n try\n {\n parentProvider.getConnection().sendStanza(responsePacket);\n }\n catch (NotConnectedException | InterruptedException e)\n {\n logger.error(\"Could not send presence repsonse\", e);\n }\n }}).start();\n }",
"boolean shouldAutoSubscribe();",
"public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }",
"@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }",
"boolean hasSubscribe();",
"SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);",
"public final void subscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is already subscribed to this topic\");\r\n }\r\n beforeSubscribe(session);\r\n sessions.add(session);\r\n }",
"protected void onDiscoveryStarted() {\n logAndShowSnackbar(\"Subscription Started\");\n }",
"public void consumeNotifications() {\n\t\tif (!consumerTopics.contains(NOTIFICATION_TOPIC)) {\n\t\t\tconsumerTopics.add(NOTIFICATION_TOPIC);\n\t\t}\n\n\t\tif (logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"Consuming notification messages\");\n\t\t}\n\n\t\tstartPolling();\n\t}",
"private void listenVoiceCall() {\n final String username = MyAccount.getInstance().getName();\n final String topic = String.format(\"voice/%s\", username);\n new Subscriber(topic, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n String action = message.data.toString();\n switch (action) {\n case Constants.VOICE_REQUEST:\n onReceiveVoiceRequest(message);\n break;\n\n case Constants.VOICE_ACCEPT:\n hideCallingPane();\n onReceiveVoiceAccept(message);\n break;\n\n case Constants.VOICE_REJECT:\n hideCallingPane();\n onReceiveVoiceReject(message);\n break;\n\n case Constants.VOICE_QUIT:\n onReceiveVoiceQuit(message);\n\n }\n }\n })\n .listen();\n }",
"public void onSubscribe() {\n\n }",
"public void run() {\r\n\t\ttry {\r\n\t\t\tmqttConn.connect();\r\n\t\t\tubidotsMqtt.connect();\r\n\t\t} catch (KeyManagementException | NoSuchAlgorithmException | MqttException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tmqttConn.subscribe(subscribeTopic, 2);\r\n\t\tmqttConn.subscribe(subscribeTopic2, 2);\r\n\t\tubidotsMqtt.subscribe(valveTopic, 2);\r\n\t\t\r\n//\t\tubidotsApi.sendPitchValue((double)360);\r\n\r\n\t\tint count=0;\r\n\t\twhile(enable) {\r\n\t\t\tenable = true;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onSubscribe(Subscription subscription) {\n\t\tSystem.out.println(\"onSubscribe invoked\");\n\t\tsubscription.request(Long.MAX_VALUE);\n\t}",
"private void notifyRegisteredDevices(long timestamp, byte adjustReason) {\n if (mRegisteredDevices.isEmpty()) {\n Log.i(TAG, \"No subscribers registered\");\n return;\n }\n byte[] exactTime = TimeProfile.getExactTime(timestamp, adjustReason);\n\n Log.i(TAG, \"Sending update to \" + mRegisteredDevices.size() + \" subscribers\");\n for (BluetoothDevice device : mRegisteredDevices) {\n BluetoothGattCharacteristic timeCharacteristic = mBluetoothGattServer\n .getService(TimeProfile.TIME_SERVICE)\n .getCharacteristic(TimeProfile.CURRENT_TIME);\n timeCharacteristic.setValue(exactTime);\n mBluetoothGattServer.notifyCharacteristicChanged(device, timeCharacteristic, false);\n }\n }",
"@Override\n public void subscribe() {\n registerLocalObserver();\n\n loadVideos();\n }",
"protected void onDiscoveryFailed() {\n logAndShowSnackbar(\"Could not subscribe.\");\n }",
"private void subscribeMqttTopic(String t){\n\n String topic = \"secureIoT\" + t;\n\n int qos = 1;\n try {\n IMqttToken subToken = mqttClient.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n // subscription successful\n\n mqttClient.setCallback(new MqttCallback() {\n @Override\n public void connectionLost(Throwable cause) {\n Log.d(LOG_TAG, \"Connection Lost\");\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n\n Log.d(LOG_TAG, message.toString());\n handleMessage(message);\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n Log.d(LOG_TAG, \"Delivery Complete\");\n }\n });\n\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // The subscription could not be performed, maybe the user was not\n // authorized to subscribe on the specified topic e.g. using wildcards\n }\n\n\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n protected void onSubscribe() {\n Subscription s = subscription;\n Disposable d = Disposable.from(s);\n \n if (!TerminalAtomics.set(this, DISCONNECT, d)) {\n done = true;\n return;\n }\n \n connected = true;\n s.request(Flow.defaultBufferSize());\n }",
"private void requestSubscribe(LinkedHashMap<String, RequestedQoS> topics) {\n if (topics.isEmpty() || this.client == null || !this.client.isConnected()) {\n // nothing to do\n return;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Request Subscribe to: \" + topics);\n }\n\n this.client\n .subscribe(topics.entrySet()\n .stream().collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().toInteger())))\n .onComplete(result -> subscribeSent(result, topics));\n }",
"private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }",
"public abstract boolean isSubscribesEnabled();",
"public void setSubscribeTimeout(int timeout) {\n super.setSubscribeTimeout(timeout);\n }",
"private void isSubscribed(final String communityId, String uid) {\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference()\n .child(\"Subscribe\")\n .child(uid)\n .child(communityId);\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n subscribe.setText(\"Unsubscribe\");\n } else {\n subscribe.setText(\"Subscribe\");\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }",
"messages.Facademessages.Subscribe getSubscribe();",
"public void subscribe(final Topic topic) {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20){\r\n try {\r\n if(server.addSubscriber((PubSubAgent.this.agentID), topic)){\r\n subscriberTopics.add(topic);\r\n System.out.print(\"Subscribed.\");\r\n return;\r\n }\r\n } catch (RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(1200);\r\n } catch (InterruptedException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't subscribe to \" + topic.getTopicID() + \" - \" + topic.getTopicName());\r\n }\r\n }).start();\r\n }",
"List<ClientTopicCouple> listAllSubscriptions();",
"void subscribe(String id);",
"void initSubscribe(FlexID deviceID) {\n Logger.getLogger(TAG).log(Level.INFO, \"Start: initSubscribe()\");\n\n subscribe(MessageType.JOIN_ACK.getTopicWithDeviceID(deviceID));\n subscribe(MessageType.LEAVE_ACK.getTopicWithDeviceID(deviceID));\n subscribe(MessageType.STATUS_ACK.getTopicWithDeviceID(deviceID));\n subscribe(MessageType.REGISTER_ACK.getTopicWithDeviceID(deviceID));\n subscribe(MessageType.UPDATE_ACK.getTopicWithDeviceID(deviceID));\n subscribe(MessageType.MAP_UPDATE_ACK.getTopicWithDeviceID(deviceID));\n\n Logger.getLogger(TAG).log(Level.INFO, \"Finish: initSubscribe()\");\n }",
"@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }",
"void startChecking()\n {\n UnitModel model = new UnitModel();\n model.UNIT_ID = Globals.unitId;\n Observable<RoomMeetingsResponse> data = retrofitInterface.roomreservations(model);\n\n subscription = data\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<RoomMeetingsResponse>() {\n @Override\n public void onCompleted() {\n\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n\n }\n\n @Override\n public void onNext(RoomMeetingsResponse serviceResponse) {\n //sweetAlertDialog.hide();\n progress_rel.setVisibility(View.GONE);\n OngoingReactAsync(serviceResponse);\n }\n });\n }",
"private void subscribeSent(AsyncResult<Integer> result, LinkedHashMap<String, RequestedQoS> topics) {\n if (result.failed() || result.result() == null) {\n // failed\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.UNSUBSCRIBED, null);\n }\n } else {\n // record request\n for (String topic : topics.keySet()) {\n notifySubscriptionState(topic, SubscriptionState.SUBSCRIBING, null);\n }\n this.pendingSubscribes.put(result.result(), topics);\n }\n }",
"@Override\n public void onSubscribe(String channel, int subscribedChannels) {\n System.out.println(\"Client is Subscribed to channel : \"+ channel);\n }",
"public String subscribe() throws SaaSApplicationException,\n IllegalArgumentException, IOException {\n\n String subscriptionId = model.getSubscription().getSubscriptionId();\n SubscriptionStatus status;\n String outcome = null;\n if (!isServiceAccessible(model.getService().getKey())) {\n redirectToAccessDeniedPage();\n return BaseBean.MARKETPLACE_ACCESS_DENY_PAGE;\n }\n try {\n rewriteParametersAndUdas();\n VOSubscription rc = getSubscriptionService().subscribeToService(\n model.getSubscription(), model.getService().getVO(),\n Collections.emptyList(),\n model.getSelectedPaymentInfo(),\n model.getSelectedBillingContact(),\n subscriptionsHelper.getVoUdaFromUdaRows(\n getModel().getSubscriptionUdaRows()));\n model.setDirty(false);\n menuBean.resetMenuVisibility();\n if (rc == null) {\n ui.handleProgress();\n outcome = OUTCOME_PROCESS;\n } else {\n status = rc.getStatus();\n getSessionBean()\n .setSelectedSubscriptionId(rc.getSubscriptionId());\n getSessionBean().setSelectedSubscriptionKey(rc.getKey());\n\n ui.handle(\n status.isPending() ? INFO_SUBSCRIPTION_ASYNC_CREATED\n : INFO_SUBSCRIPTION_CREATED,\n subscriptionId, rc.getSuccessInfo());\n\n // help the navigation to highlight the correct navigation item\n menuBean.setCurrentPageLink(MenuBean.LINK_SUBSCRIPTION_USERS);\n\n outcome = OUTCOME_SUCCESS;\n }\n\n conversation.end();\n\n } catch (NonUniqueBusinessKeyException e) {\n // if subscription name already existed redirect to page\n // confirmation with error message\n ui.handleError(null, SUBSCRIPTION_NAME_ALREADY_EXISTS,\n new Object[] { subscriptionId });\n outcome = SUBSCRIPTION_CONFIRMATION_PAGE;\n } catch (ObjectNotFoundException e) {\n // if service has been deleted in the meantime, give the\n // inaccessible error message\n if (e.getDomainObjectClassEnum()\n .equals(DomainObjectException.ClassEnum.SERVICE)) {\n ui.handleError(null, ERROR_SERVICE_INACCESSIBLE);\n } else {\n ConcurrentModificationException ex = new ConcurrentModificationException();\n ex.setMessageKey(ERROR_SERVICE_CHANGED);\n ExceptionHandler.execute(ex);\n }\n }\n\n return outcome;\n }",
"private void sendFirebaseLoginSubscribeSuccess() {\n String SUBSCRIPTION_SUBSCRIBED = \"subscribed\";\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_STATUS_KEY, SUBSCRIPTION_SUBSCRIBED);\n mFireBaseAnalytics.setUserProperty(LOGIN_STATUS_KEY, LOGIN_STATUS_LOGGED_IN);\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_ID, getActiveSubscriptionId());\n mFireBaseAnalytics.setUserProperty(SUBSCRIPTION_PLAN_NAME, getActiveSubscriptionPlanName());\n }",
"@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n String topic = uniqueId+\"/\"+chipid+\"/addCommand\";\n int qos = 1;\n try {\n IMqttToken subToken = client.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n MqttCallback mqttCallback = new MqttCallback() {\n\n @Override\n public void connectionLost(Throwable cause) {\n //COMMAND FAIL\n imgCommandPopup.setVisibility(View.INVISIBLE);\n textWaiting.setVisibility(View.INVISIBLE);\n // failed.setVisibility(View.VISIBLE);\n // commandStatus(textCommandPopup,getResources().getString(R.string.command_add_failed),fadePopup,CommandPopup);\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n espResponse = message.toString();\n // Toast.makeText(TempCom.this, espResponse, Toast.LENGTH_SHORT).show();\n client.disconnect();\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {}\n };\n client.setCallback(mqttCallback);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n //COMMAND FAIL\n imgCommandPopup.setVisibility(View.INVISIBLE);\n textWaiting.setVisibility(View.INVISIBLE);\n failed.setVisibility(View.VISIBLE);\n commandStatus(textCommandPopup,getResources().getString(R.string.command_add_failed),fadePopup,CommandPopup);\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }",
"private void smsRetrieverCall() {\n SmsRetrieverClient client = SmsRetriever.getClient(this /* context */);\n\n // Starts SmsRetriever, which waits for ONE matching SMS message until timeout\n // (5 minutes). The matching SMS message will be sent via a Broadcast Intent with\n // action SmsRetriever#SMS_RETRIEVED_ACTION.\n Task<Void> task = client.startSmsRetriever();\n\n // Listen for success/failure of the start Task. If in a background thread, this\n // can be made blocking using Tasks.await(task, [timeout]);\n task.addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n // Successfully started retriever, expect broadcast intent\n Log.d(\"TAG\", \"smsRetrieverCall SUCCESS\");\n }\n });\n\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Failed to start retriever, inspect Exception for more details\n // ...\n Log.d(\"TAG\", \"smsRetrieverCall FAIL\");\n result.setText(\"Retriever start Fail\");\n }\n });\n }",
"void setAutoSubscribe(boolean autoSubscribe);",
"public void run() {\n\t\ttry {\n\t\t\tfor (;;) {\n\t\t\t\t/**\n\t\t\t\t * Sends notifications at timeout intervals every timeout\n\t\t\t\t */\n\t\t\t\tThread.sleep(NOTIFICATION_TIMEOUT);\n\n\t\t\t\t/** Do nothing if the session map is not initialized */\n\t\t\t\tif (EventWebSocketAdapter_R.sessions == null) {\n\t\t\t\t\tlogger.info(\"The sessions map is 'null ... do nothing.\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tlogger.info(\"The sessions map length is '%d'\\n\", EventWebSocketAdapter_R.sessions.size());\n\n\t\t\t\t/** Do nothing if there is no connection */\n\t\t\t\tif (EventWebSocketAdapter_R.sessions.size() == 0) {\n\t\t\t\t\tlogger.info(\"The sessions map length is '%d' ... do nothing.\\n\",\n\t\t\t\t\t\t\tEventWebSocketAdapter_R.sessions.size());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/** Sends notifications to all connected clients */\n\t\t\t\tfor (Map.Entry<Integer, Session> entry : EventWebSocketAdapter_R.sessions.entrySet()) {\n\t\t\t\t\tentry.getValue().getRemote().sendString(String.format(\"'%tT' from server '%s'\",\n\t\t\t\t\t\t\tCalendar.getInstance().getTime(), entry.getValue().getLocalAddress()));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Throwable T) {\n\t\t\t/** Trace error */\n\t\t\tlogger.catching(T);\n\t\t} finally {\n\t\t\t/** Trace info */\n\t\t\tlogger.info(String.format(\"Thread '%s' shutdown ... \\n\", Thread.currentThread().getName()));\n\t\t}\n\t}",
"public void listSubscribedTopics() {\r\n for (Topic topic : subscriberTopics){\r\n System.out.print(topic);\r\n }\r\n }",
"public static void getWatch() {\n for ( String nodeId : getNodes() ){\n Wearable.MessageApi.sendMessage(\n mGoogleApiClient, nodeId, \"GET_WATCH\", new byte[0]).setResultCallback(\n new ResultCallback<MessageApi.SendMessageResult>() {\n @Override\n public void onResult(MessageApi.SendMessageResult sendMessageResult) {\n if (!sendMessageResult.getStatus().isSuccess()) {\n Log.i(\"MessageApi\", \"Failed to send message with status code: \"\n + sendMessageResult.getStatus().getStatusCode());\n } else if (sendMessageResult.getStatus().isSuccess()) {\n Log.i(\"MessageApi\", \"onResult successful!\");\n }\n }\n }\n );\n }\n }",
"@Override\n\tpublic SuccessMessage subscribe(Integer themeId, Integer userId) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}",
"@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"@Subscribe(threadMode = ThreadMode.MAIN)\n public void onMessageEvent(ReceviceMessageEvent event) {\n if (event.getEventName().equalsIgnoreCase(SocketManager.EVENT_MUTE)) {\n try {\n JSONObject objects = new JSONObject(event.getObjectsArray()[0].toString());\n\n String err = objects.getString(\"err\");\n if (err.equalsIgnoreCase(\"1\")) {\n mActivity.hideProgressDialog();\n }\n\n String from = objects.getString(\"from\");\n String to;\n if (objects.has(\"to\")) {\n to = objects.getString(\"to\");\n } else {\n to = objects.getString(\"convId\");\n }\n\n if (from.equalsIgnoreCase(mCurrentUserId) && to.equalsIgnoreCase(mLastMuteUserId)) {\n mActivity.hideProgressDialog();\n listener.onMuteDialogClosed(true);\n getDialog().dismiss();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void onNetworkConnectionChanged(boolean isConnected) {\n showSnack(isConnected);\n }",
"@Override\n public void onNetworkConnectionChanged(boolean isConnected) {\n showSnack(isConnected);\n }",
"@Override\n\tpublic PushSubscription subscribeForPush(FactTreeMemento pivotTree,\n\t\t\tFactID pivotID, UUID clientGuid) {\n\t\treturn null;\n\t}",
"@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n\n // If return is a DataList or Data, parse it with the query\n if (serviceData.getClientActionList() == null || serviceData.getClientActionList().isEmpty()) {\n serviceData = queryService.onSubscribeData(query, address, serviceData, parameterMap);\n } else {\n // Add address to client action list\n for (ClientAction action : serviceData.getClientActionList()) {\n action.setAddress(getAddress());\n }\n }\n\n // Broadcast data\n broadcastService.broadcastMessageToUID(address.getSession(), serviceData.getClientActionList());\n\n // Log sent message\n getLogger().log(QueueListener.class, Level.DEBUG,\n \"New message received from subscription to address {0}. Content: {1}\",\n getAddress().toString(), message.toString());\n } catch (AWException exc) {\n broadcastService.sendErrorToUID(address.getSession(), exc.getTitle(), exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n } catch (Exception exc) {\n broadcastService.sendErrorToUID(address.getSession(), null, exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n }\n }",
"@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }",
"public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }",
"@Test\r\n\tpublic void aTestValidSubscribe() {\r\n\t\tbroker.subscribe(intSub);\r\n\t\tbroker.subscribe(unreadSub);\r\n\t\tbroker.subscribe(pIntSub);\r\n\t}",
"public void monitorFoundDevices() {\n //start a thread\n new Thread() {\n public void run() {\n //loop till mBeaconListAdapter has been skilled.\n while(mBeaconListAdapter != null) {\n try {\n //Since it will update UI, runOnUiThread is called here.\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < mBeaconListAdapter.getCount(); i++) {\n if (!mBleWrapper.checkDeviceConnection(mBeaconListAdapter.\n getDevice(i).getAddress()))\n mBeaconListAdapter.removeDevice(i);\n }\n }\n });\n\n Thread.sleep(MONITOR_DELAY_TIME_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }",
"public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;",
"static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}",
"public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }",
"protected final void registerEvents() {\n LogUtils.i(TAG, \"Register socket event\");\n if (disposables == null || disposables.isDisposed())\n disposables = new CompositeDisposable();\n Disposable socketEvent = RxSocket.getSocketEvent()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<SocketEvent>() {\n @Override\n public void accept(SocketEvent socketEvent) throws Exception {\n\n if (socketEvent == null || socketEvent.getEventType() != SocketEvent.EVENT_RECEIVE) {\n LogUtils.w(TAG, \"socket Event -------> null!\");\n return;\n }\n\n UserPreferences userPreferences = UserPreferences.getInstance();\n if (userPreferences.getCurrentFriendChat().equals(socketEvent.getMessage().getSenderId())) {\n //Yourself online in chat room\n LogUtils.w(TAG, \"socket Event ------->Yourself online in chat room\");\n return;\n }\n\n //Send broad cast to show notification panel if has new message from all friend if need\n if (socketEvent.getMessage() != null && socketEvent.getMessage().getMessageType() != null) {\n LogUtils.i(TAG, \"socket Event ------->Show notification on the SnackBar: \" + socketEvent.getMessage().getMessageType().intern());\n onShowNotification(socketEvent.getMessage());\n }\n\n }\n }, new Consumer<Throwable>() {\n @Override\n public void accept(Throwable throwable) throws Exception {\n LogUtils.e(TAG, \"throwable socket \" + throwable.getMessage());\n throwable.printStackTrace();\n }\n });\n\n disposables.add(socketEvent);\n }",
"@Override\r\n public void onConnected() {\r\n Log.d(TAG, \"onConnected: CALLED\");\r\n try {\r\n // Get a MediaController for the MediaSession.\r\n mMediaController =\r\n new MediaControllerCompat(mContext, mMediaBrowser.getSessionToken());\r\n mMediaController.registerCallback(mMediaControllerCallback);\r\n\r\n\r\n } catch (RemoteException e) {\r\n Log.d(TAG, String.format(\"onConnected: Problem: %s\", e.toString()));\r\n throw new RuntimeException(e);\r\n }\r\n\r\n mMediaBrowser.subscribe(mMediaBrowser.getRoot(), mMediaBrowserSubscriptionCallback);\r\n Log.d(TAG, \"onConnected: CALLED: subscribing to: \" + mMediaBrowser.getRoot());\r\n\r\n mMediaBrowserCallback.onMediaControllerConnected(mMediaController);\r\n }",
"@Scheduled(fixedRate=20000)\n\tpublic void generateMessages()\n\t{\t\t\n\t\tsynchronized (map_)\n\t\t{\n\t\t\tif (!map_.isEmpty())\n\t\t\t{\n\t\t\t\tint index = generateIndex(map_.size());\n\t\t\t\tint messageIdx = generateIndex(1000);\n\t\t\t\tString topic = topics_.get(index);\n\t\t\t\tBroadcaster b = map_.get(topic);\n\t\t\t\tUserDTO dto = dtoMap_.get(topic);\n\t\t\t\tdto.setAvailability(\"\" + messageIdx);\n\t\t\t\tString stringified;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstringified = mapper_.writeValueAsString(dto);\n\t\t\t\t\tSystem.out.println(\"broadcasting to topic \" + topic + \" message: \" + stringified);\n\t\t\t\t\tb.broadcast(stringified);\n\t\t\t\t} catch (JsonGenerationException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JsonMappingException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"publisher map was empty, skipping this time\");\n\t\t\t}\n\t\t}\n\t}",
"private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app\")\n .getReference(\"users/\"+user.getUid()+\"/subscriptions\");\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot dataSnapshot) {\n mSubscriptions.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Subscription subscription = snapshot.getValue(Subscription.class);\n\n savedSubs.add(subscription);\n mSubscriptions.add(subscription);\n }\n\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n // TODO\n }\n });\n }",
"@Override\r\n\tpublic void update(Observable o, Object data) {\r\n\t\t//Check if data is coming from Eclipse MQTT broker\r\n\t\tif(o.equals(mqttConn)) {\r\n\t\t\tif(((String[]) data)[0].equals(subscribeTopic)) {\r\n\t\t\t\tpd = DataUtil.jsonToPitchData(((String[]) data)[1], true);\r\n\t\t\t\t_Logger.info(\"Gateway device:\\nNew pitch reading received:\" + pd);\r\n\t\t\t\tubidotsApi.sendPitchValue((double) pd.getCurValue());\r\n\t\t\t\t\r\n\t\t\t\tif((pd.getCurValue() <= minPitch) && oneShot) {\r\n\t\t\t\t\tsmtpConn.sendMail(\"tampubolon.d@husky.neu.edu\", \"ALERT: Water Level\", \"Water level has fallen below the minimum!\");\r\n\t\t\t\t\toneShot = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(((String[]) data)[0].equals(subscribeTopic2)) {\r\n\t\t\t\tsd = DataUtil.jsonToSensorData(((String[]) data)[1], true);\r\n\t\t\t\t_Logger.info(\"Gateway device:\\nNew Temperature reading received\" + sd);\r\n\t\t\t\tubidotsApi.sendTempValue((double) sd.getCurValue());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//Check if data is coming from Ubidots MQTT broker\r\n\t\telse if(o.equals(ubidotsMqtt)) {\r\n\t\t\tint valveData = Integer.parseInt(((String[]) data)[1]);\r\n\t\t\tif(valveData != ledON) {\r\n\t\t\t\tledON = valveData;\r\n\t\t\t\tmqttConn.publish(publishTopic, 2, String.valueOf(ledON));\r\n\t\t\t\t\r\n\t\t\t\tif(ledON==1) {\r\n\t\t\t\t\tSystem.out.println(\"Turning ON Valve(LED)...\\n\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(ledON==0) {\r\n\t\t\t\t\toneShot = true;\r\n\t\t\t\t\tSystem.out.println(\"Turning OFF Valve(LED)...\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n public void onCompleted() {\n Log.i(TAG, \"subscribed to buyable items\");\r\n }",
"private void onUnavailable() {\n // TODO: broadcast\n }",
"private void publishChargingText() {\n chargeSampleList = chargingSampleViewModel.getAll();\n chargeSampleList.observeForever(chargeSamplesObserver);\n }",
"@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }",
"private void onReceiveChatMessages() {\n\n//\t\tL.debug(\"onReceiveChatMessages\");\n//\n//\t\t// called from NetworkChangeReceiver whenever the user is logged in\n//\t\t// will always be called whenever there is a change in network state,\n//\t\t// will always check if the app is connected to server,\n//\t\tXMPPConnection connection = XMPPLogic.getInstance().getConnection();\n//\n//\t\tif (connection == null || !connection.isConnected()) {\n//\t\t\tSQLiteHandler db = new SQLiteHandler(getApplicationContext());\n//\t\t\tdb.openToWrite();\n//\n//\t\t\t// db.updateBroadcasting(0);\n//\t\t\t// db.updateBroadcastTicker(0);\n//\n//\t\t\tAccount ac = new Account();\n//\t\t\tac.LogInChatAccount(db.getUsername(), db.getEncryptedPassword(), db.getEmail(), new OnXMPPConnectedListener() {\n//\n//\t\t\t\t@Override\n//\t\t\t\tpublic void onXMPPConnected(XMPPConnection con) {\n//\t\t\t\t\t\n//\t\t\t\t\t//addPacketListener(con);\n//\t\t\t\t}\n//\n//\t\t\t});\n//\n//\t\t\tdb.close();\n//\t\t} else {\n//\n//\t\t\t//addPacketListener(connection);\n//\n//\t\t}\n\t}",
"private void restartPullingTask() {\n try {\n Thread.sleep(15000);\n ensureOpenSubscription.apply();\n } catch (Exception ex) {\n if (ex instanceof SubscriptionInUseException || ex instanceof SubscriptionDoesNotExistExeption) {\n // another client has connected to the subscription or it has been deleted meanwhile - we cannot open it so we need to finish\n onCompletedNotification();\n return;\n }\n\n restartPullingTask();\n return;\n }\n//TODO: startPullingTask = startPullingDocs();\n startPullingDocs(); //TODO: delete me!\n }",
"public Subscription subscribeForDistributorDeliveries(ClockListener listener);",
"static void confirmSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_Subscribe_Event_C_en.valueOf(), response, null );\n }",
"@Override\n\t\tpublic void onSubscribe(Disposable d) {\n\t\t\tSystem.out.println(\"subscribe\");\n\t\t}",
"public void checkForExistingSubscription(boolean showErrorDialogIfSubscriptionExists) {\n if (currentActivity != null) {\n Bundle activeSubs;\n try {\n if (inAppBillingService != null) {\n //Log.d(TAG, \"InApp Billing Service is non-null\");\n\n //Log.d(TAG, \"Retrieving purchase data\");\n\n activeSubs = inAppBillingService.getPurchases(3,\n currentActivity.getPackageName(),\n \"subs\",\n null);\n ArrayList<String> subscribedItemList = activeSubs.getStringArrayList(\"INAPP_PURCHASE_DATA_LIST\");\n\n if (subscribedItemList != null && !subscribedItemList.isEmpty()) {\n boolean subscriptionExpired = true;\n for (int i = 0; i < subscribedItemList.size(); i++) {\n try {\n //Log.d(TAG, \"Examining existing subscription data\");\n InAppPurchaseData inAppPurchaseData = gson.fromJson(subscribedItemList.get(i),\n InAppPurchaseData.class);\n\n ArrayList<String> skuList = new ArrayList<>();\n skuList.add(inAppPurchaseData.getProductId());\n Bundle skuListBundle = new Bundle();\n skuListBundle.putStringArrayList(\"ITEM_ID_LIST\", skuList);\n Bundle skuListBundleResult = inAppBillingService.getSkuDetails(3,\n currentActivity.getPackageName(),\n \"subs\",\n skuListBundle);\n ArrayList<String> skuDetailsList =\n skuListBundleResult.getStringArrayList(\"DETAILS_LIST\");\n if (skuDetailsList != null && !skuDetailsList.isEmpty()) {\n SkuDetails skuDetails = gson.fromJson(skuDetailsList.get(0),\n SkuDetails.class);\n setExistingGooglePlaySubscriptionDescription(skuDetails.getTitle());\n\n setExistingGooglePlaySubscriptionPrice(skuDetails.getPrice());\n\n subscriptionExpired = existingSubscriptionExpired(inAppPurchaseData, skuDetails);\n }\n\n setExistingGooglePlaySubscriptionId(inAppPurchaseData.getProductId());\n\n if (inAppPurchaseData.isAutoRenewing() || !subscriptionExpired) {\n if (TextUtils.isEmpty(skuToPurchase) || skuToPurchase.equals(inAppPurchaseData.getProductId())) {\n setActiveSubscriptionReceipt(subscribedItemList.get(i));\n //Log.d(TAG, \"Restoring purchase for SKU: \" + skuToPurchase);\n } else {\n setActiveSubscriptionReceipt(null);\n if (!TextUtils.isEmpty(skuToPurchase)) {\n //Log.d(TAG, \"Making purchase for another subscription: \" + skuToPurchase);\n }\n }\n //Log.d(TAG, \"Set active subscription: \" + inAppPurchaseData.getProductId());\n\n //Log.d(TAG, \"Making restore purchase call with token: \" + inAppPurchaseData.getPurchaseToken());\n String restorePurchaseUrl = currentContext.getString(R.string.app_cms_restore_purchase_api_url,\n appCMSMain.getApiBaseUrl(),\n appCMSSite.getGist().getSiteInternalName());\n try {\n final String restoreSubscriptionReceipt = subscribedItemList.get(i);\n appCMSRestorePurchaseCall.call(apikey,\n restorePurchaseUrl,\n inAppPurchaseData.getPurchaseToken(),\n appCMSSite.getGist().getSiteInternalName(),\n (signInResponse) -> {\n //Log.d(TAG, \"Retrieved restore purchase call\");\n if (signInResponse == null || !TextUtils.isEmpty(signInResponse.getMessage())) {\n //Log.d(TAG, \"SignIn response is null or error response is non empty\");\n if (!isUserLoggedIn()) {\n if (signInResponse != null) {\n //Log.e(TAG, \"Received restore purchase call error: \" + signInResponse.getMessage());\n }\n if (showErrorDialogIfSubscriptionExists) {\n showEntitlementDialog(DialogType.EXISTING_SUBSCRIPTION,\n () -> {\n setRestoreSubscriptionReceipt(restoreSubscriptionReceipt);\n sendCloseOthersAction(null, true, false);\n launchType = LaunchType.INIT_SIGNUP;\n navigateToLoginPage(loginFromNavPage);\n });\n }\n }\n } else {\n //Log.d(TAG, \"Received a valid signin response\");\n if (isUserLoggedIn()) {\n //Log.d(TAG, \"User is logged in\");\n if (!TextUtils.isEmpty(getLoggedInUser()) &&\n !TextUtils.isEmpty(signInResponse.getUserId()) &&\n signInResponse.getUserId().equals(getLoggedInUser())) {\n //Log.d(TAG, \"User ID: \" + signInResponse.getUserId());\n setRefreshToken(signInResponse.getRefreshToken());\n setAuthToken(signInResponse.getAuthorizationToken());\n setLoggedInUser(signInResponse.getUserId());\n setLoggedInUserName(signInResponse.getName());\n setLoggedInUserEmail(signInResponse.getEmail());\n setIsUserSubscribed(signInResponse.isSubscribed());\n setUserAuthProviderName(signInResponse.getProvider());\n\n refreshSubscriptionData(() -> {\n\n }, true);\n } else if (showErrorDialogIfSubscriptionExists) {\n showEntitlementDialog(DialogType.EXISTING_SUBSCRIPTION_LOGOUT,\n this::logout);\n }\n } else {\n //Log.d(TAG, \"User is logged out\");\n if (showErrorDialogIfSubscriptionExists) {\n setRefreshToken(signInResponse.getRefreshToken());\n setAuthToken(signInResponse.getAuthorizationToken());\n setLoggedInUser(signInResponse.getUserId());\n sendSignInEmailFirebase();\n setLoggedInUserName(signInResponse.getName());\n setLoggedInUserEmail(signInResponse.getEmail());\n setIsUserSubscribed(signInResponse.isSubscribed());\n setUserAuthProviderName(signInResponse.getProvider());\n\n refreshSubscriptionData(() -> {\n\n }, true);\n\n if (showErrorDialogIfSubscriptionExists) {\n finalizeLogin(false,\n signInResponse.isSubscribed(),\n false,\n false);\n }\n }\n }\n }\n });\n } catch (Exception e) {\n //Log.d(TAG, \"Error making restore purchase request: \" + e.getMessage());\n if (showErrorDialogIfSubscriptionExists) {\n showEntitlementDialog(DialogType.EXISTING_SUBSCRIPTION,\n () -> {\n sendCloseOthersAction(null, true, false);\n navigateToLoginPage(loginFromNavPage);\n });\n }\n }\n } else {\n setActiveSubscriptionReceipt(null);\n }\n\n if (subscriptionExpired) {\n sendSubscriptionCancellation();\n }\n\n } catch (Exception e) {\n //Log.e(TAG, \"Error parsing Google Play subscription data: \" + e.toString());\n }\n }\n\n setExistingGooglePlaySubscriptionSuspended(subscriptionExpired);\n }\n }\n } catch (RemoteException e) {\n\n //Log.e(TAG, \"Failed to purchase item with sku: \"\n// + getActiveSubscriptionSku());\n }\n }\n // setSelectedSubscriptionPlan(false);\n }",
"private void broadcast(String msg) {\n\t\tIterator i = onlineUsers.entrySet().iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry p = (Map.Entry)i.next();\n\t\t\tUser u = (User)p.getValue();\n\t\t\t\n\t\t\tu.output.println(msg);\n\t\t}\n\t}",
"@Override\n public boolean subscribe(Task data) {\n return true;\n }",
"void subscribe(Player player);",
"private void subscribeCompleted(MqttSubAckMessage ack) {\n LinkedHashMap<String, RequestedQoS> request = this.pendingSubscribes.remove(ack.messageId());\n if (request == null) {\n closeConnection(String.format(\"Unexpected subscription ack response - messageId: %s\", ack.messageId()));\n return;\n }\n if (request.size() != ack.grantedQoSLevels().size()) {\n closeConnection(String.format(\"Mismatch of topics on subscription ack - expected: %d, actual: %d\", request.size(),\n ack.grantedQoSLevels().size()));\n return;\n }\n\n int idx = 0;\n for (String topic : request.keySet()) {\n Integer grantedQoS = ack.grantedQoSLevels().get(idx);\n notifySubscriptionState(topic, SubscriptionState.SUBSCRIBED, grantedQoS);\n idx += 1;\n }\n }",
"private void publish() {\n Log.i(TAG, \"Publishing\");\n PublishOptions options = new PublishOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new PublishCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer publishing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mPublishSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Published successfully.\");\n } else {\n logAndShowSnackbar(\"Could not publish, status = \" + status);\n mPublishSwitch.setChecked(false);\n }\n }\n });\n }",
"private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }",
"private void scheduleTasks() {\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Prepare JSON Ping Message\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 7000, 282000);\n\t}",
"public void processPingRequest(String clientID) {\n MQTTopics mqtTopics = topicSubscriptions.get(clientID);\n\n //This could be a publisher based topic subscription that processed the ping\n if (null != mqtTopics) {\n Set<Integer> unackedMessages = mqtTopics.getUnackedMessages(messageIdList);\n\n for (Integer messageID : unackedMessages) {\n MQTTSubscription subscription = mqtTopics.getSubscription(messageID);\n onMessageNack(messageID, subscription.getSubscriptionChannel());\n if(log.isDebugEnabled()){\n log.debug(\"Message null ack sent to message id \"+messageID);\n }\n }\n }\n\n }",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\ttopicStateChanged.publish(State.OFFLINE);\n\t\t\t\t}",
"private void doSubscribe(IoSession session, MessageProtocol request) throws Exception {\n \tbyte[] msg = request.getMessage();\n \t\n \tif (msg == null) {\n \t\t// 用户名不能为空: 06 ff 01 00 01 00 00\n \t\tLOGGER.warn(\"username required.\");\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{1}, (short) 0));\n \t\treturn;\n \t} \n\n\t\tString user = new String(msg, MessageConstants.CHARSET_UTF8);\n\t\t\n\t\t// step 2\n\t\tint channel = request.getChannel();\n\t\tSet<IoSession> receivers = channels.get(channel);\n\t\t\n\t\tif (receivers == null) {\n\t\t\t// 订阅频道不存在: 06 ff 01 00 02 00 00\n\t\t\tLOGGER.warn(\"channel not found: \" + channel);\n\t\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{2}, (short) 0));\n\t\t\treturn;\n\t\t}\n \t\n\t\t// step 3\n\t\tsynchronized (users) {\n \tif (users.contains(user)) {\n \t\t// 用户名已存在: 06 ff 01 00 03 00 00\n \t\tLOGGER.warn(\"user found: \" + user);\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{3}, (short) 0));\n \t\treturn;\n \t} else {\n \t\tusers.add(user);\n \t}\n\t\t}\n\t\t\n\t\t// step 4\n\t\tsession.setAttribute(MessageConstants.KEY_USERNAME, user);\n\t\tsession.setAttribute(MessageConstants.KEY_CHANNEL, channel);\n\t\treceivers.add(session);\n\t\t\n\t\tLOGGER.info(\"doSubscribe: user = \" + user + \", users = \"+ users.size() + \", channel = \" + channel + \", receivers = \" + receivers.size());\n\t\t// 返回订阅成功命令: 06 ff 01 00 00 00 00\n\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{0}, (short) 0));\n }",
"public void subscribe(String name, String clientId) throws Exception, RemoteException;",
"private void publishDischargingText() {\n dischargeSampleList = dischargingSampleViewModel.getAll();\n dischargeSampleList.observeForever(dischargeSampleListObserver);\n }",
"public void subscribe() {\n Fitness.getRecordingClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE)\r\n .addOnCompleteListener(\r\n new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if (task.isSuccessful()) {\r\n Log.i(TAGFit, \"Successfully subscribed!\");\r\n } else {\r\n Log.w(TAGFit, \"There was a problem subscribing.\", task.getException());\r\n }\r\n }\r\n });\r\n }",
"public void updateSubscriberStatus(UpdateSubscriberStatusRequest updateSubscriberStatusRequest) {\n updateSubscriberStatusRequest.setDeviceTokenHash(prefs.getHash());\n Call<GenricResponse> updateSubscriberStatusResponseCall = RestClient.getBackendClient(getApplicationContext()).updateSubscriberStatus(updateSubscriberStatusRequest);\n updateSubscriberStatusResponseCall.enqueue(new Callback<GenricResponse>() {\n @Override\n public void onResponse(@NonNull Call<GenricResponse> call, @NonNull Response<GenricResponse> response) {\n if (response.isSuccessful()) {\n GenricResponse genricResponse = response.body();\n prefs.setIsNotificationDisabled(updateSubscriberStatusRequest.getIsUnSubscribed());\n } else {\n// Log.d(TAG, \"API Failure\");\n }\n }\n\n @Override\n public void onFailure(@NonNull Call<GenricResponse> call, @NonNull Throwable t) {\n// Log.d(TAG, \"API Failure\");\n }\n });\n }",
"@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void run() {\n postGetRoomMessages();\n updateMessagesHandler.postDelayed(messageStatusChecker, updateMessagesInterval);\n }"
] | [
"0.62836295",
"0.60636973",
"0.58375823",
"0.55917674",
"0.5568042",
"0.5554001",
"0.5539115",
"0.5537354",
"0.54846317",
"0.5455965",
"0.5446861",
"0.53689605",
"0.5342304",
"0.5279353",
"0.5278724",
"0.5267454",
"0.525798",
"0.5255661",
"0.52491426",
"0.52418685",
"0.5240713",
"0.52245516",
"0.5218723",
"0.5213487",
"0.52067226",
"0.5166212",
"0.5153912",
"0.50938636",
"0.5082082",
"0.5051622",
"0.50397253",
"0.50388587",
"0.5037918",
"0.5009928",
"0.50070953",
"0.50067544",
"0.49907425",
"0.49900723",
"0.49749577",
"0.49687338",
"0.49637893",
"0.4955928",
"0.4931598",
"0.49289042",
"0.49207956",
"0.49171507",
"0.491171",
"0.4907179",
"0.48689908",
"0.48630074",
"0.4856647",
"0.48475882",
"0.48287103",
"0.48246434",
"0.48065236",
"0.4803582",
"0.4796881",
"0.47884408",
"0.47834954",
"0.47834954",
"0.4779566",
"0.47732946",
"0.47732422",
"0.47731617",
"0.47684807",
"0.47673157",
"0.4765581",
"0.4762971",
"0.47563598",
"0.47535616",
"0.47530627",
"0.47529238",
"0.4752126",
"0.47488597",
"0.47450912",
"0.474351",
"0.47393644",
"0.47375274",
"0.47347355",
"0.47345534",
"0.47319183",
"0.47223225",
"0.47219193",
"0.47184363",
"0.47148523",
"0.46889207",
"0.46819356",
"0.46790487",
"0.4673259",
"0.46701345",
"0.466817",
"0.4665244",
"0.4663674",
"0.4662078",
"0.46576834",
"0.46543112",
"0.4644128",
"0.4639558",
"0.46391618",
"0.46359697"
] | 0.80698746 | 0 |
Publishes a message to nearby devices and updates the UI if the publication either fails or TTLs. | private void publish() {
Log.i(TAG, "Publishing");
PublishOptions options = new PublishOptions.Builder()
.setStrategy(PUB_SUB_STRATEGY)
.setCallback(new PublishCallback() {
@Override
public void onExpired() {
super.onExpired();
Log.i(TAG, "No longer publishing");
runOnUiThread(new Runnable() {
@Override
public void run() {
mPublishSwitch.setChecked(false);
}
});
}
}).build();
Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)
.setResultCallback(new ResultCallback<Status>() {
@Override
public void onResult(@NonNull Status status) {
if (status.isSuccess()) {
Log.i(TAG, "Published successfully.");
} else {
logAndShowSnackbar("Could not publish, status = " + status);
mPublishSwitch.setChecked(false);
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int publishToAll(Message message);",
"void publish(Message message, PubSubService pubSubService);",
"private void publishMessage() throws InterruptedException {\n\t\tDatagramPacket[] packets = moveReceivedPacketsToArray();\r\n\t\t// get packet info\r\n\t\tDatagramPacket packet = packets[0];\r\n\t\tbyte[] packetData = packet.getData();\r\n\t\tbyte[] topicNumberInBytes = new byte[4];\r\n\t\tfor (int index = 2; index < 6; index++) {\r\n\t\t\ttopicNumberInBytes[index - 2] = packetData[index];\r\n\t\t}\r\n\t\tByteBuffer wrapped = ByteBuffer.wrap(topicNumberInBytes);\r\n\t\tint topicNumber = wrapped.getInt();\r\n\r\n\t\t// check if the topic exists\r\n\t\tif (topicNumbers.containsKey(topicNumber)) {\r\n\t\t\tString topicName = topicNumbers.get(topicNumber);\r\n\t\t\tif (subscriberMap.containsKey(topicName)) {\r\n\t\t\t\tArrayList<Integer> topicSubscribers = subscriberMap.get(topicName);\r\n\t\t\t\tfor (int index = 0; index < topicSubscribers.size(); index++) {\r\n\t\t\t\t\t// make an array\r\n\t\t\t\t\tDatagramPacket[] packetsToSendToSub = new DatagramPacket[packets.length];\r\n\t\t\t\t\t// change the destination of all the packets\r\n\t\t\t\t\tfor (int i = 0; i < packets.length; i++) {\r\n\t\t\t\t\t\tDatagramPacket tempPacket = packets[i];\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * String pubMessage = processMessageFromPacket(tempPacket); byte[]\r\n\t\t\t\t\t\t * messagePacketBytes = createPacketData(Constants.PUBLICATION, message[2],\r\n\t\t\t\t\t\t * topicNumber, pubMessage.getBytes()); byte[] packetContent =\r\n\t\t\t\t\t\t * tempPacket.getData();\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tInetSocketAddress subAddress = new InetSocketAddress(Constants.DEFAULT_DST_NODE,\r\n\t\t\t\t\t\t\t\ttopicSubscribers.get(index));\r\n\t\t\t\t\t\ttempPacket.setSocketAddress(subAddress);\r\n\t\t\t\t\t\tpacketsToSendToSub[i] = tempPacket;\r\n\t\t\t\t\t}\r\n\t\t\t\t\taddItemsToQueue(packetsToSendToSub);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void publishMessage(String message) throws IOException {\n try {\n producer.send(new ProducerRecord<String, String>(topic, 0, \"HELIDON\", message));\n logger.warning(\"Sent new oKafka message: \"+message);\n //producer.commitTransaction();\n //producer.flush();\n } catch (Exception ex) {\n ex.printStackTrace();\n throw new IOException(ex.toString());\n }\n }",
"private void serverPublished(MqttPublishMessage message) {\n if (log.isDebugEnabled()) {\n log.debug(\"Server published: \" + message);\n }\n\n Handler<MqttPublishMessage> publishHandler = this.messageHandler;\n if (publishHandler != null) {\n publishHandler.handle(message);\n }\n }",
"private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }",
"@Override\r\n\tpublic void publish(String message) {\n\t\tredisTemplate.convertAndSend(channelTopic.getTopic(), message);\r\n\t}",
"void publish(String topicName, Message message) throws IOException;",
"public void sendPublicMessage(SensorMessage message) {\n \tpublicSender.send(message);\n }",
"@Scheduled(fixedRate=20000)\n\tpublic void generateMessages()\n\t{\t\t\n\t\tsynchronized (map_)\n\t\t{\n\t\t\tif (!map_.isEmpty())\n\t\t\t{\n\t\t\t\tint index = generateIndex(map_.size());\n\t\t\t\tint messageIdx = generateIndex(1000);\n\t\t\t\tString topic = topics_.get(index);\n\t\t\t\tBroadcaster b = map_.get(topic);\n\t\t\t\tUserDTO dto = dtoMap_.get(topic);\n\t\t\t\tdto.setAvailability(\"\" + messageIdx);\n\t\t\t\tString stringified;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstringified = mapper_.writeValueAsString(dto);\n\t\t\t\t\tSystem.out.println(\"broadcasting to topic \" + topic + \" message: \" + stringified);\n\t\t\t\t\tb.broadcast(stringified);\n\t\t\t\t} catch (JsonGenerationException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JsonMappingException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"publisher map was empty, skipping this time\");\n\t\t\t}\n\t\t}\n\t}",
"private void publishHandler(MqttPublishMessage publish) {\n\n final int mqttPacketId = publish.messageId();\n LOG.info(\"PUBLISH [{}] from MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n\n // TODO: simple way, without considering wildcards\n\n // check if a publisher already exists for the requested topic\n if (!this.pubEndpoint.isPublisher(publish.topicName())) {\n\n // create two sender for publishing QoS 0/1 and QoS 2 messages\n ProtonSender senderQoS01 = this.connection.createSender(publish.topicName());\n ProtonSender senderQoS2 = this.connection.createSender(publish.topicName());\n\n this.pubEndpoint.addPublisher(publish.topicName(), new AmqpPublisher(senderQoS01, senderQoS2));\n }\n\n // sending AMQP_PUBLISH\n AmqpPublishMessage amqpPublishMessage =\n new AmqpPublishMessage(null,\n publish.qosLevel(),\n publish.isDup(),\n publish.isRetain(),\n publish.topicName(),\n publish.payload());\n\n pubEndpoint.publish(amqpPublishMessage, mqttPacketId, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n if (delivery != null) {\n\n if (publish.qosLevel() == MqttQoS.AT_LEAST_ONCE) {\n this.mqttEndpoint.publishAcknowledge(mqttPacketId);\n LOG.info(\"PUBACK [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n } else {\n\n this.mqttEndpoint.publishReceived(mqttPacketId);\n LOG.info(\"PUBREC [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n }\n\n }\n }\n\n });\n }",
"private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"public void publish(final Event event) {\r\n if (event == null)\r\n return;\r\n\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n int uniqueID = server.publish(event);\r\n if (uniqueID != 0)\r\n pubEvents.add(event.setID(uniqueID) );\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Publish Event: \" + event.getID() + \" - \" + event.getTitle());\r\n }\r\n }).start();\r\n }",
"void publish();",
"public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }",
"@Override\n public void publishAndUpdate(MessageEntity msg) {\n if (mapper.updateIsPublished(msg.getMessageId(), MessageIsPublished.NO.val, MessageIsPublished.YES.val) == 1) {\n messagingService.send(MessagingParam.builder()\n .payload(msg.getPayload())\n .exchange(msg.getExchange())\n .routingKey(msg.getRoutingKey())\n .deliveryMode(MessageDeliveryMode.NON_PERSISTENT)\n .messagePostProcessor(new HeaderMessagePostProcessor(msg))\n .build());\n }\n }",
"private void publishHandler(AmqpPublishData amqpPublishData) {\n\n AmqpPublishMessage publish = amqpPublishData.amqpPublishMessage();\n\n // defensive ... check that current bridge has information about subscriptions and related granted QoS\n // see https://github.com/EnMasseProject/subserv/issues/8\n\n // try to get subscribed topic (that could have wildcards) that matches the publish topic\n String topic = (this.grantedQoSLevels.size() == 0) ? null :\n TopicMatcher.match(this.grantedQoSLevels.keySet().stream().collect(Collectors.toList()), publish.topic());\n\n if (topic != null) {\n\n // MQTT 3.1.1 spec : The QoS of Payload Messages sent in response to a Subscription MUST be\n // the minimum of the QoS of the originally published message and the maximum QoS granted by the Server\n MqttQoS qos = (publish.qos().value() < this.grantedQoSLevels.get(topic).value()) ?\n publish.qos() :\n this.grantedQoSLevels.get(topic);\n\n this.mqttEndpoint.publish(publish.topic(), publish.payload(), qos, publish.isDup(), publish.isRetain());\n // the the message identifier assigned to the published message\n amqpPublishData.setMessageId(this.mqttEndpoint.lastMessageId());\n\n LOG.info(\"PUBLISH [{}] to MQTT client {}\", this.mqttEndpoint.lastMessageId(), this.mqttEndpoint.clientIdentifier());\n\n // for QoS 0, message settled immediately\n if (qos == MqttQoS.AT_MOST_ONCE) {\n this.rcvEndpoint.settle(amqpPublishData.messageId());\n }\n\n } else {\n\n LOG.error(\"Published message : MQTT client {} is not subscribed to {} !!\", this.mqttEndpoint.clientIdentifier(), publish.topic());\n }\n }",
"public void publishMessage(final String psMessage) throws IOException {\n fanout.getChannel().basicPublish(fanout.exchangeName, \"\", null, psMessage.getBytes());\n }",
"public synchronized void send() throws RemoteException {\n\n if (this.temperatureQueue.isEmpty()) {\n //logger.log(Level.INFO, \"Nothing to send, bailing.\");\n return;\n }\n\n for (TemperatureMessage message : this.temperatureQueue) {\n // TODO\n // lookup the node and deliver the message.\n\n TemperatureNode destinationNode = owner.lookupNode(message.getDestination());\n if (destinationNode == null) {\n // Classic comment; this should never happen.\n System.out.println(\"Refusing to send to null node \" + message.getDestination());\n return;\n }\n destinationNode.sendMeasurement(message);\n this.owner.incrementVectorClock();\n //System.out.println(this.owner.ID() + \"Sent a message to \" + destinationNode.ID());\n\n }\n\n temperatureQueue.clear();\n }",
"@RequestMapping(value = \"/publish\", method = RequestMethod.GET)\n\tpublic void publish(Locale locale, Model model, @RequestParam(\"message\") String message) {\n\n\t\tAmazonSNSClient snsClient = new AmazonSNSClient(new ClasspathPropertiesFileCredentialsProvider());\t\t \n\t\tsnsClient.setRegion(Region.getRegion(Regions.AP_NORTHEAST_1));\n\t\t\n\t\t// Publish a message\n\t\tPublishRequest publishRequest = new PublishRequest(topicArn, message);\n\t\tsnsClient.publish(publishRequest);\n\t\t\n\t\tlogger.info(\"Published a message.Message=\" + message);\n\t}",
"private void send(byte[] message)\n\t\t\tthrows IOException\n\t{\n\t\tchannel.basicPublish(BUNGEECORD_QUEUE, \"\", null, message);\n\t}",
"void publish(Event event) throws PublishingException;",
"public void publishMessageAndPrint(Message msg) throws Exception {\r\n\t\tthis.logMessage(this.publicationPort.getPortURI() + \" a publie : \" + msg.toString());\r\n\t\tthis.publicationPort.publierMessage(msg);\r\n\t}",
"public int publishToTopic(String topicId, Message message);",
"@Override\n\tpublic void publish(final Message msg) {\n\t\teventDispatcher.publish(msg);\n\t}",
"@Override\n public void publishKey(DeviceId deviceId, PublicKeyPem publicKeyPem) {\n try {\n if (deviceAlreadyExists(deviceId)) {\n updateDevice(deviceId, publicKeyPem);\n } else {\n createDevice(deviceId, publicKeyPem);\n }\n } catch (IOException e) {\n String message =\n String.format(\n \"Failed to publish public key for device %s to Cloud IoT Registry\", deviceId.value());\n logger.atSevere().withCause(e).log(\"%s\", message);\n throw new CloudIotException(message, e);\n }\n }",
"private void publish(String deviceAddress)\n {\n if(mMqttServiceBound)\n {\n try\n {\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n if(device != null)\n {\n // Get the byte array from the CSV file stored in the device\n byte[] buffer = IOUtil.readFile(device.getCsvFile());\n // Create a new string using device info and new byte array\n String json = MqttConnectionService.generateJson(device.getDate(),\n device.getDeviceAddress(),\n Choice.toString(device.getChoice()),\n device.getExerciseID(),\n device.getRoutineID(),\n new String(buffer));\n Log.d(\"SmartGlove\", \"JSON: \" + json);\n // Call the service to publish this string, now in JSON format\n mMqttService.publishMessage(json);\n String exe_nm = MainActivity.exercise_name;\n\n List<Integer> ids = new ArrayList<>();\n try{\n ids = UserRepository.getInstance(getApplicationContext()).getAllIdentities();\n }\n catch (Exception e){\n Log.e(TAG, \"onCreate: \", e);\n }\n\n int current = ids.size();\n\n Log.d(TAG, \"UpdateData: logging the data\");\n\n if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_left(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_left(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_left(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_left(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_right(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_right(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_right(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_right(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_right(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_right(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_right(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_left(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_left(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_left(json,current);\n }\n }\n else {\n Log.d(TAG, \"publish: Publish failed. Device is null\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Async\n\tpublic void publishMessage(QPEvent event) throws Exception {\n\t\t\n\t\tif(webhookService.isEnabled()) {\n\t\t\tlog.debug(\"Webhook service enabled, publishing...\");\n\t\t\twebhookService.publishMessage(event);\n\t\t}\n\t\t\n\t\tif(websocketService.isEnabled()) {\n\t\t\tlog.debug(\"Websocket service enabled, publishing...\");\n\t\t\twebsocketService.publishMessage(event);\n\t\t}\n\t}",
"public static void publish() {\n\t\tList<Stream> streams = null;\n\t\ttry {\n\t\t\tstreams = PlatformClient.streams(getUser());\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Error while getting available streams %s\",\n\t\t\t\t\te.getMessage());\n\t\t\tindex();\n\t\t}\n\t\trender(streams);\n\t}",
"@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}",
"@Override\n public void publish(List<EthLog.LogResult> logs) {\n if (logs.isEmpty()) {\n log.warn(\"[KAFKA] logs is empty, ignore sending!\");\n return;\n }\n final long start = System.currentTimeMillis();\n log.info(\"[KAFKA] sending {} events\", logs.size());\n logs.stream()\n .map(logResult -> (EthLog.LogObject) logResult)\n .map(EventMessage::new)\n .filter(logMessage -> !logMessage.getTopics().isEmpty())\n .peek(logMessage -> log.debug(\"[KAFKA] sending event topic {}\", logMessage.getTopics().get(0)))\n .forEach(this::sendEvent);\n\n long tookMs = System.currentTimeMillis() - start;\n log.info(\"[KAFKA] sent {} messages in {} ms.\", logs.size(), tookMs);\n }",
"@NotNull Publisher<Void> send(Publisher<VesEvent> messages);",
"public interface Publisher {\n\t// Publishes new message to PubSubService\n\tvoid publish(Message message, PubSubService pubSubService);\n}",
"@Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n System.out.println(\"MQTT Publish Complete\");\n }",
"@Override\n public void publish(PubSubObject pbObj, PubSubService pubSubService) {\n pubSubService.addObjectToQueue(pbObj);\n }",
"public synchronized void publish (Object publishedBy, DistributionList distList) {\r\n\t\tpublisher = publishedBy;\r\n\t\tpublicationTime = InternalTimeSystem.currentTime();\t\t\t\t\r\n\t\tdistList.publish(this);\r\n\t}",
"@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"protected void send(ParseObject message) {\n message.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null) {\n //success\n Toast.makeText(GroupActivity.this, getString(R.string.message_success_drink_request), Toast.LENGTH_LONG).show();\n Utilities.sendPushNotifications(mNextDrinker, null,\n getString(R.string.push_drink_request_message), \"sr\");\n }\n else { //error sending message\n Utilities.getErrorAlertDialog();\n }\n }\n });\n }",
"@Scheduled(fixedDelay = 3000)\n public void sendAdhocMessages() {\n log.info(loadQuotations.loadLastQuotations());\n simpMessagingTemplate.convertAndSend(\"/topic/user\", loadQuotations.loadLastQuotations());\n }",
"public void messagePublish(forum.ForumMessage request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n asyncUnimplementedUnaryCall(getMessagePublishMethod(), responseObserver);\n }",
"@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}",
"public void publishMessage(String routingKey, String message) throws Exception {\n\t\ttry (Connection connection = rabbitMqConnectionFactory.getConnectionFactory().newConnection()) {\n\t\t\ttry (Channel channel = connection.createChannel()) {\n\n\t\t\t\tchannel.exchangeDeclare(EXCHANGE_NAME, \"topic\");\n\t\t\t\t\n\t\t\t\tchannel.basicPublish(EXCHANGE_NAME, routingKey, null, message.getBytes(\"UTF-8\"));\n\t\t\t\t\n\t\t\t\tLOGGER.info(\"Message \" + message + \" is sent via routing key \" + routingKey);\n\t\t\t}\n\t\t}\n\t}",
"public boolean sendPubSnapMessage(final PublicSnapMessage message) {\n JoyCommClient.getInstance().sendSnapnews(AppCache.getJoyId(), AppSharedPreference.getCacheJoyToken(), message, new ICommProtocol.CommCallback<String>() {\n @Override\n public void onSuccess(String nid) {\n // 更新自己发送的snapmessage状态\n message.setId(nid);\n message.getLikeMessage().setNid(nid);\n message.setMsgStatus(MsgStatusEnum.success);\n onMsgSend();\n Utils.showLongToast(context, \"发表成功\");\n }\n\n @Override\n public void onFailed(String code, String errorMsg) {\n // 发布失败的暂时不操作\n message.setMsgStatus(MsgStatusEnum.fail);\n adapter.notifyItemChanged(0);\n Utils.showLongToast(context, errorMsg);\n }\n });\n\n return true;\n }",
"@Override\n public void publish(String senderAddress, String subject, PublishScope scope, Object args) {\n if (!noDbTxn()){\n String errMsg = \"NO EVENT PUBLISH CAN BE WRAPPED WITHIN DB TRANSACTION!\";\n s_logger.error(errMsg, new CloudRuntimeException(errMsg));\n }\n if (_gate.enter(true)) {\n if (s_logger.isTraceEnabled()) {\n s_logger.trace(\"Enter gate in message bus publish\");\n }\n try {\n List<SubscriptionNode> chainFromTop = new ArrayList<SubscriptionNode>();\n SubscriptionNode current = locate(subject, chainFromTop, false);\n\n if (current != null)\n current.notifySubscribers(senderAddress, subject, args);\n\n Collections.reverse(chainFromTop);\n for (SubscriptionNode node : chainFromTop)\n node.notifySubscribers(senderAddress, subject, args);\n } finally {\n _gate.leave();\n }\n }\n }",
"private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }",
"public void broadcast(String message){\n Iterator it = subscribedClientsOutputStreams.iterator(); \n while(it.hasNext()){\n try{\n PrintWriter writer = (PrintWriter) it.next();\n writer.println(message);\n writer.flush();\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n }",
"public void broadcast(Object msg);",
"private void sendNotification() {\n }",
"public void sendMessageToRabbitMQ(String message) {\n CachingConnectionFactory connectionFactory = new CachingConnectionFactory(rabbitProperties.getHost(), rabbitProperties.getPort());\n connectionFactory.setUsername(rabbitProperties.getUsername());\n connectionFactory.setPassword(rabbitProperties.getPassword());\n connectionFactory.setVirtualHost(rabbitProperties.getVirtualHost());\n AmqpAdmin admin = new RabbitAdmin(connectionFactory);\n admin.declareQueue(new Queue(\"/topic/tracker-data\"));\n AmqpTemplate template = new RabbitTemplate(connectionFactory);\n template.convertAndSend(\"/topic/tracker-data\", message);\n connectionFactory.destroy();\n simpMessagingTemplate.convertAndSend(\"/topic/tracker-data\", message);\n }",
"private void publish( String msg )\n {\n lastMessage = msg;\n System.out.println( msg );\n }",
"private void publishMcsPositionDemand(Optional<IEventService> eventService, ConfigKey configKey, DoubleItem azItem,\n\t\t\tDoubleItem elItem) {\n\t\tSystemEvent se = jadd(new SystemEvent(configKey.prefix()), azItem, elItem);\n\t\tlog.debug(\"Inside TpkEventPublisher publishMcsPositionDemand \" + configKey + \": \" + se + \": eventService is: \"\n\t\t\t\t+ eventService);\n\t\teventService.ifPresent(e -> e.publish(se).handle((x, ex) -> {\n\t\t\tlog.error(\n\t\t\t\t\t\"Inside TpkEventPublisher publishMcsPositionDemand : failed to publish mcs position demand: \" + se,\n\t\t\t\t\tex);\n\t\t\treturn null;\n\t\t}));\n\t}",
"public final void broadcast()\n\t{\n\t\ttopic.broadcast(originalMessage);\n\t}",
"private void broadcast(String msg) {\n\t\tIterator i = onlineUsers.entrySet().iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry p = (Map.Entry)i.next();\n\t\t\tUser u = (User)p.getValue();\n\t\t\t\n\t\t\tu.output.println(msg);\n\t\t}\n\t}",
"private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}",
"void publishMe();",
"private void sendNotification() {\n ParsePush parsePush = new ParsePush();\n String id = ParseInstallation.getCurrentInstallation().getInstallationId();\n Log.d(\"Debug_id\", id);\n Log.d(\"Debug_UserName\", event.getHost().getUsername()); // host = event.getHost().getUsername();\n ParseQuery pQuery = ParseInstallation.getQuery(); // <-- Installation query\n Log.d(\"Debug_pQuery\", pQuery.toString());\n pQuery.whereEqualTo(\"username\", event.getHost().getUsername());// <-- you'll probably want to target someone that's not the current user, so modify accordingly\n parsePush.sendMessageInBackground(\"Hey your Event: \" + event.getTitle() + \" has a subscriber\", pQuery);\n\n }",
"private void sendMessage() {\n if (mRecipientAddress == null) {\n if (mDevices.getSelectedItem() == null) {\n mStatusText.append(\"Please select a device to message.\\n\");\n return;\n }\n if (mMessage.getText() == null || mMessage.getText().toString().equals(\"\")) {\n mStatusText.append(\"Please enter a message to send.\\n\");\n return;\n }\n }\n WifiDirectClientAsyncTask t = new WifiDirectClientAsyncTask(this, mMessage.getText().toString());\n if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n t.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n else\n t.execute();\n }",
"public void sendPacket(String message) {\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ie) {\r\n }\r\n\r\n if (ipAddress == null) {\r\n MessageEvent e = new MessageEvent(MessageType.SendWarning);\r\n e.description = \"cannot send message to unreported device\";\r\n e.HWid = HWid;\r\n RGPIO.message(e);\r\n } else if (status == PDeviceStatus.ACTIVE) {\r\n UDPSender.send(message, ipAddress, this, RGPIO.devicePort);\r\n }\r\n }",
"private void push() {\n ImmutableSortedSet<T> myAvailable = _outstanding.apply(\n new Syncd.Transformer<ImmutableSortedSet<T>, ImmutableSortedSet<T>>() {\n public Tuple<ImmutableSortedSet<T>, ImmutableSortedSet<T>> apply(ImmutableSortedSet<T> aBefore) {\n final SortedSet<T> myRemaining = new TreeSet<>(new MessageComparator<T>());\n\n // Identify those messages that are sequentially contiguous from _floor and can be passed on\n //\n ImmutableSortedSet<T> myAccessible =\n new ImmutableSortedSet.Builder<>(new MessageComparator<T>()).addAll(\n Iterables.filter(aBefore, new Predicate<T>() {\n public boolean apply(T aMessage) {\n Long myCurrent = _floor.get();\n\n if (aMessage.getSeq() == myCurrent) {\n // This message can be sent out to listeners so long as we're first to try\n //\n if (_floor.testAndSet(myCurrent, myCurrent + 1))\n return true;\n } else\n // This message must remain\n //\n myRemaining.add(aMessage);\n\n // Couldn't send message out or it must remain\n //\n return false;\n }\n })\n ).build();\n\n return new Tuple<>(new ImmutableSortedSet.Builder<>(\n new MessageComparator<T>()).addAll(myRemaining).build(),\n myAccessible);\n }\n }\n );\n\n send(myAvailable);\n archive(myAvailable);\n }",
"@Scheduled(fixedRate = 1000)\n private void send(){\n jmsTemplate.send(\"test.messages\", session -> {\n TextMessage message = session.createTextMessage(Instant.now().toString());\n return message;\n });\n }",
"@RequestMapping(value = \"/publish\", method = RequestMethod.POST)\n public String publish(@RequestParam(value = \"destination\", required = false, defaultValue = \"**\") String destination) {\n\n final String myUniqueId = \"config-client1:7002\";\n System.out.println(context.getId());\n final MyCustomRemoteEvent event =\n new MyCustomRemoteEvent(this, myUniqueId, destination, \"--------dfsfsdfsdfsdfs\");\n //Since we extended RemoteApplicationEvent and we've configured the scanning of remote events using @RemoteApplicationEventScan, it will be treated as a bus event rather than just a regular ApplicationEvent published in the context.\n //因为我们在启动类上设置了@RemoteApplicationEventScan注解,所以通过context发送的时间将变成一个bus event总线事件,而不是在自身context中发布的一个ApplicationEvent\n context.publishEvent(event);\n\n return \"event published\";\n }",
"protected void deliverMessages()\n {\n Set<Envelope> envelopes = messengerDao.getEnvelopes();\n\n Map<String, Set<Envelope>> peerEnvelopesMap = Maps.newHashMap();\n int maxTimeToLive = 0;\n //distribute envelops to peers\n for ( Envelope envelope : envelopes )\n {\n if ( envelope.getTimeToLive() > maxTimeToLive )\n {\n maxTimeToLive = envelope.getTimeToLive();\n }\n Set<Envelope> peerEnvelopes = peerEnvelopesMap.get( envelope.getTargetPeerId() );\n if ( peerEnvelopes == null )\n {\n //sort by createDate asc once more\n peerEnvelopes = new TreeSet<>( new Comparator<Envelope>()\n {\n @Override\n public int compare( final Envelope o1, final Envelope o2 )\n {\n return o1.getCreateDate().compareTo( o2.getCreateDate() );\n }\n } );\n peerEnvelopesMap.put( envelope.getTargetPeerId(), peerEnvelopes );\n }\n\n peerEnvelopes.add( envelope );\n }\n\n\n //try to send messages in parallel - one thread per peer\n try\n {\n for ( Map.Entry<String, Set<Envelope>> envelopsPerPeer : peerEnvelopesMap.entrySet() )\n {\n Peer targetPeer = messenger.getPeerManager().getPeer( envelopsPerPeer.getKey() );\n if ( targetPeer.isLocal() )\n {\n completer.submit(\n new LocalPeerMessageSender( messenger, messengerDao, envelopsPerPeer.getValue() ) );\n }\n else\n {\n completer.submit(\n new RemotePeerMessageSender( messengerDao, targetPeer, envelopsPerPeer.getValue() ) );\n }\n }\n\n //wait for completion\n try\n {\n for ( int i = 0; i < peerEnvelopesMap.size(); i++ )\n {\n Future<Boolean> future = completer.take();\n future.get();\n }\n }\n catch ( InterruptedException | ExecutionException e )\n {\n LOG.warn( \"ignore\", e );\n }\n }\n catch ( PeerException e )\n {\n LOG.error( e.getMessage(), e );\n }\n }",
"public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"private void run() throws ExecutionException, InterruptedException {\n\n int messages_per_topic = Integer.parseInt(Main.properties.getProperty(\"messages_per_topic\"));\n Producer p = new Producer();\n long startTime = System.nanoTime();\n int delta = Integer.parseInt(Main.properties.getProperty(\"delta\"));\n LOGGER.info(\"publishing...\");\n for(int i=1; i<=messages_per_topic + delta; i++) {\n //LOGGER.info(\"publishing round: {}\", i);\n //publish the data on kafka\n p.send(p.sense());\n }\n long elapsedTime = System.nanoTime() - startTime;\n double seconds = (double)elapsedTime / 1000000000.0;\n LOGGER.info(\"published {} messages to {} topics\", messages_per_topic, properties.getProperty(\"topics_number\"));\n LOGGER.info(\"elapsed time: {}\", seconds);\n\n }",
"private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }",
"public void publish(MessageBroker broker, Message message) {\r\n\t\tbroker.sendMessage(message);\r\n\t}",
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"public void produceMessage(String message) {\n KeyedMessage<String, String> keyedMessage = new KeyedMessage<String, String>(topic, null, message);\n producer.send(keyedMessage);\n }",
"public void messagePublish(forum.ForumMessage request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getMessagePublishMethod(), getCallOptions()), request, responseObserver);\n }",
"@Override\n\t\t\t\t\tpublic void sendMessage(String message) {\n\t\t\t\t\t\tString toSend = \"<append><topic>\" + xmlData.get(\"topic\") +\"</topic><user>\" + username + \"</user><msg>\" + message + \"</msg></append>\";\n\t\t\t\t\t\tsendData(toSend);\n\t\t\t\t\t}",
"private void sendNotificationAPI26(RemoteMessage remoteMessage) {\n Map<String,String> data = remoteMessage.getData();\n String title = data.get(\"title\");\n String message = data.get(\"message\");\n\n //notification channel\n NotificationHelper helper;\n Notification.Builder builder;\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n helper = new NotificationHelper(this);\n builder = helper.getHawkerNotification(title,message,defaultSoundUri);\n\n helper.getManager().notify(new Random().nextInt(),builder.build());\n }",
"private void publish(PubMsg pubMsg, ChannelHandlerContext ctx) {\n //获取topic订阅者id列表\n String topic = pubMsg.getTopic();\n List<ClientSub> clientList = subscriptionService.searchSubscribeClientList(topic);\n\n //遍历发送\n clientList.forEach(clientSub -> {\n final String clientId = clientSub.getClientId();\n\n //计算Qos\n int pubQos = pubMsg.getQoS();\n int subQos = clientSub.getQos();\n MqttQoS qos = subQos >= pubQos ? MqttQoS.valueOf(pubQos) : MqttQoS.valueOf(subQos);\n\n //组装PubMsg\n MqttPublishMessage mpm = MqttMessageBuilders.publish()\n .messageId(nextMessageId(ctx))\n .qos(qos)\n .topicName(topic)\n .retained(pubMsg.isRetain())\n .payload(Unpooled.wrappedBuffer(pubMsg.getPayload()))\n .build();\n if (qos == MqttQoS.EXACTLY_ONCE || qos == MqttQoS.AT_LEAST_ONCE) {\n publishMessageService.save(clientId, pubMsg);\n }\n\n //发送\n Optional.of(clientId)\n .map(ConnectHandler.clientMap::get)\n .map(BrokerHandler.channels::find)\n .ifPresent(channel -> channel.writeAndFlush(mpm));\n });\n }",
"@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}",
"public void publish(MessageI m, String topic) throws Exception {\n\t\tlogMessage(\"Publishing message \" + m.getURI()+ \" to the topic : \"+ topic);\n\t\tthis.publicationOutboundPort.publish(m, topic);\n\t}",
"private void sendMessage() {\n\n // Get the right Prefix\n String prefix = null;\n\n if ( !messageGroup.getPrefix().equalsIgnoreCase(\"\") ) {\n prefix = messageGroup.getPrefix();\n } else {\n prefix = Announcer.getInstance().getConfig().getString(\"Settings.Prefix\");\n }\n\n Announcer.getInstance().getCaller().sendAnnouncment( messageGroup, prefix, counter);\n\n counter();\n\n }",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void sendMessage(String message){\n PostTask pt = new PostTask();\n pt.execute();\n }",
"public void republishStored(String clientID) {\n LOG.debug(\"republishStored invoked to publish soterd messages for clientID \" + clientID);\n disruptorPublish(new RepublishEvent(clientID));\n }",
"@Override\n\tpublic void pushBroadcast(String title, String content) {\n\t\tMessageEntity me=new MessageEntity(title,content,\"1\",new Date(),\"1\",\"suibaitiande\");\n\t\tmessageDAO.insertMessage(me);\n\t\tPush.testSendPush(content);\n\t\t\n\t}",
"private void sendNotification(RemoteMessage remoteMessage) {\n Map<String,String> data = remoteMessage.getData();\n String title = data.get(\"title\");\n String message = data.get(\"message\");\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(title)\n .setContentText(message)\n .setAutoCancel(true)\n .setSound(defaultSoundUri);\n\n NotificationManager notif = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notif.notify(new Random().nextInt(),builder.build());\n\n }",
"public void sendPushToOneDevice() throws FirebaseMessagingException {\n String registrationToken = \"YOUR_REGISTRATION_TOKEN\";\n\n // See documentation on defining a message payload.\n Message message = Message.builder()\n .putData(\"score\", \"850\")\n .putData(\"time\", \"2:45\")\n .setToken(registrationToken)\n .build();\n\n // Send a message to the device corresponding to the provided\n // registration token.\n String response = FirebaseMessaging.getInstance().send(message);\n // Response is a message ID string.\n System.out.println(\"Successfully sent message: \" + response);\n }",
"public void send(String providedTopic,V msg);",
"private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }",
"@Override\n public void sendMessage(String from, String to, Message message){\n this.sendingPolicy.sendViaPolicy(from, to, message);\n //local persistence\n updateMessage(message);\n }",
"public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }",
"private void scheduleTasks() {\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Prepare JSON Ping Message\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 7000, 282000);\n\t}",
"public void sendMessage(String userID, String message){\n\n\t\t// Checking if the user is available before sending the message.\n\n\n\t\tif(chatInstanceMap.containsKey(userID)\n\t\t\t\t&& isLoggedInWithVisgo(userID)){\n\n\t\t\ttry {\n\t\t\t\tchatInstanceMap.get(userID).sendMessage(message);\n\n\n\t\t\t} catch (XMPPException e) {\n\n\t\t\t\tSystem.out.print(\"Problem with sending message :: \" + message);\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void sendMessage() {\n Log.d(\"FlashChat\", \"I sent something\");\n // get the message the user typed\n String userInput = mInputText.getText().toString();\n\n if (! (userInput.length() == 0)){\n\n InstantMessage message = new InstantMessage(userInput, mUserMe);\n // push the message to Firebase DB\n mDatabaseReference.child(mLocation).push().setValue(message);\n mInputText.setText(\"\");\n }\n\n }",
"private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mType.notification,\n proposedLeader,\n proposedZxid,\n logicalclock.get(),\n QuorumPeer.ServerState.LOOKING,\n sid,\n proposedEpoch,\n qv.toString().getBytes(UTF_8));\n\n LOG.debug(\n \"Sending Notification: {} (n.leader), 0x{} (n.zxid), 0x{} (n.round), {} (recipient),\"\n + \" {} (myid), 0x{} (n.peerEpoch) \",\n proposedLeader,\n Long.toHexString(proposedZxid),\n Long.toHexString(logicalclock.get()),\n sid,\n self.getMyId(),\n Long.toHexString(proposedEpoch));\n\n sendqueue.offer(notmsg);\n }\n }",
"@Scheduled(every = \"1s\")\n void schedule() {\n if (message != null) {\n final String endpointUri = \"azure-eventhubs:?connectionString=RAW(\" + connectionString.get() + \")\";\n producerTemplate.sendBody(endpointUri, message + (counter++));\n }\n }",
"private void sendConnectorMessage(final EcologyMessage message) {\n getConnectorHandler().post(new Runnable() {\n @Override\n public void run() {\n connector.sendMessage(message);\n }\n });\n }",
"protected abstract void sendInternal(List<String> messages) throws NotificationException;",
"@Override\n public void publish(final EventData data) {\n LOGGER.debug(\"async event {} published via LocalAsyncProcessor\", data.getData().ret$PQON());\n LOGGER.debug(\"(currently events are discarded in localtests)\");\n }",
"public void broadcast(String message) throws BroadcastException {\n\t\t\n\t}",
"@Override\n\tpublic void sendMessage(Message message) {\n\t\tterminal.println(\"Sending Message to: \" + message.getUserTo());\n\t\tDatagramPacket packet = null;\n\t\tString routerDestination = table.getRouterToSendTo(message.getUserTo());\n\t\tRouter routerToSendTo = null;\n\t\tfor(Router routerToSend: listOfRouters) {\n\t\t\tif(routerToSend.getName().equals(routerDestination)) {\n\t\t\t\trouterToSendTo = routerToSend;\n\t\t\t}\n\t\t}\n\n\t\tif(routerToSendTo == null) {\n\t\t\tterminal.println(\"User not found on network.\");\n\t\t}\telse {\n\t\t\t/*\n\t\t\t * need to change the message to include the router that needs to receive the message as well!!!!!!!!!!!!!!\n\t\t\t */\n\t\t\tInetSocketAddress dstAddress = new InetSocketAddress(DEFAULT_DST_NODE, routerToSendTo.getPort());\n\t\t\tpacket = message.toDatagramPacket();\n\t\t\tpacket.setSocketAddress(dstAddress);\n\t\t\ttry {\n\t\t\t\tsocket.send(packet);\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\t}",
"@Override\n public void sendMessage(Message m)\n {\n messages.put(m);\n }"
] | [
"0.6278254",
"0.61314034",
"0.60894984",
"0.60711676",
"0.6024091",
"0.60028625",
"0.59755903",
"0.58017987",
"0.5796261",
"0.57931626",
"0.57119185",
"0.56471896",
"0.5633575",
"0.5571738",
"0.55498785",
"0.55419034",
"0.55383027",
"0.5534266",
"0.5511485",
"0.54738444",
"0.5457114",
"0.5409157",
"0.5402706",
"0.5372136",
"0.5354078",
"0.5351733",
"0.5345897",
"0.53174007",
"0.5306394",
"0.52728224",
"0.5269796",
"0.5269577",
"0.5253991",
"0.5252312",
"0.52301264",
"0.5220531",
"0.5220139",
"0.5209293",
"0.5208816",
"0.5208785",
"0.5194223",
"0.5188626",
"0.5175069",
"0.5172341",
"0.51687664",
"0.51571804",
"0.51556087",
"0.5147791",
"0.51451516",
"0.5140415",
"0.5128457",
"0.51253206",
"0.51222986",
"0.5119454",
"0.5104478",
"0.51015943",
"0.5094822",
"0.5094579",
"0.509076",
"0.50873923",
"0.508099",
"0.50776726",
"0.5072927",
"0.5071195",
"0.5060861",
"0.50576115",
"0.5052535",
"0.5049128",
"0.5044326",
"0.50330436",
"0.5027184",
"0.5026958",
"0.5009308",
"0.5007216",
"0.50055736",
"0.49941438",
"0.4978156",
"0.4978066",
"0.49761578",
"0.49754688",
"0.49662456",
"0.4961533",
"0.49537194",
"0.49529362",
"0.49471968",
"0.49456778",
"0.49378395",
"0.4937503",
"0.4936575",
"0.4931044",
"0.49252087",
"0.49247643",
"0.49143535",
"0.49048924",
"0.49040696",
"0.48983032",
"0.48956862",
"0.48931503",
"0.48904938",
"0.48892426"
] | 0.7598428 | 0 |
Stops subscribing to messages from nearby devices. | private void unsubscribe() {
Log.i(TAG, "Unsubscribing.");
Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void stop() {\n enableIncomingMessages(false);\n }",
"private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}",
"public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}",
"public void stopListening();",
"public void stopListeningFoConnection() {\n /* If it's running stop synchronization. */\n stopAllWorkerThreads();\n\n }",
"public synchronized void stopListening() {\n if (mCallback == null) {\n return;\n }\n\n mCallback = null;\n mContext.getSystemService(ConnectivityManager.class)\n .unregisterNetworkCallback(mConnectivityCallback);\n }",
"protected void stopWifiScan() {\r\n\r\n //TERMINA LA SCANSIONE BLUETOOTH\r\n\t\thideWifiScanDialog();\r\n BeaconsMonitoringService.action.set(BeaconSession.SCANNING_OFF);\r\n\r\n /*\r\n\t\tif (wifiBroadcastReceiver != null) {\r\n\r\n\t\t\tWifiScanner.stopScanner(this, wifiBroadcastReceiver);\r\n\t\t\twifiBroadcastReceiver = null;\r\n\r\n\t\t}\r\n\t\t// stop scan\r\n\t\t// oh, wait, we can't stop the scan, it's asynchronous!\r\n\t\t// we just have to ignore the result!\r\n\t\tignoreWifiResults = true;\r\n */\r\n\t}",
"public void stopScan()\n {\n //------------------------------------------------------------\n // Stop BLE Scan\n Toolbox.toast(getContext(), \"Stopping scan...\");\n scanLeDevice(false);\n }",
"private void onstop() {\n\t\tnearby_baidumap.setMyLocationEnabled(false);// 关闭定位\n\t\tN_locationclient.stop();// 结束定位请求\n\t\tmyOrientationListener.stop();\n\t\tsuper.onStop();\n\n\t}",
"public void stopListening() \n {\n keepListening = false;\n }",
"protected void stopBroadcastLocation() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n manager.cancel(pendingIntent);\n Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onStop() {\n if (mLocationClient.isConnected()) {\n /*\n * Remove location updates for a listener.\n * The current Activity is the listener, so\n * the argument is \"this\".\n */\n \tmLocationClient.removeLocationUpdates(mDataManager);\n \t\n }\n /*\n * After disconnect() is called, the client is\n * considered \"dead\".\n */\n mLocationClient.disconnect();\n super.onStop();\n }",
"@Override\r\n protected void onStop() {\r\n super.onStop();\r\n adapter.stopListening();\r\n }",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tunregisterReceiver(mMessageReceiver);\n\t}",
"@Override\n public void onConnectionSuspended(int i) {\n Log.e(TAG, \"onDisconnected\");\n\n stopLocationUpdates();\n stopSelf();\n }",
"private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }",
"private void stopSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.stopListening();\n }\n }",
"void stopListener()\n {\n\n locationManager.removeUpdates(RetriveLocation.this);\n isListening = false;\n }",
"@ReactMethod\n public void stop() {\n ChirpError error = chirpConnect.stop();\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n } else {\n isStarted = false;\n }\n }",
"@Override protected void onStop()\n {\n super.onStop();\n adapter.stopListening();\n }",
"private void stopListening() {\n if (DEBUG) Log.d(TAG, \"--- Sensor \" + getEmulatorFriendlyName() + \" is stopped.\");\n mSenMan.unregisterListener(mListener);\n }",
"public void stopStreaming() {\n phoneCam.stopStreaming();\n }",
"@Override\r\n protected void onStop() {\r\n // Disconnecting the client invalidates it.\r\n mLocationClient.disconnect();\r\n super.onStop();\r\n }",
"@RequiresPermission(allOf = {Manifest.permission.BLUETOOTH_ADMIN, Manifest.permission.BLUETOOTH, Manifest.permission.ACCESS_FINE_LOCATION})\n public void stopBleScan() {\n\n if (bleScanner != null) {\n bleScanner.stopScan();\n }\n }",
"public void stopTrackingGeoPushes()\n\t{\n\t\tmContext.stopService(new Intent(mContext, GeoLocationService.class));\n\t}",
"@Override\n protected void onStop() {\n super.onStop();\n adapter.stopListening();\n }",
"public void stopListening() {\r\n\t\tlisten.stopListening();\r\n\t}",
"@Override\n protected void onStop() {\n if (mGoogleApiClient != null) {\n mGoogleApiClient.disconnect();\n }\n\n if( mLocationClient != null )\n mLocationClient.disconnect();\n\n super.onStop();\n }",
"public final void stopListening() {\n if (mIsListening) {\n Log.i(TAG, \"LocationTracked has stopped listening for location updates\");\n mLocationManagerService.removeUpdates(this);\n mIsListening = false;\n } else {\n Log.i(TAG, \"LocationTracked wasn't listening for location updates anyway\");\n }\n }",
"public void stopListening()\n {\n if (listening) {\n sensorManager.cancelTriggerSensor(listener, motion);\n listening = false;\n }\n }",
"public void stopDtmfStream();",
"protected void stopCallConnectedTimer() {\n\t\tif(mModelInterface.isTimerStart(TIMER_TYPE.WAIT_CALL_CONNECTED)) {\n\t\t\tmModelInterface.stopTimer(TIMER_TYPE.WAIT_CALL_CONNECTED);\n\t\t}\n\t}",
"public void stopListening() {\n\t\tkeepListening = false;\n\t}",
"public synchronized void stop() {\n if (mConnectThread != null) {\n mConnectThread.cancel();\n mConnectThread = null;\n }\n if (mConnectedThread != null) {\n mConnectedThread.cancel();\n mConnectedThread = null;\n }\n isConnected = false;\n }",
"public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }",
"public void stopTracking() {\n mContext.unregisterReceiver(this);\n }",
"public void stopPolling() {\n\t\tconsumer.wakeup();\n\t\tlogger.info(\"Stopped polling\");\n\t}",
"public void stopReceiver() {\r\n\t\tif(receiver != null) {\r\n\t\t\treceiver.stop();\r\n\t\t\treceiver = null;\r\n\t\t}\r\n\t}",
"public synchronized void stop() {\n mBTManager = null;\n if(mLocationManager != null) {\n mLocationManager.removeUpdates(mLocationListener);\n mLocationManager.removeNmeaListener(mNmeaMessageListener);\n }\n }",
"@Override\n public void onStop() {\n if (mLocationClient.isConnected()) {\n stopPeriodicUpdates();\n }\n \n\n // After disconnect() is called, the client is considered \"dead\".\n mLocationClient.disconnect();\n\n super.onStop();\n }",
"@Override\n\tprotected void onStop() {\n\t\t// Disconnecting the client invalidates it.\n\t\tmLocationClient.disconnect();\n\t\tsuper.onStop();\n\t}",
"void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }",
"@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }",
"public void stopRinging();",
"public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}",
"private void subscribe() {\n Log.i(TAG, \"Subscribing\");\n mNearbyDevicesArrayAdapter.clear();\n SubscribeOptions options = new SubscribeOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new SubscribeCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer subscribing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mSubscribeSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.subscribe(mGoogleApiClient, mMessageListener, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Subscribed successfully.\");\n } else {\n logAndShowSnackbar(\"Could not subscribe, status = \" + status);\n mSubscribeSwitch.setChecked(false);\n }\n }\n });\n }",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tunregisterReceiver(broadcastReceiver);\n\t}",
"public void stopBroadcast(){\r\n\t\tthePres.stopBroadcast();\r\n\t\tstartBtn.setLabel(\"Start Broadcast\");\r\n\t\tdrawer.stopTasking();\r\n\t\tisPlaying = false;\r\n\t\tcurrRateLabel.setText(\"0 \");\r\n\t}",
"@Override\n\tpublic void onStop() {\n\n\t\t// If the client is connected\n\t\tif (mLocationClient.isConnected()) {\n\t\t\tstopPeriodicUpdates();\n\t\t}\n\n\t\t// After disconnect() is called, the client is considered \"dead\".\n\t\tmLocationClient.disconnect();\n\n\t\tsuper.onStop();\n\t}",
"public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }",
"public void stop() {\n mediaController.getTransportControls().stop();\n }",
"public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }",
"public void stopSensors() {\r\n\t\tsensorManager.unregisterListener(this);\r\n\r\n\t\tLog.d(TAG, \"Called stopSensors\");\r\n\t}",
"@SuppressLint(\"NewApi\") \n\tprivate void stopScan() {\n\t\tif (mIsScanning) {\n\t\t\tDFUManager.log(TAG, \"stopScan\");\n\t\t\tmBluetoothAdapter.stopLeScan(mLEScanCallback);\n\t\t\tmIsScanning = false;\n\t\t}\n\t}",
"@Override\n protected void onStop() {\n if (null != googleClient && googleClient.isConnected()) {\n googleClient.disconnect();\n }\n super.onStop();\n }",
"@Override\n\tpublic void StopListening()\n\t{\n\t\t\n\t}",
"public void disconnect() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mApplicationContext);\n prefs.edit().putBoolean(\"xmpp_logged_in\", false).commit();\n\n if (mConnection != null) {\n mConnection.disconnect();\n }\n\n mConnection = null;\n // Unregister the message broadcast receiver.\n if (uiThreadMessageReceiver != null) {\n mApplicationContext.unregisterReceiver(uiThreadMessageReceiver);\n uiThreadMessageReceiver = null;\n }\n }",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(newReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(userReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\tBmobChat.getInstance(this).stopPollService();\r\n\t}",
"public void stop() {\n try {\n getXMPPServer().stop();\n }\n catch (Exception e) {\n Log.error(e.getMessage(), e);\n }\n sleep();\n }",
"public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }",
"@Override\n public void onLost(final Message message) {\n mNearbyDevicesArrayAdapter.remove(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"@Override\n public void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"public void stopInbound();",
"@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }",
"@Override\n protected void onStop() {\n unregisterReceiver(myReceiverActivity);\n super.onStop();\n }",
"@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }",
"public void stopSending ();",
"@Override\n protected void onStop() {\n if (mGoogleApiClient.isConnected()) {\n mGoogleApiClient.disconnect();\n }\n\n super.onStop();\n }",
"public void cancelDisconnect() {\n if (manager != null) {\n if (device == null\n || device.status == WifiP2pDevice.CONNECTED) {\n disconnect();\n } else if (device.status == WifiP2pDevice.AVAILABLE\n || device.status == WifiP2pDevice.INVITED) {\n manager.cancelConnect(channel, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n }\n\n @Override\n public void onFailure(int reasonCode) {\n }\n });\n }\n }\n }",
"public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }",
"@Override\r\n protected void onStop() {\n super.onStop();\r\n if (mGoogleApiClient.isConnected()) {\r\n mGoogleApiClient.disconnect();\r\n }\r\n }",
"void stopHelloSender();",
"private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}",
"public void Stop_Connection(){\n keepWalking = false; //gia na stamatisei to chat alliws to thread dn ginete interrupt gt dn stamataei i liturgeia tou.\n Chat_Thread.interrupt();\n try {\n if(oos != null) oos.close();\n if(ois != null) ois.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n if(socket !=null) socket.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\r\n protected void onStop() {\r\n\r\n if (mGoogleApiClient.isConnected()) {\r\n LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this);\r\n mGoogleApiClient.disconnect();\r\n }\r\n super.onStop();\r\n }",
"private void stopDiscovery() {\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n }",
"public void stopListening() {\n try {\n mListenerSocket.close();\n } catch (IOException e) {\n // just log\n Log.e(\"LanConnection\",\"Error closing listener socket at \" + LOCAL_PORT, e);\n }\n }",
"public void disconnect() {\n if (serverSocket != null) {\n try {\n serverSocket.close();\n Log.i(TAG, \"ServerSocket closed\");\n } catch (IOException e) {\n Log.e(TAG, \"Error closing the serverSocket\");\n }\n }\n\n sendDisconnectionMessage();\n\n // FIXME - Change this into a message sent it listener\n // Wait 2 seconds to disconnection message was sent\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n WiFiDirectUtils.clearServiceRequest(wiFiP2PInstance);\n WiFiDirectUtils.stopPeerDiscovering(wiFiP2PInstance);\n WiFiDirectUtils.removeGroup(wiFiP2PInstance);\n\n serverSocket = null;\n isRegistered = false;\n clientsConnected.clear();\n }\n }, 2000);\n }",
"public void goAway() {\n Enumeration<ChatClientRoom> cc = clientSessionList.elements();\n while (cc.hasMoreElements()) {\n ChatClientRoom ccr = cc.nextElement();\n ccr.goAway();\n }\n this.dispose();\n try {\n rpc.disconnect();\n } catch (Exception e) {\n System.err.println(\"ChatClientLogin could not disconnect from GMI\");\n }\n System.exit(0);\n }",
"@Override\n protected void onStop ()\n {\n super.onStop();\n if (receiver != null)\n {\n cleanupReceiver();\n cleanupAccount();\n }\n }",
"public void stop() {\n // If we weren't scanning, or Bluetooth is not supported, we're done.\n if (!scanning || adapter == null) {\n return;\n }\n\n // If Bluetooth is not enabled, scanning will automatically have been stopped.\n if (!adapter.isEnabled()) {\n scanning = false;\n Log.i(TAG, \"Scanning stopped by adapter.\");\n return;\n }\n\n // Get the BLE scanner. If this is null, Bluetooth may not be enabled.\n BluetoothLeScanner scanner = adapter.getBluetoothLeScanner();\n if (scanner == null) {\n Log.w(TAG, \"Could not retrieve scanner to stop scanning.\");\n return;\n }\n scanner.stopScan(scanCallback);\n\n scanning = false;\n Log.i(TAG, \"Stopped scanning.\");\n }",
"@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }",
"@Override\n\tpublic void onDestroy(){\n\t\tmNotifMng.cancel(NOTIFICATION_ID);\n\t\tif(mConnectThread != null){\n\t\t\tmConnectThread.interrupt();\n\t\t\tmConnectThread.stopRunning();\n\t\t}\n\t\t//Unregister the phone receiver\n\t\tunregisterReceiver(mSmsListener);\n\t}",
"public void StopListening()\n\t{\n\t\tif (true == mbHasAccelerometer && true == mbListening)\n\t\t{\n\t\t\tmbListening = false;\n\t\t\t\n\t\t\tfinal AccelerometerNativeInterface accelerometerNI = this;\n\t\t\tRunnable task = new Runnable()\n\t\t\t{ \n\t\t\t\t@Override public void run() \n\t\t\t\t{\n\t\t\t\t\tSensorManager sensorManager = (SensorManager)CSApplication.get().getActivityContext().getSystemService(Activity.SENSOR_SERVICE);\n\t\t\t\t\tsensorManager.unregisterListener(accelerometerNI);\n\t\t\t\t}\n\t\t\t};\n\t\t\tCSApplication.get().scheduleUIThreadTask(task);\n\t\t}\n\t}",
"@Override\n protected void onStop() {\n super.onStop();\n if (isBounded) {\n unbindService(mConnection);\n isBounded = false;\n }\n }",
"public void stopDiscoverability() {\r\n this.findableServerThread.interrupt();\r\n }",
"@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void stop() throws IOException {\n \t\t_chat.shutdown();\n \t}",
"@Override\n\tprotected void onStop() {\n\t\tsendMessageToService(ConnectionService.STOP);\n\t\tsuper.onStop();\n\t}",
"public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }",
"public synchronized void stop() {\n try {\r\n \tpartnerQueryEngine.logout();\r\n } catch (ConnectionException e1) {\r\n \tUtilityLib.warnException(LOG, e1);\r\n } \r\n stopped = true;\r\n }",
"public void cancel() {\n try {\n mmOutStream.close();\n mmInStream.close();\n mmSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }",
"public static void stopStream(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.STOP_STREAM);\n context.startService(intent);\n }",
"public void doDisconnect() {\n synchronized (getStreamSyncRoot()) {\n Object[] streams = streams();\n if (!(streams == null || streams.length == 0)) {\n for (Object stream : streams) {\n if (stream instanceof PulseAudioStream) {\n try {\n ((PulseAudioStream) stream).disconnect();\n } catch (IOException e) {\n }\n }\n }\n }\n }\n super.doDisconnect();\n }",
"void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }",
"@Override\n\t\tpublic void onConnectionSuspended(int arg0) {\n\t\t\tLocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, appLocationService);\n\t\t}",
"@Override\n protected void onPause() {\n Log.d(TAG, \"onPause: Unregistering for broadcasts\");\n placesBroadcastReceiver.unregister();\n super.onPause();\n AppEventsLogger.deactivateApp(this);\n }"
] | [
"0.6235016",
"0.62090975",
"0.6131625",
"0.61048794",
"0.61046916",
"0.6100771",
"0.5969797",
"0.58645964",
"0.58634096",
"0.5860216",
"0.58346254",
"0.58291876",
"0.5809855",
"0.58071554",
"0.57942027",
"0.578951",
"0.577963",
"0.57795465",
"0.57745594",
"0.5772088",
"0.57715124",
"0.57696676",
"0.5769628",
"0.576796",
"0.57645583",
"0.5755184",
"0.575434",
"0.5750351",
"0.573632",
"0.5734305",
"0.57336503",
"0.5730985",
"0.57298",
"0.5729001",
"0.57244104",
"0.5711553",
"0.570818",
"0.57070786",
"0.5705092",
"0.5698735",
"0.56918156",
"0.56858754",
"0.5682149",
"0.5676443",
"0.5670843",
"0.56674397",
"0.56541747",
"0.56225294",
"0.56167555",
"0.5615245",
"0.559778",
"0.55976564",
"0.55884933",
"0.55829334",
"0.5566472",
"0.55536413",
"0.55522746",
"0.5550217",
"0.55464745",
"0.55296725",
"0.5525079",
"0.5516395",
"0.55159056",
"0.5502956",
"0.55025536",
"0.5491586",
"0.5491586",
"0.5486597",
"0.5484368",
"0.5483547",
"0.5481435",
"0.54813945",
"0.5480933",
"0.54776824",
"0.547615",
"0.54722995",
"0.5466962",
"0.5459933",
"0.54527664",
"0.5445692",
"0.5439004",
"0.5430453",
"0.5421831",
"0.54140216",
"0.5413406",
"0.5409613",
"0.5396305",
"0.53945905",
"0.5389528",
"0.5380413",
"0.5373994",
"0.53703195",
"0.53686684",
"0.536171",
"0.5360146",
"0.5356198",
"0.5351852",
"0.5346192",
"0.5336772",
"0.5333957"
] | 0.6676334 | 0 |
Stops publishing message to nearby devices. | private void unpublish() {
Log.i(TAG, "Unpublishing.");
Nearby.Messages.unpublish(mGoogleApiClient, mPubMessage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop_moving() {\n\t\tlogger.info(\"Human stop requested!\");\n\t\tPublisher move_base = new Publisher(\"/ariac_human/stop\", \"std_msgs/Bool\", bridge);\t\t\n\t\tmove_base.publish(new Bool(true)); \n\t}",
"public static void stop() {\n enableIncomingMessages(false);\n }",
"public void stopBroadcast(){\r\n\t\tthePres.stopBroadcast();\r\n\t\tstartBtn.setLabel(\"Start Broadcast\");\r\n\t\tdrawer.stopTasking();\r\n\t\tisPlaying = false;\r\n\t\tcurrRateLabel.setText(\"0 \");\r\n\t}",
"public void stop() {\n setDest(location);\n }",
"public void stop() {\n mediaController.getTransportControls().stop();\n }",
"public void stopStreaming() {\n phoneCam.stopStreaming();\n }",
"public void stopFeeding() {\n motor.set(0);\n }",
"public void sendStopMessage() {\n // A default stop type message\n FirebaseMessage stopMessage = new FirebaseMessage(\"STOP\", null, \"STOP\");\n if (!messageQueue.offer(stopMessage)) {\n logger.error(\"The stop message could not be sent\");\n }\n }",
"protected void stopBroadcastLocation() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n manager.cancel(pendingIntent);\n Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"public void stopTrackingGeoPushes()\n\t{\n\t\tmContext.stopService(new Intent(mContext, GeoLocationService.class));\n\t}",
"public void stopSending ();",
"private void onstop() {\n\t\tnearby_baidumap.setMyLocationEnabled(false);// 关闭定位\n\t\tN_locationclient.stop();// 结束定位请求\n\t\tmyOrientationListener.stop();\n\t\tsuper.onStop();\n\n\t}",
"public void stop() {\n try {\n getXMPPServer().stop();\n }\n catch (Exception e) {\n Log.error(e.getMessage(), e);\n }\n sleep();\n }",
"private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tunregisterReceiver(mMessageReceiver);\n\t}",
"public void stopRinging();",
"private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }",
"public void stop() {\n // Stop multicast daemon\n mdaemon.stopRunning();\n mdaemon= null;\n \n stop_announce_timer();\n // Clean Routing information\n if (rprocesses != null)\n rprocesses.clear();\n // Clean Routing table\n if (main_rtab != null)\n main_rtab.clear();\n // Clear Routing table window\n update_routing_window();\n\n local_name= ' ';\n neig= null;\n win= null;\n ds= null;\n tableObj= null;\n }",
"protected void onStop() {\n super.onStop();\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"walkersAvailable\");\n GeoFire geoFire = new GeoFire(ref);\n geoFire.removeLocation(userId);\n }",
"private synchronized void stopWiperService()\n {\n Message msg = Message.obtain(mHandler, STOP_WIPER_SERVICE);\n mHandler.sendMessage(msg);\n }",
"public void stopSending() {\n shouldSend = false;\n connection.getChannel()\n .getApi()\n .getThreadPool()\n .removeAndShutdownSingleThreadExecutorService(threadName);\n }",
"@Override\n public void onLost(final Message message) {\n mNearbyDevicesArrayAdapter.remove(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"void stopPumpingEvents();",
"private void stopSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.stopListening();\n }\n }",
"public void stopTrack() {\n\t\ttwitterStream.shutdown();\n\t}",
"public void stopTracking() {\n mContext.unregisterReceiver(this);\n }",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tMessageReceiver.ehList.remove(this);// 取消监听推送的消息\r\n\t}",
"public void stopPropose(int instanceId, int destination);",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tunregisterReceiver(broadcastReceiver);\n\t}",
"public synchronized void stop() {\n try {\r\n \tpartnerQueryEngine.logout();\r\n } catch (ConnectionException e1) {\r\n \tUtilityLib.warnException(LOG, e1);\r\n } \r\n stopped = true;\r\n }",
"public void stop()\n {\n mediaPlayer.stop();\n }",
"public void stopBroadcastButtonHandler(View view) {\n if (mBroadcastingLocation) {\n mBroadcastingLocation = false;\n setButtonsEnabledState();\n stopBroadcastLocation();\n }\n }",
"public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }",
"public void stopDtmfStream();",
"private void broadcastEndEvent(PresenceMessage message) {\n\t\t\n\t\tCollection<String> calls = gatewayStorageService.getCallsForNode(message.getFrom().toString());\n\t\tfor (String callId : calls) {\n\t\t\tJID fromJid = createInternalJid(callId, message);\n\t\t\tString target = gatewayStorageService.getclientJID(callId);\n\t\t\tJID targetJid = getXmppFactory().createJID(target);\n\t\t\tCoreDocumentImpl document = new CoreDocumentImpl(false);\n\t\t\torg.w3c.dom.Element endElement = document.createElementNS(\"urn:xmpp:rayo:1\", \"end\");\n\t\t\torg.w3c.dom.Element errorElement = document.createElement(\"error\");\n\t\t\tendElement.appendChild(errorElement);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tPresenceMessage presence = getXmppFactory().createPresence(\n\t\t\t\t\t\tfromJid, targetJid, null, endElement);\n\t\t\t\tpresence.send();\n\t\t\t\tgatewayStatistics.errorProcessed();\n\t\t\t} catch (Exception e) {\t \t\t\n\t\t\t\tlog.error(\"Could not send End event to Jid [%s]\", targetJid);\n\t\t\t\tlog.error(e.getMessage(),e);\n\t\t\t}\t \t\n\t\t}\n\t}",
"@Override\n public void run() {\n Log.d(\"Final\", devices.toString());\n client.stopDiscovery();\n }",
"@Override\n protected void onPause() {\n Log.d(TAG, \"onPause: Unregistering for broadcasts\");\n placesBroadcastReceiver.unregister();\n super.onPause();\n AppEventsLogger.deactivateApp(this);\n }",
"public void stop()\n {\n mover.stop();\n }",
"public void stopListening();",
"@Override\n public void stop() {\n setDebrisPusher(DebrisPusherDirection.Down);\n }",
"public void stopReceiver() {\r\n\t\tif(receiver != null) {\r\n\t\t\treceiver.stop();\r\n\t\t\treceiver = null;\r\n\t\t}\r\n\t}",
"private void stopListening() {\n if (DEBUG) Log.d(TAG, \"--- Sensor \" + getEmulatorFriendlyName() + \" is stopped.\");\n mSenMan.unregisterListener(mListener);\n }",
"public void stopReceiving() {\n\t\tcallerContext.unregisterReceiver(this);\n\t}",
"public void stopInbound();",
"public void stop() throws LLZException\n {\n synchronized (this.lock)\n {\n // If already stopped launch an error\n if (this.stopped)\n {\n LOGGER.error(\"Trying to prepareToStop the sender manager twice\");\n throw new LLZException(\"The sender manager is already stopped\");\n }\n\n // Destroy all the topic publishers\n for (final String topicName : this.topicPublishersByTopicName.keySet())\n {\n this.destroyTopicPublisher(topicName);\n }\n\n // Clean collection\n this.topicPublishersByTopicName.clear();\n\n // Stop and clean the pools of publishers\n this.publishersPools.stopAndCleanAll();\n\n this.stopped = true;\n }\n }",
"@Override\n protected void onPause() {\n LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver);\n super.onPause();\n finish();\n }",
"protected void stopWifiScan() {\r\n\r\n //TERMINA LA SCANSIONE BLUETOOTH\r\n\t\thideWifiScanDialog();\r\n BeaconsMonitoringService.action.set(BeaconSession.SCANNING_OFF);\r\n\r\n /*\r\n\t\tif (wifiBroadcastReceiver != null) {\r\n\r\n\t\t\tWifiScanner.stopScanner(this, wifiBroadcastReceiver);\r\n\t\t\twifiBroadcastReceiver = null;\r\n\r\n\t\t}\r\n\t\t// stop scan\r\n\t\t// oh, wait, we can't stop the scan, it's asynchronous!\r\n\t\t// we just have to ignore the result!\r\n\t\tignoreWifiResults = true;\r\n */\r\n\t}",
"public void stop() {\n closed.set(true);\n consumer.wakeup();\n }",
"public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }",
"public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}",
"public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }",
"void stopHelloSender();",
"@Override\r\n protected void onStop() {\r\n super.onStop();\r\n adapter.stopListening();\r\n }",
"public void stopPolling() {\n\t\tconsumer.wakeup();\n\t\tlogger.info(\"Stopped polling\");\n\t}",
"public static void stopStream(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.STOP_STREAM);\n context.startService(intent);\n }",
"@Override\n protected void onPause() {\n super.onPause();\n unregisterReceiver(broadcastReceiverDriverLocation);\n }",
"public void stop() throws MessagingException\r\n\t{\r\n\t\tthis.server.close();\r\n\t\tthis.generator = null;\r\n\t\tthis.log = null;\r\n\t\tthis.subscription = null;\r\n\r\n\t\tSystem.gc();\r\n\t}",
"public void stopPlayThread() {\n ms.stop();\n }",
"@Override\n protected void onStop ()\n {\n super.onStop();\n if (receiver != null)\n {\n cleanupReceiver();\n cleanupAccount();\n }\n }",
"public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }",
"public void stop()\n {\n storage.stop();\n command.stop();\n }",
"@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }",
"private void goAway() {\n CollaborationConnection connection = CollaborationConnection\n .getConnection();\n Presence presence = connection.getPresence();\n if (presence.getMode().equals(Mode.available)) {\n previousPresence = presence;\n Presence newPresence = new Presence(presence.getType(),\n presence.getStatus(), presence.getPriority(), Mode.away);\n Tools.copyProperties(presence, newPresence);\n timerSetAway = sendPresence(connection, newPresence);\n }\n }",
"private void stopDiscovery() {\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n }",
"private void stop() {\n System.out.println(\"Stopping on \"+ _currentFloor.floorName() +\" floor \" );\n _currentFloor.clearDestinationRequest();\n _passengersOnboard = _passengersOnboard - _currentFloor.queuedPassengers();\n _currentFloor.clearQueuedPassengers();\n System.out.println(this);\n\n }",
"public void stopListeningFoConnection() {\n /* If it's running stop synchronization. */\n stopAllWorkerThreads();\n\n }",
"protected void end() {\n \tdrivemotors.stop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n adapter.stopListening();\n }",
"public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }",
"@Override protected void onStop()\n {\n super.onStop();\n adapter.stopListening();\n }",
"@Override\r\n\tpublic void onStop() \r\n\t{\n\t\tsuper.onStop();\r\n\r\n\t\t_pinger.stop();\r\n\t\t_hostEnumerator.stop();\r\n\t\tLog.i(TAG, \"onStop\");\r\n\t}",
"public void stopDiscoverability() {\r\n this.findableServerThread.interrupt();\r\n }",
"public void streamBroadcastClose(IBroadcastStream stream);",
"public void stopScan()\n {\n //------------------------------------------------------------\n // Stop BLE Scan\n Toolbox.toast(getContext(), \"Stopping scan...\");\n scanLeDevice(false);\n }",
"public void stop() {\r\n _keepGoing = false;\r\n }",
"@Override\n public void stop() {\n telemetry.addData(\"Say\", \"It Stopped!\");\n }",
"public void StopStreaming()\n {\n handler.StopStreaming();\n }",
"@Override\n protected void onStop() {\n unregisterReceiver(myReceiverActivity);\n super.onStop();\n }",
"public void stopListening() \n {\n keepListening = false;\n }",
"@Override\n protected void onStop() {\n super.onStop();\n if (isBounded) {\n unbindService(mConnection);\n isBounded = false;\n }\n }",
"public void stopSensors() {\r\n\t\tsensorManager.unregisterListener(this);\r\n\r\n\t\tLog.d(TAG, \"Called stopSensors\");\r\n\t}",
"private void stopPulling() {\n\n // un register this task\n eventDispatcher.unRegister(this);\n\n // tell the container to send response\n asyncContext.complete();\n\n // cancel data changed listening\n if (pullingTimeoutFuture != null){\n pullingTimeoutFuture.cancel(false);\n }\n }",
"@Override\r\n protected void onStop() {\r\n // Disconnecting the client invalidates it.\r\n mLocationClient.disconnect();\r\n super.onStop();\r\n }",
"public synchronized void stop() {\n mBTManager = null;\n if(mLocationManager != null) {\n mLocationManager.removeUpdates(mLocationListener);\n mLocationManager.removeNmeaListener(mNmeaMessageListener);\n }\n }",
"public void offMovimentSensor(){\r\n long timestamp= System.currentTimeMillis();\r\n for (Moviment sm:listSensorMoviment()){\r\n if(sm.isDetection()==true){\r\n long limit=sm.getTime()+sm.getInterval();\r\n if(timestamp>limit){\r\n sm.setDetection(false);\r\n sm.setTime(0);\r\n for (Light l:lights)\r\n l.setStatus(false);\r\n }\r\n }\r\n }\r\n }",
"public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }",
"public void stop() {\n synchronized (mLock) {\n //if (!mRunning)\n //{\n // throw new IllegalStateException(\"CameraStreamer is already stopped\");\n //} // if\n \t\n \tLog.d(TAG, \"Stop\");\n \t\n mRunning = false;\n if (mMJpegHttpStreamer != null) {\n mMJpegHttpStreamer.stop();\n mMJpegHttpStreamer = null;\n } // if\n \n if (mCamera != null) {\n mCamera.release();\n mCamera = null;\n } // if\n } // synchronized\n mLooper.quit();\n }",
"@Override\n public void onStop() {\n if (mLocationClient.isConnected()) {\n stopPeriodicUpdates();\n }\n \n\n // After disconnect() is called, the client is considered \"dead\".\n mLocationClient.disconnect();\n\n super.onStop();\n }",
"private void stop() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\treturn;\n\t\t}\n\t\tthis.sourceRunner.stop();\n\t\tthis.channel.stop();\n\t\tthis.sinkCounter.stop();\n\t}",
"@Override\r\n\t\tpublic void dmr_stop() throws RemoteException {\n\t\t\tUtils.printLog(TAG, \"dmr_stop\");\r\n\t\t\tisDMRstop = true;\r\n\t\t\tLog.d(TAG,\"now isDMR is \"+ isDMR);\r\n\t\t\tif(isDMR){ //add here 20161125 for dmr push first,message play next,then dmr stop,tv stop\r\n\t\t\t exitVideoPlay();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"@Override\n protected void onStop() {\n if (mLocationClient.isConnected()) {\n /*\n * Remove location updates for a listener.\n * The current Activity is the listener, so\n * the argument is \"this\".\n */\n \tmLocationClient.removeLocationUpdates(mDataManager);\n \t\n }\n /*\n * After disconnect() is called, the client is\n * considered \"dead\".\n */\n mLocationClient.disconnect();\n super.onStop();\n }",
"@Override\n protected void onStop() {\n if (null != googleClient && googleClient.isConnected()) {\n googleClient.disconnect();\n }\n super.onStop();\n }",
"public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }",
"public void stop (String message);",
"public final void stopEventGeneration() throws LDAPException {\n if (Debug.LDAP_DEBUG) {\n Debug.trace(Debug.EventsCalls, \"Closing EventGeneration\");\n }\n\n isrunning = false;\n ldapconnection.abandon(searchqueue);\n }",
"@Stop(priority = 99)\n void stop() {\n for (List<ListenerInvocation> list : listenersMap.values()) {\n if (list != null) list.clear();\n }\n\n if (syncProcessor != null) syncProcessor.shutdownNow();\n }",
"@Override\n\tpublic synchronized void stop(){\n\t\tif (estimationThread.running == true) {\n\t\t\testimationThread.running = false;\n\t\t\t// Wait for the thread to stop\n\t\t\ttry {\n\t\t\t\testimationThread.join(0);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\t// Remove any unused pose info\n\t\t\t\tfor (Subscription subscription : subscriptions) {\n\t\t\t\t\tsubscription.orientations.clear();\n\t\t\t\t\tsubscription.positions.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }",
"public void onViewportOut() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n\n // Stop all animations in the view\n stopAllAnimationDrawables(widgetView);\n\n // Notify the widget provider\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_OUT_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n }",
"private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }"
] | [
"0.6255282",
"0.60271406",
"0.5978288",
"0.5836855",
"0.5726734",
"0.5703639",
"0.5660914",
"0.56540024",
"0.5640751",
"0.5621938",
"0.5620637",
"0.56040597",
"0.5599974",
"0.5543235",
"0.54943913",
"0.54929477",
"0.548179",
"0.5466968",
"0.5462426",
"0.5457393",
"0.54210186",
"0.5411448",
"0.54100746",
"0.53981537",
"0.539767",
"0.5391734",
"0.5371176",
"0.5366429",
"0.53469723",
"0.5329724",
"0.5294149",
"0.5287153",
"0.52854776",
"0.52827287",
"0.52811956",
"0.5280852",
"0.528034",
"0.52729344",
"0.52652675",
"0.5260235",
"0.52585554",
"0.52558947",
"0.5252266",
"0.52464235",
"0.52307796",
"0.5229526",
"0.5227928",
"0.5221576",
"0.521861",
"0.52181876",
"0.521509",
"0.5211415",
"0.5207156",
"0.5205185",
"0.5192949",
"0.5189949",
"0.51869166",
"0.5176758",
"0.51668906",
"0.51658165",
"0.51587445",
"0.51552254",
"0.5153999",
"0.5146285",
"0.5143471",
"0.51425207",
"0.51274925",
"0.512722",
"0.51242256",
"0.512275",
"0.5117466",
"0.5113815",
"0.5103178",
"0.5095546",
"0.50955147",
"0.5077108",
"0.50735587",
"0.5069855",
"0.5068621",
"0.5063735",
"0.506277",
"0.5054451",
"0.505296",
"0.5040686",
"0.50308603",
"0.5029365",
"0.5028694",
"0.5026353",
"0.5022776",
"0.5022036",
"0.5000292",
"0.4990985",
"0.49896634",
"0.49864694",
"0.49844033",
"0.49817094",
"0.49810123",
"0.49789292",
"0.49682876",
"0.49668583"
] | 0.61305374 | 1 |
Implementation note: We limit the number of threads that can submit a request in parallel, otherwise all those requests would end up overwhelming the mainthread, that puts them in a queue, among other things. | public void enqueueTransfer(
@Code int code, TransferConfiguration configuration) throws InterruptedException {
TransferRequest request = TransferRequest.create(code, configuration);
mRequestSemaphore.acquire();
try {
Optional<TransferManagerService> service = checkNotNull(mLiveService.getValue());
if (service.isPresent()) {
int startId = mNextStartId.getAndIncrement();
service.get().request(request, startId);
return;
}
} finally {
mRequestSemaphore.release();
}
mContext.startForegroundService(request.getIntent(mContext));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}",
"private static boolean parallelTest() {\r\n\t\t// create a thread for each URL\r\n\t\tint threadPoolSize = urlList.size();\r\n\t\tlogger.finest(\"thread pool size = \" + threadPoolSize);\r\n\r\n\t\t//\r\n\t\t// open a background TCP connection\r\n\t\t// send parallel HTTP requests\r\n\t\t//\r\n\t\ttry (Socket backgroundSocket = new Socket(serverName, serverPort)) {\r\n\t\t\t// open IO sterams for background connection\r\n\t\t\tbackgroundSocket.getOutputStream();\r\n\t\t\tbackgroundSocket.getInputStream();\r\n\t\t\tlogger.info(\"background TCP connection opened\");\r\n\t\t\t\r\n\t\t\t// use ExecutorService to manage threads\r\n\t\t\tExecutorService executor = Executors.newFixedThreadPool(threadPoolSize);\r\n\t\t\t\r\n\t\t\t// send all rquests in parallel\r\n\t\t\tlogger.fine(\"sending parallel requests\");\r\n\t\t\tfor (URL url : urlList) { \r\n\t\t\t\tHttpClient client = new HttpClient(url);\r\n\t\t\t\texecutor.execute(client);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// wait for test to finish\r\n\t\t\tlogger.fine(\"waiting for requests to complete...\");\r\n\t\t\texecutor.shutdown(); \r\n\t\t\twhile (!executor.isTerminated())\r\n\t\t\t\tThread.yield(); // return the control to system\r\n\t\t\tlogger.fine(\"all requests completed\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.info(\"failed to open background TCP connection: \" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }",
"@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }",
"public Barrier (int max) {\n\t\tMAX_THREADS_TO_SYNCHRONIZE = max;\n\t\tcount = 0;\n\t}",
"public void testForNThreads();",
"public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }",
"@Test\n\tpublic void sameThreadPoolDueToAffinity() throws Exception {\n\t\tString previousCore = null;\n\t\tfor (int i = 0; i < 100; i++) {\n\n\t\t\t// GET entry\n\t\t\tMockHttpResponse response = this.server.send(MockHttpServer.mockRequest(\"/\"));\n\t\t\tString html = response.getEntity(null);\n\t\t\tassertEquals(200, response.getStatus().getStatusCode(), \"Should be successful: \" + html);\n\n\t\t\t// Parse out the core\n\t\t\tPattern pattern = Pattern.compile(\".*CORE-(\\\\d+)-.*\", Pattern.DOTALL);\n\t\t\tMatcher matcher = pattern.matcher(html);\n\t\t\tassertTrue(matcher.matches(), \"Should be able to obtain thread affinity core\");\n\t\t\tString core = matcher.group(1);\n\n\t\t\t// Ensure same as previous core (ignoring first call)\n\t\t\tif (previousCore != null) {\n\t\t\t\tassertEquals(previousCore, core, \"Should be locked to same core\");\n\t\t\t}\n\n\t\t\t// Set up for next call\n\t\t\tpreviousCore = core;\n\t\t}\n\t}",
"public void postTasks(int numThreads) {\n final String URL = \"http://localhost:7070/rest/load\";\n System.out.println(\"Starting POST requests...\");\n long startTime = System.currentTimeMillis();\n\n // Testing for 10000 data\n // Test for entire dataset use : Records.size()\n System.out.println(\"Number of Records to be written: \" + Records.size());\n System.out.println(\"Number of Threads: \" + numThreads);\n\n Client client = ClientBuilder.newClient();\n WebTarget webTarget = client.target(URL);\n Stat stat = new Stat();\n final PostRecord postRecord = new PostRecord(webTarget, stat);\n\n ExecutorService pool = Executors.newFixedThreadPool(numThreads);\n\n List<Stat> listStat = new ArrayList<>();\n\n for (Record record : Records) {\n pool.submit(() -> listStat.add(postRecord.doPost(record)));\n\n }\n\n pool.shutdown();\n\n try {\n pool.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Stats\n long endTime = System.currentTimeMillis();\n System.out.println(\"Time Taken: \" + (endTime-startTime));\n statsOutput(startTime, endTime ,stat,numThreads, listStat);\n\n }",
"public static void main(String[] args) throws InterruptedException {\n\n Random random = new Random();\n RateLimitingVOne rateLimiter = new RateLimitingVOne();\n UUID userId = UUID.randomUUID();\n\n List<Request> allRequests = new ArrayList<>();\n\n long start = System.currentTimeMillis();\n for (int i = 1; i < 100; i++) {\n int count = random.nextInt(10);\n Request nr = new Request(count> 0 ? count : 1, System.currentTimeMillis(), i);\n allRequests.add(nr);\n rateLimiter.handleNewRequest(nr, userId);\n// sleep(random.nextInt(350));\n sleep(250);\n }\n\n long elapsed = System.currentTimeMillis() - start;\n\n System.out.println(\"Time ---- >> \"+ elapsed);\n\n for (Request tr : allRequests) {\n long since = (tr.timestamp - start);\n int count = tr.isRejected ? -tr.requestsCount : tr.requestsCount;\n System.out.println(tr.sequence+\", \"+ since + \" , \" + count);\n }\n\n\n Request r = rateLimiter.userRequestLog.get(userId);\n int count =0;\n while (r.previous != null) {\n count++;\n r = r.previous;\n }\n\n System.out.println(count);\n\n\n }",
"public static void main(String[] args) {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new LinkedBlockingQueue<Runnable>());\r\n System.out.println(executor.getCorePoolSize());\r\n System.out.println(executor.getMaximumPoolSize());\r\n System.out.println(\"***************************\");\r\n ThreadPoolExecutor executor2 = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new SynchronousQueue<Runnable>());\r\n System.out.println(executor2.getCorePoolSize());\r\n System.out.println(executor2.getMaximumPoolSize());\r\n\r\n// 7\r\n// 8\r\n// ***************************\r\n// 7\r\n// 8\r\n\r\n // 熟悉下api,查询线程池中保存的core线程数量为7,最大为8\r\n }",
"public void sendGetRequest() {\r\n\t\tString[] requests = this.input.substring(4, this.input.length()).split(\" \"); \r\n\t\t\r\n\t\tif(requests.length <= 1 || !(MyMiddleware.readSharded)){\r\n\t\t\tnumOfRecipients = 1;\r\n\t\t\trecipient = servers.get(loadBalance());\r\n\r\n\t\t\trecipient.send(this, input);\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\t\r\n\t\t\tif(requests.length <= 1) {\r\n\t\t\t\tnumOfGets++;\r\n\t\t\t\ttype= \"10\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumOfMultiGets++;\r\n\t\t\t\ttype = requests.length+\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString reply = recipient.receive();\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\t\r\n\t\t\tint hit = 0;\r\n\t\t\thit += reply.split(\"VALUE\").length - 1;\r\n\t\t\tmiss += requests.length-hit;\r\n\r\n\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsendBack(currentJob.getClient(), reply);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumOfMultiGets++;\r\n\t\t\ttype = requests.length+\"\";\r\n\t\t\tnumOfRecipients = servers.size();\r\n\t\t\trequestsPerServer = requests.length / servers.size();\r\n\t\t\tremainingRequests = requests.length % servers.size() ;\r\n\t\t\t\r\n\t\t\t//The worker thread sends a number of requests to each server equal to requestsPerServer \r\n\t\t\t//and at most requestsPerServer + remainingRequests\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < servers.size(); i++) {\r\n\t\t\t\tmessage = requestType;\r\n\t\t\t\tfor(int j = 0; j < requestsPerServer; j++){\r\n\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\tmessage += requests[requestsPerServer*i+j];\r\n\t\t\t\t\tif(i < remainingRequests) {\r\n\t\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\t\tmessage += requests[requests.length - remainingRequests + i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tservers.get(i).send(this, message);\r\n\t\t\t}\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\tint hit = 0;\r\n\t\t\tfor(ServerHandler s : servers) {\r\n\t\t\t\tString ricevuto = s.receive();\r\n\t\t\t\thit += ricevuto.split(\"VALUE\").length - 1;\r\n\t\t\t\treplies.add(ricevuto);\r\n\t\t\t}\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\r\n\t\t\tmiss += requests.length-hit;\r\n\t\t\t\r\n\t\t\tfinalReply = \"\";\r\n\t\t\tfor(String reply : replies) {\r\n\t\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\t\treplies.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treply = reply.substring(0, reply.length() - 3);\r\n\t\t\t\t\tfinalReply += reply;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalReply += \"END\";\r\n\t\t\tsendBack(currentJob.getClient(), finalReply);\r\n\t\t\treplies.clear();\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"public int getNumberOfThreads() { return numberOfThreads; }",
"public void setMaxThreads(int maxThreads)\r\n {\r\n this.maxThreads = maxThreads;\r\n }",
"private Thread[] newThreadArray() { \r\n\t int n_cpus = Runtime.getRuntime().availableProcessors(); \r\n\t return new Thread[n_cpus]; \r\n\t }",
"public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }",
"@DefaultValue(\"20\")\n int getApiClientThreadPoolSize();",
"private void addRequest(HttpPipelineRequest p_addRequest_1_, List<HttpPipelineRequest> p_addRequest_2_) {\n/* 86 */ p_addRequest_2_.add(p_addRequest_1_);\n/* 87 */ notifyAll();\n/* */ }",
"public List<String> runParallelCharacters() throws InterruptedException, ExecutionException {\n ExecutorService executor = Executors.newFixedThreadPool(10);\r\n\r\n // create a list to hold the Future object associated with Callable\r\n List<Future<String>> list = new ArrayList<>();\r\n list.add(executor.submit(new FetchResourceCallable(\"https://dueinator.dk/jwtbackend/api/car/all\")));\r\n executor.shutdown();\r\n List<String> urlStr = new ArrayList<>();\r\n for (Future<String> future : list) {\r\n urlStr.add(future.get());\r\n }\r\n return urlStr;\r\n }",
"private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}",
"public synchronized Request getNextRequestToExecute() throws InterruptedException\n {\n do\n {\n if (requests.size() == 0)\n wait();\n\n needsReorder |= removeMissedRequests();\n\n if (needsReorder)\n {\n reorderRequests();\n needsReorder = false;\n }\n\n } while (requests.size() == 0);\n\n Request result = requests.get(0);\n requests.remove(0);\n return result;\n }",
"public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}",
"int getExecutorMaximumPoolSize();",
"private void dispatch(List<Request> requests) {\n List<Request> inbox = new ArrayList<>(requests);\n\n // run everything in a single transaction\n dao.tx(tx -> {\n int offset = 0;\n Set<UUID> projectsToSkip = new HashSet<>();\n\n while (true) {\n // fetch the next few ENQUEUED processes from the DB\n List<ProcessQueueEntry> candidates = new ArrayList<>(dao.next(tx, offset, BATCH_SIZE));\n if (candidates.isEmpty() || inbox.isEmpty()) {\n // no potential candidates or no requests left to process\n break;\n }\n\n uniqueProjectsHistogram.update(countUniqueProjects(candidates));\n\n // filter out the candidates that shouldn't be dispatched at the moment\n for (Iterator<ProcessQueueEntry> it = candidates.iterator(); it.hasNext(); ) {\n ProcessQueueEntry e = it.next();\n\n // currently there are no filters applicable to standalone (i.e. without a project) processes\n if (e.projectId() == null) {\n continue;\n }\n\n // see below\n if (projectsToSkip.contains(e.projectId())) {\n it.remove();\n continue;\n }\n\n // TODO sharded locks?\n boolean locked = dao.tryLock(tx);\n if (!locked || !pass(tx, e)) {\n // the candidate didn't pass the filter or can't lock the queue\n // skip to the next candidate (of a different project)\n it.remove();\n }\n\n // only one process per project can be dispatched at the time, currently the filters are not\n // designed to run multiple times per dispatch \"tick\"\n\n // TODO\n // this can be improved if filters accepted a list of candidates and returned a list of\n // those who passed. However, statistically each batch of candidates contains unique project IDs\n // so \"multi-entry\" filters are less effective and just complicate things\n // in the future we might need to consider batching up candidates by project IDs and using sharded\n // locks\n projectsToSkip.add(e.projectId());\n }\n\n List<Match> matches = match(inbox, candidates);\n if (matches.isEmpty()) {\n // no matches, try fetching the next N records\n offset += BATCH_SIZE;\n continue;\n }\n\n for (Match m : matches) {\n ProcessQueueEntry candidate = m.response;\n\n // mark the process as STARTING and send it to the agent\n // TODO ProcessQueueDao#updateStatus should be moved to ProcessManager because it does two things (updates the record and inserts a status history entry)\n queueDao.updateStatus(tx, candidate.key(), ProcessStatus.STARTING);\n\n sendResponse(m);\n\n inbox.remove(m.request);\n }\n }\n });\n }",
"public void RunSync() {\n\t\tInteger numThreads = Runtime.getRuntime().availableProcessors() + 1;\n\t\tExecutorService executor = Executors.newFixedThreadPool(numThreads);\n\t\tSystem.out.println(\"Num Threads: \" + numThreads.toString());\t\n\t\t\n\t\t// Set rate limits so sync will pause and avoid errors\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.SECONDS.toNanos(1), 100));\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.HOURS.toNanos(1), 36000));\n\n\t\t// Initialize start time for request limits\n\t\tItemSync.initialize();\n\t\tItemSync.setMaxRecords(200000); // @todo Detect the end of valid IDs if possible\n\n\t\t// Add callable instance to list so they can be managed during execution phase\n\t\tArrayList<Callable<ItemSync>> tasks = new ArrayList<Callable<ItemSync>>();\n\t\tfor(int i = 0; i < numThreads; i++) {\n\t\t\ttasks.add(new ItemSync());\n\t\t}\n\n\n\t\t/**\n\t\t * EXECUTION STAGE: Start all sync threads, loop until all threads are finished.\n\t\t * Sleeps at end of check so we aren't hammering the CPU.\n\t\t */\n\t\ttry {\n\t\t\t// Start callables for every ItemSync instance\n\t\t\tList<Future<ItemSync>> futures = executor.invokeAll(tasks);\n\n\t\t\t// Main loop, checks state of thread (future)\n\t\t\tboolean loop = true;\n\t\t\twhile(loop) {\n\t\t\t\tloop = false;\n\t\t\t\tfor(Future<ItemSync> future : futures) {\n\t\t\t\t\tSystem.out.println(future.isDone());\n\t\t\t\t\tif(!future.isDone()) {\n\t\t\t\t\t\tloop = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Waiting...\");\n\t\t\t\tThread.sleep(TimeUnit.SECONDS.toMillis(1));\n\t\t\t}\n\t\t\t\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\t\t\n\n\t\t/**\n\t\t * CLEAN UP STAGE: Threads are done running, clean up\n\t\t */\n\t\tSystem.out.println(\"Shutting down threads\");\n\t\texecutor.shutdown();\n\t\twhile(!executor.isTerminated()) {\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Finished\");\n\t}",
"public void doRequests(JobQueue urlList) {\n\t\tsynchronized(connections) {\n\t\t\t++connections;\n\t\t}\n \tHttpHost httpHost = new HttpHost(urlList.getHost());\n \t\n\t\twhile (! urlList.isEmpty()) {\n\t\t\tJob2 job = urlList.poll();\n\t\t\t\n\t \t// Do a HEAD request\n\t \tHttpRequest httpRequest = new HttpHead(job.getPath());\n\n\t\t\tString url = urlList.getUrl(job);\n\t\t\tLOG.info(\"Submitting \" + url);\n\n\t\t\ttry {\n\t\t\t\tHttpResponse httpResponse = httpClient.execute(httpHost, httpRequest);\n\t\t\t\tStatusLine statusLine = httpResponse.getStatusLine();\n\t\t\t\tLOG.info(statusLine.getStatusCode() + \" on \" + url);\n\t\t\t\t\n\t\t\t} catch (ClientProtocolException cpe) {\n\t\t\t\tLOG.info(\"CPE on \" + url, cpe);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tLOG.info(\"IOE on \" + url, ioe);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tsynchronized(connections) {\n\t\t\t--connections;\n\t\t\tif (connections == 0) {\n\t\t\t\tsynchronized(monitor) {\n\t\t\t\t\tmonitor.notify();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"java:S2189\")\n public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(4);\n try (ServerSocket serverSocket = new ServerSocket(8080)) {\n log.info(\"Waiting For New Clients...\");\n while (true) {\n Socket sock = serverSocket.accept();\n log.info(\"Connected to a client...\");\n executorService.execute(new ServeRequests(sock));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void completionService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n ExecutorCompletionService<String> completionService = new ExecutorCompletionService<String>(executor);\n for (final String printRequest : printRequests) {\n// ListenableFuture<String> printer = completionService.submit(new Printer(printRequest));\n completionService.submit(new Printer(printRequest));\n }\n try {\n for (int t = 0, n = printRequests.size(); t < n; t++) {\n Future<String> f = completionService.take();\n System.out.print(f.get());\n }\n } catch (InterruptedException | ExecutionException e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n\n }",
"public MapWorkPool(int nThreads) {\n\t\tthis.nThreads = nThreads;\n\n\t}",
"protected synchronized void increaseThreadsNumber() {\r\n threadNumber++;\r\n }",
"void submitAndWaitForAll(Iterable<Runnable> tasks);",
"public final void execute() {\n thread = Thread.currentThread();\n while (!queue.isEmpty()) {\n if (currentThreads.get() < maxThreads) {\n queue.remove(0).start();\n currentThreads.incrementAndGet();\n } else {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }\n while (currentThreads.get() > 0) {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }",
"private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }",
"private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"public void setConcurrentThreadSize(int aConcurrentThreadSize) {\n concurrentThreadCount = aConcurrentThreadSize;\n }",
"@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }",
"public List<GetThreadsResponse.Thread> getThreadsDataByRequest(GetThreadsRequest request) {\n Map<Integer, GetThreadsResponse.Thread.Builder> threads = new TreeMap<>();\n try {\n long sessionId = request.getSession().getSessionId();\n\n List<Integer> threadIds = new ArrayList<>();\n if (!mySessionThreadIdsCache.containsKey(sessionId)) {\n Set<Integer> tidSet = getThreadIdCacheForSession(sessionId);\n\n ResultSet threadResults = executeQuery(CpuStatements.QUERY_ALL_DISTINCT_THREADS, sessionId);\n while (threadResults.next()) {\n // Don't add directly to tidSet, since it's synchronized and would be slow to add each element individually.\n threadIds.add(threadResults.getInt(1));\n }\n tidSet.addAll(threadIds);\n }\n else {\n // Add all ids to a list so we release the implicit lock in threadIds ASAP.\n //noinspection UseBulkOperation\n mySessionThreadIdsCache.get(sessionId).forEach(tid -> threadIds.add(tid));\n }\n\n long startTimestamp = request.getStartTimestamp();\n long endTimestamp = request.getEndTimestamp();\n for (int tid : threadIds) {\n ResultSet activities = executeQuery(\n CpuStatements.QUERY_THREAD_ACTIVITIES,\n // Used as the timestamp of the states that happened before the request\n startTimestamp,\n // Used to get the last activity just prior to the request range\n sessionId, tid, startTimestamp,\n // Used for the JOIN\n sessionId, tid,\n // The start and end timestamps below are used to get the activities that\n // happened in the interval (start, end]\n sessionId, tid, startTimestamp, endTimestamp);\n\n CpuProfiler.GetThreadsResponse.Thread.Builder builder = null;\n while (activities.next()) {\n if (builder == null) {\n // Please refer QUERY_THREAD_ACTIVITIES statement for the ResultSet's column to type/value mapping.\n builder = createThreadBuilder(tid, activities.getString(1));\n threads.put(tid, builder);\n }\n\n Cpu.CpuThreadData.State state = Cpu.CpuThreadData.State.valueOf(activities.getString(2));\n GetThreadsResponse.ThreadActivity.Builder activity =\n GetThreadsResponse.ThreadActivity.newBuilder().setNewState(state).setTimestamp(activities.getLong(3));\n builder.addActivities(activity.build());\n }\n }\n }\n catch (SQLException ex) {\n onError(ex);\n }\n\n // Add all threads that should be included in the response.\n List<GetThreadsResponse.Thread> cpuData = new ArrayList<>();\n for (GetThreadsResponse.Thread.Builder thread : threads.values()) {\n cpuData.add(thread.build());\n }\n return cpuData;\n }",
"public void setHighWaterThreadCount(int threads)\n { _threadPool.setMaxSize(threads);\n }",
"public void setMaxThreadNumber(int maxThreadNumber) {\n\t\tthis.maxThreadNumber = maxThreadNumber;\n\t\tthis.maxThreadNumberSeedWorker = maxThreadNumber / 5 == 0 ? 1 : maxThreadNumber / 5;\n\t\tthis.maxThreadNumberResourceWorker = this.maxThreadNumber - this.maxThreadNumberSeedWorker;\n\t}",
"public static void main(String[] args) throws InterruptedException, ExecutionException {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n for (int i = 0; i < 10; i++) {\n \tCallable worker = new WorkerThread1(\"\" + i);\n \tFuture future = executor.submit(worker);\n \tSystem.out.println(\"Results\"+future.get());\n //executor.execute(worker);\n }\n executor.shutdown();\n while (!executor.isTerminated()) {\n }\n System.out.println(\"Finished all threads\");\n }",
"public MultiThreadBatchTaskEngine(int aNThreads)\n {\n setMaxThreads(aNThreads);\n }",
"private void innerCrawl(URL url, int limit) {\n\t\t\tsynchronized(urls) {\n\t\t\t\tif(urls.size() <= limit) {\n\t\t\t\t\tqueue.execute(new CrawlWorker(url.toString()));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n @Test(expected = RejectedExecutionException.class)\n public void testSubmitSizeExceedingSemaphorePermits() {\n final int SEMAPHORE_SIZE = 2;\n //2. create the Semaphore controlled completion service; set semaphore to 2.\n final BoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e), SEMAPHORE_SIZE);\n //3. Make 3 callables\n final Callable<String>[] cs = new Callable[SEMAPHORE_SIZE + 1];//delebrately have callable size greater than semaphore size\n for (int i = 0; i < cs.length; i++)\n cs[i] = new StringDelayableCallable(\"S\" + i, 1);\n //4. Run them in a thread\n final CountDownLatch latch = new CountDownLatch(1);\n Thread t = new Thread() {\n @Override\n public void run() {\n ecs.submit(cs[0]);\n ecs.submit(cs[1]);\n latch.countDown();\n //5. After 2 submits the third submit will block. since semaphore size is 2.\n ecs.submit(cs[2]);\n }\n };\n //6. Create uncaught handler instance\n Uncaught<RejectedExecutionException> uncaught = new Uncaught<RejectedExecutionException>(); //Expecting a thread exception hence the uncaught handler\n t.setUncaughtExceptionHandler(uncaught); //set the uncaught handler\n //7. start the thread\n t.start();\n try {\n latch.await(); //latch is used just so that on exact third submit countdown happens\n Thread.sleep(1000);// allow third submit to wait for a second\n t.interrupt(); // will need to interrupt the ecs as the third submit is going to block\n t.join(); //just wait! till t joins up\n } catch (InterruptedException e1) {\n e1.printStackTrace(); //we dont care this this threads interruption\n }\n //8. if uncaught registered a exception then throw it and hence expected so test passes else its a failure\n uncaught.throwIfException();\n }",
"int getExecutorLargestPoolSize();",
"@Override\n\tpublic void run() {\n\t\tSocket connect_port = null;\n\t\twhile (true) {\t\t\t\n\t\t\ttry {\n\t\t\t\tconnect_port = this.listen_port.accept();\n\t\t\t\tRequest req = new Request(connect_port);\n\t\t\t\tthis.pool.submit(req);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"ActorThreadPool getThreadPool();",
"int getMaximumPoolSize();",
"private static boolean basicTest() {\r\n\t\t// use ExecutorService to manage threads\r\n\t\tExecutorService executor = Executors.newFixedThreadPool(1);\r\n\t\t\r\n\t\t// send all rquests sequentially\r\n\t\tlogger.finest(\"sending requests sequentially\");\r\n\t\tfor (URL url : urlList) { \r\n\t\t\tHttpClient client = new HttpClient(url);\r\n\t\t\texecutor.execute(client);\r\n\t\t}\r\n\t\t\r\n\t\t// wait for test to finish\r\n\t\tlogger.fine(\"waiting for requests to complete...\");\r\n\t\texecutor.shutdown(); \r\n\t\twhile (!executor.isTerminated())\r\n\t\t\tThread.yield(); // return the control to system\r\n\t\tlogger.fine(\"all requests completed\");\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }",
"int getExecutorPoolSize();",
"public static int getMaxSenderThreads() {\n\t\tassert MAX_SENDER_THREADS > 0;\n\t\treturn MAX_SENDER_THREADS;\n\t}",
"int getExecutorCorePoolSize();",
"private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }",
"int getPoolSize();",
"public static void main(String [] args) {\n\t\tExecutorService executor= Executors.newFixedThreadPool(2);\n\t\t\n\t\t//add the tasks that the threadpook executor should run\n\t\tfor(int i=0;i<5;i++) {\n\t\t\texecutor.submit(new Processor(i));\n\t\t}\n\t\t\n\t\t//shutdown after all have started\n\t\texecutor.shutdown();\n\t\t\n\t\tSystem.out.println(\"all submitted\");\n\t\t\n\t\t//wait 1 day till al the threads are finished \n\t\ttry {\n\t\t\texecutor.awaitTermination(1, TimeUnit.DAYS);\n\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"all completed\");\n\t\t\n\t}",
"public void run() {\n long creationInterval = MILLISEC_PER_SEC / this.generationRate;\n\n int curIndex = 0;\n long startTime, endTime, diff, sleepTime, dur = this.test_duration;\n\n do {\n // startTime = System.nanoTime();\n startTime = System.currentTimeMillis();\n\n Request r = new DataKeeperRequest((HttpClient) this.clients[curIndex], this.appserverID, this.url);\n curIndex = (curIndex + 1) % clientsPerNode;\n this.requests.add(r);\n\n try {\n r.setEnterQueueTime();\n this.requestQueue.put(r);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // endTime = System.nanoTime();\n endTime = System.currentTimeMillis();\n diff = endTime - startTime;\n dur -= diff;\n sleepTime = creationInterval - diff;\n if (sleepTime < 0) {\n continue;\n }\n\n try {\n // Thread.sleep(NANO_PER_MILLISEC / sleepTime, (int) (NANO_PER_MILLISEC % sleepTime));\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n dur -= sleepTime;\n } while (dur > 0);\n\n try {\n this.requestQueue.put(new ExitRequest());\n this.requestQueueHandler.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }",
"int getNumberOfTileDownloadThreads();",
"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 static void main(String[] args) throws InterruptedException {\n for (int i = 0; i < 3; i++) {\n MyCountedCompleter myCountedCompleter = new MyCountedCompleter();\n// forkJoinPool.submit(myCountedCompleter);\n myCountedCompleter.fork();\n }\n System.out.println(ForkJoinPool.commonPool().getActiveThreadCount());\n Thread.sleep(200000000);\n// forkJoinPool.shutdown();\n// System.out.println(forkJoinPool.isShutdown());\n// System.out.println(\"quiescence: \" + forkJoinPool.awaitQuiescence(5000, TimeUnit.MILLISECONDS));\n// System.out.println(\"termination: \" + forkJoinPool.awaitTermination(1000000, TimeUnit.MILLISECONDS));\n// System.out.println(forkJoinPool.toString());\n }",
"public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }",
"default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(int limit) {\n return getJoinedPrivateArchivedThreads(null, limit);\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 \r\n public void run(){ \r\n threadsRunning++; // We now have more threads\r\n this.threadId = threadsRunning;\r\n this.setActive(true); \r\n try{ \r\n System.out.println(\"THREAD: \" + this.threadId + \" of \" + threadsRunning + \" was started.\");\r\n BufferedReader input = new BufferedReader(new InputStreamReader(soc.getInputStream())); \r\n output = new PrintWriter(soc.getOutputStream(), true); // Character stream\r\n\r\n String line;\r\n long time = System.currentTimeMillis();\r\n // Get everything that the client sends and dump it into the string until we get a blank line\r\n ArrayList<String> http_request_lines = new ArrayList<>();\r\n while ((line = input.readLine()).length() > 0) {\r\n // Output the request to console\r\n System.out.println(\"[\" + line + \"]\");\r\n http_request_lines.add(line);\r\n }\r\n \r\n // Fetch the request URL suffix\r\n String request_url = http_request_lines.get(0).split(\" \")[1]; \r\n String html;\r\n String html2;\r\n \r\n if (\"/getStudents\".equals(request_url)){ \r\n try{\r\n // Text that gets inserted into the HTML response's title and heading \r\n String request_type = \"All\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students order by id asc;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type);\r\n } catch (Exception e) {\r\n // POST the internal server error message to the client\r\n post500(); \r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n } \r\n }else if (\"/getStudents=math\".equals(request_url)){\r\n try{\r\n String request_type = \"Math\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'MathStudent' order by id asc ;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type);\r\n } catch (Exception e) {\r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n \r\n }else if (\"/getStudents=science\".equals(request_url)){\r\n try{\r\n String request_type = \"Science\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'ScienceStudent' order by id asc ;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type); \r\n } catch (Exception e) { \r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n \r\n }else if (\"/getStudents=computer\".equals(request_url)){\r\n try{\r\n String request_type = \"Computer\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'ComputerStudent' order by id asc ;\";\r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type); \r\n } catch (Exception e) {\r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n }else{\r\n // If not found \"HTTP/1.0 404 Not Found\" and HTML code below tailored to print \"Page not found\"\r\n html = \"HTTP/1.0 404 Not Found\\n\\n\"; \r\n html2 = readHTML(\"404.html\"); \r\n output.write(html + html2); // Write the characters of html to the socket \r\n }\r\n output.flush();\r\n output.close(); \r\n input.close();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Request processed in: \" + ((System.currentTimeMillis() - time)) + \" ms\");\r\n System.out.println(\"Thread: \" + this.threadId + \" FINISHED\\n\\n\");\r\n } catch (IOException e) { \r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n threadsRunning--;\r\n this.setActive(false);\r\n }",
"public ImageManager(final Context context, final int cacheSize, \n final int threads ){\n\n // Instantiate the three queues. The task queue uses a custom comparator to \n // change the ordering from FIFO (using the internal comparator) to respect\n // request priorities. If two requests have equal priorities, they are \n // sorted according to creation date\n mTaskQueue = new PriorityBlockingQueue<Runnable>(QUEUE_SIZE, \n new ImageThreadComparator());\n mActiveTasks = new ConcurrentLinkedQueue<Runnable>();\n mBlockedTasks = new ConcurrentLinkedQueue<Runnable>();\n\n // The application context\n mContext = context;\n\n // Create a new threadpool using the taskQueue\n mThreadPool = new ThreadPoolExecutor(threads, threads, \n Long.MAX_VALUE, TimeUnit.SECONDS, mTaskQueue){\n\n\n @Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n // Before executing a request, place the request on the active queue\n // This prevents new duplicate requests being placed in the active queue\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }\n\n @Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n // After a request has finished executing, remove the request from\n // the active queue, this allows new duplicate requests to be submitted\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }\n };\n\n // Calculate the cache size\n final int actualCacheSize = \n ((int) (Runtime.getRuntime().maxMemory() / 1024)) / cacheSize;\n\n // Create the LRU cache\n // http://developer.android.com/reference/android/util/LruCache.html\n\n // The items are no longer recycled as they leave the cache, turns out this wasn't the right\n // way to go about this and often resulted in recycled bitmaps being drawn\n // http://stackoverflow.com/questions/10743381/when-should-i-recycle-a-bitmap-using-lrucache\n mBitmapCache = new LruCache<String, Bitmap>(actualCacheSize){\n protected int sizeOf(final String key, final Bitmap value) {\n return value.getByteCount() / 1024;\n }\n };\n }",
"public ParallelMapping(int numberOfThreads, ClassToThreads[] cToT) {\n //alex\n //this.maxNumberOfthreads = maxNumberOfThreads;\n //this.minNumberOfThreads = minNumberOfThreads;\n //this.numberOfthreadsAC = numberOfThreads;\n \n queues = new BlockingQueue[numberOfThreads];\n \n for (int i = 0; i < queues.length; i++) {\n //queues[i] = new LinkedBlockingQueue();\n queues[i] = new FIFOQueue();\n } \n this.classes = cToT;\n \n for(int i = 0; i < this.classes.length;i++){\n BlockingQueue[] q = new BlockingQueue[this.classes[i].tIds.length];\n for(int j = 0; j < q.length; j++){\n q[j] = queues[this.classes[i].tIds[j]];\n }\n this.classes[i].setQueues(q); \n }\n \n\n //this.barriers.put(CONFLICT_ALL, new CyclicBarrier(getNumThreadsAC()));\n\n //this.executorThread.put(CONFLICT_ALL, 0);\n reconfBarrier = new CyclicBarrier(numberOfThreads + 1);\n //reconfThreadBarrier = new CyclicBarrier(maxNumberOfthreads);\n }",
"public HttpClient setMaxPoolSize(Env env, NumberValue size) {\n client.setMaxPoolSize(size.toInt());\n return this;\n }",
"public void run()\n {\n Connection conn;\n Socket clientSock;\n int timeout;\n\n conn = new Connection();\n timeout = _config.getClientTimeout() * 1000;\n\n for ( ; ; ) {\n /*\n * Wait for connection request.\n */\n try {\n clientSock = _serverSock.accept();\n }\n catch(IOException e) {\n logError(\"accept() failure: \" + e.getMessage());\n continue;\n }\n\n try {\n clientSock.setSoTimeout(timeout);\n }\n catch(SocketException e) {\n logError(\"Cannot set timeout of client socket: \" + e.getMessage()\n + \" -- closing socket\");\n\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close socket: \" + e2.getMessage());\n }\n continue;\n }\n\n /*\n * `Create' a new connection.\n */\n try {\n conn.init(clientSock);\n }\n catch(IOException e) {\n logError(\"Cannot open client streams\" + getExceptionMessage(e));\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close client socket\" + getExceptionMessage(e2));\n }\n continue;\n }\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Reading HTTP Request...\");\n }\n\n /*\n * `Create' a new container for the request.\n */\n setCurrentDate(_date);\n _req.init(conn, _clfDateFormatter.format(_date));\n\n // Get the current GAP list.\n _gapList = GlobeRedirector.getGAPList();\n\n processRequest(conn);\n\n /*\n * If access logging is enabled, write an entry to the access log.\n */\n if (_config.getAccessLogEnabledFlag()) {\n GlobeRedirector.accessLog.write(_req.getCommonLogFileStatistics());\n } \n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Closing client connection\");\n }\n\n try {\n conn.close();\n }\n catch(IOException e) {\n logError(\"Cannot close client connection\" + getExceptionMessage(e));\n }\n\n /*\n * Release references that are no longer needed. To reduce the\n * memory footprint, these references are released now because it\n * may take a long time before this thread handles a new request\n * (in which case the references are released too).\n */\n _gapList = null;\n _req.clear();\n _httpRespHdr.clear();\n _cookieCoords = null;\n }\n }",
"public int getNumberOfThreads(){\n return numberOfThreads;\n }",
"public long getThreads() { return threads; }",
"private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 100).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }",
"@Override\n\tpublic boolean allowMultithreading()\n\t{\n\t\treturn true;\n\t}",
"public int numberOfRequestsEnqueued() {\n int totalRequests = 0;\n for (ElevatorController controller : elevatorControllers.values()) {\n totalRequests += controller.getRequestsQueue().size();\n }\n return totalRequests;\n }",
"SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }",
"@Override\n public void run() {\n int everyBlock = limit / THREADS;\n int end = everyBlock * threadId + 2;\n for(int i = end - everyBlock; i < end; i++){\n if(isPrime(i)){\n synchronized (primeNumbers){\n primeNumbers.add(i);\n }\n }\n }\n }",
"default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(int limit) {\n return getPrivateArchivedThreads(null, limit);\n }",
"static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }",
"@Override\n void start() throws IOException {\n\ttry {\n\t systemThreadPool.execute(new Writer(), \"mux writer\");\n\t systemThreadPool.execute(new Reader(), \"mux reader\");\n\t} catch (OutOfMemoryError e) {\t// assume out of threads\n\t try {\n\t\tlogger.log(Level.WARNING,\n\t\t\t \"could not create thread for request dispatch\", e);\n\t } catch (Throwable t) {\n\t }\n\t throw new IOException(\"could not create I/O threads\", e);\n\t}\n }",
"public FetcherThreads(\n\t\t\tfinal BlockingFetchQueues< Callable< ? > > queue,\n\t\t\tfinal int numFetcherThreads,\n\t\t\tfinal IntFunction< String > threadIndexToName )\n\t{\n\t\tfetchers = new ArrayList<>( numFetcherThreads );\n\t\tfor ( int i = 0; i < numFetcherThreads; ++i )\n\t\t{\n\t\t\tfinal Fetcher f = new Fetcher( queue );\n\t\t\tf.setDaemon( true );\n\t\t\tf.setName( threadIndexToName.apply( i ) );\n\t\t\tfetchers.add( f );\n\t\t\tf.start();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tExecutorService pool = Executors.newFixedThreadPool(3);\n\t\t//ExecutorService pool = Executors.newSingleThreadExecutor();\n\t\t\n\t\tExecutorService pool2 = Executors.newCachedThreadPool();\n\t\t//this pool2 will add more thread into pool(when no other thread running), the new thread do not need to wait.\n\t\t//pool2 will delete un runing thread(unrun for 60 secs)\n\t\tThread t1 = new MyThread();\n\t\tThread t2 = new MyThread();\n\t\tThread t3 = new MyThread();\n\n\t\tpool.execute(t1);\n\t\tpool.execute(t2);\n\t\tpool.execute(t3);\n\t\tpool.shutdown();\n\t\t\n\t}",
"public static void main(String[] args)\n\t{\n\t\tint coreCount = Runtime.getRuntime().availableProcessors();\n\t\t//Create the pool\n\t\tExecutorService ec = Executors.newCachedThreadPool(); //Executors.newFixedThreadPool(coreCount);\n\t\tfor(int i=0;i<100;i++) \n\t\t{\n\t\t\t//Thread t = new Thread(new Task());\n\t\t\t//t.start();\n\t\t\tec.execute(new Task());\n\t\t\tSystem.out.println(\"Thread Name under main method:-->\"+Thread.currentThread().getName());\n\t\t}\n\t\t\n\t\t//for scheduling tasks\n\t\tScheduledExecutorService service = Executors.newScheduledThreadPool(10);\n\t\tservice.schedule(new Task(), 10, TimeUnit.SECONDS);\n\t\t\n\t\t//task to run repetatively 10 seconds after previous taks completes\n\t\tservice.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\t\t\n\t}",
"public static void main(String[] args) {\n \n FCrawler fc = new FCrawler();\n \n \n \n // now start all of the worker threads\n \n int N = 5;\n ArrayList<Thread> thread = new ArrayList<Thread>(N);\n for (int i = 0; i < N; i++) {\n Thread t = new Thread(fc.createWorker());\n thread.add(t);\n t.start();\n }\n \n// now place each directory into the workQ\n \n // fc.processDirectory(Args[0]);\n \n fc.processDirectory(\"D://\");\n// indicate that there are no more directories to add\n \n fc.workQ.finish();\n \n for (int i = 0; i < N; i++){\n try {\n thread.get(i).join();\n } catch (Exception e) {};\n }\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tif (MatchReqPool.size() == 0) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tmatchReqDao = new MatchReqDaoImpl();\r\n\r\n\t\t\t\t\tList<MatchReq> list = matchReqDao.getAllNewReq();\r\n\r\n\t\t\t\t\tIterator<MatchReq> iterator = list.iterator();\r\n\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\t\t\tLogger.info(\"Has New Request....\");\r\n\r\n\t\t\t\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\t\t\t\tMatchReq req = iterator.next();\r\n\t\t\t\t\t\t\treq.setPoint(\"[0:0]\");\r\n\t\t\t\t\t\t\treq.setStatus(MatchStatus.START);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmatchReqDao.update(list);\r\n\t\t\t\t\t\tMatchReqPool.put(list);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (MatchException em) {\r\n\t\t\t\t\tem.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tsleep(5000);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"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}",
"default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(int limit) {\n return getPublicArchivedThreads(null, limit);\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\ttry {\n\t\t\tsemaphore.acquire(); // 3 thread at a time\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Slow servie\"); //50 times concurrently\n\t\t\n\t\tsemaphore.release();\n\t\t//rst of service\n\t\t\n\t\t\n\t}",
"@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }",
"protected Smp(int maxThreads) {\r\n\tmaxThreads = Math.max(1,maxThreads);\r\n\tthis.maxThreads = maxThreads;\r\n\tif (maxThreads>1) {\r\n\t\tthis.taskGroup = new FJTaskRunnerGroup(maxThreads);\r\n\t}\r\n\telse { // avoid parallel overhead\r\n\t\tthis.taskGroup = null;\r\n\t}\r\n}",
"public Collection getThreads();",
"public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }",
"private void runRequestHandlerThread(\n Semaphore done, WorkRequestHandler handler, Semaphore finish, List<String> failures) {\n new Thread(\n () -> {\n try {\n handler.processRequests();\n while (!handler.activeRequests.isEmpty()) {\n Thread.sleep(1);\n }\n } catch (IOException e) {\n failures.add(\"Unexpected I/O error talking to worker thread\");\n e.printStackTrace();\n } catch (InterruptedException e) {\n // Getting interrupted while waiting for requests to finish is OK.\n }\n try {\n done.release();\n finish.acquire();\n } catch (InterruptedException e) {\n // Getting interrupted at the end is OK.\n }\n })\n .start();\n }",
"private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}",
"public static int parallelFreq(int x, int[] A, int numThreads){\n if (A == null || numThreads < 1) return -1;\n\n //initialize multiple callables\n executorService = Executors.newFixedThreadPool(numThreads);\n\n //convert array to list\n List<Integer> totalList = new ArrayList<>();\n for (int a : A) {\n totalList.add(a);\n }\n\n //split list into several pieces\n ArrayList<ArrayList<Integer>> subLists = new ArrayList<ArrayList<Integer>>();\n\n if (A.length <= numThreads) {\n for (int i = 0; i < numThreads; ++i) {\n if (i < A.length) {\n ArrayList<Integer> cur = new ArrayList<>();\n cur.add(A[i]);\n subLists.add(cur);\n }\n }\n } else {\n int listSize = A.length / numThreads;\n int remain = A.length % numThreads;\n int begin = 0;\n int end = 0;\n for (int i = 0; i < numThreads; ++i ) {\n if (i < remain) {\n end = begin + listSize + 1;\n } else {\n end = begin + listSize;\n }\n List<Integer> cur = totalList.subList(begin, end);\n subLists.add(new ArrayList<Integer>(cur));\n begin = end;\n }\n\n }\n\n ArrayList<Future<Integer>> futures = new ArrayList<>();\n for (ArrayList<Integer> list : subLists) {\n Future<Integer> aList = executorService.submit(new Freq(x, list));\n futures.add(aList);\n }\n\n int result = 0;\n for (Future<Integer> future : futures) {\n try {\n result += future.get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n executorService.shutdown();\n\n return result;\n }",
"public synchronized void recallThreads() {\n \t\tint count = activeThreads.size();\n \t\tfor (int i = count - 1; i >= 0; i--) {\n \t\t\tHttpThread thread = (HttpThread) activeThreads.elementAt(i);\n \t\t\tthread.recall();\n \t\t}\n \t}",
"public static void main(String[] args) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n\n for (int i = 0; i < 10; i++) {\n Runnable worker = new WorkerThreadSand(\" \" + i);\n executor.execute(worker);\n }\n executor.shutdown();\n\n// nasty path for executor\n try {\n ExecutorService nastyExecutor = Executors.newSingleThreadExecutor();\n nastyExecutor.execute(null);\n }catch (Exception e){\n System.out.println(\"Nulls don't work\");\n }\n\n\n System.out.println(\"Finished all threads\");\n\n }",
"int getMaxPoolSize();",
"public static void main(String[] args) \n\t{\n\t\tForkJoinPool fjp = ForkJoinPool.commonPool();\n\t\t//ForkJoinPool fjp = new ForkJoinPool(2);\n\t\t\n\t\tSystem.out.println(fjp.getParallelism() + \" cores executing\");\n\t\tfjp.invoke(new MyAction());\n\t\tFuture<Integer> x = fjp.submit(new MyTask());\n\t\tfjp.invoke(new MyTask());\n\t\t\n\t\tList<Callable<Integer>> tasks = new ArrayList<>();\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 1 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 2 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 3 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 4 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 5 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\tint sum = 0;\n\t\tList<Future<Integer>> futureSums = fjp.invokeAll(tasks);\n\t\tfor(Future<Integer> num: futureSums)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tsum += num.get();\n\t\t\t} catch (InterruptedException | ExecutionException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum is \" + sum);\n\t\t\n\t\tfjp.shutdown();\n\t\ttry {\n\t\t\tfjp.awaitTermination(30,TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }",
"@Override\n\t\t\tprotected void beforeExecute(Thread t, Runnable r) {\n\t\t\t\tint qsize = getQueue().size();\n\t\t\t\tif(initCorePoolSize>0&&getCorePoolSize()<getMaximumPoolSize()\n\t\t\t\t\t&& qsize > 0 && (qsize%divisor) == 0){\n\t\t\t\t\tsetCorePoolSize(getCorePoolSize()+1); // 进行动态增加\n\t\t\t\t}\n\t\t\t}",
"@Test\n public void clientRequest() {\n List<Thread> threadList = new LinkedList<>(); \n\tfor (int i = 0; i < clientNumber; i ++){\n\t SimpleClient clientx = new SimpleClient(i+1);\n\t threadList.add(clientx);\n\t clientx.start();\n\t}\n\tfor (Thread thread : threadList){\n\t try {\n\t\tthread.join();\n\t } catch (InterruptedException ex) {\n\t\tLogger.getLogger(ServiceProfileClientTest.class.getName()).log(Level.SEVERE, null, ex);\n\t }\n\t}\n\t\n\n\t\n\t\n\tSystem.out.println(\"SetReq = \" + setReq);\n\tSystem.out.println(\"TotalTimeSet = \" + totalSetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastSetTime);\n\tSystem.out.println(\"AverageProcRate = \" + setReq.get()*1000000/(totalSetTime.get()));\n\t\n\tSystem.out.println(\"GetReq = \" + getReq);\n\tSystem.out.println(\"TotalTimeGet = \" + totalGetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastGetTime);\n\tSystem.out.println(\"AverageProcRate = \" + getReq.get()*1000000/(totalGetTime.get()));\n\t\n\tSystem.out.println(\"RemvReq = \" + removeReq);\n\tSystem.out.println(\"TotalTimeRemove = \" + totalRemoveTime);\n\tSystem.out.println(\"LastProcTime = \" + lastRemoveTime);\n\tSystem.out.println(\"AverageTimeProcRate = \" + removeReq.get()*1000000/(totalRemoveTime.get()));\n }"
] | [
"0.67123693",
"0.6344897",
"0.6209619",
"0.61724836",
"0.6106184",
"0.57939756",
"0.57791257",
"0.5775474",
"0.57517594",
"0.5746861",
"0.57284385",
"0.57239324",
"0.57231605",
"0.568508",
"0.56396955",
"0.56287676",
"0.56271416",
"0.559146",
"0.55663323",
"0.5565497",
"0.5558667",
"0.55580395",
"0.5557701",
"0.5557124",
"0.55538297",
"0.5548346",
"0.55447084",
"0.55371165",
"0.55324966",
"0.55314994",
"0.55268174",
"0.55209213",
"0.5517277",
"0.55135125",
"0.54908586",
"0.54826015",
"0.54724455",
"0.5443943",
"0.54287505",
"0.5427679",
"0.54265827",
"0.54237044",
"0.5421902",
"0.53968096",
"0.5393091",
"0.5388993",
"0.5388588",
"0.5388489",
"0.53883713",
"0.5384788",
"0.53834194",
"0.5377709",
"0.5364992",
"0.535736",
"0.5356669",
"0.5354091",
"0.53513247",
"0.53393",
"0.53309274",
"0.5330513",
"0.5329087",
"0.53143215",
"0.53030103",
"0.5297417",
"0.5292325",
"0.5288183",
"0.5279807",
"0.5265671",
"0.5264679",
"0.52644396",
"0.5251523",
"0.524356",
"0.524134",
"0.5235411",
"0.5216202",
"0.5213202",
"0.5210797",
"0.5210122",
"0.52058494",
"0.52017415",
"0.51871496",
"0.5184926",
"0.5183617",
"0.517983",
"0.51776797",
"0.51770175",
"0.51760733",
"0.51600003",
"0.5158654",
"0.5157098",
"0.5152713",
"0.5152041",
"0.5150923",
"0.5146466",
"0.5144048",
"0.5143389",
"0.5133749",
"0.5133172",
"0.5131041",
"0.5125228",
"0.5121673"
] | 0.0 | -1 |
Convert Nondeterministik Word automata to Determenistic Word Automata | public LinearAcceptingNestedWordAutomaton transform(NondeterministicNestedWordAutomaton nnwa) {
LinearAcceptingNestedWordAutomaton dnwa = new LinearAcceptingNestedWordAutomaton();
ArrayList<HierarchyState> nnwaHierarchyStates = nnwa.getP();
ArrayList<HierarchyState> nnwaHierarchyAcceptingStates = nnwa.getPf();
ArrayList<LinearState> nnwalinearStates = nnwa.getQ();
ArrayList<LinearState> nnwaLinearAcceptingStates = nnwa.getQf();
/* ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyStates = new ArrayList<PowerSetHierarchyState>();
ArrayList<PowerSetHierarchyState> dnwaPowerSetHierarchyAcceptingStates = new ArrayList<PowerSetHierarchyState>();
ArrayList<PowerSetLinearState> dnwaPowerSetLinearStates = new ArrayList<PowerSetLinearState>();
ArrayList<PowerSetLinearState> dnwaPowerSetLinearAcceptingStates = new ArrayList<PowerSetLinearState>();
*/
for (HierarchyState hState : nnwaHierarchyStates) {
}
return dnwa;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }",
"public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }",
"private static String Lemmatize(String strTemp) {\n Properties obj = new Properties();\n obj.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma\"); //setting the properties although using only for lemmatization purpose but one cannot\n // removed the tokenize ssplit pos arguments\n StanfordCoreNLP pipeObj = new StanfordCoreNLP(obj);\t\t//using stanFord library and creating its object\n Annotation annotationObj;\n annotationObj = new Annotation(strTemp); //creating annotation object and passing the string word\n pipeObj.annotate(annotationObj);\n String finalLemma = new Sentence(strTemp).lemma(0); //we only using the lemma of the passed string Word rest of the features like pos, ssplit, tokenized are ignored\n //although we can use it but tokenization has been done perviously\n //with my own code\n return finalLemma;\n }",
"public String normalize(String word);",
"String tomar_decisiones(String decision);",
"@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}",
"public ParseTreeNode generateParseTree(ContextFreeGrammar cfg, Word w) {\n int n = w.length();\r\n int exactDervOfWord = (2*n) - 1;\r\n List<Rule> rules = new ArrayList<Rule>();\r\n rules = cfg.getRules();\r\n Variable startVariable = cfg.getStartVariable();\r\n int numDerivations = 0;\r\n List<List<Word>> generalList = new ArrayList<List<Word>>();\r\n List<List<Word>> varList = new ArrayList<List<Word>>();\r\n\r\n\r\n // 2. Lists for storing derivation\r\n // make exact number of list for words to be stored at each derivation \r\n makeLists(exactDervOfWord, generalList);\r\n\r\n // 3. Derivation from Start Variable\r\n for (Rule rule : rules) {\r\n if (rule.getVariable().equals(startVariable)) {\r\n generalList.get(numDerivations).add(rule.getExpansion());\r\n }\r\n }\r\n numDerivations += 1;\r\n\r\n // 4. \r\n while (numDerivations < exactDervOfWord-n) {\r\n if (numDerivations == 1){\r\n // Stores the var only from the start expansion into varList\r\n List<Word> listOfVars = new ArrayList<Word>();\r\n for (Word word : generalList.get(numDerivations-1)){\r\n boolean varOnly= true;\r\n for (int i =0; i < word.length(); i++){\r\n if(word.get(i).isTerminal()){\r\n varOnly = false;\r\n }\r\n }\r\n if (varOnly){\r\n listOfVars.add(word);\r\n }\r\n }\r\n varList.add(listOfVars);\r\n numDerivations += 1; \r\n }\r\n if (numDerivations > 1 && numDerivations - 1 < exactDervOfWord-n ) {\r\n List<List<List<Word>>> listOfExpPerDerviation = new ArrayList<List<List<Word>>>();\r\n for (Word word : varList.get(numDerivations-2)){\r\n List<List<Word>> listOfExPerWord = new ArrayList<List<Word>>();\r\n for(int i= 0; i <word.length(); i++){\r\n for(Rule rule :rules){\r\n List<Word> tempListofExpan = new ArrayList<Word>();\r\n if(rule.getVariable().equals(word.get(i))){\r\n if (!rule.getExpansion().isTerminal()){\r\n tempListofExpan.add(word);\r\n tempListofExpan.add(word.replace(i, rule.getExpansion()));\r\n listOfExPerWord.add(tempListofExpan);\r\n }\r\n }\r\n }\r\n }\r\n listOfExpPerDerviation.add(listOfExPerWord);\r\n }\r\n numDerivations += 1;\r\n }\r\n }\r\n\r\n return null;\r\n return null;\r\n }",
"private void convertWord(String word, int n) {\n\t\t\n\t\tStringBuilder convertedWord;\t\t// A StringBuilder object is used to substitute specific characters at locations\n\t\t\n\t\tfor (int i = n; i < word.length(); i++) {\t\t// Loops through the entire word to make substitutions\n\t\t\tswitch (word.charAt(i)) {\n\t\t\t\tcase 'a':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\t\t// Creates a new StringBuilder string\n\t\t\t\t\tconvertedWord.setCharAt(i, '4');\t\t\t\t// Substitutes 'a' with '4'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\t\t// Adds the converted word to the trie\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\t\t\t\t\t// Adds the converted word to my_dictionary.txt\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\t\t\t\t// Checks this converted word for more substitutions\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'e':\t\t\t\t\t// These cases all follow the same format; they only differ in the letter that is substituted\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '3');\t\t\t\t// Substitutes 'e' with '3'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'i':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'i' with '1'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'l':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'l' with 'i'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'o':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '0');\t\t\t\t// Substitutes 'o' with '0'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 's':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '$');\t\t\t\t// Substitutes 's' with '$'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 't':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '7');\t\t\t\t// Substitutes 't' with '7'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void buildUnigramModel(String fileName) throws IOException {\n\t\t// this function gives frequency of each letter\n\t\tBufferedReader testReader = new BufferedReader(new FileReader(fileName));\n\t\tString line = null;\n\t\tMap<String, Integer> count = new HashMap<>();\n\t\t\n\t\tcount.put(terminal, 0);\n\t\tint totalCount = 1; // there is already terminal char in map, so 1 instead of 0.\n\t\tString cc = null; // to process char c\n\t\twhile ((line = testReader.readLine()) != null) { // unigram doesn't consider the sentences\n\t\t\tfor (char c : line.toCharArray()) {\n\t\t\t\tif (Character.isLetter(c) || c == ' ' || c == ',' || c == '.' || c == '\\'') {\n\t\t\t\t\tif (Character.isLowerCase(c)) {\n\t\t\t\t\t\tc = (char) (c + 'A' - 'a');\n\t\t\t\t\t}\n\t\t\t\t\tcc = String.valueOf(c);\n\t\t\t\t\tif (!count.containsKey(cc)) {\n\t\t\t\t\t\tcount.put(cc, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcount.put(cc, count.get(cc) + 1);\n\t\t\t\t\t}\n\t\t\t\t\ttotalCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcount.put(terminal, count.get(terminal) + 1); // add a '$' to the end of this sentence.\n\t\t}\n\t\tthis.sizeOfUniword = totalCount;\n\t\tuni = new HashMap<>(count);\n\t\tlm.putAll(count);\n//\t\tSystem.out.println(\"File \" + fileName + \"\\'s unigram model is ready.\");\n\t\ttestReader.close();\n\t}",
"public static String preprocessStemAndTokenizeAddBigramsInString(String data) {\n\t\t//System.out.println(\"Preprocess data, remove stop words, stem, tokenize and get bi-grams ..\");\n\n\t\tSet<String> transformedSet = new LinkedHashSet<String>();\n\t\tList<String> stemmedList = new ArrayList<String>();\n\n\t\tTokenizer analyzer = new Tokenizer(Version.LUCENE_30);\n\t\tTokenStream tokenStream = analyzer.tokenStream(\"\", new StringReader(data));\n\t\tTermAttribute termAttribute;\n\t\tString term;\n\t\ttry {\n\t\t\twhile (tokenStream.incrementToken()) {\n\t\t\t\ttermAttribute = tokenStream.getAttribute(TermAttribute.class);\n\t\t\t\tterm = termAttribute.term();\n\t\t\t\tif (digitPattern.matcher(term).find()) //ignore digits\n\t\t\t\t\tcontinue;\n\t\t\t\tif (stopwords.contains(term)) //ignore stopwords\n\t\t\t\t\tcontinue;\n\t\t\t\tif (term.length() <= 1) //ignore stopwords\n\t\t\t\t\tcontinue;\n\t\t\t\tstemmer.setCurrent(term);\n\t\t\t\tstemmer.stem();\n\t\t\t\tstemmedList.add(stemmer.getCurrent());\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] ds = stemmedList.toArray(new String[0]);\n\n\t\t/*for(int i=0; i<stemmedList.size(); i++)\n\t\t\tSystem.out.print(ds[i]+\"\\t\");*/\n\n\t\t//add bi-grams\n\t\tfinal int size = 2;\n\t\tfor (int i = 0; i < ds.length; i++) {\n\t\t\ttransformedSet.add(ds[i]); //add single words\n\t\t\tif (i + size <= ds.length) {\n\t\t\t\tString t = \"\";\n\t\t\t\tfor (int j = i; j < i + size; j++) {\n\t\t\t\t\tt += \" \" + ds[j];\n\t\t\t\t}\n\t\t\t\tt = t.trim().replaceAll(\"\\\\s+\", \"_\");\n\t\t\t\ttransformedSet.add(t); //add bi-gram combined with \"_\"\n\t\t\t}\n\t\t}\n\t\t//System.out.println(transformedSet.toArray(new String[transformedSet.size()]).toString());\n\t\treturn StringUtils.join( transformedSet.toArray(new String[transformedSet.size()]), \" \");\n\t\t\n\t}",
"private static String getCorrespondingNEPosSegment(String textConcept, CustomXMLRepresentation nePosText, boolean isConcept) {\n\n\t\tString output = \"\";\n\n\t\t//textConcept = textConcept.replaceAll(\"\\\\p{Punct} \",\" $0 \");\n\t\t/*textConcept = textConcept.replaceAll(\"[.]\",\". \").replaceAll(\"[,]\",\", \").replaceAll(\"[']\",\"' \")\n\t\t\t\t.replaceAll(\"[\\\\[]\",\" [ \" ).replaceAll(\"[\\\\]]\",\" ] \").replaceAll(\"[(]\", \" ( \").replaceAll(\"[)]\",\" ) \")\n\t\t\t\t.replaceAll(\"[<]\", \" < \").replaceAll(\"[>]\", \" > \");*/\n\t\t//textConcept = textConcept.replaceAll(\"[\\\\.,']\",\"$0 \").replaceAll(\"[\\\\[\\\\](){}!@#$%^&*+=]\",\" $0 \");\n\t\ttextConcept = textConcept.replaceAll(\"[']\",\"$0 \").replaceAll(\"[\\\\[\\\\](){}!@#$%^&*+=]\",\" $0 \");\n\t\tString[] lemmas = textConcept.split(\" \");\n\t\tArrayList<String> wordList = new ArrayList(Arrays.asList(lemmas));\n\n\t\tnePosText.escapeXMLCharacters();\n\n\t\tboolean goOn = true;\n\t\t//while wordList is not empty, repeat\n\t\twhile(wordList.size()>0 && goOn){\n\n\t\t\tDocument docNePos = null;\n\t\t\ttry {\n\t\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\t\tInputStream streamNePos = new ByteArrayInputStream(nePosText.getXml().getBytes(StandardCharsets.UTF_8));\n\t\t\t\tdocNePos = docBuilder.parse(streamNePos);\n\t\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t\tSystem.err.print(\"KIndex :: Pipeline.getCorrespondingNEPosSegment() Could not create a document text.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tNodeList npSegments = docNePos.getElementsByTagName(\"content\").item(0).getChildNodes(); // concept or text segments (children of content)\n\n\t\t\tfor (int i = 0; i < npSegments.getLength(); i++) {\n\t\t\t\tNode n = npSegments.item(i);\n\t\t\t\tif (n.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement segment = (Element) n;\n\t\t\t\t\tString tag = segment.getNodeName();\n\t\t\t\t\tString stLemma = (segment.hasAttribute(\"lemma\")) ? segment.getAttribute(\"lemma\") : \"\";\n\t\t\t\t\tString lemma = segment.getTextContent();\n\n\t\t\t\t\t//Debug\n\t\t\t\t\t//if (wordList.get(0).equals(\"take\")){\n\t\t\t\t\t//\tSystem.out.println(\"take!\");\n\t\t\t\t\t//}\n\n\t\t\t\t\tif ((wordList.size() == 0) && (tag.equals(\"Punctuation\"))){\n\t\t\t\t\t\toutput += lemma + \" \" ;\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tint initSize = wordList.size();\n\t\t\t\t\tint initXMLSize = nePosText.getXml().length();\n\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").equals(\"\")){\n\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (tag.equals(\"ne\")){\n\t\t\t\t\t\tString NEtype = segment.getAttribute(\"type\");\n\t\t\t\t\t\tNodeList NEchildren = segment.getChildNodes();\n\t\t\t\t\t\t//if this text segment is concept, do not add the NamedEntity tag.\n\t\t\t\t\t\tString NEstring = (isConcept) ? \"\" : \"<ne type=\\\"\" + NEtype + \"\\\">\";\n\t\t\t\t\t\tfor (int c = 0; c < NEchildren.getLength(); c++) {\n\t\t\t\t\t\t\tNode child = NEchildren.item(c);\n\t\t\t\t\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\tElement Echild = (Element) child;\n\t\t\t\t\t\t\t\tString Ctag = Echild.getNodeName();\n\t\t\t\t\t\t\t\tString OrigLemma = Echild.getAttribute(\"lemma\");\n\t\t\t\t\t\t\t\tString Clemma = Echild.getTextContent();\n\t\t\t\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase())) {\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (!Clemma.equals(\"\")){\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\tif (wordList.get(0).contains(Clemma)){\n\t\t\t\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replace(Clemma,\"\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\tString ClemmaRemaining = Clemma.replaceAll(\"[^\\\\x00-\\\\x7F]\", \"\"); //replace all non-ascii characters\n\t\t\t\t\t\t\t\t\t\twhile (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\t\tClemmaRemaining = ClemmaRemaining.replace(wordList.get(0),\" \");\n\t\t\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t\t\t\tif (Clemma.endsWith(wordList.get(0))){\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tClemmaRemaining = (ClemmaRemaining.startsWith(\" \")) ? ClemmaRemaining.replace(\" \",\"\") : ClemmaRemaining;\n\t\t\t\t\t\t\t\t\t\tif ((!ClemmaRemaining.equals(\"\")) && wordList.get(0).startsWith(ClemmaRemaining)){\n\t\t\t\t\t\t\t\t\t\t\twordList.set(0, wordList.get(0).replace(ClemmaRemaining,\"\"));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/*else if (Clemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\t\tif (Clemma.endsWith(wordList.get(0))) {\n\t\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\" + OrigLemma + \"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\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/*else if ((!Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase().equals(\"\")) &&\n\t\t\t\t\t\t\t\t\t\twordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().contains(Clemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"\").toLowerCase())){\n\t\t\t\t\t\t\t\t\tNEstring += \"<\" + Ctag + \" lemma=\\\"\"+OrigLemma+\"\\\">\" + Clemma + \"</\" + Ctag + \"> \";\n\t\t\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replace(OrigLemma,\"\"));\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\tNEstring += (isConcept) ? \"\" : \"</ne>\";\n\t\t\t\t\t\toutput += NEstring;\n\t\t\t\t\t\tNEstring = (isConcept) ? \"<ne type=\\\"\" + NEtype + \"\\\">\" + NEstring + \"</ne>\" : NEstring;\n\t\t\t\t\t\tnePosText.removeElement(NEstring);\n\n\t\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\t\tif (wordList.size() == initSize && NEstring.length() == initXMLSize){\n\t\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1200 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(tag.equals(\"NoPOS\") || tag.equals(\"Punctuation\")){\n\t\t\t\t\t\t//output += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\toutput += lemma + \" \" ;\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(lemma.toLowerCase())){\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\t\telse if (nePosText.getXml().length() == initXMLSize){\n\t\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1201 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma +\"\\r\\n nePosText: \"+ nePosText.getXml();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().equals(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())) {\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//we have the example of \"Cannot\" -> <MD>Can</MD><RB>not</RB>\n\t\t\t\t\t//in that case, in the first loop the first lemma will be added\n\t\t\t\t\t//in second loop the lemma will be added and wordList.get(0) will be removed\n\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().contains(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\tif (wordList.get(0).startsWith(lemma)){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replaceFirst(Pattern.quote(lemma),\"\"));\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().startsWith(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.set(0,wordList.get(0).replaceFirst(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\"),\"\"));\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).endsWith(lemma)){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase().endsWith(lemma.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").toLowerCase())){\n\t\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (lemma.contains(wordList.get(0))){\n\t\t\t\t\t\twhile(lemma.contains(wordList.get(0))){\n\t\t\t\t\t\t\tif (lemma.endsWith(wordList.get(0))) {\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.size() == 0){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (lemma.contains(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))){\n\t\t\t\t\t\twhile(lemma.contains(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))){\n\t\t\t\t\t\t\tif (lemma.endsWith(wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\"))) {\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\twordList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput += \"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \"> \";\n\t\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+stLemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t\t\tif (wordList.size() == 0){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//avoid infinite loop\n\t\t\t\t\tif (wordList.size() == initSize){\n\t\t\t\t\t\treturn \"--ERROR-- \\r\\n Error: 1202 \\r\\n In word:\" + wordList.get(0) + \", lemma:\"+lemma;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{ //if n.getNodeType() != Node.ELEMENT_NODE\n\t\t\t\t\tif (npSegments.getLength() == 1){\n\t\t\t\t\t\tgoOn = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (wordList.size()>0 && wordList.get(0).replaceAll(\"[^a-zA-Z0-9 ]\", \"\").equals(\"\")){\n\t\t\t\twordList.remove(0);\n\t\t\t}\n\n\t\t\tif(npSegments.getLength() == 0 && wordList.size() == 1){\n\t\t\t\twordList.remove(0);\n\t\t\t}\n\t\t}\n\n\t\t//in case wordList is empty but the next element in nePosText is punctuation, this element has to be added in output\n\t\tDocument docNePos = null;\n\t\ttry {\n\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\tInputStream streamNePos = new ByteArrayInputStream(nePosText.getXml().getBytes(StandardCharsets.UTF_8));\n\t\t\tdocNePos = docBuilder.parse(streamNePos);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\tSystem.err.print(\"KIndex :: Pipeline.getCorrespondingNEPosSegment() Could not create a document text.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tNodeList npSegments = docNePos.getElementsByTagName(\"content\").item(0).getChildNodes(); // concept or text segments (children of content)\n\t\tfor (int i = 0; i < npSegments.getLength(); i++) {\n\t\t\tNode n = npSegments.item(i);\n\t\t\tif (n.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement segment = (Element) n;\n\t\t\t\tString tag = segment.getNodeName();\n\t\t\t\tString lemma = segment.getTextContent();\n\t\t\t\tif (tag.equals(\"Punctuation\")){\n\t\t\t\t\toutput += lemma + \" \";\n\t\t\t\t\tnePosText.removeElement(\"<\" + tag + \" lemma=\\\"\"+lemma+\"\\\">\" + lemma + \"</\" + tag + \">\");\n\t\t\t\t}\n\t\t\t\tbreak; // it will break after the first time an element will be checked\n\t\t\t}\n\t\t}\n\n\n\n\t\treturn output;\n\t}",
"public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase + \"! << @\" + phrase;\n\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n int adjectiveExist = 0;\n String adj = \"\";\n String attribute = \"\";\n String b = \"\";\n\n if (innerChild.length > 1) {\n int count = 1;\n\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\") || inChild.value().equals(\",\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n }\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (count == 1) {\n if (adjectiveExist == 1) {\n attribute = adj + \" \" + leaves.get(0).yieldWords().get(0).word();\n } else {\n attribute = leaves.get(0).yieldWords().get(0).word();\n }\n if (!designEleList.contains(attribute)) {\n String identifiedWord = attribute;\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n\n } else if (count >= 2 && separator == 0) {\n if (!attribute.contains(\"_\")) {\n\n attributeLists.remove(morphology.stem(attribute));\n attributeLists.remove(attribute);\n } else {\n attributeLists.remove(attribute);\n }\n\n attribute += \" \" + (leaves.get(0).yieldWords()).get(0).word();\n attributeLists.add(attribute);\n } else if (count >= 2 && separator == 1) {\n attribute = (leaves.get(0).yieldWords()).get(0).word();\n if (!attribute.contains(\"_\")) {\n attributeLists.add(morphology.stem(attribute));\n } else {\n attributeLists.add(attribute);\n }\n separator = 0;\n }\n count++;\n }\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n }\n }\n }\n adjAtt = getAdjectiveAttribute();\n if (!adjAtt.isEmpty()) {\n String att = \"\";\n for (int i = 0; i < adjAtt.size(); i++) {\n att = adjAtt.get(i).toString();\n if (!att.isEmpty() || !att.equals(\"\") || !(att.equals(\" \"))) {\n attributeLists.add(att.trim());\n }\n }\n }\n\n System.out.println(\"ATTRIBUTE LIST :\" + attributeLists);\n return attributeLists;\n\n }",
"private String computeCorrectedText() {\n String correctedText = getText();\n\n if (getOOVWords() != null && getOOVWords().size() > 0) {\n int diff = 0;\n\n for (OOV oov : getOOVWords()) {\n if (oov.getAnnotation() == Annotation.Variation) {\n if (oov.getStartPosition() == 0) {\n correctedText = oov.getCorrection() + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }else {\n correctedText = correctedText.substring(0, oov.getStartPosition() + diff)\n + oov.getCorrection()\n + correctedText.substring(oov.getEndPosition() + diff, correctedText.length());\n }\n\n diff += oov.getCorrection().length() - oov.getToken().length();\n } \n }\n }\n\n return PostProcess.apply(correctedText);\n }",
"private Map<String, Double> distance1Generation(String word) {\n if (word == null || word.length() < 1) throw new RuntimeException(\"Input words Error: \" + word);\n\n Map<String, Double> result = new HashMap<String, Double>();\n\n String prev;\n String last;\n\n for (int i = 0; i < word.length(); i++) {\n // Deletion\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n result.put(prev + last, 1.0);\n\n // transposition\n if ((i + 1) < word.length()) {\n prev = word.substring(0, i);\n last = word.substring(i + 2, word.length());\n String trans = prev + word.charAt(i + 1) + word.charAt(i) + last;\n result.put(trans, 1.0);\n }\n\n // alter\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n for (int j = 0; j < 26; j++) {\n result.put(prev + (char) (j + 97) + last, 1.0);\n }\n\n // insertion\n prev = word.substring(0, i);\n last = word.substring(i + 1, word.length());\n for (int j = 0; j < 26; j++) {\n result.put(prev + (char) (j + 97) + word.charAt(i) + last, 1.0);\n result.put(prev + word.charAt(i) + (char) (j + 97) + last, 1.0);\n }\n\n }\n\n result.remove(word);\n return result;\n }",
"public static void main(String[] args) {\r\n // feed the generator a fixed random value for repeatable behavior\r\n MarkovTextGeneratorLoL gen = new MarkovTextGeneratorLoL(new Random(42));\r\n //String textString = \"hi there hi Leo\";\r\n //String textString = \"\";\r\n \r\n String textString = \"Hello. Hello there. This is a test. Hello there. Hello Bob. Test again.\";\r\n System.out.println(textString);\r\n gen.train(textString);\r\n System.out.println(gen);\r\n System.out.println(\"Generator: \" + gen.generateText(0));\r\n String textString2 = \"You say yes, I say no, \" +\r\n \"You say stop, and I say go, go, go, \" +\r\n \"Oh no. You say goodbye and I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"I say high, you say low, \" +\r\n \"You say why, and I say I don't know. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"Why, why, why, why, why, why, \" +\r\n \"Do you say goodbye. \" +\r\n \"Oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello. \" +\r\n \"You say yes, I say no, \" +\r\n \"You say stop and I say go, go, go. \" +\r\n \"Oh, oh no. \" +\r\n \"You say goodbye and I say hello, hello, hello. \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello, \" +\r\n \"I don't know why you say goodbye, I say hello, hello, hello,\";\r\n System.out.println(textString2);\r\n gen.retrain(textString2);\r\n System.out.println(gen);\r\n System.out.println(gen.generateText(20));\r\n }",
"public void theDude() {\n\t\ttotal_targets = 0;\n\t\ttotal = 0;\n\t\tint target_count = 0;\n\t\tresult.clear();\n\t\t\n\t\tfor(int k=0; k<input.getWords().size();k++) {\n\t\t\tWord currentWordStat = input.getWordStatistics().get(k);\n\t\t\ttarget_count = 0;\n\t\t\t\n\t\t\tfor(int i=0;i<input.getWords().get(k).length();i++) {\n\t\t\t\tif(target.contains(input.getWords().get(k).charAt(i))) {\n\t\t\t\t\ttarget_count++;\n\t\t\t\t\ttotal_targets++;\n\t\t\t\t}\n\t\t\t\ttotal++;\n\t\t\t}\n\t\t\t\n\t\t\tif(result.containsKey(currentWordStat)) {\n\t\t\t\tresult.put(currentWordStat, result.get(currentWordStat)+target_count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresult.put(currentWordStat, target_count);\n\t\t\t}\n\t\t}\t\n\t}",
"@Test\n public void testConvertToWords()\n {\n System.out.println(\"convertToWords\");\n WoordenController instance = new WoordenController();\n String[] expResult =\n {\n \"een\", \"twee\", \"drie\", \"vier\", \"hoedje\", \"van\", \"hoedje\", \"van\", \"een\", \"twee\", \"drie\", \"vier\",\n \"hoedje\", \"van\", \"papier\"\n };\n String[] result = instance.convertToWords();\n assertArrayEquals(expResult, result);\n }",
"private void populateDictionaryByLemmatizer() throws IOException {\n\n Enumeration e = dictionaryTerms.keys();\n while (e.hasMoreElements()) {\n String word = (String) e.nextElement();\n String tag = dictionaryTerms.get(word);\n\n if (!(word.contains(\" \")||word.contains(\"+\") ||word.contains(\"\\\"\") ||word.contains(\"'\")||word.contains(\".\") ||word.contains(\":\") || word.contains(\"(\") || word.contains(\")\") ||word.contains(\"-\")|| word.contains(\";\"))) {\n String tokenizedWords[] = tokenize(word);\n\n if (tokenizedWords.length == 1) {\n List<String> stemmings = stanfordLemmatizer.lemmatize(word);\n\n for (int i = 0; i < stemmings.size(); i++) {\n if (!dictionaryTerms.containsKey(stemmings.get(i))) {\n dictionaryTerms.put(stemmings.get(i), tag);\n System.out.println(\"Stemming: \" + word + \"\\t\" + stemmings.get(i));\n }\n }\n }\n }\n }\n }",
"static TreeSet<Adjective> parseAdjective3(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adjective> output = new TreeSet<Adjective>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADJECTIVE_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\t\t\tAdjective currentAdjective = null;\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\n\t\t\t\tchapter = Integer.parseInt(current[0].trim());\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\ttrimAll(definitions);\n\t\t\t\t\n\t\t\t\tif(current[1].split(\", \").length == 1){\n\t\t\t\t\tcurrentAdjective = new OneTerminationAdjective(current[1].split(\", \")[0].split(\":\")[0], current[1].split(\", \")[0].split(\":\")[1], chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 2){\n\t\t\t\t\tString mascFem = current[1].split(\", \")[0];\n\t\t\t\t\tString neuter = current[1].split(\", \")[1];\n\t\t\t\t\tcurrentAdjective = new TwoTerminationAdjective(mascFem, neuter, chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 3){\n\t\t\t\t\tString masculine = current[1].split(\", \")[0];\n\t\t\t\t\tString feminine = current[1].split(\", \")[1];\n\t\t\t\t\tString neuter = current[1].split(\", \")[2];\n\t\t\t\t\tcurrentAdjective = new ThreeTerminationAdjective(masculine, feminine, neuter, chapter, definitions);\n\t\t\t\t}\n\n\t\t\t} catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\t//Adjective currentAdjective = new Adjective(masculine, feminine, neuter, chapter, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdjective);\n\t\t\toutput.add(currentAdjective);\n\t\t}\n\n\t\treturn output;\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[] Tablica = new String[word.length()];\n for (int i = 0; i < word.length(); i++) {\n Tablica[i] = String.valueOf(word.charAt(i));\n }\n String word2 = \"\";\n\n for (int i = (word.length() - 1); i >= 0; i--) {\n //System.out.print(Tablica[i]);\n word2 = word2 + Tablica[i];\n }\n //System.out.println();\n System.out.println(\"word 2 \" + word2);\n System.out.println(\"word 3 \" + word3);\n\n System.out.print(\"word 3 i word 2 \");\n if (word3.toLowerCase().equals(word2.toLowerCase())) {\n System.out.println(\"jest palidronem\");\n } else {\n System.out.println(\"nie jest palidronem\");\n }\n\n//koniec\n\n }",
"private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}",
"@Override\n\tpublic void setTraining(String text) {\n\t\tmyWords = text.split(\"\\\\s+\");\n\t\tmyMap = new HashMap<String , ArrayList<String>>();\n\t\t\n\t\tfor (int i = 0; i <= myWords.length-myOrder; i++)\n\t\t{\n\t\t\tWordGram key = new WordGram(myWords, i, myOrder);\n\t\t\tif (!myMap.containsKey(key))\n\t\t\t{\n\t\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\tlist.add(myWords[i+myOrder]);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.add(PSEUDO_EOS);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(myWords[i+myOrder]);\n\t\t\t\t} else {\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(PSEUDO_EOS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }",
"public static Set<String> preprocessStemAndTokenizeAddBigramsInSet(String data) {\n\t\t//System.out.println(\"Preprocess data, remove stop words, stem, tokenize and get bi-grams ..\");\n\n\t\tSet<String> transformedSet = new LinkedHashSet<String>();\n\t\tList<String> stemmedList = new ArrayList<String>();\n\n\t\t//System.out.println(\"Stop words length:\" + stopwords.size());\n\t\tTokenizer analyzer = new Tokenizer(Version.LUCENE_30);\n\t\tTokenStream tokenStream = analyzer.tokenStream(\"\", new StringReader(data));\n\t\tTermAttribute termAttribute;\n\t\tString term;\n\t\ttry {\n\t\t\twhile (tokenStream.incrementToken()) {\n\t\t\t\ttermAttribute = tokenStream.getAttribute(TermAttribute.class);\n\t\t\t\tterm = termAttribute.term();\n\t\t\t\tif (digitPattern.matcher(term).find()) //ignore digits\n\t\t\t\t\tcontinue;\n\t\t\t\tif (stopwords.contains(term)) //ignore stopwords\n\t\t\t\t\tcontinue;\n\t\t\t\tif (term.length() <= 1) //ignore single letter words\n\t\t\t\t\tcontinue;\n\t\t\t\tstemmer.setCurrent(term);\n\t\t\t\tstemmer.stem();\n\t\t\t\tstemmedList.add(stemmer.getCurrent());\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] ds = stemmedList.toArray(new String[0]);\n\n\t\t/*for(int i=0; i<stemmedList.size(); i++)\n\t\t\tSystem.out.print(ds[i]+\"\\t\");*/\n\n\t\t//add bi-grams\n\t\tfinal int size = 2;\n\t\tfor (int i = 0; i < ds.length; i++) {\n\t\t\ttransformedSet.add(ds[i]); //add single words\n\t\t\tif (i + size <= ds.length) {\n\t\t\t\tString t = \"\";\n\t\t\t\tfor (int j = i; j < i + size; j++) {\n\t\t\t\t\tt += \" \" + ds[j];\n\t\t\t\t}\n\t\t\t\tt = t.trim().replaceAll(\"\\\\s+\", \"_\");\n\t\t\t\ttransformedSet.add(t); //add bi-gram combined with \"_\"\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\" \")\n\t\tstemmedList.clear();\n\t\tstemmedList = null;\n\t\tds = null;\n\t\treturn transformedSet;\n\t}",
"@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tUtility.dirPath = \"C:\\\\Users\\\\imSlappy\\\\workspace\\\\FeelingAnalysis\\\\Documents\\\\2_group_eng\";\n\t\tString sub[] = {\"dup\",\"bug\"};\n\t\tUtility.classLabel = sub;\n\t\tUtility.numdoc = 350;\n\t\tSetClassPath.read_path(Utility.dirPath);\n\t\tUtility.language = \"en\";\n\t\t\n\t\tUtility.stopWordHSEN = Fileprocess.FileHashSet(\"data/stopwordAndSpc_eng.txt\");\n\t\tUtility.dicen = new _dictionary();\n\t\tUtility.dicen.getDictionary(\"data/dicEngScore.txt\");\n\t\t\n\t\tUtility.vocabHM = new HashMap();\n\t\t// ================= completed initial main Program ==========================\n\n\t\tMainExampleNaive ob = new MainExampleNaive();\n\t\t\n\t\t// --------------------- Pre-process -----------------------\n\t\tob.word_arr = new HashSet [Utility.listFile.length][];\n\t\tob.wordSet = new ArrayList<String>();\n\t\tfor (int i = 0; i < Utility.listFile.length; i++) {\n\t\t\tob.word_arr[i]=new HashSet[Utility.listFile[i].length];\n\t\t\tfor (int j = 0; j < Utility.listFile[i].length; j++) {\n\t\t\t\tStringBuffer strDoc = Fileprocess.readFile(Utility.listFile[i][j]);\n\t\t\t\tob.word_arr[i][j]=ob.docTokenization(new String(strDoc));\n\t\t\t}\n\t\t\tob.checkBound(3, 10000);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"++ Total : \"+Utility.vocabHM.size()+\" words\");\n\t\tSystem.out.println(\"++ \"+Utility.vocabHM);\n\t\t\n\t\t// ---------------------- Selection ------------------------\n//\t\tInformationGain ig = new InformationGain(ob.word_arr.length*ob.word_arr[0].length , ob.wordSet,ob.word_arr);\n//\t\tArrayList<String> ban_word = ig.featureSelection(0.0); // selected out with IG = 0\n//\t\t//ob.banFeature(ban_word);\n//\t\tSystem.out.println(\"ban list[\"+ban_word.size()+\"] : \"+ban_word);\n//\t\t\n//\t\tSystem.out.println(\"-- After \"+Utility.vocabHM.size());\n//\t\tSystem.out.println(\"-- \"+Utility.vocabHM);\n\t\t\n\t\tob.setWordPosition();\n\t\t// ---------------------- Processing -----------------------\n\t\tNaiveBayes naive = new NaiveBayes();\n\t\tnaive.naiveTrain(true);\n\t\t\n\t\tint result = naive.naiveUsage(\"after cold reset of my pc (crash of xp) the favorites of firefox are destroyed and all settings are standard again! Where are firefox-favorites stored and the settings ? how to backup them rgularely? All other software on my pc still works properly ! even INternetExplorer\");\n\t\tSystem.out.println(\"\\nResult : \"+Utility.classLabel[result]);\n\t}",
"public String lemmatise(String input) {\n String output = \"\";\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // traverse words in the document\n for (CoreLabel token : document.get(CoreAnnotations.TokensAnnotation.class)) {\n output = output + token.lemma() + \" \";\n }\n\n return output.trim();\n }",
"public static Map<String, String> presToLogicalMap() {\n Map<String, String> rules = new HashMap<>();\n\n // PRESENTATION FORM TO LOGICAL FORM NORMALIZATION (presentation form is rarely used - but some UN documents have it).\n rules.put(\"\\\\ufc5e\", \"\\u0020\\u064c\\u0651\"); // ligature shadda with dammatan isloated\n rules.put(\"\\\\ufc5f\", \"\\u0020\\u064d\\u0651\"); // ligature shadda with kasratan isloated\n rules.put(\"\\\\ufc60\", \"\\u0020\\u064e\\u0651\"); // ligature shadda with fatha isloated\n rules.put(\"\\\\ufc61\", \"\\u0020\\u064f\\u0651\"); // ligature shadda with damma isloated\n rules.put(\"\\\\ufc62\", \"\\u0020\\u0650\\u0651\"); // ligature shadda with kasra isloated\n // Arabic Presentation Form-B to Logical Form\n rules.put(\"\\\\ufe80\", \"\\u0621\"); // isolated hamza\n rules.put(\"[\\\\ufe81\\\\ufe82]\", \"\\u0622\"); // alef with madda\n rules.put(\"[\\\\ufe83\\\\ufe84]\", \"\\u0623\"); // alef with hamza above\n rules.put(\"[\\\\ufe85\\\\ufe86]\", \"\\u0624\"); // waw with hamza above\n rules.put(\"[\\\\ufe87\\\\ufe88]\", \"\\u0625\"); // alef with hamza below\n rules.put(\"[\\\\ufe89\\\\ufe8a\\\\ufe8b\\\\ufe8c]\", \"\\u0626\"); // yeh with hamza above\n rules.put(\"[\\\\ufe8d\\\\ufe8e]\", \"\\u0627\"); // alef\n rules.put(\"[\\\\ufe8f\\\\ufe90\\\\ufe91\\\\ufe92]\", \"\\u0628\"); // beh\n rules.put(\"[\\\\ufe93\\\\ufe94]\", \"\\u0629\"); // teh marbuta\n rules.put(\"[\\\\ufe95\\\\ufe96\\\\ufe97\\\\ufe98]\", \"\\u062a\"); // teh\n rules.put(\"[\\\\ufe99\\\\ufe9a\\\\ufe9b\\\\ufe9c]\", \"\\u062b\"); // theh\n rules.put(\"[\\\\ufe9d\\\\ufe9e\\\\ufe9f\\\\ufea0]\", \"\\u062c\"); // jeem\n rules.put(\"[\\\\ufea1\\\\ufea2\\\\ufea3\\\\ufea4]\", \"\\u062d\"); // haa\n rules.put(\"[\\\\ufea5\\\\ufea6\\\\ufea7\\\\ufea8]\", \"\\u062e\"); // khaa\n rules.put(\"[\\\\ufea9\\\\ufeaa]\", \"\\u062f\"); // dal\n rules.put(\"[\\\\ufeab\\\\ufeac]\", \"\\u0630\"); // dhal\n rules.put(\"[\\\\ufead\\\\ufeae]\", \"\\u0631\"); // reh\n rules.put(\"[\\\\ufeaf\\\\ufeb0]\", \"\\u0632\"); // zain\n rules.put(\"[\\\\ufeb1\\\\ufeb2\\\\ufeb3\\\\ufeb4]\", \"\\u0633\"); // seen\n rules.put(\"[\\\\ufeb5\\\\ufeb6\\\\ufeb7\\\\ufeb8]\", \"\\u0634\"); // sheen\n rules.put(\"[\\\\ufeb9\\\\ufeba\\\\ufebb\\\\ufebc]\", \"\\u0635\"); // sad\n rules.put(\"[\\\\ufebd\\\\ufebe\\\\ufebf\\\\ufec0]\", \"\\u0636\"); // dad\n rules.put(\"[\\\\ufec1\\\\ufec2\\\\ufec3\\\\ufec4]\", \"\\u0637\"); // tah\n rules.put(\"[\\\\ufec5\\\\ufec6\\\\ufec7\\\\ufec8]\", \"\\u0638\"); // zah\n rules.put(\"[\\\\ufec9\\\\ufeca\\\\ufecb\\\\ufecc]\", \"\\u0639\"); // ain\n rules.put(\"[\\\\ufecd\\\\ufece\\\\ufecf\\\\ufed0]\", \"\\u063a\"); // ghain\n rules.put(\"[\\\\ufed1\\\\ufed2\\\\ufed3\\\\ufed4]\", \"\\u0641\"); // feh\n rules.put(\"[\\\\ufed5\\\\ufed6\\\\ufed7\\\\ufed8]\", \"\\u0642\"); // qaf\n rules.put(\"[\\\\ufed9\\\\ufeda\\\\ufedb\\\\ufedc]\", \"\\u0643\"); // kaf\n rules.put(\"[\\\\ufedd\\\\ufede\\\\ufedf\\\\ufee0]\", \"\\u0644\"); // ghain\n rules.put(\"[\\\\ufee1\\\\ufee2\\\\ufee3\\\\ufee4]\", \"\\u0645\"); // meem\n rules.put(\"[\\\\ufee5\\\\ufee6\\\\ufee7\\\\ufee8]\", \"\\u0646\"); // noon\n rules.put(\"[\\\\ufee9\\\\ufeea\\\\ufeeb\\\\ufeec]\", \"\\u0647\"); // heh\n rules.put(\"[\\\\ufeed\\\\ufeee]\", \"\\u0648\"); // waw\n rules.put(\"[\\\\ufeef\\\\ufef0]\", \"\\u0649\"); // alef maksura\n rules.put(\"[\\\\ufef1\\\\ufef2\\\\ufef3\\\\ufef4]\", \"\\u064a\"); // yeh\n rules.put(\"[\\\\ufef5\\\\ufef6]\", \"\\u0644\\u0622\"); // ligature: lam and alef with madda above\n rules.put(\"[\\\\ufef7\\\\ufef8]\", \"\\u0644\\u0623\"); // ligature: lam and alef with hamza above\n rules.put(\"[\\\\ufef9\\\\ufefa]\", \"\\u0644\\u0625\"); // ligature: lam and alef with hamza below\n rules.put(\"[\\\\ufefb\\\\ufefc]\", \"\\u0644\\u0627\"); // ligature: lam and alef\n\n return rules;\n\n }",
"public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\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\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \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\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\t\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\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\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\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \t\t\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\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\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\t\t \n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\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)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}",
"DsmlNonUML createDsmlNonUML();",
"private void viterbiParse(Tree<State> tree) {\n\t\tList<State> sentence = tree.getYield();\n\t\tint nword = sentence.size();\n\t\tif (chart != null) {\n\t\t\tchart.clear(nword);\n\t\t} else {\n\t\t\tchart = new Chart(nword, false, true, false);\n\t\t} \n\t\tinferencer.viterbiParse(chart, sentence, nword);\n\t}",
"public void normalize() {\n // YOUR CODE HERE\n String w1, w2;\n for (int i = 0; i < row; i++) {\n w1 = NDTokens.get(i);\n for (int j = 0; j < column; j++) {\n w2 = NDTokens.get(j);\n if(smooth) {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = (getCount(w1, w2))/(uni_grams[NDTokens.indexOf(w1)] + NDTokens_size);\n }else {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = getCount(w1, w2)/(uni_grams[NDTokens.indexOf(w1)]);\n }\n }\n }\n }",
"private void buildLanguageModel() {\n int total = 0;\n Map<Integer, Integer> wordCount = new HashMap<>();\n for (List<Integer> story : corpus.getStories()) {\n for (Integer word : story) {\n total++;\n if (wordCount.get(word) == null) wordCount.put(word, 0);\n wordCount.put(word, wordCount.get(word) + 1);\n }\n }\n wordValues = new HashMap<>();\n for (Map.Entry<Integer, Integer> entry : wordCount.entrySet()) {\n wordValues.put(entry.getKey(), total * 1.0 / entry.getValue());\n }\n }",
"public String StemWordWithWordNet ( String word )\n {\n if ( !IsInitialized )\n return word;\n if ( word == null ) return null;\n if ( morph == null ) morph = dic.getMorphologicalProcessor();\n\n IndexWord w;\n try\n {\n w = morph.lookupBaseForm( POS.VERB, word );\n if ( w != null )\n return w.getLemma().toString ();\n w = morph.lookupBaseForm( POS.NOUN, word );\n if ( w != null )\n return w.getLemma().toString();\n w = morph.lookupBaseForm( POS.ADJECTIVE, word );\n if ( w != null )\n return w.getLemma().toString();\n w = morph.lookupBaseForm( POS.ADVERB, word );\n if ( w != null )\n return w.getLemma().toString();\n }\n catch ( JWNLException e )\n {\n }\n return null;\n }",
"public static HashMap<String, String> simplifiedTags(List<List<TaggedWord>> taggedList) {\n HashMap<String, String> simplePOSTagged = new HashMap<>();\n for (List<TaggedWord> tags : taggedList) { // iterate over list\n for (TaggedWord taggedWord : tags) {//for each word in the sentence\n String word = taggedWord.toString().replaceFirst(\"/\\\\w+\", \"\");\n if (taggedWord.tag().equals(\"NN\") | taggedWord.tag().equals(\"NNS\") |\n taggedWord.tag().equals(\"NNP\") | taggedWord.tag().equals(\"NNPS\")) {\n simplePOSTagged.put(word, \"noun\");\n } else if (taggedWord.tag().equals(\"MD\") | taggedWord.tag().equals(\"VB\") |\n taggedWord.tag().equals(\"VBD\") | taggedWord.tag().equals(\"VBG\") |\n taggedWord.tag().equals(\"VBN\") | taggedWord.tag().equals(\"VBP\")\n | taggedWord.tag().equals(\"VBZ\")) {\n simplePOSTagged.put(word, \"verb\");\n } else if (taggedWord.tag().equals(\"JJ\") | taggedWord.tag().equals(\"JJR\") |\n taggedWord.tag().equals(\"JJS\")) {\n simplePOSTagged.put(word, \"adj\");\n } else if (taggedWord.tag().equals(\"PRP\") | taggedWord.tag().equals(\"PRP$\")) {\n simplePOSTagged.put(word, \"pron\");\n } else if (taggedWord.tag().equals(\"RB\") | taggedWord.tag().equals(\"RBR\") |\n taggedWord.tag().equals(\"RBS\")) {\n simplePOSTagged.put(word, \"adv\");\n } else if (taggedWord.tag().equals(\"CD\") | taggedWord.tag().equals(\"LS\")) {\n simplePOSTagged.put(word, \"num\");\n } else if (taggedWord.tag().equals(\"WDT\") | taggedWord.tag().equals(\"WP\") |\n taggedWord.tag().equals(\"WP$\") | taggedWord.tag().equals(\"WRB\")) {\n simplePOSTagged.put(word, \"wh\");\n } else if (taggedWord.tag().equals(\"DT\") | taggedWord.tag().equals(\"PDT\")) {\n simplePOSTagged.put(word, \"det\");\n } else if (taggedWord.tag().equals(\"CC\") | taggedWord.tag().equals(\"IN\")) {\n simplePOSTagged.put(word, \"prepconj\");\n } else {\n simplePOSTagged.put(word, \"other\");\n }\n }\n }\n return simplePOSTagged;\n }",
"static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}",
"public static String preprocessStemAndTokenize(String data) {\n\n\t\tSet<String> transformedSet = new HashSet<String>(); //Set will make sure only unique terms are kept\n\t\tStringBuilder strBuilder = new StringBuilder();\n\t\tTokenizer analyzer = new Tokenizer(Version.LUCENE_30);\n\t\tTokenStream tokenStream = analyzer.tokenStream(\"\", new StringReader(data));\n\t\tTermAttribute termAttribute;\n\t\tString term;\n\t\t//System.out.println(\"The value of data in tokenizeAndStem: \"+ data);\n\t\ttry {\n\t\t\twhile (tokenStream.incrementToken()) {\n\t\t\t\ttermAttribute = tokenStream.getAttribute(TermAttribute.class);\n\t\t\t\tterm = termAttribute.term(); \n\t\t\t\tif (stopwords.contains(term)){ //ignore stopwords\n\t\t\t\t\t//System.out.println(\"Contains stopword: \"+ term);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (digitPattern.matcher(term).find()) //ignore digits\n\t\t\t\t\tcontinue;\n\t\t\t\tif(term.length() <= 1) //ignore 1 letter words\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif (!digitPattern.matcher(term).find()){ //ignore digits\n\t\t\t\t\tstemmer.setCurrent(term);\n\t\t\t\t\tstemmer.stem();\n\t\t\t\t\ttransformedSet.add(stemmer.getCurrent());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//System.out.println(\"transormed set size in tokenizeAndStem: \"+ transformedSet.size());\n\t\tfor(Object token: transformedSet.toArray()){\n\t\t\tstrBuilder.append(token).append(\" \");\n\t\t}\n\t\t//System.out.println(\"String returned in tokenizeAndStem:\"+ strBuilder.toString());\n\t\treturn strBuilder.toString();\n\t}",
"public ArrayList getAdjectiveAttribute() {\n adjAttributeList = new ArrayList();\n //adjAttributeList = new ArrayList();\n\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n int nnCount = 0;\n String adj = \"\";\n List<Tree> leaves;\n String phraseNotation = \"NP[<NNS|NN]!$VP\";//@\" + phrase + \"! << @\" + phrase;\n DesignElementClass designEle = new DesignElementClass();\n ArrayList designEleList = designEle.getDesignElementsList();\n\n /*For single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n String a = \"\";\n boolean separatorExist = false;\n if (innerChild.length > 1) {\n int count = 1;\n adjectiveExist = 0;\n adjectiveNoun = 0;\n nnCount = 0;\n String attribute = \"\";\n adj = \"\";\n\n for (Tree inChild : innerChild) {\n //checks whether there are any separators\n if (inChild.value().equals(\"CC\")) {\n separatorExist = true;\n attribute = \"\";\n adjectiveExist = 0;\n adjectiveNoun = 0;\n }\n //checks whether there are adjectives\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n\n }\n //if the adjective exist store the attributes\n if (adjectiveExist == 1) {\n adjectiveNoun = storeAdjectiveAttribute(inChild, adjectiveNoun, nnCount, adj);\n }\n }\n if (adjectiveExist == 1 && adjectiveNoun == 0 && !adj.isEmpty()) {\n adjAttributeList.add(stemmingForAWord(adj));\n\n }\n }\n }\n\n System.out.println(\"ADJECTVE ATTRIBUTE :\" + adjAttributeList);\n return adjAttributeList;\n\n }",
"public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }",
"public String alienOrder(String[] words) {\n HashMap<Character, Integer> degrees = new HashMap<Character, Integer>();\n //in BFS, we will create result forward, so we need use \"decides\" relation\n //To avoid add same relationship multiple times, we use HashSet to store nodes\n //Ex: za zb ca cb, both shows relationship a decides b, we don't want have 2 b after a in relations\n HashMap<Character, Set<Character>> hs = new HashMap<Character, Set<Character>>();\n \n String prev = \"\";//prev word\n //fill prerequisites table and degree table\n for(String word : words){\n //we put degree table here to include each char in dict\n for(char c : word.toCharArray()){\n if(!degrees.containsKey(c)) degrees.put(c, 0);\n } \n //then search for the the first char after common part\n for(int i = 0; i < Math.min(prev.length(), word.length()); i++){\n char a = prev.charAt(i), b = word.charAt(i);\n if(a != b){\n //we use \"decides\" relation, so a is key while b is a value in related value set\n //we may not necessary to have prerequisites for each char, so we put it here and \n //no need to include all chars in dict, if some words do not have dependency\n if(!hs.containsKey(a)) hs.put(a, new HashSet<Character>());\n hs.get(a).add(b);\n //then we update incoming edge table (degrees table)\n degrees.put(b, degrees.get(b) + 1);\n \n break;//we only care about first char, so break now\n }\n }\n prev = word;//update prev word\n }\n \n //**second part, use BFS to topologically visit the graph **\n Queue<Character> que = new LinkedList<Character>();\n \n for(Character c : degrees.keySet()){\n //add first series of nodes that do not have incoming edges\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n \n StringBuilder sb = new StringBuilder();\n \n while(!que.isEmpty()){\n Character curr = que.poll();\n sb.append(curr);\n \n //since we may not necessary include all nodes in prerequisites table, we need do boundary check first\n if(!hs.containsKey(curr)) continue;\n //remove outgoing edges from c, add new nodes if all their incoming edges have been removed\n for(Character c : hs.get(curr)){\n degrees.put(c, degrees.get(c) - 1);\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n }\n \n //check the result length with supposed length from keySize()\n //if not same, then there must be some nodes in cycle and did not included to our queue\n return sb.length() == degrees.size()? sb.toString() : \"\";\n }",
"static TreeSet<Adjective> parseAdjective12(Scanner data){\n\t\tint declension = Values.DELCENSION_ADJECTIVE_FIRST_AND_SECOND;\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adjective> output = new TreeSet<Adjective>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADJECTIVE_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString masculine;\n\t\t\tString feminine;\n\t\t\tString neuter;\n\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tmasculine = current[1].split(\", \")[0];\n\t\t\t\tfeminine = current[1].split(\", \")[1];\n\t\t\t\tneuter = current[1].split(\", \")[2];\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\ttrimAll(definitions);\n\t\t\tAdjective currentAdjective = new FirstSecondAdjective(masculine, feminine, neuter, chapter, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdjective);\n\t\t\toutput.add(currentAdjective);\n\t\t}\n\n\t\treturn output;\n\t}",
"private void fillAdjective1a()\n {\n adjective1a.add(\"Epic\");\n adjective1a.add(\"Brilliant\");\n adjective1a.add(\"Mighty\");\n adjective1a.add(\"Great\");\n adjective1a.add(\"Wonderful\");\n adjective1a.add(\"Crazy\");\n adjective1a.add(\"Sparkling\");\n adjective1a.add(\"Shiny\");\n adjective1a.add(\"Lustful\");\n adjective1a.add(\"Precious\");\n\n }",
"public List<String> getRelatedWords(String word) throws IOException {\n List<String> result = new ArrayList<String>();\n IDictionary dict = new Dictionary(new File(WORDNET_LOCATION));\n try {\n dict.open();\n IStemmer stemmer = new WordnetStemmer(dict);\n for (POS pos : EnumSet.of(POS.ADJECTIVE, POS.ADVERB, POS.NOUN, POS.VERB)) {\n List<String> resultForPos = new ArrayList<String>();\n List<String> stems = new ArrayList<String>();\n stems.add(word);\n for (String stem : stemmer.findStems(word, pos)) {\n if (!stems.contains(stem))\n stems.add(stem);\n }\n for (String stem : stems) {\n if (!resultForPos.contains(stem)) {\n resultForPos.add(stem);\n IIndexWord idxWord = dict.getIndexWord(stem, pos);\n if (idxWord == null) continue;\n List<IWordID> wordIDs = idxWord.getWordIDs();\n if (wordIDs == null) continue;\n IWordID wordID = wordIDs.get(0);\n IWord iword = dict.getWord(wordID);\n \n ISynset synonyms = iword.getSynset();\n List<IWord> iRelatedWords = synonyms.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n \n List<ISynsetID> hypernymIDs = synonyms.getRelatedSynsets();\n if (hypernymIDs != null) {\n for (ISynsetID relatedSynsetID : hypernymIDs) {\n ISynset relatedSynset = dict.getSynset(relatedSynsetID);\n if (relatedSynset != null) {\n iRelatedWords = relatedSynset.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n }\n }\n }\n }\n }\n for (String relatedWord : resultForPos) {\n if (relatedWord.length() > 3\n && !relatedWord.contains(\"-\")\n && !result.contains(relatedWord)) {\n // TODO: Hack alert!\n // The - check is to prevent lucene from interpreting hyphenated words as negative search terms\n // Fix!\n result.add(relatedWord);\n }\n }\n }\n } finally {\n dict.close();\n }\n return result;\n }",
"public void analyzeDocumentDemo(JSONObject json) {\n\t\ttry {\n\t\t\tJSONArray jarray = json.getJSONArray(\"Reviews\");\n\t\t\tfor (int i = 0; i < jarray.length(); i++) {\n\t\t\t\tPost review = new Post(jarray.getJSONObject(i));\n\t\t\t\tString content = review.getContent();\n\n\n\t\t\t\tHashSet<String> uniminiset = new HashSet<String>();\n\t\t\t\tHashSet<String> biminiset = new HashSet<String>();\n\n\t\t\t\tString[] unigram = tokenizer.tokenize(content);\n\n\t\t\t\tfor (String token : unigram) {\n\t\t\t\t\ttoken = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token)));\n\n\t\t\t\t\tuniminiset.add(token);\n\t\t\t\t}\n\n\t\t\t\t// count word frequency for unigram\n\t\t\t\tfor (String token2 : uniminiset) {\n\t\t\t\t\tif (m_stopwords.contains(token2))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse {\n\t\t\t\t\t\ttoken2 = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token2)));\n\t\t\t\t\t\tif (m_stats.containsKey(token2)) {\n\t\t\t\t\t\t\tm_stats.put(token2, m_stats.get(token2) + 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tm_stats.put(token2, 1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tArrayList<String> N_gram = new ArrayList<String>();\n\n\t\t\t\tfor (String token : tokenizer.tokenize(content)) {\n\n\t\t\t\t\ttoken = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token)));\n\t\t\t\t\tif (token.isEmpty()) {\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tN_gram.add(token);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tString[] fine = new String[N_gram.size()];\n // In bigram, neither two words should occur in the stopwords\n\t\t\t\tfor (int p = 0; p < N_gram.size() - 1; p++) {\n\t\t\t\t\tif (m_stopwords.contains(N_gram.get(p)))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (m_stopwords.contains(N_gram.get(p + 1)))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tfine[p] = N_gram.get(p) + \"-\" + N_gram.get(p + 1);\n\n\t\t\t\t}\n\n\t\t\t\tfor (String str : fine) {\n\n\t\t\t\t\tbiminiset.add(str);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// count word frequency for unigram\n\t\t\t\tfor (String str2 : biminiset) {\n\n\t\t\t\t\tif (m_stats.containsKey(str2)) {\n\t\t\t\t\t\tm_stats.put(str2, m_stats.get(str2) + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tm_stats.put(str2, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n \n\t\t\t\t// store review content on m_reviews so later on when want to use it \n\t\t\t\t// we do not have to reread it from file\n\t\t\t\tm_reviews.add(review);\n \n\t\t\t\t//monitor the process of the program\n\t\t\t\tSystem.out.println(\"level\" + m_reviews.size());\n\n\t\t\t}\n\t\t}\n\n\t\tcatch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public Automaton extractDelaySequence(Automaton automaton, Transition t){\n\t\n\t\tList<DelayElement> DI = ((DelayInformation) t.findExtension(DelayInfoProvider.EXTENSION_ID)).getElements();\n\t\tNewLinkedList result = new NewLinkedList();\n\t\tList<DelayElement> Init = getEdgeInput(DI);\n\n\t\t\n\t\tList<NewLinkedList> dlist = new Vector<NewLinkedList>();\n\t\tList<NewLinkedList> pureList = new Vector<NewLinkedList>();\n\t\tfor(DelayElement a : Init){\n\t\t\tNewLinkedList temp = new NewLinkedList();\n\t\t\tNewLinkedList copy = new NewLinkedList();\n\t\t\ttemp.sequentialInsertion(a);\n\t\t\tcopy.sequentialInsertion(a);\n\t\t\tdlist.add(temp);\n\t\t\tpureList.add(copy);\n\t\t\tList<DelayElement> Pre = new Vector<DelayElement>();\n\t\t\tList<DelayElement> Post = new Vector<DelayElement>();\n\t\t\t\n\t\t\tPre.add(a);\n\t\t\tPost = getNext(DI,Pre);\n\t\t\twhile(!Post.isEmpty()){\n\t\t\t\tfor(DelayElement b : Post){\n\t\t\t\t\ttemp.contains_removes(b);\n\t\t\t\t\tcopy.contains_removes(b);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\ttemp.sequentialInsertion(Post.get(0));\n\t\t\t\tcopy.sequentialInsertion(Post.get(0));\n\t\t\t\tfor(int i=1;i<Post.size();i++){\n\t\t\t\t\ttemp.parallelInsertion(Post.get(i));\n\t\t\t\t\tcopy.parallelInsertion(Post.get(i));\n\t\t\t\t}\n\t\t\t\tPre.clear();\n\t\t\t\tPre.addAll(Post);\n\t\t\t\tPost.clear();\n\t\t\t\tPost = getNext(DI,Pre);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<DelayElement> comTemp = new Vector<DelayElement>();\n\t\tList<DelayElement> com = new Vector<DelayElement>();\n\t\tNewLinkedList Common = new NewLinkedList();\t\t\n\t\t\t\t\n\t\tfor(int j=0;j<Init.size();j++){\n\t\t\tfor(int k=j+1;k<Init.size();k++){\n\t\t\t\tcomTemp.addAll(commonDI(dlist.get(j),dlist.get(k),Common));\n\t\t\t\tfor(DelayElement a : comTemp){\n\t\t\t\t\tif(!com.contains(a))\tcom.add(a);\n\t\t\t\t}\n\t\t\t\tcomTemp.clear();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(Common.isEmpty()){\n\t\t\tfor(int m=0;m<Init.size();m++){\n\t\t\t\tresult = combineParallel(result,dlist.get(m),false);\n\t\t\t}\n\t\t}\n\t\t\n\t\telse{\n\t\t\tresult = arrangeDelaySequence(Common,dlist,false);\n\t\t\t\n\t\t\t/*List<DelayElement> to = new Vector<DelayElement>();\n\t\t\tList<DelayElement> from = new Vector<DelayElement>();\n\t\t\tNewNode<DelayElement> position = Common.getHead().next;\n\t\t\tNewNode<DelayElement> Rposition = position;\n\t\t\twhile(Rposition!=null){\n\t\t\t\tif(!to.contains(Rposition.getData()))\tto.add(Rposition.getData());\n\t\t\t\tRposition = Rposition.right;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int n=0;n<Init.size();n++){\n\t\t\t\tif(dlist.get(n).contains(to)){\n\t\t\t\t\tresult = combineParallel(result,dlist.get(n).subSeq1(to));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresult.getCurrent().next.setData(to.get(0));\n\t\t\tresult.setCurrent(result.getCurrent().next);\n\t\t\tfor(int i=1;i<to.size();i++)\tresult.addDatatoRight(to.get(i));\n\t\t\t//Set other dummy-tail nodes \n\t\t\tNewNode<DelayElement> settingDummy1 = result.getCurrent();\n\t\t\twhile(settingDummy1!=null){\n\t\t\t\tsettingDummy1.dummyTail = true;\n\t\t\t\tsettingDummy1 = settingDummy1.right;\n\t\t\t}\n\t\t\t\n\t\t\tposition = position.next;\n\t\t\tRposition = position;\n\t\t\tfrom.addAll(to);\n\t\t\tto.clear();\n\t\t\twhile(position!=null){\n\t\t\t\twhile(Rposition!=null){\n\t\t\t\t\tif(!to.contains(Rposition.getData()))\tto.add(Rposition.getData());\n\t\t\t\t\tRposition = Rposition.right;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNewLinkedList Construction = new NewLinkedList();\n\t\t\t\tfor(int i=0;i<Init.size();i++){\n\t\t\t\t\tif(dlist.get(i).contains(to) && dlist.get(i).contains(from)){\n\t\t\t\t\t\tConstruction = combineParallel(Construction,dlist.get(i).subSeq2(from, to));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tConstruction.getCurrent().next.setData(to.get(0));\n\t\t\t\tConstruction.setCurrent(Construction.getCurrent().next);\n\t\t\t\tfor(int k=1;k<to.size();k++)\tConstruction.addDatatoRight(to.get(k));\n\t\t\t\t//Set other dummy-tail nodes \n\t\t\t\tNewNode<DelayElement> settingDummy2 = Construction.getCurrent();\n\t\t\t\twhile(settingDummy2!=null){\n\t\t\t\t\tsettingDummy2.dummyTail = true;\n\t\t\t\t\tsettingDummy2 = settingDummy2.right;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tNewNode<DelayElement> Tail = result.getCurrent();\n\t\t\t\tTail.next = Construction.getHead().next;\n\t\t\t\tConstruction.getHead().next.prev = Tail;\n\t\t\t\t//Set \"next\" of dummy-tail nodes\n\t\t\t\tTail = Tail.right;\n\t\t\t\twhile(Tail!=null){\n\t\t\t\t\tTail.next = Construction.getHead().next;\n\t\t\t\t\tTail = Tail.right;\n\t\t\t\t}\n\t\t\t\tresult.setCurrent(Construction.getCurrent());\n\t\t\t\t\n\t\t\t\tposition = position.next;\n\t\t\t\tRposition = position;\n\t\t\t\tfrom.clear();\n\t\t\t\tfrom.addAll(to);\n\t\t\t\tto.clear();\n\t\t\t}\n\t\t\t\n\t\t\tNewLinkedList lastPart = new NewLinkedList();\n\t\t\tfor(int p=0;p<Init.size();p++){\n\t\t\t\tif(dlist.get(p).contains(from)){\n\t\t\t\t\tlastPart = combineParallel(lastPart, dlist.get(p).subSeq3(from));\n\t\t\t\t}\n\t\t\t}\n\t\t\tNewNode<DelayElement> lastTail = new NewNode<DelayElement>();\n\t\t\tif(!lastPart.isEmpty()){\n\t\t\t\tlastTail = result.getCurrent(); \n\t\t\t\tlastTail.next = lastPart.getHead().next;\n\t\t\t\tlastPart.getHead().next.prev = lastTail;\n\t\t\t}*/\n\t\t}\n\t\t\n\t\t// Rearrange the delay-sequence\n\t\t// Check here!!!\n\t\tNewLinkedList done = result;\n\t\tfor(int i=0;i<pureList.size();i++){\n\t\t\tNewLinkedList newComList = new NewLinkedList();\n\t\t\tcommonDI(pureList.get(i),done, newComList);\n\t\t\tif(!newComList.isEmpty()){\n\t\t\t\tList<NewLinkedList> list = new Vector<NewLinkedList>();\n\t\t\t\tlist.add(pureList.get(i));\n\t\t\t\tlist.add(done);\n\t\t\t\tdone = arrangeDelaySequence(newComList, list, true);\n\t\t\t}\n\t\t}\n\t\tif(!com.isEmpty()){\n\t\t\tfor(int j=0;j<pureList.size();j++){\n\t\t\t\tif(!pureList.get(j).contains(com)){\n\t\t\t\t\tdone = combineParallel(done, pureList.get(j),false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSetDummy(done,com);\n//\t\tautomaton = Seq2Automaton.addNewParts(automaton,t, done);\n\t\tautomaton = newSeq2Automaton.addNewParts(automaton, t, done, false);\n\n\t\treturn automaton;\n\t}",
"public String writeWordlists(Instances data) {\n\t\tString result = \"\";\n\t\tString[] wordLists = new String[4];\n\t\tfor (int j = 0; j < wordLists.length; j++) {\n\t\t\twordLists[j] = \"\";\n\t\t}\n\n\t\t// Loop over all tokens (attributes)\n\t\tfor (int i = 1; i < data.numAttributes(); i++) {\n\t\t\tdouble[] scores = data.attributeToDoubleArray(i);\n\t\t\tdouble[] aspectScores = new double[4];\n\t\t\tString token = data.attribute(i).name();\n//\t\t\tSystem.out.println(\"Token: \" + token);\n\n\t\t\t// Calculate aspect score by summing top and low scores\n\t\t\taspectScores[0] = scores[0] + scores[1]; // Aroma\n\t\t\taspectScores[1] = scores[2] + scores[3]; // Palate\n\t\t\taspectScores[2] = scores[4] + scores[5]; // Taste\n\t\t\taspectScores[3] = scores[6] + scores[7]; // Appearance\n\n\t\t\tint maxIndex = 0;\n\t\t\tdouble maxScore = 0;\n\t\t\tfor (int j = 0; j < aspectScores.length; j++) {\n\t\t\t\tif (aspectScores[j] > maxScore) {\n\t\t\t\t\tmaxScore = aspectScores[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t\t// TODO Implement min threshold to include\n\t\t\t\t}\n\t\t\t}\n//\t\t\tSystem.out.println(\"Max value and aspect: \" + maxIndex + \"/\" + maxScore);\n\n\t\t\tDouble ratio = scores[maxIndex * 2] / scores[maxIndex * 2 + 1];\n//\t\t\tSystem.out.println(\"Score ratio: \" + ratio);\n\n\t\t\t// Word is positive wrt aspect\n\t\t\tif (ratio > 1) // TODO: Configurable threshold\n\t\t\t\twordLists[maxIndex] += token + \" \" + (scores[maxIndex * 2]-scores[maxIndex * 2 + 1]) + \"\\n\";\n\t\t\t// Word is negative wrt aspect\n\t\t\telse if (ratio < 1)\n\t\t\t\twordLists[maxIndex] += token + \" \" + -1 * (scores[maxIndex * 2 + 1]-scores[maxIndex * 2]) + \"\\n\";\n\n//\t\t\tfor (int j = 0; j < scores.length; j++) {\n//\t\t\t\tSystem.out.print(scores[j] + \",\");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n\n\t\t}// End loop over attributes\n\n\t\t// Write lists to file\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tfor (int j = 0; j < wordLists.length; j++) {\n\n\t\t\t\tString path = this.outputDir;\n\t\t\t\tif (j == 0)\n\t\t\t\t\tpath += Aspect.AROMA.name();\n\t\t\t\tif (j == 1)\n\t\t\t\t\tpath += Aspect.PALATE.name();\n\t\t\t\tif (j == 2)\n\t\t\t\t\tpath += Aspect.TASTE.name();\n\t\t\t\tif (j == 3)\n\t\t\t\t\tpath += Aspect.APPEARANCE.name();\n\t\t\t\tpath += \".txt\";\n\t\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n\t\t\t\tout.write(wordLists[j]);\n\t\t\t\tout.close();\n\t\t\t\tSystem.out.println(\"Wordlist written to: \" + path + \" (\" + wordLists[j].split(\"\\n\").length + \")\");\n\t\t\t\tresult += path+\";\";\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static int getNaturalWordsFromMTDataset(List<WeightedMTInstance> dataset, Set<String> natWords){\n\t\t\n\t\tint maxLength = 0;\n\t\tfor(WeightedMTInstance wi : dataset){\n\t\t\tmaxLength = Math.max(maxLength, wi.naturalCommand.size());\n\t\t\tfor(int i = 1; i <= wi.naturalCommand.size(); i++){\n\t\t\t\tnatWords.add(wi.naturalCommand.t(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn maxLength;\n\t\t\n\t}",
"public static void Stemmingmethod()throws Exception\n{\n char[] w = new char[501];\n Stemmer s = new Stemmer();\n String prcessedtxt=\"\";\n ArrayList<String> finalsen= new ArrayList();\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"fullyprocessed.txt\"));\n\n String u=null;\n \n {\n FileInputStream in = new FileInputStream(\"stopwordsremoved.txt\");\n\n while(true)\n\n { int ch = in.read();\n if (Character.isLetter((char) ch))\n {\n int j = 0;\n while(true)\n { ch = Character.toLowerCase((char) ch);\n w[j] = (char) ch;\n if (j < 500) j++;\n ch = in.read();\n if (!Character.isLetter((char) ch))\n {\n \n s.add(w, j); \n\n s.stem();\n { \n\n u = s.toString();\n finalsen.add(u);\n /* to test getResultBuffer(), getResultLength() : */\n /* u = new String(s.getResultBuffer(), 0, s.getResultLength()); */\n\n System.out.print(u);\n }\n break;\n }\n }\n }\n if (ch < 0) break;\n System.out.print((char)ch);\n finalsen.add(\"\"+(char)ch);\n\n\n }\n }\n \n \n \n for(String word:finalsen){\n prcessedtxt=prcessedtxt+\"\"+ word;\n }\n writer.write(prcessedtxt+\"\\n\"); \n prcessedtxt=\"\";\n finalsen.clear();\n writer.close();\n\n\n \n}",
"public String findAntonyms(String word) throws IOException {\n try {\n word = word.toLowerCase();\n String check = dictionaryDao.readDB(word);\n if(!check.contains(\"null\"))\n return dictionaryDao.readDB(word); //checkFile(word);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n URL url = new URL(PATH + word + XML);\n URLConnection connection = url.openConnection();\n Document doc = parseXML(connection.getInputStream());\n NodeList xml = doc.getElementsByTagName(\"w\");\n String xmlElementValue = null;\n ArrayList<String> antonymsCollection = new ArrayList<>();\n\n for (int i = 0; i < xml.getLength(); i++) {\n Element element = (Element) xml.item(i);\n if (isAntonym(element.getAttribute(\"r\"))) {\n xmlElementValue = element.getTextContent();\n antonymsCollection.add(xmlElementValue);\n }\n }\n\n String lastElement = antonymsCollection.get(antonymsCollection.size()-1);\n String antonymsCollectionString = \"\";\n\n for(String s : antonymsCollection) {\n if(!s.equals(lastElement))\n antonymsCollectionString += s + \", \";\n else\n antonymsCollectionString += s + \".\";\n }\n dictionaryDao.addToDB(word, antonymsCollectionString); //saveToFile(word, antonymsCollectionString);\n return \"Antonym/s for \" + word + \": \" + antonymsCollectionString;\n } catch (UnknownHostException e) {\n return INTERNECT_CONNECTION;\n } catch (NullPointerException e) {\n return INCORRECT_WORD;\n } catch (ArrayIndexOutOfBoundsException e) {\n return INCORRECT_WORD;\n } catch(IOException e){\n return INCORRECT_WORD;\n } catch (JdbcSQLException e) {\n return DATABASE_ERROR;\n } catch (Exception e) {\n StringWriter errors = new StringWriter();\n e.printStackTrace(new PrintWriter(errors));\n return errors.toString();\n }\n }",
"public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }",
"public void biStringToAl(String s){\n\t\tint i=0, j=0, num=0;\n\t\twhile(i<s.length() - 1){ //avoid index out of range exception\t\t\t\n\t\t\twhile(i < s.length()){\n\t\t\t\ti++;\n\t\t\t\tif(s.charAt(i) == ' ' || i == s.length()-1){ //a word ends\n\t\t\t\t\tnum++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile(num >2 && i < s.length()){\n\t\t\t\tj++;\n\t\t\t\tif(s.charAt(j) == ' '){ // j is 2 words slower than i\n\t\t\t\t\tj = j + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString temp;\n\t\t\tif(num >= 2){\n\t\t\t\tif(i == s.length() - 1){\n\t\t\t\t\ttemp =s.substring(j,i+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp =s.substring(j,i);\n\t\t\t\t}\n\t\t\t\tbiWords.add(temp);\n\t\t\t\t//System.out.println(\"temp:\"+temp);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }",
"public String getExplanation() {\n return \"Weka is unexplainable!\";\n }",
"public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"private void generateAutomaton() {\n /**\n * Chars in the positions:\n * 0 -> \"-\"\n * 1 -> \"+\"\n * 2 -> \"/\"\n * 3 -> \"*\"\n * 4 -> \")\"\n * 5 -> \"(\"\n * 6 -> \"=\"\n * 7 -> \";\"\n * 8 -> [0-9]\n * 9 -> [A-Za-z]\n * 10 -> skip (\"\\n\", \"\\r\", \" \", \"\\t\")\n * 11 -> other symbols\n */\n\n automaton = new State[][]{\n /* DEAD */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* START */ {State.SUB, State.PLUS, State.DIV, State.MUL, State.RPAR, State.LPAR, State.EQ, State.SMICOLON, State.INT, State.VAR, State.DEAD, State.DEAD},\n /* SUB */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* PLUS */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* DIV */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* MUL */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* RPAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* LPAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* EQ */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* SMICOLON */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* INT */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.INT, State.DEAD, State.DEAD, State.DEAD},\n /* VAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.VAR, State.VAR, State.DEAD, State.DEAD}\n };\n }",
"private void textToVariables() {\n\t\tfor (int i = 0; i < text1.length; i++) {\n\t\t\tString [] variables = app.split(text1[i], \" \");\n\t\t\tfor (int j = 0; j < variables.length; j++) {\n\t\t\t\tfirstVariables.add(variables[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < firstVariables.size(); i++) {\n\t\t\t//Variable\n\t\t\tString word = firstVariables.get(i);\n\t\t\t\n\t\t\t//Assigning the variables based on their position in the list (odd and even numbers)\n\t\t\tif (i%2 == 0) {\n\t\t\t\tid.add(word); \n\t\t\t} else {\n\t\t\t\tnames.add(word);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < text2.length; i++) {\n\t\t\t//Sorting the array to make sure that it corresponds with the ID and name from the first text\n\t\t\tArrays.sort(text2);\n\t\t\t//Then splitting it to get: ID, breed and date of birth\n\t\t\tString [] variables = app.split(text2[i], \" \");\n\t\t\tfor (int j = 0; j < variables.length; j++) {\n\t\t\t\tsecondVariables.add(variables[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < secondVariables.size(); i++) {\n\t\t\t//Variable\n\t\t\tString word = secondVariables.get(i);\n\t\t\t\n\t\t\t//Removing the ID from the list, because it's already in order\n\t\t\tsecondVariables.remove(\"1\");\t\t\tsecondVariables.remove(\"2\");\n\t\t\tsecondVariables.remove(\"3\");\t\t\tsecondVariables.remove(\"4\");\n\t\t\tsecondVariables.remove(\"5\");\n\t\t\t\n\t\t\t//Assigning the variables based on their position in the list (odd and even numbers)\n\t\t\tif (i%2 == 0) {\n\t\t\t\tdate.add(word);\n\t\t\t} else {\n\t\t\t\tbreeds.add(word);\n\t\t\t}\t\n\t\t}\n\t}",
"default String getNormalizedText() {\n return meta(\"nlpcraft:nlp:normtext\");\n }",
"private void generateIdfOutput()\n{\n getValidWords();\n scanDocuments();\n outputResults();\n}",
"public static ArrayList<String> toCNF(String str) {\r\n\t\tArrayList<String> front = new ArrayList<String>();\r\n\t\tArrayList<String> back = new ArrayList<String>();\r\n\t\tArrayList<String> result = new ArrayList<String>();\r\n\t\tString[] orign = str.split(\" \");\t\t\r\n\t\tboolean isfront = true;\r\n\t\tfor(int i =0; i < orign.length; i++) {\r\n\t\t\tif(!orign[i].equals(\"=>\") && isfront && !orign[i].equals(\"&\") && !orign[i].equals(\"=>\") ) {\r\n\t\t\t\tfront.add(orign[i]);\r\n\t\t\t}else if(orign[i].equals(\"=>\")) {\r\n\t\t\t\tisfront = false;\r\n\t\t\t}\r\n\t\t\telse if(!orign[i].equals(\"&\") && !orign[i].equals(\"=>\")){\r\n\t\t\t\tback.add(orign[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t for(String s : front) {\r\n\t \tif(isfront == false) {\r\n\t \t\ts = negation(s);\r\n\t \t\tresult.add(s);\r\n\t \t}else {\r\n\t \t\tresult.add(s);\r\n\t \t}\t\t\t\r\n\t\t}\r\n\t\tfor(String s : back) {\r\n\t\t\tresult.add(s);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"java.lang.String getPredicted();",
"abstract String makeAClue(String puzzleWord);",
"static TreeSet<Noun> parseNouns(Scanner data, int declension){\n\t\tassert(declension != Values.INDEX_ENDINGS_DECLENSION_THIRD && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N); //there's a separate function for these guys.\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(NumberFormatException e){ //can happen if a chapter isn't specified. Read the noun from a null chapter.\n\t\t\t\tchapter = Values.CHAPTER_VOID;\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}",
"public List<? extends HasWord> defaultTestSentence()\n/* */ {\n/* 472 */ return Sentence.toSentence(new String[] { \"w\", \"lm\", \"tfd\", \"mElwmAt\", \"En\", \"ADrAr\", \"Aw\", \"DHAyA\", \"HtY\", \"AlAn\", \".\" });\n/* */ }",
"private void loadNonDictionaryTerms(String filePathNonDictionaryAuto) throws IOException {\n File fileAnnotation = new File(filePathNonDictionaryAuto);\n if (!fileAnnotation.exists()) {\n fileAnnotation.createNewFile();\n }\n FileReader fr;\n fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n\n nonDictionaryTerms.add(line.trim().toLowerCase());\n System.out.println(\"Loading Non Dictionary Terms: \" + line);\n }\n br.close();\n fr.close();\n System.out.println(\"Non Dictionary Terms Loaded\");\n }",
"public String generateWord(String prewordTwo, String prewordOne) {\n\t//double sample = Math.random();\n\t//if(sample < Weights[0]){\n\t return Trigram.generateWord(prewordTwo, prewordOne);\n\t /*} else if(sample < Weights[0] + Weights[1]){\n\t return Bigram.generateWord(prewordOne);\n\t} else {\n\t return Unigram.generateWord();\n\t }*/\n\t\n\n\n\n\t/*\tdouble sum = 0.0;\n\tString result = Trigram.generateWord(Weights[0], sample);\n\tif(!reults.equals(\"*UNKNOWN*\")) return result;\n\tsample -= Weights[0];\n\tresult = Bigram.generateWord(Weights[1], sample);\n\tif(!reults.equals(\"*UNKNOWN*\")) return result;\n\treturn Unigram.generateWord(Weights[2], \n\t*/\n\t/*for(String word : Trigram.wordCounter.keySet()) {\n\t sum += Weights[0] * Trigram.wordCounter.getCount(word) / Trigram.getTotal();\n\t if(sum > sample) {\n\t\treturn word;\n\t }\n\t}\n\t*/\n\t\n }",
"public void extractKnowledge()\n {\n }",
"public abstract WordEntry manualTranslate(String text, String from, String to);",
"public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}",
"public void reset(Object o) {\n\t\tif (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tint start = word.getStartPosition();\n\t\t\tint end = word.getEndPosition();\n\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\tVector fws = Model.getIllocutionUnitRoots().getFunctionWords(word);\n\t\t\tVector cws = Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\tword);\n\t\t\tmarkedElements.removeElement(word);\n\t\t\tif (fws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < fws.size(); j++) {\n\t\t\t\t\tFunctionWord fw = (FunctionWord) fws.get(j);\n\t\t\t\t\tdesignFW(fw);\n\t\t\t\t}\n\t\t\t} else if (cws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < cws.size(); j++) {\n\t\t\t\t\tConstitutiveWord cw = (ConstitutiveWord) cws.get(j);\n\t\t\t\t\tdesignCW(cw);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\tint start = fword.getStartPosition();\n\t\t\tint end = fword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(fword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getFunctionWords(\n\t\t\t\t\t\tfword.getWord()).size() > 0)\n\t\t\t\t\tdesignFW(fword);\n\t\t\t}\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\teditor.setCaretPosition(cword.getEndPosition() + 1);\n\t\t\tint start = cword.getStartPosition();\n\t\t\tint end = cword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(cword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\t\tcword.getWord()).size() > 0)\n\t\t\t\t\tdesignCW(cword);\n\t\t\t}\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\tif (fw != null) {\n\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(fw);\n\t\t\t}\n\t\t\tif (cw != null) {\n\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(cw);\n\t\t\t}\n\t\t\tdesignMU(mu);\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tmarkedElements.remove(iu);\n\t\t\tdesignIU(iu);\n\t\t}\n\t\tdesignText(Model.getIllocutionUnitRoots());\n\t}",
"public void emissionProbabilities() {\r\n /**\r\n * Word and Tag List.\r\n */\r\n final TreeSet<String> words = new TreeSet(), tags = new TreeSet();\r\n Iterator<Kata> iterSatu = MarkovCore.LIST_KATA.iterator();\r\n while (iterSatu.hasNext()) {\r\n final Kata kata = iterSatu.next();\r\n words.add(kata.getKata());\r\n tags.add(kata.getTag());\r\n }\r\n System.out.println(\"Jumlah Kata: \" + words.size());\r\n System.out.println(\"Jumlah Tag: \" + tags.size());\r\n System.out.println();\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Emissions Calculation\">\r\n /**\r\n * Perhitungan Emisi.\r\n */\r\n Iterator<String> iterDua = words.iterator();\r\n while (iterDua.hasNext()) {\r\n final String kata = iterDua.next();\r\n Iterator<String> iterTiga = tags.iterator();\r\n while (iterTiga.hasNext()) {\r\n final StrBuilder strBuilder = new StrBuilder(10);\r\n final String tag = iterTiga.next();\r\n strBuilder.append(\"P(\");\r\n strBuilder.append(kata + \"|\");\r\n strBuilder.append(tag + \") = \");\r\n final Emissions emissions = new Emissions(kata, tag, strBuilder.toString());\r\n emissionses.add(emissions);\r\n }\r\n }\r\n\r\n final HashMap<String, Double> penyebut = new HashMap();\r\n Iterator<Kata> iterEmpat = MarkovCore.LIST_KATA.iterator();\r\n while (iterEmpat.hasNext()) {\r\n final Kata kata = iterEmpat.next();\r\n if (penyebut.get(kata.getTag()) == null) {\r\n penyebut.put(kata.getTag(), 1.0);\r\n } else {\r\n penyebut.put(kata.getTag(), penyebut.get(kata.getTag()) + 1);\r\n }\r\n }\r\n\r\n Iterator<Emissions> iterTiga = emissionses.iterator();\r\n while (iterTiga.hasNext()) {\r\n final Emissions emissions = iterTiga.next();\r\n double pembilang = 0.0;\r\n Iterator<Kata> iterKata = MarkovCore.LIST_KATA.iterator();\r\n while (iterKata.hasNext()) {\r\n Kata kata = iterKata.next();\r\n if (StringUtils.equalsIgnoreCase(kata.getKata(), emissions.word) && StringUtils.equalsIgnoreCase(kata.getTag(), emissions.tag)) {\r\n pembilang++;\r\n }\r\n }\r\n\r\n /**\r\n * WARNING - Laplace Smoothing is Activated.\r\n */\r\n// emissions.setEmissionsProbability(pembilang + 1, penyebut.get(emissions.tag) + this.uniqueWords.size(), (pembilang + 1) / (penyebut.get(emissions.tag) + this.uniqueWords.size()));\r\n emissions.setEmissionsProbability(pembilang, penyebut.get(emissions.tag), pembilang / penyebut.get(emissions.tag));\r\n }\r\n//</editor-fold>\r\n\r\n// System.out.println(emissionses.size());\r\n Iterator<Emissions> emissionsIterator = emissionses.iterator();\r\n while (emissionsIterator.hasNext()) {\r\n final Emissions emissions = emissionsIterator.next();\r\n this.emissionsMap.put(new MultiKey(emissions.word, emissions.tag), emissions.emissionsProbability);\r\n// System.out.println(emissions);\r\n }\r\n// System.out.println(this.emissionsMap.size());\r\n }",
"static TreeSet<Noun> parse3rdNouns(Scanner data){\n\n\t\tint declension = 3;\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\t\t\ttry{\n\t\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD;\n\t\t\t\t\t//System.out.println(\"No i-stem\");\n\t\t\t\t} catch(NumberFormatException e){ //I-Stem.\n\t\t\t\t\tchapter = Integer.parseInt(current[0].substring(0, 2));\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD_I;\n\t\t\t\t\t//System.out.println(\"i-stem\");\n\t\t\t\t}\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}",
"public void analyzeDocument(String text) {\n\t\tString[] tokens = m_tokenizer.tokenize(text.toLowerCase());\n\t\tfor (int j = 0; j < tokens.length; j++)\n\t\t\ttokens[j] = SnowballStemmingDemo(NormalizationDemo(tokens[j]));\n\t\tHashMap<String, Integer> document_tf = new HashMap<String, Integer>();\n\t\tfor (String token : tokens) {\n\t\t\tif (!document_tf.containsKey(token))\n\t\t\t\tdocument_tf.put(token, 1);\n\t\t\telse\n\t\t\t\tdocument_tf.put(token, document_tf.get(token) + 1);\n\t\t\tif (!df.containsKey(token))\n\t\t\t\tdf.put(token, 1);\n\t\t\telse\n\t\t\t\tdf.put(token, df.get(token) + 1);\n\t\t}\n\t\ttf.add(document_tf);\n\t\t/*\n\t\t * for(String token : document_tf.keySet()) { if(!df.containsKey(token))\n\t\t * df.put(token, 1); else df.put(token, df.get(token) + 1); if(!) }\n\t\t */\n\t\tm_reviews.add(text);\n\t}",
"static TreeSet<Adverb> parseAdverbs(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adverb> output = new TreeSet<Adverb>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADVERB_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString Adverb = null;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tAdverb = current[1];\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\ttrimAll(definitions);\n\t\t\tAdverb currentAdverb = new Adverb(Adverb, chapter, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdverb);\n\t\t\toutput.add(currentAdverb);\n\t\t}\n\n\t\treturn output;\n\t}",
"public interface IWord2Spell {\r\n String word2spell();\r\n}",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }",
"public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"public Removalstops()\n {\n stopWords.add(\"am\");\n stopWords.add(\"my\");\nstopWords.add(\"at\");\nstopWords.add(\"a\");\nstopWords.add(\"i\");\nstopWords.add(\"is\");\nstopWords.add(\"of\");\nstopWords.add(\"have\");\nstopWords.add(\"--\");\nstopWords.add(\"do\");\nstopWords.add(\"the\");\nstopWords.add(\"was\");\nstopWords.add(\"iam\");\nstopWords.add(\"there\");\nstopWords.add(\"what\");\nstopWords.add(\"for\");\nstopWords.add(\"in\");\nstopWords.add(\"very\");\nstopWords.add(\"and\");\nstopWords.add(\"to\");\nstopWords.add(\"often\");\nstopWords.add(\"because\");\nstopWords.add(\"in\");\nstopWords.add(\"an\");\nstopWords.add(\"can\");\nstopWords.add(\"via\");\nstopWords.add(\"even\");\nstopWords.add(\"as\");\nstopWords.add(\"best\");\nstopWords.add(\"been\");\nstopWords.add(\"into\");\nstopWords.add(\"by\");\nstopWords.add(\"around\");\nstopWords.add(\"being\");\nstopWords.add(\"from\");\nstopWords.add(\"etc\");\nstopWords.add(\"his\");\nstopWords.add(\"do\");\nstopWords.add(\"have\");\nstopWords.add(\"had\"); \nstopWords.add(\"able\");\nstopWords.add(\"about\");\nstopWords.add(\"above\");\nstopWords.add(\"abroad\");\nstopWords.add(\"according\");\nstopWords.add(\"accordingly\");\nstopWords.add(\"across\");\nstopWords.add(\"actually\");\nstopWords.add(\"adj\");\nstopWords.add(\"after\");\nstopWords.add(\"afterwards\");\nstopWords.add(\"again\");\nstopWords.add(\"against\");\nstopWords.add(\"ago\");\nstopWords.add(\"ahead\");\nstopWords.add(\"ain't\");\nstopWords.add(\"all\");\nstopWords.add(\"allow\");\nstopWords.add(\"allows\");\nstopWords.add(\"almost\");\nstopWords.add(\"alone\");\nstopWords.add(\"along\");\nstopWords.add(\"alongside\");\nstopWords.add(\"already\");\nstopWords.add(\"also\");\nstopWords.add(\"although\");\nstopWords.add(\"always\");\nstopWords.add(\"am\");\nstopWords.add(\"amid\");\nstopWords.add(\"amidst\");\nstopWords.add(\"among\");\nstopWords.add(\"amongst\");\nstopWords.add(\"an\");\nstopWords.add(\"and\");\nstopWords.add(\"another\");\nstopWords.add(\"any\");\nstopWords.add(\"anybody\");\nstopWords.add(\"anyhow\");\nstopWords.add(\"anyone\");\nstopWords.add(\"anything\");\nstopWords.add(\"anyway\");\nstopWords.add(\"anyways\");\nstopWords.add(\"anywhere\");\nstopWords.add(\"apart\");\nstopWords.add(\"appear\");\nstopWords.add(\"appreciate\");\nstopWords.add(\"appropriate\");\nstopWords.add(\"are\");\nstopWords.add(\"aren't\");\nstopWords.add(\"around\");\nstopWords.add(\"as\");\nstopWords.add(\"a's\");\nstopWords.add(\"aside\");\nstopWords.add(\"ask\");\nstopWords.add(\"asking\");\nstopWords.add(\"associated\");\nstopWords.add(\"at\");\nstopWords.add(\"available\");\nstopWords.add(\"away\");\nstopWords.add(\"awfully\");\nstopWords.add(\"back\");\nstopWords.add(\"backward\");\nstopWords.add(\"backwards\");\nstopWords.add(\"be\");\nstopWords.add(\"became\");\nstopWords.add(\"beacause\");\nstopWords.add(\"become\");\nstopWords.add(\"becomes\");\nstopWords.add(\"becoming\");\nstopWords.add(\"been\");\nstopWords.add(\"before\");\nstopWords.add(\"beforehand\");\nstopWords.add(\"begin\");\nstopWords.add(\"behind\");\nstopWords.add(\"being\");\nstopWords.add(\"believe\");\nstopWords.add(\"below\");\nstopWords.add(\"beside\");\nstopWords.add(\"besides\");\nstopWords.add(\"best\");\nstopWords.add(\"better\");\nstopWords.add(\"between\");\nstopWords.add(\"beyond\");\nstopWords.add(\"both\");\nstopWords.add(\"brief\");\nstopWords.add(\"but\");\nstopWords.add(\"by\");\nstopWords.add(\"came\");\nstopWords.add(\"can\");\nstopWords.add(\"cannot\");\nstopWords.add(\"cant\");\nstopWords.add(\"can't\");\nstopWords.add(\"caption\");\nstopWords.add(\"cause\");\nstopWords.add(\"causes\");\nstopWords.add(\"certain\");\nstopWords.add(\"cetrainly\");\nstopWords.add(\"changes\");\nstopWords.add(\"clearly\");\nstopWords.add(\"c'mon\");\nstopWords.add(\"co\");\nstopWords.add(\"co.\");\nstopWords.add(\"com\");\nstopWords.add(\"come\");\nstopWords.add(\"comes\");\nstopWords.add(\"concerning\");\nstopWords.add(\"consequently\");\nstopWords.add(\"consider\");\nstopWords.add(\"considering\");\nstopWords.add(\"could\");\nstopWords.add(\"couldn't\");\nstopWords.add(\"c's\");\nstopWords.add(\"currently\");\nstopWords.add(\"dare\");\nstopWords.add(\"daren't\");\nstopWords.add(\"definitely\");\nstopWords.add(\"described\");\nstopWords.add(\"despite\");\nstopWords.add(\"did\");\nstopWords.add(\"didn't\");\nstopWords.add(\"different\");\nstopWords.add(\"directly\");\nstopWords.add(\"do\");\nstopWords.add(\"does\");\nstopWords.add(\"doesn't\");\nstopWords.add(\"doing\");\nstopWords.add(\"done\");\nstopWords.add(\"don't\");\nstopWords.add(\"down\");\nstopWords.add(\"downwards\");\nstopWords.add(\"during\");\nstopWords.add(\"each\");\nstopWords.add(\"edu\");\nstopWords.add(\"eg\");\nstopWords.add(\"eight\");\nstopWords.add(\"eighty\");\nstopWords.add(\"either\");\nstopWords.add(\"else\");\nstopWords.add(\"elsewhere\");\nstopWords.add(\"end\");\nstopWords.add(\"ending\");\nstopWords.add(\"enough\");\nstopWords.add(\"entirely\");\nstopWords.add(\"especially\");\nstopWords.add(\"et\");\nstopWords.add(\"etc\");\nstopWords.add(\"even\");\nstopWords.add(\"evenmore\");\nstopWords.add(\"every\");\nstopWords.add(\"everybody\");\nstopWords.add(\"everyone\");\nstopWords.add(\"everything\");\nstopWords.add(\"everywhere\");\nstopWords.add(\"ex\");\nstopWords.add(\"exactly\");\nstopWords.add(\"example\");\nstopWords.add(\"except\");\nstopWords.add(\"fairly\");\nstopWords.add(\"far\");\nstopWords.add(\"farhter\");\nstopWords.add(\"few\");\nstopWords.add(\"fewer\");\nstopWords.add(\"fifth\");\nstopWords.add(\"first\");\nstopWords.add(\"five\");\nstopWords.add(\"followed\");\nstopWords.add(\"following\");\nstopWords.add(\"follows\");\nstopWords.add(\"for\");\nstopWords.add(\"forever\");\nstopWords.add(\"former\");\nstopWords.add(\"formerly\");\nstopWords.add(\"forth\");\nstopWords.add(\"forward\");\nstopWords.add(\"found\");\nstopWords.add(\"four\");\nstopWords.add(\"from\");\nstopWords.add(\"further\");\nstopWords.add(\"furthermore\");\nstopWords.add(\"get\");\nstopWords.add(\"gets\");\nstopWords.add(\"getting\");\nstopWords.add(\"given\");\nstopWords.add(\"gives\");\nstopWords.add(\"go\");\nstopWords.add(\"goes\");\nstopWords.add(\"going\");\nstopWords.add(\"gone\");\nstopWords.add(\"got\");\nstopWords.add(\"gotten\");\nstopWords.add(\"greetings\");\nstopWords.add(\"had\");\nstopWords.add(\"hadn't\");\nstopWords.add(\"half\");\nstopWords.add(\"happens\");\nstopWords.add(\"hardly\");\nstopWords.add(\"has\");\nstopWords.add(\"hasn't\");\nstopWords.add(\"have\");\nstopWords.add(\"haven't\");\nstopWords.add(\"having\");\nstopWords.add(\"he\");\nstopWords.add(\"he'd\");\nstopWords.add(\"he'll\");\nstopWords.add(\"hello\");\nstopWords.add(\"help\");\nstopWords.add(\"hence\");\nstopWords.add(\"her\");\nstopWords.add(\"here\");\nstopWords.add(\"hereafter\");\nstopWords.add(\"hereby\");\nstopWords.add(\"herein\");\nstopWords.add(\"here's\");\nstopWords.add(\"hereupon\");\nstopWords.add(\"hers\");\nstopWords.add(\"herself\");\nstopWords.add(\"he's\");\nstopWords.add(\"hi\");\nstopWords.add(\"him\");\nstopWords.add(\"himself\");\nstopWords.add(\"his\");\nstopWords.add(\"hither\");\nstopWords.add(\"hopefully\");\nstopWords.add(\"how\");\nstopWords.add(\"howbeit\");\nstopWords.add(\"however\");\nstopWords.add(\"however\");\nstopWords.add(\"hundred\");\nstopWords.add(\"i'd\");\nstopWords.add(\"ie\");\nstopWords.add(\"if\");\nstopWords.add(\"ignored\");\nstopWords.add(\"i'll\");\nstopWords.add(\"i'm\");\nstopWords.add(\"immediate\");\nstopWords.add(\"in\");\nstopWords.add(\"iansmuch\");\nstopWords.add(\"inc\");\nstopWords.add(\"inc.\");\nstopWords.add(\"indeed\");\nstopWords.add(\"indicate\");\nstopWords.add(\"indicated\");\nstopWords.add(\"indicates\");\nstopWords.add(\"inner\");\nstopWords.add(\"inside\");\nstopWords.add(\"insofar\");\nstopWords.add(\"into\");\nstopWords.add(\"inward\");\nstopWords.add(\"is\");\nstopWords.add(\"isn't\");\nstopWords.add(\"it\");\nstopWords.add(\"it'd\");\nstopWords.add(\"it'll\");\nstopWords.add(\"its\");\nstopWords.add(\"it's\");\nstopWords.add(\"itself\");\nstopWords.add(\"i've\");\nstopWords.add(\"just\");\nstopWords.add(\"k\");\nstopWords.add(\"keep\");\nstopWords.add(\"keeps\");\nstopWords.add(\"kept\");\nstopWords.add(\"know\");\nstopWords.add(\"knows\");\nstopWords.add(\"known\");\nstopWords.add(\"last\");\nstopWords.add(\"lately\");\nstopWords.add(\"later\");\nstopWords.add(\"latter\");\nstopWords.add(\"latterly\");\nstopWords.add(\"least\");\nstopWords.add(\"less\");\nstopWords.add(\"let\");\nstopWords.add(\"let's\");\nstopWords.add(\"like\");\nstopWords.add(\"liked\");\nstopWords.add(\"likely\");\nstopWords.add(\"likewise\");\nstopWords.add(\"little\");\nstopWords.add(\"look\");\nstopWords.add(\"looks\");\nstopWords.add(\"low\");\nstopWords.add(\"lower\");\nstopWords.add(\"ltd\");\nstopWords.add(\"made\");\nstopWords.add(\"mainly\");\nstopWords.add(\"make\");\nstopWords.add(\"makes\");\nstopWords.add(\"many\");\nstopWords.add(\"may\");\nstopWords.add(\"maybe\");\nstopWords.add(\"mayn't\");\nstopWords.add(\"me\");\nstopWords.add(\"mean\");\nstopWords.add(\"meanwhile\");\nstopWords.add(\"merely\");\nstopWords.add(\"might\");\nstopWords.add(\"mightn't\");\nstopWords.add(\"mine\");\nstopWords.add(\"minus\");\nstopWords.add(\"miss\");\nstopWords.add(\"more\");\nstopWords.add(\"moreover\");\nstopWords.add(\"most\");\nstopWords.add(\"mostly\");\nstopWords.add(\"mr\");\nstopWords.add(\"mrs\");\nstopWords.add(\"much\");\nstopWords.add(\"must\");\nstopWords.add(\"mustn't\");\nstopWords.add(\"my\");\nstopWords.add(\"myself\");\nstopWords.add(\"name\");\nstopWords.add(\"namely\");\nstopWords.add(\"nd\");\nstopWords.add(\"near\");\nstopWords.add(\"nearly\");\nstopWords.add(\"necessary\");\nstopWords.add(\"need\");\nstopWords.add(\"needn't\");\nstopWords.add(\"needs\");\nstopWords.add(\"neither\");\nstopWords.add(\"never\");\nstopWords.add(\"neverf\");\nstopWords.add(\"neverless\");\nstopWords.add(\"nevertheless\");\nstopWords.add(\"new\");\nstopWords.add(\"next\");\nstopWords.add(\"nine\");\nstopWords.add(\"ninety\");\nstopWords.add(\"no\");\nstopWords.add(\"nobody\");\nstopWords.add(\"non\");\nstopWords.add(\"none\");\nstopWords.add(\"nonetheless\");\nstopWords.add(\"noone\");\nstopWords.add(\"no-one\");\nstopWords.add(\"nor\");\nstopWords.add(\"normally\");\nstopWords.add(\"not\");\nstopWords.add(\"nothing\");\nstopWords.add(\"notwithstanding\");\nstopWords.add(\"novel\");\nstopWords.add(\"now\");\nstopWords.add(\"nowwhere\");\nstopWords.add(\"obviously\");\nstopWords.add(\"of\");\nstopWords.add(\"off\");\nstopWords.add(\"often\");\nstopWords.add(\"oh\");\nstopWords.add(\"ok\");\nstopWords.add(\"okay\");\nstopWords.add(\"old\");\nstopWords.add(\"on\");\nstopWords.add(\"once\");\nstopWords.add(\"one\");\nstopWords.add(\"ones\");\nstopWords.add(\"one's\");\nstopWords.add(\"only\");\nstopWords.add(\"onto\");\nstopWords.add(\"opposite\");\nstopWords.add(\"or\");\nstopWords.add(\"other\");\nstopWords.add(\"others\");\nstopWords.add(\"otherwise\");\nstopWords.add(\"ought\");\nstopWords.add(\"oughtn't\");\nstopWords.add(\"our\");\nstopWords.add(\"ourselves\");\nstopWords.add(\"out\");\nstopWords.add(\"outside\");\nstopWords.add(\"over\");\nstopWords.add(\"overall\");\nstopWords.add(\"own\");\nstopWords.add(\"particular\");\nstopWords.add(\"particularly\");\nstopWords.add(\"past\");\nstopWords.add(\"per\");\nstopWords.add(\"perhaps\");\nstopWords.add(\"placed\");\nstopWords.add(\"please\");\nstopWords.add(\"plus\");\nstopWords.add(\"possible\");\nstopWords.add(\"presumably\");\nstopWords.add(\"probably\");\nstopWords.add(\"provided\");\nstopWords.add(\"provides\");\nstopWords.add(\"que\");\nstopWords.add(\"quite\");\nstopWords.add(\"qv\");\nstopWords.add(\"rather\");\nstopWords.add(\"rd\");\nstopWords.add(\"re\");\nstopWords.add(\"really\");\nstopWords.add(\"reasonably\");\nstopWords.add(\"recent\");\nstopWords.add(\"recently\");\nstopWords.add(\"regarding\");\nstopWords.add(\"regardless\");\nstopWords.add(\"regards\");\nstopWords.add(\"relatively\");\nstopWords.add(\"respectively\");\nstopWords.add(\"right\");\nstopWords.add(\"round\");\nstopWords.add(\"said\");\nstopWords.add(\"same\");\nstopWords.add(\"saw\");\nstopWords.add(\"say\");\nstopWords.add(\"saying\");\nstopWords.add(\"says\");\nstopWords.add(\"second\");\nstopWords.add(\"secondly\");\nstopWords.add(\"see\");\nstopWords.add(\"seeing\");\nstopWords.add(\"seem\");\nstopWords.add(\"seemed\");\nstopWords.add(\"seeming\");\nstopWords.add(\"seems\");\nstopWords.add(\"seen\");\nstopWords.add(\"self\");\nstopWords.add(\"selves\");\nstopWords.add(\"sensible\");\nstopWords.add(\"sent\");\nstopWords.add(\"serious\");\nstopWords.add(\"seriously\");\nstopWords.add(\"seven\");\nstopWords.add(\"several\");\nstopWords.add(\"shall\");\nstopWords.add(\"shan't\");\nstopWords.add(\"she\");\nstopWords.add(\"she'd\");\nstopWords.add(\"she'll\");\nstopWords.add(\"she's\");\nstopWords.add(\"should\");\nstopWords.add(\"shouldn't\");\nstopWords.add(\"since\");\nstopWords.add(\"six\");\nstopWords.add(\"so\");\nstopWords.add(\"some\");\nstopWords.add(\"somebody\");\nstopWords.add(\"someday\");\nstopWords.add(\"somehow\");\nstopWords.add(\"someone\");\nstopWords.add(\"something\");\nstopWords.add(\"sometime\");\nstopWords.add(\"sometimes\");\nstopWords.add(\"somewhat\");\nstopWords.add(\"somewhere\");\nstopWords.add(\"soon\");\nstopWords.add(\"sorry\");\nstopWords.add(\"specified\");\nstopWords.add(\"specify\");\nstopWords.add(\"specifying\");\nstopWords.add(\"still\");\nstopWords.add(\"sub\");\nstopWords.add(\"such\");\nstopWords.add(\"sup\");\nstopWords.add(\"sure\");\nstopWords.add(\"take\");\nstopWords.add(\"taken\");\nstopWords.add(\"taking\");\nstopWords.add(\"tell\");\nstopWords.add(\"tends\");\nstopWords.add(\"th\");\nstopWords.add(\"than\");\nstopWords.add(\"thank\");\nstopWords.add(\"thanks\");\nstopWords.add(\"thanx\");\nstopWords.add(\"that\");\nstopWords.add(\"that'll\");\nstopWords.add(\"thats\");\nstopWords.add(\"that've\");\nstopWords.add(\"the\");\nstopWords.add(\"their\");\nstopWords.add(\"theirs\");\nstopWords.add(\"them\");\nstopWords.add(\"themselves\");\nstopWords.add(\"then\");\nstopWords.add(\"thence\");\nstopWords.add(\"there\");\nstopWords.add(\"thereafter\");\nstopWords.add(\"thereby\");\nstopWords.add(\"there'd\");\nstopWords.add(\"therefore\");\nstopWords.add(\"therein\");\nstopWords.add(\"ther'll\");\nstopWords.add(\"there're\");\nstopWords.add(\"theres\");\nstopWords.add(\"there's\");\nstopWords.add(\"thereupon\");\nstopWords.add(\"there've\");\nstopWords.add(\"these\");\nstopWords.add(\"they\");\nstopWords.add(\"they'd\");\nstopWords.add(\"they'll\");\nstopWords.add(\"they're\");\nstopWords.add(\"they've\");\nstopWords.add(\"thing\");\nstopWords.add(\"things\");\nstopWords.add(\"think\");\nstopWords.add(\"third\");\nstopWords.add(\"thirty\");\nstopWords.add(\"this\");\nstopWords.add(\"thorough\");\nstopWords.add(\"thoroughly\");\nstopWords.add(\"those\");\nstopWords.add(\"though\");\nstopWords.add(\"throughout\");\nstopWords.add(\"thru\");\nstopWords.add(\"thus\");\nstopWords.add(\"till\");\nstopWords.add(\"to\");\nstopWords.add(\"together\");\nstopWords.add(\"too\");\nstopWords.add(\"took\");\nstopWords.add(\"toward\");\nstopWords.add(\"towards\");\nstopWords.add(\"tried\");\nstopWords.add(\"tries\");\nstopWords.add(\"truly\");\nstopWords.add(\"try\");\nstopWords.add(\"trying\");\nstopWords.add(\"t's\");\nstopWords.add(\"twice\");\nstopWords.add(\"two\");\nstopWords.add(\"un\");\nstopWords.add(\"under\");\nstopWords.add(\"underneath\");\nstopWords.add(\"undoing\");\nstopWords.add(\"unfortunately\");\nstopWords.add(\"unless\");\nstopWords.add(\"unlike\");\nstopWords.add(\"unlikely\");\nstopWords.add(\"untill\");\nstopWords.add(\"unto\");\nstopWords.add(\"up\");\nstopWords.add(\"upon\");\nstopWords.add(\"upwards\");\nstopWords.add(\"us\");\nstopWords.add(\"use\");\nstopWords.add(\"used\");\nstopWords.add(\"useful\");\nstopWords.add(\"uses\");\nstopWords.add(\"using\");\nstopWords.add(\"usually\");\nstopWords.add(\"v\");\nstopWords.add(\"value\");\nstopWords.add(\"various\");\nstopWords.add(\"versus\");\nstopWords.add(\"very\");\nstopWords.add(\"via\");\nstopWords.add(\"viz\");\nstopWords.add(\"vs\");\nstopWords.add(\"want\");\nstopWords.add(\"wants\");\nstopWords.add(\"was\");\nstopWords.add(\"wasn't\");\nstopWords.add(\"way\");\nstopWords.add(\"we\");\nstopWords.add(\"we'd\");\nstopWords.add(\"welcome\");\nstopWords.add(\"well\");\nstopWords.add(\"we'll\");\nstopWords.add(\"went\");\nstopWords.add(\"were\");\nstopWords.add(\"we're\");\nstopWords.add(\"weren't\");\nstopWords.add(\"we've\");\nstopWords.add(\"what\");\nstopWords.add(\"whatever\");\nstopWords.add(\"what'll\");\nstopWords.add(\"what's\");\nstopWords.add(\"what've\");\nstopWords.add(\"when\");\nstopWords.add(\"whence\");\nstopWords.add(\"whenever\");\nstopWords.add(\"where\");\nstopWords.add(\"whereafter\");\nstopWords.add(\"whereas\");\nstopWords.add(\"whereby\");\nstopWords.add(\"wherein\");\nstopWords.add(\"where's\");\nstopWords.add(\"whereupon\");\nstopWords.add(\"whereever\");\nstopWords.add(\"whether\");\nstopWords.add(\"which\");\nstopWords.add(\"whichever\");\nstopWords.add(\"while\");\nstopWords.add(\"whilst\");\nstopWords.add(\"whither\");\nstopWords.add(\"who\");\nstopWords.add(\"who'd\");\nstopWords.add(\"whoever\");\nstopWords.add(\"whole\");\nstopWords.add(\"who'll\");\nstopWords.add(\"whom\");\nstopWords.add(\"whomever\");\nstopWords.add(\"who's\");\nstopWords.add(\"whose\");\nstopWords.add(\"why\");\nstopWords.add(\"will\");\nstopWords.add(\"willing\");\nstopWords.add(\"wish\");\nstopWords.add(\"with\");\nstopWords.add(\"within\");\nstopWords.add(\"without\");\nstopWords.add(\"wonder\");\nstopWords.add(\"won't\");\nstopWords.add(\"would\");\nstopWords.add(\"wouldn't\");\nstopWords.add(\"yes\");\nstopWords.add(\"yet\");\nstopWords.add(\"you\");\nstopWords.add(\"you'd\");\nstopWords.add(\"you'll\");\nstopWords.add(\"your\");\nstopWords.add(\"you're\");\nstopWords.add(\"yours\");\nstopWords.add(\"yourself\");\nstopWords.add(\"you've\");\nstopWords.add(\"zero\");\n\n \n \n }",
"@Override\r\n public String stem(String word) {\r\n List<String> lemmas = new LinkedList<String>();\r\n // Create an empty Annotation just with the given text\r\n Annotation document = new Annotation(word);\r\n // run all Annotators on this text\r\n this.pipeline.annotate(document);\r\n // Iterate over all of the sentences found\r\n List<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\r\n for (CoreMap sentence : sentences) {\r\n // Iterate over all tokens in a sentence\r\n for (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\r\n // Retrieve and add the lemma for each word into the\r\n // list of lemmas\r\n lemmas.add(token.get(CoreAnnotations.LemmaAnnotation.class));\r\n }\r\n }\r\n return lemmas.get(0);\r\n\r\n }",
"void solution() {\n\t\t/* Write a RegEx matching repeated words here. */\n\t\tString regex = \"(?i)\\\\b([a-z]+)\\\\b(?:\\\\s+\\\\1\\\\b)+\";\n\t\t/* Insert the correct Pattern flag here. */\n\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\n\t\tString[] in = { \"I love Love to To tO code\", \"Goodbye bye bye world world world\",\n\t\t\t\t\"Sam went went to to to his business\", \"Reya is is the the best player in eye eye game\", \"in inthe\",\n\t\t\t\t\"Hello hello Ab aB\" };\n\t\tfor (String input : in) {\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\t// /* The regex to replace */, /* The replacement. */\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t}",
"public Modele(String leFic){\n laGrammaire=new Grammaire();\n laGrammaire.initGram2(leFic);\n miseEnFormeChom= new ChomskyGrammaire(laGrammaire);\n supprRenomGram = new SupprRenomGram(laGrammaire);\n grammaireCleaner = new GrammaireCleaner(laGrammaire);\n }",
"@Override\n protected List<Term> segSentence(char[] sentence)\n {\n WordNet wordNetAll = new WordNet(sentence);\n ////////////////生成词网////////////////////\n generateWordNet(wordNetAll);\n ///////////////生成词图////////////////////\n// System.out.println(\"构图:\" + (System.currentTimeMillis() - start));\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"粗分词网:\\n%s\\n\", wordNetAll);\n }\n// start = System.currentTimeMillis();\n List<Vertex> vertexList = viterbi(wordNetAll);\n// System.out.println(\"最短路:\" + (System.currentTimeMillis() - start));\n\n if (config.useCustomDictionary)\n {\n if (config.indexMode > 0)\n combineByCustomDictionary(vertexList, this.dat, wordNetAll);\n else combineByCustomDictionary(vertexList, this.dat);\n }\n\n if (HanLP.Config.DEBUG)\n {\n System.out.println(\"粗分结果\" + convert(vertexList, false));\n }\n\n // 数字识别\n if (config.numberQuantifierRecognize)\n {\n mergeNumberQuantifier(vertexList, wordNetAll, config);\n }\n\n // 实体命名识别\n if (config.ner)\n {\n WordNet wordNetOptimum = new WordNet(sentence, vertexList);\n int preSize = wordNetOptimum.size();\n if (config.nameRecognize)\n {\n PersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.translatedNameRecognize)\n {\n TranslatedPersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.japaneseNameRecognize)\n {\n JapanesePersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.placeRecognize)\n {\n PlaceRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.organizationRecognize)\n {\n // 层叠隐马模型——生成输出作为下一级隐马输入\n wordNetOptimum.clean();\n vertexList = viterbi(wordNetOptimum);\n wordNetOptimum.clear();\n wordNetOptimum.addAll(vertexList);\n preSize = wordNetOptimum.size();\n OrganizationRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (wordNetOptimum.size() != preSize)\n {\n vertexList = viterbi(wordNetOptimum);\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"细分词网:\\n%s\\n\", wordNetOptimum);\n }\n }\n }\n\n // 如果是索引模式则全切分\n if (config.indexMode > 0)\n {\n return decorateResultForIndexMode(vertexList, wordNetAll);\n }\n\n // 是否标注词性\n if (config.speechTagging)\n {\n speechTagging(vertexList);\n }\n\n return convert(vertexList, config.offset);\n }",
"public void specialMacs(Verbum w){\r\n\t\tint cd = w.cd;\r\n\t\tint variant = w.variant;\r\n\t\tint i = 0;\r\n\t\tint index = 0;\r\n\t\tif(w.pos.equals(\"V\")){\r\n\t\t\t//3rd conjugation have long vowel if the 1st pp stem and 3rd pp stem are one syllable\r\n\t\t\tif(cd==3 && countSyllables(w.form2)<2 && countSyllables(w.form3)<2){\t\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\tchar c = w.form3.charAt(i);\r\n\t\t\t\t\tif(isVowel(c)){\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t} while(i<w.form3.length()-1);\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(index, \"*\").toString();\r\n\t\t\t}\r\n\t\t\t//First conjugation variant 1 have long a's \r\n\t\t\tif (cd==1 && variant==1){\r\n\t\t\t\tw.form3 = new StringBuffer(w.form3).insert(w.form3.length()-2, \"*\").toString();\r\n\t\t\t\tw.form4 = new StringBuffer(w.form4).insert(w.form4.length()-2, \"*\").toString();\r\n\t\t\t}\r\n\t\t} else if (w.pos.equals(\"N\")){\r\n\t\t\t//Some 3rd declension nouns have short o in nom and long o in all other forms\r\n\t\t\tif (cd == 3 && w.form1.charAt(w.form1.length()-1) == 'r' && w.form2.charAt(w.form2.length()-1) == 'r' && (w.gender.equals(\"M\") || w.gender.equals(\"F\"))){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t\t//Neuter 3rd declension -ar nouns have short a in nom and long a in all others\r\n\t\t\tif (cd == 3 && w.form1.substring(w.form1.length()-2).equals(\"ar\") && w.form2.substring(w.form2.length()-2).equals(\"ar\")){\r\n\t\t\t\tw.form2 = new StringBuffer(w.form2).insert(w.form2.length()-2, \"*\").toString();\r\n\t\t\t} \r\n\t\t}\r\n\t}",
"public static void testDictionary() throws IOException {\n String wnhome=\"c:\\\\Users\\\\Katherine\\\\Documents\\\\2nd sem\\\\IR\\\\project\\\\WordNet_3.1\";\n String path = wnhome + File.separator + \"dict\";\n\n\n URL url = new URL(\"file\", null, path);\n\n IDictionary dictionary = new Dictionary(url);\n dictionary.open();\n // /Users/Ward/Downloads\n IIndexWord indexWord = dictionary.getIndexWord(\"use\", POS.VERB);\n\n for (IWordID wordID : indexWord.getWordIDs()) {\n\n IWord word = dictionary.getWord(wordID);\n for (IWord word1 : word.getSynset().getWords()) {\n System.out.println(word1.getLemma());\n }\n// System.out.println(\"Id = \" + wordID);\n// System.out.println(\" Lemma = \" + word.getLemma());\n// System.out.println(\" Gloss = \" + word.getSynset().getGloss());\n\n List<ISynsetID> hypernyms =\n word.getSynset().getRelatedSynsets(Pointer.HYPERNYM);\n // print out each h y p e r n y m s id and synonyms\n List<IWord> words;\n for (ISynsetID sid : hypernyms) {\n words = dictionary.getSynset(sid).getWords();\n System.out.print(sid + \" {\");\n for (Iterator<IWord> i = words.iterator(); i.hasNext(); ) {\n System.out.print(i.next().getLemma());\n if (i.hasNext())\n System.out.print(\", \");\n }\n System.out.println(\"}\");\n }\n }\n }",
"public String[] prepareText(String text) {\n\n Properties props = new Properties();\n\n props.put(\"annotators\", \"tokenize, ssplit, pos, lemma, ner\");\n StanfordCoreNLP pipeline = new StanfordCoreNLP(props);\n\n //apply\n Annotation document = new Annotation(text);\n pipeline.annotate(document);\n\n List<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n\n ArrayList<String> result = new ArrayList<>();\n\n for (CoreMap sentence : sentences) {\n\n for (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\n // this is the text of the token\n String word = token.get(CoreAnnotations.LemmaAnnotation.class);\n // this is the POS tag of the token\n String pos = token.get(PartOfSpeechAnnotation.class);\n // this is the NER label of the token\n String ne = token.get(CoreAnnotations.NamedEntityTagAnnotation.class);\n\n if (!StringUtils.isStopWord(word)) {\n result.add(word);\n }\n\n }\n\n }\n String[] result_ar = new String[result.size()];\n\n return result.toArray(result_ar);\n }",
"public void llenDic(){\r\n ArrayList<String> wor= new ArrayList<String>();\r\n ArrayList<Association<String,String> >asociaciones= new ArrayList<Association<String,String>>();\r\n \r\n try {\r\n \r\n arch = new File (\"diccionario.txt\");\r\n fr = new FileReader (arch);\r\n br = new BufferedReader(fr);\r\n\r\n \r\n String lin;\r\n \r\n while((lin=br.readLine())!=null){\r\n wor.add(lin);\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n \r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n \r\n //Ciclo para separar y obtener la palabra en ingles y español\r\n for(int i=0; i<wor.size()-1;i++){\r\n int lugar=wor.get(i).indexOf(',');\r\n String ing=wor.get(i).substring(0,lugar);\r\n String esp=wor.get(i).substring(lugar+1,wor.get(i).length());\r\n asociaciones.add(new Association(ing, esp));\r\n }\r\n \r\n rz.setValue(asociaciones.get(0));\r\n for (int i=1; i<asociaciones.size(); i++){\r\n insertarNodo(rz, asociaciones.get(i));\r\n }\r\n }",
"@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }",
"public static void main(final String[] args)\r\n {\r\n // Set the path to the data files\r\n Dictionary.initialize(\"c:/Program Files/WordNet/2.1/dict\");\r\n \r\n // Get an instance of the Dictionary object\r\n Dictionary dict = Dictionary.getInstance();\r\n \r\n // Declare a filter for all terms starting with \"car\", ignoring case\r\n TermFilter filter = new WildcardFilter(\"car*\", true);\r\n \r\n // Get an iterator to the list of nouns\r\n Iterator<IndexTerm> iter = \r\n dict.getIndexTermIterator(PartOfSpeech.NOUN, 1, filter);\r\n \r\n // Go over the list items\r\n while (iter.hasNext())\r\n {\r\n // Get the next object\r\n IndexTerm term = iter.next();\r\n \r\n // Write out the object\r\n System.out.println(term.toString());\r\n \r\n // Write out the unique pointers for this term\r\n int nNumPtrs = term.getPointerCount();\r\n if (nNumPtrs > 0)\r\n {\r\n // Print out the number of pointers\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumPtrs) +\r\n \" pointers\");\r\n \r\n // Print out all of the pointers\r\n String[] ptrs = term.getPointers();\r\n for (int i = 0; i < nNumPtrs; ++i)\r\n {\r\n String p = Pointer.getPointerDescription(term.getPartOfSpeech(), ptrs[i]);\r\n System.out.println(ptrs[i] + \": \" + p);\r\n }\r\n }\r\n \r\n // Get the definitions for this term\r\n int nNumSynsets = term.getSynsetCount();\r\n if (nNumSynsets > 0)\r\n {\r\n // Print out the number of synsets\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumSynsets) +\r\n \" synsets\");\r\n \r\n // Print out all of the synsets\r\n Synset[] synsets = term.getSynsets();\r\n for (int i = 0; i < nNumSynsets; ++i)\r\n {\r\n System.out.println(synsets[i].toString());\r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Demo processing finished.\");\r\n }",
"public Thought(String word, int dimension) {\r\n\t\tthis.representation = word;\r\n\t\tthis.count = 0;\r\n\t\tenvironmental = VectorTools.newGaussian(dimension);\r\n\t\t//lexical = VectorTools.newGaussian(dimension);\r\n\t\tlexical = VectorTools.zero(dimension);\r\n\t}",
"void setVersesWithWord(Word word);",
"private ArrayList<String> allWords(int ret, ArrayList<Character> mustIn){\n String mustContain = \"\";\n for (int inde = 0; inde < mustIn.size(); inde++) {\n mustContain+=mustIn.get(inde);\n }\n \n ArrayList<String> allAnagrams = new ArrayList<String>();\n \n for (int inde = 0; inde < combinations.size(); inde++){\n ArrayList<Piece> temp = combinations.get(inde);\n if (temp.size()<=ret){\n String lettersToAdd = \"\";\n \n for (int i = 0; i < temp.size(); i++)\n lettersToAdd +=temp.get(i).theLetter();\n \n allAnagrams.add(mustContain+\"\"+lettersToAdd);\n }\n }\n \n return allAnagrams;\n }",
"public static String[] AUTOtoWords(String str) {\n return Configuration.auto_type.equals(AUTO_TYPE.CANDC) ? AUTOtoIndex(str, 2) : AUTOtoIndex(str, 4);\n }",
"public DynamicArray<String> redactText()\n\t{\n\t\tfor (int i = 0; i < text.length(); i++)\n\t\t{\n\t\t\tif(!checkWord(text.get(i))) // checks if the word is listed to be redacted\n\t\t\t{\n\t\t\t\ttext.set(i, redact(text.get(i))); // Redacts word\n\t\t\t}\n\t\t\telse if (isNoun(i)) // Given the index this checks if the word is a noun, but ignores it if there is a full stop.\n\t\t\t{\n\t\t\t\twords.add(text.get(i)); // Since this is a noun, it is added to the list of redacted words\n\t\t\t\ttext.set(i, redact(text.get(i))); // Word is then redacted\n\t\t\t}\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\tint check;\n\t\twhile (i < fullStops.length()) // Loops through full stop points and checks the word that follows it\n\t\t{\n\t\t\tcheck = fullStops.get(i);\n\t\t\tif(!checkWord(text.get(check)))\n\t\t\t{\n\t\t\t\ttext.set(check, redact(text.get(check)));\n\t\t\t}\n\t\t\ti++;\n\t\t\t\t\n\t\t}\n\t\treturn text;\n\t}",
"public String getCorrectionWord(String misspell);",
"public void testMacronProcess(){\r\n\t\tDSElement<Verbum> e = words.first;\r\n\t\tfor(int i = 0; i<1000; i++){\r\n\t\t\tVerbum v = e.getItem();\r\n\t\t\tSystem.out.println(v.nom + \" \" + v.macrons + \" \" + v.form1);\r\n\t\t\te = e.getNext();\r\n\t\t}\r\n\t}",
"private void normalize()\n {\n if (m_unnormalized_ == null) {\n m_unnormalized_ = new StringBuilder();\n m_n2Buffer_ = new Normalizer2Impl.ReorderingBuffer(m_nfcImpl_, m_buffer_, 10);\n } else {\n m_unnormalized_.setLength(0);\n m_n2Buffer_.remove();\n }\n int size = m_FCDLimit_ - m_FCDStart_;\n m_source_.setIndex(m_FCDStart_);\n for (int i = 0; i < size; i ++) {\n m_unnormalized_.append((char)m_source_.next());\n }\n m_nfcImpl_.decomposeShort(m_unnormalized_, 0, size, m_n2Buffer_);\n }",
"TxtUMLFactory getTxtUMLFactory();",
"public static void main(String[] args) {\n\t\tString text = \"\\\"undifferentiated's thyroid carcinomas were carried out with antisera against calcitonin, calcitonin-gene related peptide (CGRP), somatostatin, and also thyroglobulin, using the PAP method. \";\n\t\ttext = text.replace('\\\"', ' ');\n\t\t\n\t\tStringUtil su = new StringUtil();\n\t\t\n\t\t// Extracting...\n\t\tString text2 = new String(text);\n\t\tEnvironmentVariable.setMoaraHome(\"./\");\n\t\tGeneRecognition gr = new GeneRecognition();\n\t\tArrayList<GeneMention> gms = gr.extract(MentionConstant.MODEL_BC2,text);\n\t\t// Listing mentions...\n\t\tSystem.out.println(\"Start\\tEnd\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.Text());\n\t\t\t//System.out.println(text2.substring(gm.Start(), gm.End()));\n\t\t\tSystem.out.println(su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t}\n\t\tif (true){\n\t\t\treturn;\n\t\t}\n\t\t// Normalizing mentions...\n\t\tOrganism yeast = new Organism(Constant.ORGANISM_YEAST);\n\t\tOrganism human = new Organism(Constant.ORGANISM_HUMAN);\n\t\tExactMatchingNormalization gn = new ExactMatchingNormalization(human);\n\t\tgms = gn.normalize(text,gms);\n\t\t// Listing normalized identifiers...\n\t\t\n\t\tSystem.out.println(\"\\nStart\\tEnd\\t#Pred\\tMention\");\n\t\tfor (int i=0; i<gms.size(); i++) {\n\t\t\tGeneMention gm = gms.get(i);\n\t\t\tif (gm.GeneIds().size()>0) {\n\t\t\t\tSystem.out.println(gm.Start() + \"\\t\" + gm.End() + \"\\t\" + gm.GeneIds().size() + \n\t\t\t\t\t\"\\t\" + su.getTokenByPosition(text,gm.Start(),gm.End()).trim());\n\t\t\t\tfor (int j=0; j<gm.GeneIds().size(); j++) {\n\t\t\t\t\tGenePrediction gp = gm.GeneIds().get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\" + gp.GeneId() + \" \" + gp.OriginalSynonym() + \" \" + gp.ScoreDisambig());\n\t\t\t\t\tSystem.out.println((gm.GeneId().GeneId().equals(gp.GeneId())?\" (*)\":\"\"));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void revStrSentances() {\n\n\t\tString s = \"i like this program very much\";\n\t\tString[] words = s.split(\" \");\n\t\tString revStr = \"\";\n\t\tfor (int i = words.length - 1; i >= 0; i--) {\n\t\t\trevStr += words[i] + \" \";\n\n\t\t}\n\n\t\tSystem.out.println(revStr);\n\n\t}",
"public String[][] findSuggestions(String w) {\n ArrayList<String> suggestions = new ArrayList<>();\n String word = w.toLowerCase();\n // parse through the word - changing one letter in the word\n for (int i = 0; i < word.length(); i++) {\n // go through each possible character difference\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n // get the character that will change in the word\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n \n // if the selected character is not the same as the character to change - avoids getting the same word as a suggestion\n if (c != word.charAt(i)) {\n // change the character in the word\n String check = word.substring(0, i) + c.toString() + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - adding one letter to the word\n for (int i = 0; i < word.length(); i++) {\n // if the loop is not on the last charcater\n if (i < word.length() - 1) {\n // check words with one character added between current element and next element\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word.substring(0, i) + c.toString() + ((i < word.length()) ? word.substring(i, word.length()) : \"\");\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n // if the loop is on the last character\n else {\n // check the words with one character added to the end of the word\n for (int j = 0; j < Node.NUM_VALID_CHARS; j++) {\n Character c = (char) ((j < 26) ? j + 'a' : '\\'');\n\n // add the character to the word\n String check = word + c;\n\n // if the new word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n }\n }\n \n // parse through the word - removing one letter from the word\n for (int i = 0; i < word.length(); i++) {\n // remove the chracter at the selected index from the word\n String check = word.substring(0, i) + ((i + 1 < word.length()) ? word.substring(i + 1, word.length()) : \"\");\n\n // if the chenged word is in the dictionary, add it to the list of suggestions\n if (this.checkDictionary(check)) {\n suggestions.add(check);\n }\n }\n \n String[][] rtn = new String[suggestions.size()][1];\n for (int i = 0, n = suggestions.size(); i < n; i++) {\n rtn[i][0] = suggestions.get(i);\n }\n \n return rtn;\n }"
] | [
"0.5948252",
"0.57058144",
"0.55080575",
"0.5492231",
"0.54700667",
"0.5429392",
"0.54178536",
"0.53928643",
"0.52782667",
"0.52420264",
"0.523942",
"0.52113324",
"0.52076054",
"0.5145201",
"0.51443666",
"0.51436085",
"0.5137012",
"0.5106726",
"0.5087719",
"0.508416",
"0.50782573",
"0.505316",
"0.5048672",
"0.504049",
"0.50403035",
"0.50261784",
"0.5011281",
"0.50090396",
"0.5006127",
"0.50057006",
"0.5004662",
"0.5003665",
"0.4997793",
"0.4996401",
"0.49864447",
"0.49722347",
"0.4971607",
"0.4964688",
"0.49616864",
"0.49587235",
"0.49558267",
"0.4951033",
"0.49368504",
"0.49368277",
"0.49365458",
"0.49324712",
"0.4912635",
"0.49033326",
"0.48970163",
"0.48898768",
"0.48728067",
"0.48665127",
"0.48582608",
"0.48399016",
"0.48390296",
"0.48386857",
"0.4833397",
"0.4833088",
"0.48094988",
"0.48051316",
"0.48046827",
"0.48046747",
"0.479257",
"0.4786199",
"0.47859496",
"0.4784976",
"0.4783719",
"0.47689882",
"0.47678217",
"0.4758638",
"0.47571954",
"0.4754619",
"0.47512665",
"0.47471687",
"0.47459257",
"0.47418123",
"0.47409344",
"0.4739699",
"0.4739576",
"0.4737298",
"0.47335464",
"0.47274786",
"0.4726401",
"0.47263715",
"0.4723579",
"0.47232795",
"0.47231176",
"0.47220308",
"0.47126937",
"0.47103256",
"0.47040704",
"0.4702273",
"0.47001654",
"0.46989974",
"0.46981212",
"0.4697135",
"0.4690402",
"0.4688429",
"0.46835747",
"0.4683514"
] | 0.5882058 | 1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mFragmentTitleDeedLoanBinding = FragmentTitleDeedLoanBinding.inflate(inflater, container, false);
return mFragmentTitleDeedLoanBinding.getRoot();
} | {
"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_mem_body_blood, container, false);\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 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 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 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 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, @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\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\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 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_hotel, container, false);\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_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 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(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\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, 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 return inflater.inflate(R.layout.fragment_moviespage, container, false);\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_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 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 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 return inflater.inflate(R.layout.fragment_event_details, container, 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.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
public native void setCallBackToNative(JniListener listener); | public native int getProcess(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void initNativeCallback();",
"public interface BridgeListener {\n\n void getJsInvokeNativeResult(Map<String, String> resultMap);\n}",
"public interface CallbackListener {\n\n public abstract void callBack(String returnCode, Object result);\n\n}",
"public native void addEventListener(String name, EventCall f);",
"public void callback();",
"public native com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener __TestListenerMethod( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener arg );",
"public LowLevelNetworkHandler setCallback(Callback callback);",
"private native long nativeCreateDelegate();",
"boolean callback(Pointer hWnd, Pointer arg);",
"protected void javaCallback() {\n\t}",
"public void callback() {\n }",
"public interface CallBackFunction {\n public void onCallBack(String data);\n}",
"public static abstract interface M0_callbackPtr {\n\n public abstract int handler();\n }",
"public interface ComCallBack {\n public void onCallBack(Object obj);\n}",
"@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}",
"@Override\n\tpublic void onCallback() {\n\t\t\n\t}",
"public interface CallBackListener {\n void onResult(boolean isSuccess, Object result);\n}",
"int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr);",
"@Override\n\tpublic void callback(Object o) {}",
"public static native void callback(String callbackUrl, String body);",
"void onVadCallback(int result);",
"void setListener(Listener listener);",
"public void setSimpleFragmentCallbackListener(OnSimpleFragmentCallbackListener listener) {\n\t\tmCallbackObject = listener;\n\t}",
"public interface AndroidCallBack {\n\n void onSuccess(AndroidBean bean);\n\n void onFailure();\n}",
"interface MyCallBack {\n\tpublic void onComplete(); \n}",
"public void setCallback(String callback) {\r\n this.callback = callback;\r\n }",
"public interface CallbacksListener\n {\n public void onPositiveButtonClicked();\n\n public void onNegativeButtonClicked();\n }",
"void invokeBooleanCallback(long callbackPtr, boolean value);",
"public native void __setLoopback( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener loopback );",
"@Override\n public void onCallBack(int pos) {\n }",
"public interface MessageCallBack {\n\n void onMessage(String message);\n}",
"public interface Callback {\n }",
"public abstract EnvioMensajesCallBackInterface getInterfaceCallback();",
"@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}",
"public native com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener[] __TestListenerArrayMethod( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener[] arg );",
"@Override\n\tpublic void callback() {\n\t}",
"public static native void addEventListener(String name, JavaScriptObject callback) /*-{\n\t\tTitanium.XML.addEventListener(name, callback);\n\t}-*/;",
"public interface OnClickCallBack\n{\n public void onUIupdate();\n}",
"@JsFunction @FunctionalInterface\n interface EventCall {\n void onEvent(NativeEvent e);\n }",
"public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}",
"public interface EventCallback {\n void invoke(String receiver,Object result);\n}",
"public interface OnCallingListener {\n void onCallEnd();\n}",
"public interface CallListener {\r\n void onCallTapListener(int position);\r\n}",
"public interface LoginCallBack {\n void onLogin();\n void onLogout();\n}",
"public void\t\tnotifyUCallbackListener(URBIEvent event);",
"EventCallbackHandler getCallbackHandler();",
"public void setCallback(boolean callback) {\n this.callback = callback;\n }",
"@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}",
"void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);",
"public static native void _bindingJs(String str, JsCallback jsCallback);",
"void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);",
"public interface PhoneStateChangeCallback {\n void onInComingOffHook(String incomingNumber);\n void onInComingEnd(String incomingNumber);\n void onOutComingStart(String outNumber);\n void onOutComingEnd(String outNumber);\n}",
"public interface Callback {\n\n void call();\n\n}",
"public void addEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.add(listener);\n\t}",
"public interface Callback {\n void call();\n}",
"@Override\n public void addOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\n }",
"public interface LoginFragmentCallbackListener {\n void onLoginClick();\n }",
"public interface RequestCallbackListener {\n public void notifyToCaller(boolean isExecuted,Object obj);\n}",
"private native void addCallback(String name)\n /*-{\n var m = this;\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n target[part] = {};\n }\n target = target[part];\n }\n \n target[parts[parts.length - 1]] = $entry(function() {\n //Must make a copy because arguments is an array-like object (not instanceof Array), causing suboptimal JSON encoding\n var args = Array.prototype.slice.call(arguments, 0);\n m.@com.vaadin.client.extensions.javascriptmanager.JavaScriptManagerConnector::sendRpc(Ljava/lang/String;Lcom/google/gwt/core/client/JsArray;)(name, args);\n });\n }-*/;",
"public void\t\taddUCallbackListener(UCallbackListener listener,\n\t\t\t\t\t\t\t\t\t\t String tag);",
"public interface LoginCallback {\n\n void onLoginSuccess();\n}",
"public native com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMap __testMap( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMap arg );",
"public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}",
"public interface SDKCallback {\n void onSDKSuccess(String tag, Object message);\n\n void onSDKFail(String tag, String message);\n\n}",
"public interface ICallBack {\n boolean onPostExecute(Object... params);\n\n}",
"public interface OnCallbackAuthenticationListener {\n void onSuccess();\n\n void onFailed();\n}",
"public interface CallBackInterface {\n}",
"public void addListener(EventListener listener);",
"public void\t\tnotifyUCallbackListeners();",
"public interface Callback {\n public void click();\n }",
"void registerCallback(BundleTriggerCallback callback);",
"public interface OnConnectListener {\n void onStatusConnection(AndroidDevice androidDevice, boolean connected);\n void onConnected(AndroidDevice androidDevice);\n void onDisconnected(AndroidDevice androidDevice);\n void onTryConnect(AndroidDevice androidDevice);\n}",
"public interface Callback{\n //Required public empty constructor\n public void buttonClicked();\n }",
"abstract void setPreviewCallback(android.hardware.Camera.PreviewCallback cb);",
"public interface OnEventControlListener {\r\n\tvoid onEvent(int eventType, View control, Object data);\r\n}",
"public void setListener(OpenCompositionFragmentCallbackListener listener) {\n this.listener = listener;\n }",
"public void setStatusCallback(final IStatusCallback callback);",
"public interface Callbacks {\n void onStateChanged();\n void onProximityNegative();\n }",
"void addCallback(BiConsumer<Boolean, Boolean> callback);",
"public interface LoginCallBack extends PresenterCallBack{\n\n void loginSuccess();\n\n void loginFailed(String msg);\n\n}",
"public interface HttpCallbackListener {\n\n\tvoid onFinish(String response);\n\n\tvoid onError(Exception e);\n\n}",
"public interface OnLoginListener {\n public void loginStatus(boolean status);\n}",
"public static void setCallbackHandler(Handler handler) {\n if (handler == null) {\n throw new IllegalArgumentException(\"Callback handler cannot be null.\");\n }\n sCallbackHandler = handler;\n }",
"public interface ILoginCallBack {\n public void onLogSuccess();\n public void onLogFailed();\n}",
"public interface ICallbackImp {\n void onMsg(String msg);\n}",
"public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }",
"public interface OnLoginListener {\n void onSuccess();\n void onError();\n}",
"private native boolean initFromJNI(int port);",
"public void mo25054a(C8109a listener) {\n this.f16619m = listener;\n }",
"public interface InCallEventListener {\n public void onFullscreenModeChanged(boolean isFullscreenMode);\n }",
"public interface RevCallBack {\n //控制成功\n void onCtlSuccess(int heightOrState);\n //控制失败 返回设备发送过来的值\n void onCtlFailure(String value);\n //设备 报警\n void onCtlWarning(WarnEntity warn);\n //失败\n void onFailure(BleException exception);\n}",
"public interface Callback<T> {\n void callListener(T param);\n}",
"public interface VerifyAccessCodeCallback {\n void onAccessCode(String username);\n}",
"void addVideoListener(CallPeer peer, VideoListener listener);",
"public void addConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.add(listener);\n\t}",
"@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }",
"public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}",
"public interface HttpCallBackListener {\n\tvoid onFinish(String response);\n\n\tvoid Error(Exception e);\n}",
"@FunctionalInterface\npublic interface IRawEventCallback {\n /**\n * Callback on the native parser thread with the shared byte[] array associated with the direct\n * ByteBuffer associated with the GetDirectBufferAddress call.\n * @param beaconInfo the beacon info read only bytebuffer, must be copied as it would be modified on the next beacon\n * event from the bluetooth stack.\n */\n public boolean beaconEvent(ByteBuffer beaconInfo);\n}",
"public interface CommCallBack {\n\n /**\n * 成功的回调\n */\n void onSuccess(Object result);\n\n /**\n * 失败的回调\n */\n void onFail(Object result);\n}",
"public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }"
] | [
"0.7550687",
"0.66369116",
"0.66273034",
"0.65705365",
"0.64919084",
"0.6448322",
"0.64284563",
"0.63308847",
"0.63176847",
"0.6299815",
"0.62953323",
"0.6150969",
"0.6141606",
"0.6137836",
"0.6117262",
"0.6086527",
"0.6045921",
"0.59771687",
"0.5965145",
"0.5952673",
"0.59364015",
"0.5926664",
"0.59167117",
"0.5910436",
"0.58888793",
"0.588758",
"0.5876678",
"0.58703583",
"0.58490604",
"0.58406734",
"0.5825318",
"0.58248967",
"0.58059675",
"0.5801035",
"0.5778578",
"0.5754142",
"0.5745535",
"0.5742151",
"0.5729242",
"0.57167476",
"0.5715184",
"0.571164",
"0.57032365",
"0.5702295",
"0.5697441",
"0.56729805",
"0.56657296",
"0.5664381",
"0.5662334",
"0.56599754",
"0.5655422",
"0.56516683",
"0.56408095",
"0.5638311",
"0.56269956",
"0.56239754",
"0.5616359",
"0.5611208",
"0.5610526",
"0.5607637",
"0.56007916",
"0.5595819",
"0.55826765",
"0.5574204",
"0.5573605",
"0.5566017",
"0.5559595",
"0.5550872",
"0.554955",
"0.55390877",
"0.55388165",
"0.553861",
"0.5524916",
"0.5522585",
"0.5520448",
"0.55138975",
"0.5513373",
"0.55020523",
"0.54923517",
"0.54829055",
"0.5481244",
"0.5477572",
"0.5476255",
"0.5470075",
"0.5466654",
"0.5465849",
"0.54653573",
"0.546317",
"0.5461996",
"0.54589504",
"0.5455207",
"0.5443142",
"0.5438976",
"0.5438898",
"0.54346013",
"0.5434277",
"0.5433417",
"0.5432752",
"0.54291403",
"0.5428737",
"0.5428151"
] | 0.0 | -1 |
Instantiates a new Job preference. | public JobPreference(Integer id) {
super.id=id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JobBuilder() {\r\n job = new Job();\r\n }",
"public AutomaticJob() {\r\n \r\n }",
"public Job() {\n }",
"public Job() {\n }",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"public ConversionJob createJob(ConfigProperties cprop){\n\t\tConversionJobFactory cjf = new ConversionJobFactory(cprop);\n\t\t//add new job with proj.id as name\n\t\tjlog.info(\"Create Job \"+cprop.getProperty(\"PROJ.id\"));\n\t\treturn cjf.getConversionJobInstance();\n\t\t//jobs.put(cprop.getProperty(\"PROJ.id\"),tjf.getInstance());\n\n\t}",
"public Job() {\n\t\t\t\n\t\t}",
"public JobBean() {\n }",
"public static JobBuilder newJob() {\n return new JobBuilder();\n }",
"public DefaultJobSelectionStrategy() {\n }",
"public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}",
"public JobID() {\n super();\n }",
"public schedulerJob() {\n }",
"public JobManager(){\n //Initialize the job manager for use of the system\n }",
"public JobExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public AbstractJob(){\n \n }",
"@Override\n protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception {\n Object jobInstance = super.createJobInstance(bundle);\n autowireCapableBeanFactory.autowireBean(jobInstance);\n return jobInstance;\n }",
"JobResponse create();",
"public Job(int id) {\n this.id = id;\n }",
"public Job(int jobID, String username, String company, String industry,\n String title, Double salary, boolean isAvailable) {\n super(username, company, industry);\n this.jobID = jobID;\n this.title = title;\n this.salary = salary;\n this.isAvailable = isAvailable;\n }",
"AgentPolicyBuilder setJobPriority(JobPriority jobPriority);",
"public BNHaystackLearnStructureJob() {}",
"public Job newJob() throws IOException {\n return newJob(outputDir, getConfiguration(), attempt0);\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public PreferenceBean createPreferenceBean()\n {\n return new PreferenceBean();\n }",
"JobClient createJobClient();",
"public JobPriority(int value) {\n super (value, 1, 100);\n }",
"@Override\n\tpublic PdiJobWrapper createJob(String jobFile, String[] args) {\n\t\ttry {\n\t\t\tLOGGER.info(\"Creating job based upon \" + jobFile);\n\t\t\tJobMeta jobMeta = new JobMeta(this.getLogWriter(), jobFile, null, null);\n\t\t\tJob job = new Job(this.getLogWriter(), this.getStepLoader(), null, jobMeta);\n\t\t\tjob.getJobMeta().setArguments(args);\n\n\t\t\t// setup internal and external variables of job\n\t\t\tjob.initializeVariablesFrom(null);\n\t\t\tjob.getJobMeta().setInternalKettleVariables(job);\n\t\t\tjob.copyParametersFrom(job.getJobMeta());\n\t\t\tjob.activateParameters();\n\t\t\treturn new PdiJob324(job);\n\t\t} catch (KettleException e) {\n\t\t\tthrow new PdiException(e);\n\t\t}\n\t}",
"JobResponse create(Context context);",
"public static JobID generate() {\n return new JobID();\n }",
"public JobPayload()\n {\n \n }",
"private synchronized void createJob\n\t\t(Channel theChannel)\n\t\t{\n\t\t// Create Job Frontend proxy object for the channel.\n\t\tJobFrontendRef frontend =\n\t\t\tnew JobFrontendProxy (myChannelGroup, theChannel);\n\t\ttheChannel.info (frontend);\n\n\t\t// Create job information record.\n\t\tJobInfo jobinfo = getJobInfo (frontend);\n\n\t\t// Start lease timers.\n\t\tjobinfo.renewTimer.start\n\t\t\t(Constants.LEASE_RENEW_INTERVAL,\n\t\t\t Constants.LEASE_RENEW_INTERVAL);\n\t\tjobinfo.expireTimer.start\n\t\t\t(Constants.LEASE_EXPIRE_INTERVAL);\n\t\t}",
"public CronJobTrigger() {\n init();\n }",
"public Job(String username, String password, String company, String industry,\n String title, Double salary) {\n super(username, password, company, industry);\n this.title = title;\n this.salary = salary;\n this.isAvailable = false;\n }",
"public static JobBuilder newJob(Class<? extends Job> jobClass) {\n JobBuilder b = new JobBuilder();\n b.ofType(jobClass);\n return b;\n }",
"public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}",
"WithCreate withProperties(JobDetails properties);",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public static Job create(long jobId) {\n\t\treturn getPersistence().create(jobId);\n\t}",
"public WaitingProfile constructWaitingProfile(Barge barge, int currentTime) {\r\n\t\t /*if(Port.eventsToExcel.equals(\"Yes\")){\r\n\t\t\t Port.stats.addEvent(currentTime, barge.bargeNumber, (barge.toString()+ \" asked Terminal \" + this.toString()+\r\n\t\t\t\t\t \" for appoints \"+\r\n\t\t\t\t\t \" ||appointements= \" +this.appointmentsToString()));\r\n\t\t\t }*/\r\n\t\t \r\n\t\t \r\n\t\treturn new WaitingProfile(this, barge, currentTime);\r\n\t}",
"public PreferenceManager(String prefFileName) {\n\t\tthis(prefFileName, null);\n\t}",
"public JobManagerHolder(JobManager jobManager) {\n this.instance = jobManager;\n }",
"public JobData(Job job,\n JobContext jContext,\n TaskAttemptContext tContext,\n ManifestCommitter committer) {\n this.job = job;\n this.jContext = jContext;\n this.tContext = tContext;\n this.committer = committer;\n conf = job.getConfiguration();\n }",
"Job(int id, int time) {\n this.id = id;\n this.time = time;\n }",
"@Override\n\tpublic UserPreferences newInstance() {\n\t\treturn new UserPreferences();\n\t}",
"private JobScheduler() {\n // empty\n }",
"public void init(int jid, Job job, Queue queue, Queue workerQueue\r\n\t\t\t,JobStateCache jobStateCache, JobQueueController jobQueueController) {\r\n\t\twhile(true){\r\n\t\t\tif( ready ){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.jid = jid;\r\n\t\tthis.job = job;\r\n\t\tthis.queue = queue;\r\n\t\tthis.workerQueue = workerQueue;\r\n\t\tthis.jobStateCache = jobStateCache;\r\n\t\tthis.jobQueueController=jobQueueController;\r\n\t}",
"private Job newJob(Path dir, Configuration configuration,\n String taskAttemptId) throws IOException {\n Job job = Job.getInstance(configuration);\n Configuration conf = job.getConfiguration();\n conf.set(MRJobConfig.TASK_ATTEMPT_ID, taskAttemptId);\n enableManifestCommitter(conf);\n FileOutputFormat.setOutputPath(job, dir);\n return job;\n }",
"public JobBuilder ofType(Class<? extends Job> jobClazz) {\n this.jobClass = jobClazz;\n return this;\n }",
"public JobControllerImpl(ViewContext context, Job job,\n OperationHandleControllerFactory opHandleControllerFactory,\n SavedQueryResourceManager savedQueryResourceManager,\n IATSParser atsParser,\n HdfsApi hdfsApi) {\n this.context = context;\n setJobPOJO(job);\n this.opHandleControllerFactory = opHandleControllerFactory;\n this.savedQueryResourceManager = savedQueryResourceManager;\n this.atsParser = atsParser;\n this.hdfsApi = hdfsApi;\n\n UserLocalConnection connectionLocal = new UserLocalConnection();\n this.hiveConnection = new ConnectionController(opHandleControllerFactory, connectionLocal.get(context));\n }",
"public SharedPref() {\n super();\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }",
"public Job getJob();",
"public Job(String JobID, int RunTime) {\n\t\t\tthis.JobID = JobID;\n\t\t\tthis.RunTime = RunTime;\n\t\t}",
"@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public static ProphetQueuing getInstance() {\r\n\t\tif (instance_ == null) {\r\n\t\t\tswitch (policy) {\r\n\t\t\tcase FIFO:\r\n\t\t\t\tinstance_ = (ProphetQueuing) new Fifo();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MOFO:\r\n\t\t\t\tinstance_ = (ProphetQueuing) new Mofo();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tBPF.getInstance().getBPFLogger()\r\n\t\t\t\t\t\t.error(TAG, \"Wrong policy in prophet routing type\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn instance_;\r\n\t}",
"public Builder(RecognitionJobOptions options) {\n callbackUrl = options.callbackUrl;\n events = options.events;\n resultsTtl = options.resultsTtl;\n userToken = options.userToken;\n }",
"public Preferences(Arguments args) {\r\n\t\tsuper(Preferences.Key.class);\r\n\t\tportable = args.getBool(Arguments.Key.PORTABLE);\r\n\r\n\t\tFile file = new File(args.getPath(), FileAtlas.PREF_FILENAME);\r\n\t\ttry (\tFileInputStream input = new FileInputStream(file);\r\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(input)) ) {\r\n\t\t\tString line;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.length() < 1 || line.charAt(0) == '#')\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tint split = line.indexOf('=');\r\n\t\t\t\tif (split > -1) {\r\n\t\t\t\t\tKey key = Key.fromId(line.substring(0, split));\r\n\r\n\t\t\t\t\tif (key != null)\r\n\t\t\t\t\t\tmap.put(key, line.substring(split+1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Unable to load runeframe.pref\");\r\n\t\t}\r\n\t}",
"public JobID(long lowerPart, long upperPart) {\n super(lowerPart, upperPart);\n }",
"public TriggerEchoJob() {\n\t}",
"public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }",
"protected PropertyPreference(ExternalKey stakeholderKey, ExternalKey propertyKey,\n String namespace) {\n super(stakeholderKey, namespace);\n setPropertyKey(propertyKey);\n }",
"public CustomEntitiesTaskParameters() {}",
"public Preferences(BlueJ bluej) {\r\n this.bluej = bluej;\r\n myPanel = new JPanel();\r\n myPanel.add(new JLabel(\"Favorite Colour\"));\r\n color = new JTextField(40);\r\n myPanel.add(color);\r\n // Load the default value\r\n loadValues();\r\n }",
"public static void createNewJob(BotUI botUI, String partner, String task,\n\t\t\tString cronExpression) {\n\t\tdisplayAndWriteLog(partner + \"- \" + task + \": createNewJob\");\n\t\ttry {\n\n\t\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\t\tjobDataMap.put(\"partner\", partner);\n\t\t\tjobDataMap.put(\"task\", task);\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 2\");\n\n\t\t\tMessageObservable observable = new MessageObservable();\n\t\t\tobservable.addObserver(botUI);\n\t\t\tjobDataMap.put(\"observable\", observable);\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 3\");\n\n\t\t\tJobDetail job = JobBuilder\n\t\t\t\t\t.newJob(ScreeningJob.class)\n\t\t\t\t\t.withIdentity(\n\t\t\t\t\t\t\tpartner.toUpperCase() + \"_\" + task.toUpperCase(),\n\t\t\t\t\t\t\t\"GROUP_01\").usingJobData(jobDataMap).build();\n\n\t\t\tdisplayAndWriteLog(partner + \": createNewJob 4\");\n\n\t\t\tTrigger trigger = TriggerBuilder\n\t\t\t\t\t.newTrigger()\n\t\t\t\t\t.withIdentity(\n\t\t\t\t\t\t\tpartner.toUpperCase() + \"_\" + task.toUpperCase(),\n\t\t\t\t\t\t\t\"GROUP_01\")\n\t\t\t\t\t.withSchedule(\n\t\t\t\t\t\t\tCronScheduleBuilder.cronSchedule(cronExpression))\n\t\t\t\t\t.build();\n\n\t\t\tdisplayAndWriteLog(partner + \": scheduler is null: \"\n\t\t\t\t\t+ (scheduler == null));\n\n\t\t\tif (scheduler == null) {\n\t\t\t\tscheduler = new StdSchedulerFactory().getScheduler();\n\t\t\t\tscheduler.start();\n\t\t\t\tdisplayAndWriteLog(partner + \": scheduler start\");\n\t\t\t}\n\t\t\tscheduler.scheduleJob(job, trigger);\n\n\t\t} catch (SchedulerException e) {\n\t\t\tSystem.out.println(\"SchedulerException: \" + e.toString());\n\t\t\tScreeningJob.displayAndWriteLogError(e);\n\t\t}\n\t}",
"public MultiTaskJob(String jobName, Tool t, Type jobType, Consumer<Result> c) {\n super(jobName, t, jobType, null, null, Job.Priority.USER);\n this.consumer = c;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context = getActivity();\n preference = new CMPreference(context);\n }",
"public interface Job {\n\n public enum Status {\n IDLE,\n RUNNING,\n SUCCESS,\n ERROR,\n FAIL\n }\n\n /**\n * @return the job ID.\n */\n public default JobId getId() {\n return getContext().getId();\n }\n\n /**\n * @return the job status\n */\n public Status getStatus();\n\n /**\n * @return the job priority\n */\n public Priority getPriority();\n\n /**\n * @return The context of this job.\n */\n public JobContext getContext();\n\n /**\n * Run the job using the {@link XProcEngine}.\n */\n public void run(XProcEngine engine);\n\n}",
"@Before\n\tpublic void init() {\n\t\tthis.preference = new Preference(\"ID\", \"asd\", PreferenceType.like);\n\t}",
"public JobRunResourceIdInner() {\n }",
"@Override\n\t\tprotected void onPreExecute(){\n\t\t\tpref=new Preferences(mContext);\n\t\t}",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"@Test\n public void testCreateConfirmDepositAmountsJob() throws Exception {\n Job asj = new AllocationScraperJob();\n asj.setStatus( JobStatus.completed );\n dao.insertJob( asj );\n\n // setup the job\n Job j = new CreateConfirmDepositAmountsJob();\n j.setStatus( JobStatus.submitted );\n j.getDependentJobs().add( asj );\n int jobId = dao.insertJob( j );\n\n // this should now run the job\n processorService.processJobs();\n\n // verify that the job completed successfully\n Job jobVerify = dao.fetchJobById( jobId );\n Assert.assertEquals( JobStatus.completed, jobVerify.getStatus() );\n }",
"public ServiceJob(Document document) {\n\t\tsuper();\n\t\tthis.setDocument(document);\n\t}",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }",
"public TblrefJobpromotion() {\n this(\"tblref_jobpromotion\", null);\n }",
"interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }",
"public ManagePreferences(Context context, String contactId, String contactLookupKey) {\n }",
"@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentException (\"The given job has not yet had a name assigned to it.\");\n m_aJobKey = k;\n return this;\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"public Man(String Name, Map<Agent, Integer> preferences) {\n\t\tsuper(Name, preferences);\n\t\t\n\t}",
"public JobConf createJobConf(byte id)\r\n\t\tthrows IOException\r\n\t{\r\n\t\t// preparing to create the new job, write the job conf\r\n\t\t\r\n\t\tthis.id = id;\r\n\t\t\r\n\t\tif ( this.tupleConstraint!=null)\r\n\t\t\tthis.conf.set(this.id+\".tuple.criteria\", SerializableUtil.serializeToBase64(this.tupleConstraint));\r\n\t\t\r\n\t\tStringBuffer schemaStr = new StringBuffer();\r\n\t\tIterator<String> it = this.getSchema().iterator();\r\n\t\twhile( it.hasNext() )\r\n\t\t{\r\n\t\t\tschemaStr.append(it.next());\r\n\t\t\tif( it.hasNext() )\r\n\t\t\t\tschemaStr.append(\",\");\r\n\t\t}\r\n\t\tthis.conf.set(this.id+\".schema\", schemaStr.toString());\r\n\t\t\r\n\t\t// setup computed columns, if any\r\n\t\tif( this.computedColumns!=null && this.computedColumns.size()>0 )\r\n\t\t{\r\n\t\t\tthis.conf.set(this.id+\".computed.columns\", SerializableUtil.serializeToBase64(this.computedColumns));\r\n\t\t}\r\n\t\t\r\n\t\t// setup id to name mapping\r\n\t\tString mapping = this.getID()+\";\"+this.getName();\r\n\t\t\r\n\t\tconf.set(ConfigureConstants.DATASET_ID_TO_NAME_MAPPING, mapping);\r\n\t\t\r\n\t\treturn new JobConf(this.conf);\r\n\t}",
"public void setJobObserver(JobObserver jO) {\n\r\n\t}",
"public PriorityScheduler() {\n }",
"private PrefUtils() {\n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic JobPreferences save(JobPreferences educaiton) {\n\t\treturn jobPreferenceDao.save(educaiton);\n\t}",
"public JobManagerHolder() {\n this.instance = null;\n }",
"public InstrumentedWorkerTask(gw.pl.persistence.core.BundleProvider bundleProvider) {\n this((java.lang.Void)null);\n com.guidewire.pl.system.entity.proxy.BeanProxy.initNewBeanInstance(this, bundleProvider.getBundle(), java.util.Arrays.asList());\n }",
"public Job(int id, String name, Recruiter recruiter, int fee, String category)\n {\n this.id = id;\n this.name = name;\n this.recruiter = recruiter;\n this.fee = fee;\n this.category = category;\n }",
"@Override\n public PreApprovalHolder build() { return new SimplePreApprovalHolder(this); }",
"public TblrefJobpromotion(String alias) {\n this(alias, TBLREF_JOBPROMOTION);\n }",
"public Job getJob(){\n return job;\n }",
"public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}",
"@Override\n\tpublic JobPreferences findById(int id) {\n\t\treturn null;\n\t}",
"public interface NotificationJobInstanceProcessorFactory extends JobInstanceProcessorFactory {\n\n @Override\n default <T extends JobInstance<?>> JobInstanceProcessor<?, T> createJobInstanceProcessor(JobContext jobContext, T jobInstance) {\n return (JobInstanceProcessor<?, T>) createJobInstanceProcessor((NotificationJobContext) jobContext, (NotificationJobInstance<?, ?>) jobInstance);\n }\n\n /**\n * Creates a notification job instance processor for the given notification job instance.\n *\n * @param jobContext The notification job context\n * @param jobInstance The notification job instance\n * @param <T> The notification job instance type\n * @return The notification job processor\n * @throws JobException if the notification job instance processor can't be created\n */\n <T extends NotificationJobInstance<?, ?>> NotificationJobInstanceProcessor<?, T> createJobInstanceProcessor(NotificationJobContext jobContext, T jobInstance);\n\n /**\n * Creates a notification job instance processor factory that always returns the given notification job instance processor.\n *\n * @param jobInstanceProcessor The notification job instance processor to return\n * @return the notification job instance processor factory\n */\n static NotificationJobInstanceProcessorFactory of(NotificationJobInstanceProcessor<?, ?> jobInstanceProcessor) {\n return new NotificationJobInstanceProcessorFactory() {\n\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T extends NotificationJobInstance<?, ?>> NotificationJobInstanceProcessor<?, T> createJobInstanceProcessor(NotificationJobContext jobContext, T jobInstance) {\n return (NotificationJobInstanceProcessor<?, T>) jobInstanceProcessor;\n }\n\n };\n }\n}",
"public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }"
] | [
"0.6354732",
"0.61519164",
"0.61014944",
"0.61014944",
"0.6044515",
"0.5997477",
"0.5991887",
"0.5954596",
"0.5916331",
"0.5894325",
"0.58203316",
"0.5739756",
"0.57333684",
"0.5695284",
"0.56444",
"0.56220955",
"0.5597758",
"0.5556371",
"0.5502471",
"0.5473846",
"0.53983617",
"0.53901803",
"0.53644824",
"0.5336672",
"0.5328334",
"0.5318692",
"0.5315183",
"0.53045374",
"0.53014284",
"0.52733034",
"0.5242104",
"0.5240477",
"0.52398634",
"0.51441485",
"0.5131715",
"0.5106286",
"0.5101769",
"0.5091399",
"0.50869817",
"0.5044843",
"0.5040605",
"0.5024412",
"0.5019413",
"0.49978986",
"0.4995645",
"0.49732816",
"0.49608347",
"0.49516812",
"0.49466375",
"0.49150273",
"0.490218",
"0.4898483",
"0.48394778",
"0.48327565",
"0.48220354",
"0.48078322",
"0.48052302",
"0.4803679",
"0.4792876",
"0.478619",
"0.47850698",
"0.4778907",
"0.47769788",
"0.4755338",
"0.47527194",
"0.47511145",
"0.47496513",
"0.47420722",
"0.4714423",
"0.4711464",
"0.4710925",
"0.46996355",
"0.4685599",
"0.4676451",
"0.46747893",
"0.46700245",
"0.4665012",
"0.46602818",
"0.46577573",
"0.46492055",
"0.46466064",
"0.4644225",
"0.4643631",
"0.46343628",
"0.46340388",
"0.46317646",
"0.46307504",
"0.46268323",
"0.46240494",
"0.462243",
"0.4616024",
"0.46145934",
"0.46119434",
"0.46076313",
"0.4606162",
"0.46018302",
"0.45923197",
"0.45915988",
"0.45908245",
"0.45880476"
] | 0.7119217 | 0 |
Construct King of the specified color. | public King(Color color) {
super(color, RANK);
castling = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void castleKingSide(char color) {\n String colorString = Character.toString(color);\n\n String king = \"K\" + colorString;\n String rook = \"R\" + colorString;\n\n int rank = color == 'w' ? 0 : 7;\n\n move(king, 4, rank, 6, rank);\n move(rook, 7, rank, 5, rank);\n }",
"public king(int xPos, int yPos, int color, int index) {\n\t\tsuper(xPos, yPos, color, index);\n\t\ta = type.KING;\n\t\tc=1;\n\t}",
"public Square getKing(PieceColor color) {\n \tif(color == PieceColor.White) return wKing;\n \telse if(color == PieceColor.Black) return bKing;\n \treturn null;\n }",
"private Piece findKing(PieceColor color)\n {\n for (Piece p: getPieces())\n {\n if (p.isKing() && p.getColor()==color)\n return p;\n }\n return null;\n }",
"public void setKing(PieceColor color, Square sq) {\n \tif(color == PieceColor.White) wKing = sq;\n \telse if(color == PieceColor.Black) bKing = sq;\n }",
"public Queen(boolean color) {\n\n this.setColor(color);\n }",
"public Knight(String color){\n super(\"Knight\",color);\n }",
"private ChessPiece king(Color color) {\n\t\t// filtrando a lista\n\t\tList<Piece> list = piecesOnTheBoard.stream().filter(x -> ((ChessPiece) x).getColor() == color).collect(Collectors.toList());\n\t\t\n\t\tfor (Piece piece : list) {\n\t\t\tif (piece instanceof King) {\n\t\t\t\treturn (ChessPiece) piece;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new IllegalStateException(\"Não existe o Rei da cor \" + color + \"no tabuleiro\");\n\t}",
"public Queen(String color) {\r\n super(color);\r\n type = \"queen\";\r\n }",
"public Queen (String color) {\n\t\tsuper (color);\n\t\tthis.type = \"Queen\";\n\t}",
"public Knight(String color, Position position){\n super(\"Knight\", color, position);\n\n List<Position> directions = new ArrayList<Position>();\n directions.add(new Position(1,-2));\n directions.add(new Position(2,-1));\n directions.add(new Position(2,1));\n directions.add(new Position(1,2));\n directions.add(new Position(-1,-2));\n directions.add(new Position(-2,-1));\n directions.add(new Position(-1,2));\n directions.add(new Position(-2,1));\n setDirectionVectors(directions);\n\n if (color.equals(\"White\")){\n setImageResource(R.mipmap.white_knight_foreground);\n }\n else{\n setImageResource(R.mipmap.black_knight_foreground);\n }\n\n }",
"public void makeKing() {\n // Set king variable to true\n this.king = true;\n\n // Add stroke effect to piece to represent as a king\n setStroke(Color.GOLD);\n }",
"public Piece(Color color) {\r\n this.type = Type.SINGLE;\r\n this.color = color;\r\n }",
"KeyColor(String name){\n this.name = name;\n }",
"public Knight (Player owner, boolean gameColor, Square position){\n\t\tsuper(owner, \"Knight\", gameColor, position);\n\t\ttype = PieceType.KNIGHT;\n\t}",
"Node<K, V> withColor(boolean color) {\n if (isRed == color) {\n return this;\n } else {\n return new Node<>(getKey(), getValue(), left, right, color);\n }\n }",
"public FreeMindWriter cloud( int color ) {\n tagClose();\n\n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n\n out.println( \"<cloud COLOR='#\" + c + \"'/>\" );\n return this; \n }",
"public Box(String color) {\n\t\tthis.color = color;\n\t}",
"public Knight(int row, int column, PieceColor color) {\n super(row, column, color, PieceType.KNIGHT,3);\n }",
"public static void castleQueenSide(char color) {\n String colorString = Character.toString(color);\n\n String king = \"K\" + colorString;\n String rook = \"R\" + colorString;\n\n int rank = color == 'w' ? 0 : 7;\n\n move(king, 4, rank, 2, rank);\n move(rook, 0, rank, 3, rank);\n }",
"Leaf(int size, Color color) {\n this.size = size;\n this.color = color;\n }",
"public Pawn(String color){\r\n this.color=color; \r\n }",
"public Piezas(String color) {\r\n this.color = color;\r\n }",
"public void putChess(String color) {\n if (pool.containsKey(color)) return;\n if (color.equals(\"b\"))\n pool.put(color, new BlackChess());\n else if (color.equals(\"w\"))\n pool.put(color, new WhiteChess());\n else\n System.out.println(\"Unsupported\");\n }",
"public Knight(String name, Block block, String color, Player player){\r\n\t\tsuper(name, block, color, player);\r\n\t}",
"public Shape(Color c) {\n\t\tcolor = c;\n\t}",
"public void setKeyImg(int color){\n\t\tif(color<5){\n\t\t\tkeyColor = color;\n\t\t\tLog.v(\"KeyModel\", \"Declared: \"+color);\n\t\t}\n\n\t\telse{\n\t\t\tkeyColor = 666;\n\t\t\tLog.v(\"KeyModel\", \"No color was found\");\n\t\t}\t\t\n\t}",
"public Bishop(String color) {//True is white, false is black\n\t\tsuper(color);\n\n\t}",
"public Basic setColor(CMYKColors color) {\n this.color = color;\n return this;\n }",
"public Goat(String color){\r\n\t\t\r\n\t\tthis.color = color;\r\n\t\tthis.blackCoins = 100;\r\n\t\tthis.whiteCoins = 100;\r\n\t\tthis.greyCoins = 100;\r\n\t\tthis.waitTime = 1;\r\n\t\tthis.willPay = false;\r\n\r\n\t}",
"@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}",
"public KCard (Card.Color c, int value) {\n this.color = c;\n this.value = value;\n }",
"private void colorBricks(GRect block,int k) {\n\n\t\tif (k < 2) block.setFillColor(Color.RED);\n\t\telse if (k >= 2 && k < 4) block.setFillColor(Color.ORANGE);\n\t\telse if (k >= 4 && k < 6) block.setFillColor(Color.YELLOW);\n\t\telse if (k >= 6 && k < 8) block.setFillColor(Color.GREEN);\n\t\telse if (k >= 8 && k < 10) block.setFillColor(Color.CYAN);\n\t}",
"public static Paint newBoarderPaint(float size, int color){\n final Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(color);\n paint.setStrokeWidth(size);\n paint.setStyle(Paint.Style.STROKE);\n\n return paint;\n }",
"public Player(int startR ,int endR , int startC ,int endC , String color) { // constractor\n // startR - start row for creating the pieces , startC - start colomn for creating the pieces\n // endR - End row for creating the pieces , endC - END colomn for creating the pieces\n this.color=color;\n \n for(int i = startR; i <= endR; i++){\n for(int j = startC ; j <= endC ;j++){\n pieces.put(new Integer (j*Board.N+i), new Piece(i,j, color)); // new piece\n teritory.add(j* Board.N +i); // saving index of teritory base \n }\n }\n }",
"public static Card of(Color color) {\n if (color == null){\n return LOCOMOTIVE;\n } else{\n switch (color) {\n case BLACK: return BLACK;\n case VIOLET: return VIOLET;\n case BLUE: return BLUE;\n case GREEN: return GREEN;\n case YELLOW: return YELLOW;\n case ORANGE: return ORANGE;\n case RED: return RED;\n case WHITE: return WHITE;\n default: throw new Error();\n }\n }\n }",
"public WheelSpace(String value, String color, int size)\n {\n this.size = size;\n this.value = value;\n this.color = color;\n }",
"public Room(String color) {\n\t\tthis.wall = color;\n\t\tthis.floor =\"\";\n\t\tthis.windows=0;\n\t}",
"public GamePiece(Color color, int x, int y){\n king = false;\n this.x = x;\n this.y = y;\n this.color = color;\n // Aligns to correct position on centre of the correct tile\n setCenterX(30 + (x * 60));\n setCenterY(30 + (y * 60));\n setRadius(20);\n // Sets the colour of the piece to visually show who it belongs to\n setFill(color);\n }",
"public Rook(String color) {\n\t\tsuper(color, \"R\");\n\t}",
"public boolean isKingMove(Piece.PColor colorCheckedForKing) {\n if(colorCheckedForKing == PColor.red) {\n return end.getRow() == 7;\n } else {\n return end.getRow() == 0;\n }\n }",
"public PieceSharkBait(String symbol, String color){\n super(symbol, color);\n this.hidden = false;\n }",
"public Figure(Color color){\n this.color=color;\n }",
"public PlayerClass(int color, String name){\n\t\tthis.color=color;\n\t\tthis.name=name;\n\t\tpawns = new PawnClass[4];\n\t\tdiceTossed = false;\n\t}",
"private void set(int k, PieceColor v) {\n assert validSquare(k);\n _board[k] = v;\n }",
"private Geometry buildCube(ColorRGBA color) {\n Geometry cube = new Geometry(\"Box\", new Box(0.5f, 0.5f, 0.5f));\n Material mat = new Material(assetManager, \"TestMRT/MatDefs/ExtractRGB.j3md\");\n mat.setColor(\"Albedo\", color);\n cube.setMaterial(mat);\n return cube;\n }",
"public King(Piece piece, Node node) throws IOException\n\t{\n\t\tsuper(piece, node);\n\t}",
"public Pen(@Nullable Color color) {\n Color c = Color.BLACK;\n if (color != null) {\n c = color;\n }\n this.color = c;\n this.stroke = new BasicStroke();\n }",
"public Collection(char colour) { /* ... code ... */ }",
"Node(K key, V value, java.util.Comparator<? super K> c, boolean black) {\n this.key = key;\n this.value = value;\n this.c = c;\n this.left = new EmptyNode<K, V>(c);\n this.right = new EmptyNode<K, V>(c);\n this.black = black;\n this.size = 1;\n }",
"public Queen(Color c, String fileName)\n {\n super(c, fileName, 9);\n }",
"public Circle(SelectedColor color) {\n super(Name.Circle, color);\n\n Log.i(\"Circle\",\"Created a \" + color + \" Circle\");\n //Need getcolor() to pick random\n //Maybe keep all colors random at create time, then when we add them to data struc\n //we change one of the colors depending on \"correct shape\"\n }",
"protected Vertex(int color) {\n\t\tthis.color = color;\n\t\tthis.familyColorList = new LinkedList<Integer>();\n\t\tthis.nextColorList = new LinkedList<Integer>();\n\t\tthis.familyColorList.add(color);\n\t\tthis.width = 1;\n\t\tthis.nextWidth = 0;\n\t\tupdateMap(color, color); // vertex is not mapped yet\n\t}",
"public PieceView(Color color, Type type) {\n this.color = color;\n this.type = type;\n }",
"public SimpleGeometricObject(String color, boolean filled) {\r\n this.dateCreated = new java.util.Date();\r\n this.color = color;\r\n this.filled = filled;\r\n }",
"@Override\r\n\tpublic Card createCard(Color color, Value label) {\r\n\t\tCard newCard = new Card(color, label);\r\n\t\treturn newCard;\r\n\t}",
"public PlayerIndicator (Color color)\n {\n this.color = color;\n setBackground(BACKGROUND_COLOR);\n setPreferredSize(new Dimension(30, 30));\n }",
"public Player(String nickname, String color) {\n //Creating objects\n this.nickname = nickname;\n this.resources = new Assets();\n this.strengths = new Strengths();\n this.leaderCards = new ArrayList<>();\n this.familyMembers = new ArrayList<>();\n this.pickDiscounts = new HashMap<>();\n this.diceOverride = new HashMap<>();\n this.defaultHarvestBonus = new Assets();\n this.defaultProductionBonus = new Assets();\n this.color = color;\n this.cards = new HashMap<>();\n DEFAULT_TOWERS_COLORS.forEach(towerColor -> this.pickDiscounts.put(towerColor, new Assets()));\n pickDiscounts.put(BLACK_COLOR, new Assets());\n getLog().log(Level.INFO, \"New empty player %s created.\", nickname);\n }",
"public FreeMindWriter color( int color ) {\n if( ! tagOpen ) throw new IllegalStateException( \"Node start element is no longer open\" );\n \n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n out.print( \" COLOR='#\" + c + \"'\" );\n return this;\n }",
"public FreeMindWriter backColor( int color ) {\n if( ! tagOpen ) throw new IllegalStateException( \"Node start element is no longer open\" );\n \n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n out.print( \" BACKGROUND_COLOR='#\" + c + \"'\" );\n return this;\n }",
"public GeometricObject(String color, boolean filled) {\n dateCreated = new java.util.Date();\n this.color = color;\n this.filled = filled;\n }",
"protected GeometricObject(String color, boolean filled) \n\t{\n\t\tdateCreated = new java.util.Date();\n\t\tthis.color = color;\n\t\tthis.filled = filled;\n\t}",
"public King(Player player) {\n\t\tsuper(player);\n\t}",
"public Shape(String color) { \n System.out.println(\"Shape constructor called\"); \n this.color = color; \n }",
"IOverlayStyle boxColor(int color);",
"public EnemyBackground(Color color) {\r\n this.color = color;\r\n }",
"public Car(int floor, String color){\n\t\tthis.carPosition = floor;\n\t\tthis.carColor = color;\n\t}",
"protected GeometricObject(String color, boolean filled)\n {\n this.color = color;\n this.filled = filled;\n dateCreated = new Date();\n }",
"public OutlineZigzagEffect(int width, Color color) {\n/* 89 */ super(width, color);\n/* */ }",
"public Bead(String givenColor,char givenLetter)\r\n {\r\n color=givenColor;\r\n letter=givenLetter;\r\n }",
"RGB getNewColor();",
"void setColor(char c, char t) {\n\t\tif(c == 'b' && t == 'b') pI = PieceImage.B_BISHOP;\n\t\tif(c == 'b' && t == 'k') pI = PieceImage.B_KING;\n\t\tif(c == 'b' && t == 'c') pI = PieceImage.B_KNIGHT;\n\t\tif(c == 'b' && t == 'p') pI = PieceImage.B_PAWN;\n\t\tif(c == 'b' && t == 'q') pI = PieceImage.B_QUEEN;\n\t\tif(c == 'b' && t == 'r') pI = PieceImage.B_ROOK;\n\t\t\n\t\tif(c == 'w' && t == 'b') pI = PieceImage.W_BISHOP;\n\t\tif(c == 'w' && t == 'k') pI = PieceImage.W_KING;\n\t\tif(c == 'w' && t == 'c') pI = PieceImage.W_KNIGHT;\n\t\tif(c == 'w' && t == 'p') pI = PieceImage.W_PAWN;\n\t\tif(c == 'w' && t == 'q') pI = PieceImage.W_QUEEN;\n\t\tif(c == 'w' && t == 'r') pI = PieceImage.W_ROOK;\n\t\n\t\tif(c == 'c' && t == 'b') pI = PieceImage.C_BISHOP;\n\t\tif(c == 'c' && t == 'k') pI = PieceImage.C_KING;\n\t\tif(c == 'c' && t == 'c') pI = PieceImage.C_KNIGHT;\n\t\tif(c == 'c' && t == 'p') pI = PieceImage.C_PAWN;\n\t\tif(c == 'c' && t == 'q') pI = PieceImage.C_QUEEN;\n\t\tif(c == 'c' && t == 'r') pI = PieceImage.C_ROOK;\n\t\t\n\t\tif(c == 'p' && t == 'b') pI = PieceImage.P_BISHOP;\n\t\tif(c == 'p' && t == 'k') pI = PieceImage.P_KING;\n\t\tif(c == 'p' && t == 'c') pI = PieceImage.P_KNIGHT;\n\t\tif(c == 'p' && t == 'p') pI = PieceImage.P_PAWN;\n\t\tif(c == 'p' && t == 'q') pI = PieceImage.P_QUEEN;\n\t\tif(c == 'p' && t == 'r') pI = PieceImage.P_ROOK;\n\t\t}",
"public Figure(String colour) {\n this.colour = colour;\n }",
"public ColorClass (int ide, boolean ordered) {\n this(\"C_\"+ide, ordered);\n }",
"private King establishKing() {\n\t\tfor(final Piece piece : getActivePieces()) {\n\t\t\tif(piece.getPieceType().isKing()){\n\t\t\t\treturn (King) piece;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Why are you here?! This is not a valid board!!\");\n\t}",
"public Pen(float thickness, @Nullable Color color) {\n Color c = Color.BLACK;\n if (color != null) {\n c = color;\n }\n this.color = c;\n this.stroke = new BasicStroke(thickness);\n }",
"public Node(int x,int y, int size, String colour, String n)\n\t{\n\t\tdrawnNode = new Ball(x,y,size,colour);\n\t\tname = n;\n\t\tdouble textChange = (double)size/4.0;\n\t\tlabel = new Text(n,x-textChange,y+textChange,size,\"WHITE\");\n\t\t\n\t\toutArcs = new Arc[0];\n\t}",
"void setOccupier(PRColor color) {\n c = color;\n }",
"public void setCell(int color) {\r\n\t\tSound sound = Assets.manager.get(Assets.CLICK_SOUND);\r\n\t\tsound.play();\r\n\t\toccupied = color;\r\n\t\tif (color == -1) {\r\n\t\t\tpiece = new Image(Assets.manager.get(Assets.RED_TXT, Texture.class));\r\n\t\t} else {\r\n\t\t\tpiece = new Image(Assets.manager.get(Assets.YELLOW_TXT, Texture.class));\r\n\t\t}\r\n\t\tpiece.setPosition(img.getX() + OFFSET, img.getY() + OFFSET);\r\n\t\tstage.addActor(piece);\r\n\t}",
"public ColorClass( String name) {\n this(name, false);\n }",
"public Pawn(Point location, Color color) {\n this.numMoves = 0;\n this.color = color;\n this.location = location;\n }",
"public Queen(int initX, int initY, Color color, StandardBoard board) {\n\t\tsuper(initX, initY, color, board);\n\t\tthis.nameOfPiece = \"queen\";\n\t}",
"public ColorSet()\n {\n }",
"public void setClusterColor(Color color) {\r\n if(color ==null){ //indicates removal of cluster\r\n framework.removeCluster(getArrayMappedToData(), experiment, ClusterRepository.GENE_CLUSTER);\r\n }\r\n }",
"protected BinarySearchTree<K, V> makeBlack() {\n return new Node<K, V>(this.key, this.value, \n this.c, this.left, \n this.right, true);\n }",
"public Color() {\n\n\t\tthis(0, 0, 0);\n\t}",
"public Fruit(String color, String name) {\r\n\t\tthis.color = color;\r\n\t\tthis.name = name;\r\n\t}",
"private ZigzagStroke() {}",
"public Coche (String color, String modelo) {\r\n\t super(color, modelo);\r\n\t numeroDeRuedas = 4;\r\n\t }",
"public Queen(boolean color, Location location, int posInArray)\n\n {\n super(color, location, posInArray);\n legalVectors.add(new Location (-1, -1));\n legalVectors.add(new Location (-1, 0));\n legalVectors.add(new Location (-1, 1));\n legalVectors.add(new Location (0, -1));\n legalVectors.add(new Location (0, 1));\n legalVectors.add(new Location (1, -1));\n legalVectors.add(new Location (1, 0));\n legalVectors.add(new Location (1, 1));\n\n }",
"public void makeCyan() {\n lastHit = System.currentTimeMillis();\n isCyan = true;\n ((Geometry)model.getChild(\"Sphere\")).getMaterial().setColor(\"Color\", ColorRGBA.Cyan);\n }",
"public Bead(String color, int use)\n {\n // initialise instance variables\n this.color = color.toLowerCase();\n this.use = use;\n }",
"public IconBuilder color(int color) {\n\t\tthis.color = color;\n\t\treturn this;\n\t}",
"public ColorWeight()\n {\n weight = 0;\n }",
"public Miner(PlayerColor aColor) {\n super(3, aColor);\n }",
"private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}",
"public Bishop(int row, int column, PieceColor color) {\n super(row, column, color, PieceType.BISHOP,3);\n }",
"public MyCone(int color, int id) {\n\t\tsuper();\n\t\tthis.color = color;\n\t\tthis.id = id;\n\t}",
"public SearchManager(Color givenColor) {\n\t\tsuper(givenColor);\n\t}",
"public String ballColor(long r, long g, long b, long k) {\n if (r == 0 && g == 0) return COLOR.BLUE.toString();\n else if (r == 0 && b == 0) return COLOR.GREEN.toString();\n else if (g == 0 && b == 0) return COLOR.RED.toString();\n\n // min * 3 > k ==> in the min ranges\n // min * 3 < k ==> further calc\n long minVal = min(min(r, g), b);\n if (minVal != 0 && minVal * 3 > k) {\n long temp = k % 3;\n if (temp == 0) return COLOR.BLUE.toString();\n else if (temp == 1) return COLOR.RED.toString();\n else return COLOR.GREEN.toString();\n }\n\n // substract minVal each\n r -= minVal;\n g -= minVal;\n b -= minVal;\n k -= minVal * 3;\n if (k == 0) {\n return COLOR.BLUE.toString();\n }\n\n // check the rest two\n int maximum = 0, maxless = 0;\n if (r == 0) {\n if (g > b) {\n long min = min(g, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.GREEN.toString();\n } else return COLOR.GREEN.toString();\n } else {\n // blue is larger\n long min = min(g, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.GREEN.toString();\n } else return COLOR.BLUE.toString();\n }\n } else if (g == 0) {\n if (r > b) {\n long min = min(r, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.RED.toString();\n } else return COLOR.RED.toString();\n } else {\n // blue is larger\n long min = min(r, b);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.BLUE.toString();\n else return COLOR.RED.toString();\n } else return COLOR.BLUE.toString();\n }\n } else {\n // b == 0\n if (r > g) {\n long min = min(r, g);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.GREEN.toString();\n else return COLOR.RED.toString();\n } else return COLOR.RED.toString();\n } else {\n long min = min(r, g);\n if (min * 2 > k) {\n long temp = k % 2;\n if (temp == 0) return COLOR.GREEN.toString();\n else return COLOR.RED.toString();\n } else return COLOR.GREEN.toString();\n }\n }\n\n }"
] | [
"0.6662668",
"0.64959276",
"0.64765126",
"0.633184",
"0.6311318",
"0.62923205",
"0.6272875",
"0.6263072",
"0.6214836",
"0.6123859",
"0.6064413",
"0.6058891",
"0.58748716",
"0.5850086",
"0.5782065",
"0.5752363",
"0.5742965",
"0.56990296",
"0.5683402",
"0.5679967",
"0.5653073",
"0.5585306",
"0.5533359",
"0.55269784",
"0.54879606",
"0.5470494",
"0.54245573",
"0.54194313",
"0.5399307",
"0.5373557",
"0.537154",
"0.53394824",
"0.5332163",
"0.53311",
"0.52335304",
"0.5205199",
"0.5199152",
"0.51828647",
"0.5144844",
"0.5143933",
"0.5129831",
"0.51296973",
"0.51283914",
"0.5123189",
"0.51125014",
"0.5104209",
"0.5103616",
"0.5089212",
"0.5078346",
"0.5076951",
"0.50545794",
"0.5042349",
"0.50268656",
"0.5012851",
"0.50049204",
"0.49887404",
"0.49769452",
"0.49751708",
"0.49711183",
"0.4950054",
"0.4948912",
"0.49415788",
"0.49383008",
"0.49217513",
"0.49213317",
"0.49158522",
"0.49128735",
"0.49068207",
"0.4885563",
"0.48828265",
"0.48758647",
"0.48733142",
"0.4850429",
"0.48400742",
"0.48391026",
"0.48356405",
"0.48291227",
"0.48287454",
"0.4826357",
"0.48079467",
"0.48058078",
"0.48004147",
"0.47932804",
"0.4781078",
"0.47790188",
"0.47774687",
"0.47700384",
"0.47629094",
"0.47601354",
"0.47550538",
"0.4753567",
"0.47476327",
"0.47432435",
"0.47268602",
"0.47248426",
"0.47174716",
"0.47136864",
"0.4707333",
"0.47071803",
"0.4703046"
] | 0.77927864 | 0 |
Check whether castle (long or short) that was most recently inspected is currently allowed. | public boolean getCastling() {
return this.castling;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }",
"private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }",
"private void checkCastleCollisions() {\n\t\t\n\t}",
"private boolean canTakeBandanaFrom(Unit other) {\n return getCalories() >= (2 * other.getCalories());\n }",
"public boolean getIsLimited() {\r\n return !(this.accessLimitations != null && this.accessLimitations.contains(\"UNL\"));\r\n }",
"public boolean isPossibleToTake() {\n if (storage == 0) {\n return false;\n } else {\n return true;\n }\n }",
"private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }",
"private boolean checkiforiginal(int copynum) {\n boolean isAvailable = false;\n if (copynum == 0) {\n isAvailable = true;\n }\n return isAvailable;\n }",
"@NotNull\n boolean isTrustedWholeLand();",
"public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasAllowedCredit();",
"public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}",
"public boolean getCanLimit(){\n \treturn canLimit.get();\n }",
"private void checkLegal() {\n\tif (undoStack.size() == 2) {\n ArrayList<Integer> canGo = \n getMoves(undoStack.get(0), curBoard);\n boolean isLegal = false;\n int moveTo = undoStack.get(1);\n for (int i = 0; i < canGo.size(); i++) {\n if(canGo.get(i) == moveTo) {\n isLegal = true;\n break;\n }\n }\n\n if(isLegal) {\n curBoard = moveUnit(undoStack.get(0), \n moveTo, curBoard);\n clearStack();\n\n moveCount++;\n\t setChanged();\n\t notifyObservers();\n }\n\t}\n }",
"private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\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 final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}",
"public boolean isPlaceable() {\n\t\tlong now = Calendar.getInstance().getTimeInMillis();\t\t\n\t\treturn now - createTime >= placeableThreshold && \n\t\t\t\tnow - focusTime >= placeableThreshold;\n\t}",
"boolean hasLongValue();",
"public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}",
"public long getAnyShortExces() {\n return anyShortExces;\n }",
"public Boolean canBorrowBook() {\n\t\tif (loans.size() >= getLoanLimit()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean own() {\n return InventoryManager.getAccessibleCount(ItemPool.COMBAT_LOVERS_LOCKET) > 0;\n }",
"public boolean checkOverflow() {\n\t\tfor(int i = 0; i < hand.size(); i++) {\n\t\t\tif(hand.get(i).getValue() == 11) {\n\t\t\t\thand.get(i).makeSoft();\n\t\t\t\tSystem.out.println(\"The value of the \" + hand.get(i) +\" was changed to 1\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"public boolean isNoLongerValid() {\n return !this.isAlwaysValid();\n }",
"public boolean checkNaturals() {\n return getSize() == 2 && handValue() == 21;\n }",
"boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }",
"boolean hasLong();",
"@Override\n\tboolean allow() {\n\t\tlong curTime = System.currentTimeMillis()/1000 * 1000;\n\t\tlong boundary = curTime - 1000;\n\t\tsynchronized (log) {\n\t\t\t//1. Remove old ones before the lower boundary\n\t\t\twhile (!log.isEmpty() && log.element() <= boundary) {\n\t\t\t\tlog.poll();\n\t\t\t}\n\t\t\t//2. Add / log the new time\n\t\t\tlog.add(curTime);\n\t\t\tboolean allow = log.size() <= maxReqPerUnitTime;\n\t\t\tSystem.out.println(curTime + \", log size = \" + log.size()+\", allow=\"+allow);\n\t\t\treturn allow;\n\t\t}\n\t}",
"private final boolean m28064c(Number number) {\n return (number instanceof Short) || (number instanceof Byte);\n }",
"public boolean canSee(QueueEvent anEvent, long aTime) {\n if (anEvent.getType() == QueueEvent.ENTRY_VISIBLE)\n return false;\n\n if (isTainted.get())\n return false;\n\n synchronized(this) {\n if (aTime > theLeaseTime) {\n taint();\n return false;\n }\n\n // If we're associated with a transaction.....\n if (theTxnId != null) {\n\n if ((anEvent.getType() == QueueEvent.TRANSACTION_ENDED) &&\n (theTxnId.equals(anEvent.getTxn().getId()))) {\n taint();\n return false;\n }\n \n // We see all Written's including those generated by us\n if (anEvent.getType() == QueueEvent.ENTRY_WRITTEN)\n return true;\n\n // If it's not a written we can only see it if we originated it\n return (anEvent.getTxn().getId().equals(theTxnId));\n } else {\n // Only see ENTRY_WRITTENS\n return (anEvent.getType() == QueueEvent.ENTRY_WRITTEN);\n }\n }\n }",
"private boolean checkResolution(double tar_LonDPP) {\n double LonDPP = (this.lrlon - this.ullon) / 256;\n return LonDPP <= tar_LonDPP;\n }",
"private boolean validFullHouse() {\n int highestTwo, highestThree;\n highestTwo = highestThree = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if (value == 2 && key > highestTwo)\n highestTwo = key;\n else if (value == 3 && key > highestThree) {\n //If there exists a higher 3 count, the old 3 count might be bigger than the twoCount\n if(highestThree > highestTwo)\n highestTwo = highestThree;\n highestThree = key;\n }\n }\n if (highestTwo == -1 || highestThree == -1) {\n return false;\n }\n //FullHouse only possible with 2s and 3s\n\n ArrayList<String> validHand = new ArrayList<>();\n int twosCount, threesCount;\n twosCount = threesCount = 0;\n for(int i = 0; i < this.cards.size(); i ++) {\n Card c = this.cards.get(i);\n if(c.sameValue(highestTwo) && twosCount < 2){\n twosCount++;\n validHand.add(c.toString());\n }\n else if(c.sameValue(highestThree) && threesCount < 3) {\n threesCount++;\n validHand.add(c.toString());\n }\n }\n //If above conditional didn't trigger, must be valid FullHouse of some sort\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n return true;\n }",
"public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }",
"@java.lang.Override\n public boolean hasAllowedCredit() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override\n public boolean hasAllowedCredit() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }",
"protected boolean checkFormat() {\n\t\t// Read the card contents and check that all is ok.\n\t byte[] memory = utils.readMemory();\n\t if (memory == null)\n\t return false;\n\t \n\t // Check the application tag.\n\t for (int i = 1; i < 4; i++)\n\t if (memory[4 * 4 + i] != applicationTag[i])\n\t return false;\n\t \n\t // Check zeros. Ignore page 36 and up because of the safe mode.\n\t for (int i = 5 * 4; i < 36 * 4; i++)\n\t if (memory[i] != 0)\n\t return false;\n\t \n\t // Check that the memory pages 4..39 are not locked.\n\t // Lock 0: Check lock status for pages 4-7\n\t if (memory[2 * 4 + 2] != 0) \n\t return false;\n\t // Lock 1: \n\t if (memory[2 * 4 + 3] != 0)\n\t return false;\n\t // Lock 2:\n\t if (memory[40 * 4] != 0)\n\t \t\treturn false;\n\t // Lock 1:\n\t if (memory[40 * 4 + 1] != 0)\n\t \t\treturn false;\n\t \n\t return true;\n\t}",
"boolean m19264c() {\n return (getState() & 12) != 0;\n }",
"private boolean checkSigns() {\n\t\tfor (int i = 0; i < signs.size(); i++) {\n\t\t\tif (signs.get(i).isInRange(player.pos, player.direction)) {\n\t\t\t\tsetSign(signs.get(i));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAbleToBeAllocated( )\r\n {\r\n // Do not allow allocation if it's too slow!\r\n if (lastTransferRateBPS < ServiceManager.sCfg.minimumAllowedTransferRate\r\n && lastTransferRateBPS > 0)\r\n {\r\n addToCandidateLog( \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n NLogger.debug( NLoggerNames.Download_Candidate_Allocate,\r\n \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n return false;\r\n }\r\n long currentTime = System.currentTimeMillis();\r\n return statusTimeout <= currentTime;\r\n }",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}",
"public boolean legalMove(Card last, Card current) {\n // check if a card has been wished for\n if (current.getRank() == CardRank.JACK) {\n return true;\n }\n\n // check if a player has satisfied another's card wish\n if (last.getRank() == CardRank.JACK && current.getSuite() == wishedSuite) {\n additionalCards = 0;\n return true;\n }\n\n // Seven may always be allowed\n System.out.println(additionalCards);\n if (additionalCards > 0){\n return current.getRank() == CardRank.SEVEN;\n }\n\n return last.compareTo(current) == 0;\n }",
"public boolean someLegalPos() {\n return !legalPos.isEmpty();\n }",
"boolean hasAlreadCompareLose();",
"public boolean hasLongValue() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}",
"Boolean getCompletelyCorrect();",
"@Override\n public boolean canDo(World world, EntityPlayer player) {\n return getTimer(player, COOLDOWN_TIMER) == 0;\n }",
"public boolean hasLongValue() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"private boolean isLegalState(int[] state){\n int[] stateOtherSide = new int[3];\n stateOtherSide[0] = totalMissionaries - state[0];\n stateOtherSide[1] = totalCannibals - state[1];\n stateOtherSide[2] = state[2]==0 ? 1 : 0;\n\n if((state[0] < state[1]) && state[0] >0 || (stateOtherSide[0] < stateOtherSide[1]) && stateOtherSide[0] > 0) {\n return false;\n }else{\n return true;\n }\n }",
"private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }",
"public boolean mo10703b() {\n String g = this.f732b.mo10711g(\"com.auth0.credentials\");\n Long a = this.f732b.mo10705a(\"com.auth0.credentials_expires_at\");\n Boolean c = this.f732b.mo10707c(\"com.auth0.credentials_can_refresh\");\n return !TextUtils.isEmpty(g) && a != null && (a.longValue() > System.currentTimeMillis() || (c != null && c.booleanValue()));\n }",
"private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }",
"public boolean isMaxState();",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"private boolean isEligibleForRealMax() {\n return eligibleForRealMax;\n }",
"public static boolean isBusted(Player player) {\r\n if(total(player).min() > 21 && total(player).min() != 32) {\r\n return true;\r\n }\r\n return false;\r\n }",
"boolean CanCaptureBuildOfCards(Card_Model cardToBeCaptured, Card_Model cardInBuild, Vector<Card_Model> playerHand) {\n\n boolean isCardInBuild = false;\n int captureCardNum = playerModel.CardNumber(cardToBeCaptured.GetNumber());\n int captureCardAce = 14;\n\n // First checking to see if the build the user wants to capture exists by looking for the card they provided\n for(int i = 0; i < buildOfCards.size(); i++) {\n if(buildOfCards.get(i).GetCard().equals(cardInBuild.GetCard())) {\n isCardInBuild = true;\n }\n }\n\n // If the card the user typed in is in the build and the card the user\n // wants to capture with is not an ace, then we need to make sure the card they are\n // capturing with is the same value as the total build\n if(isCardInBuild && cardToBeCaptured.GetNumber() != 'A') {\n if(playerModel.CardNumber(cardToBeCaptured.GetNumber()) == cardValueOfBuild) {\n return true;\n }\n }\n // If the card is in the build and the card is an ace, then we treat the capturing\n // card as 14 and see if it matches the total build value\n else if(isCardInBuild) {\n if(captureCardAce == cardValueOfBuild) {\n return true;\n }\n }\n\n return false;\n }",
"@Override\n public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {\n Permanent before = ((ZoneChangeEvent) event).getTarget();\n if (before == null) {\n return false;\n }\n if (!(before instanceof PermanentToken) && !this.hasSourceObjectAbility(game, before, event)) {\n return false;\n }\n // check now it is in graveyard\n if (before.getZoneChangeCounter(game) + 1 == game.getState().getZoneChangeCounter(sourceId)) {\n Zone after = game.getState().getZone(sourceId);\n return after != null && Zone.GRAVEYARD.match(after);\n } else {\n // Already moved to another zone, so guess it's ok\n return true;\n }\n }",
"public void checkOverDue() {\n\t\tif (state == loanState.current && //changed 'StAtE' to 'state' and ' lOaN_sTaTe.CURRENT to loanState.current\r\n\t\t\tCalendar.getInstance().getDate().after(date)) { //changed Calendar.gEtInStAnCe to Calender.getInstance and gEt_DaTe to getDate and DaTe to date\r\n\t\t\tthis.state = loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\t\t\t\r\n\t\t} //added curly brackets\r\n\t}",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"@Override\n protected boolean tryAcquire(long value) {\n return counter.longValue() > value;\n }",
"public int canPoseBombAndStillBeSafe() {\n Player currentPlayer = state.getCurrentPlayer();\n List<Player> players = state.getPlayers();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n for (Player p : players) {\n if (!p.equals(currentPlayer)) {\n if (canBombThisEnemyAndRunSafe(currentPlayer,p)) {\n return 1;\n }\n }\n }\n return 0;\n }",
"java.lang.Long getToasterDoneness();",
"public boolean isLegal() {\n return !this.isBroken() && (this.getId() >= 0 || !this.isExisted());\n }",
"public boolean hasVar64() {\n return fieldSetFlags()[65];\n }",
"public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"private boolean caughtTwenty(){\n\t\treturn (theTrainer.getPokedex().size() >= 20);\n\t}",
"public boolean isWin_LordRust(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 3){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }",
"private boolean checkIsValid(BankClient client, Message message) {\n int lastDigit = message.getMessageContent() % BASE_TEN;\n int amount = message.getMessageContent() / BASE_TEN;\n if (lastDigit <= DEPOSIT_WITHDRAWAL_FLAG) {\n return amount <= client.getDepositLimit();\n } else {\n return amount <= client.getWithdrawalLimit();\n }\n }",
"public boolean isTargetTerritoryValid() {\n return isTargetTerritoryOneBlockAway();\n }",
"public boolean isAssignable(DatabaseInfo databaseInfo) {\n return isAssignable(databaseInfo, start()).result() <= 0;\n }",
"public boolean hasDefense() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"public boolean couldWrap(Cargo other) {\n return getCarrierTarget() == other.getCarrierTarget()\n && getNewSpace() < 0 && other.getNewSpace() < 0;\n }",
"public boolean canDonate() {\n\t\treturn (dataSize() >= Math.ceil(degree / 2.0));\n\t}",
"@Override\n public boolean canCharge() {\n return super.canCharge() && !(game.getOptions().booleanOption(\"no_clan_physical\") && isClan());\n }",
"public static boolean m94918c() {\n if (m94912a((Context) BaseApplication.get(), C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA12B637A325EF09985CF7E1\"), false) || m94906a((Context) BaseApplication.get(), C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377F1EAD6D97D\"), 0) >= 3 || System.currentTimeMillis() - m94907a((Context) BaseApplication.get(), C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377E6ECCED2\"), 0L) <= 259200000) {\n return false;\n }\n return true;\n }",
"protected boolean hasFaceDownCard(int playerNo, int cardIndex) {\n return carddowncount[playerNo] >= (3 - cardIndex);\n }",
"long getValidFrom();",
"private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"public boolean getIsInValidGiftCardAttempts() {\r\n if (getInvalidCardErrorCount() > getMaxInvalidGiftCardAttempts()) {\r\n getGiftCardLogger().logActivity(getCurrentUserIP(), \"INVALID GIFT CARD ATTEMPT\");\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }",
"@Override\n public boolean check(RealPlayer realPlayer) {\n for (Map.Entry<Resource, Integer> entry : productionPowerInput.entrySet()) {\n if (entry.getValue() > realPlayer.getPersonalBoard().getSpecificResourceCount(entry.getKey().getResourceType()))\n return false;\n }\n return true;\n }",
"public boolean invariantHolds() {\n \t\t// Check that all bits will fit in byte array\n \t\tfinal int arrayLengthAsBits = value.length*8;\n \t\tif (lengthAsBits > arrayLengthAsBits) { return false; }\n \n \t\t// Check consistency of 'lengthAsBits' and 'bitsInLastByte'\n \t\tfinal int partialByteIndex = (lengthAsBits-1)/8;\n \t\tif (bitsInLastByte != (lengthAsBits - (8*partialByteIndex))) {\n \t\t\treturn false;\n \t\t}\n \t\t// Special case for empty bitsets since they will have\n \t\t// 'partialByteIndex'==0, but this isn't a legal index into\n \t\t// the byte array\n \t\tif (value.length==0) { return true; }\n \n \t\t// Check that the last used (possibly partial) byte doesn't\n \t\t// contain any unused bit positions that are set.\n \t\tbyte partialByte = value[partialByteIndex];\n \t\tpartialByte <<= bitsInLastByte; // must be zero after shift\n \n \t\t// Check the remaining completely unused bytes (if any)\n \t\tfor (int i = partialByteIndex+1; i < value.length; ++i) {\n \t\t\tpartialByte |= value[i];\n \t\t}\n \t\treturn (partialByte==0);\n \t}",
"public void setAnyShortExces(long value) {\n this.anyShortExces = value;\n }",
"@java.lang.Override\n public boolean hasCorrect() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }",
"public boolean canTrade()\n\t{\n\t\treturn System.currentTimeMillis() - m_lastTrade > 60 * 1000 && getPartyCount() >= 2;\n\t}",
"boolean isLimited();",
"public boolean isWin_LordSelachii(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 2){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public boolean affordTown() {\n \t\treturn (FREE_BUILD || towns < MAX_TOWNS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1\n \t\t\t\t&& getResources(Type.WOOL) >= 1);\n \t}",
"static boolean canWin() throws GameActionException {\n\t\tfloat difference = 1000 - rc.getTeamVictoryPoints();\n\t\tif ((rc.getTeamBullets() / 10) >= difference) {\n\t\t\trc.donate(rc.getTeamBullets());\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}",
"private boolean check(int[] bestPoint) {\n\t\tif (bestPoint[0] > Mirror.spec || bestPoint[1] > Mirror.spec || bestPoint[0] < width - Mirror.spec\n\t\t\t\t|| bestPoint[1] < width - Mirror.spec) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}",
"public boolean nearMaxRescue() {\n double water = this.waterLevel;\n double no = (this.configuration.getMaximalLimitLevel()\n - this.configuration.getMaximalNormalLevel()) / 2;\n if (water > this.configuration.getMaximalLimitLevel()\n || water > this.configuration.getMaximalLimitLevel() - no) {\n return true;\n } else if (water < this.configuration.getMinimalLimitLevel()\n || water < this.configuration.getMinimalLimitLevel() + no) {\n\n return true;\n }\n return false;\n }"
] | [
"0.5750266",
"0.5532411",
"0.53819335",
"0.5371478",
"0.53574437",
"0.5340737",
"0.53394926",
"0.5321141",
"0.5298979",
"0.5221138",
"0.5215806",
"0.5211697",
"0.52102447",
"0.52078146",
"0.51961374",
"0.51924783",
"0.51702493",
"0.51690805",
"0.5142603",
"0.5139556",
"0.5130949",
"0.5114381",
"0.5107259",
"0.51058567",
"0.5105714",
"0.5099574",
"0.50882405",
"0.5081936",
"0.5081281",
"0.50731",
"0.5068511",
"0.50666493",
"0.5059119",
"0.50579715",
"0.50545937",
"0.50537884",
"0.50525796",
"0.5050599",
"0.5047941",
"0.5033551",
"0.5033266",
"0.5027063",
"0.50172114",
"0.5016933",
"0.501389",
"0.5013599",
"0.50102836",
"0.50022733",
"0.49972823",
"0.49938625",
"0.49924043",
"0.499144",
"0.49877873",
"0.49865267",
"0.49841923",
"0.49776638",
"0.49752152",
"0.4974738",
"0.49744913",
"0.4968375",
"0.4967887",
"0.49623415",
"0.49606478",
"0.4959085",
"0.49580622",
"0.49534234",
"0.4949116",
"0.49462014",
"0.49400562",
"0.49392366",
"0.49364585",
"0.4933202",
"0.49269667",
"0.49261183",
"0.49251404",
"0.49242532",
"0.49230576",
"0.49209487",
"0.49209332",
"0.49205053",
"0.49185735",
"0.4914054",
"0.49139082",
"0.4909845",
"0.49079007",
"0.49036083",
"0.49031913",
"0.48979014",
"0.48894256",
"0.48853526",
"0.48834935",
"0.4882233",
"0.48763648",
"0.48755932",
"0.4874449",
"0.4872505",
"0.48695332",
"0.48691836",
"0.4861934",
"0.4859091",
"0.48583913"
] | 0.0 | -1 |
Reset indicator for whether can castle. | public void resetCastling() {
this.castling = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset() {\n this.inhibited = false;\n this.forced = false;\n }",
"public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}",
"protected void reset(){\n inited = false;\n }",
"public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }",
"public void reset(){\n active = false;\n done = false;\n state = State.invisible;\n curX = 0;\n }",
"protected abstract boolean reset();",
"public void reset(){\n if (isValidated()) resetAndUnblock();\n }",
"private void resetCardStates() {\n // Clear newcomers\n for (CardView cardView : cardViews) {\n cardView.setNewcomer(false);\n }\n }",
"public void resetTossedStatus(){\n\t\tdiceTossed = false;\n\t}",
"boolean reset();",
"public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }",
"@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}",
"public void reset() {\n this.done = false;\n }",
"public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }",
"public void reset(){\r\n \tdefaultFlag = false;\r\n }",
"public void reset() {\r\n active.clear();\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n rolled = 0;\r\n phase = 0;\r\n round = 0;\r\n action = 0;\r\n }",
"public void resetAndUnblock()\n {\n resetTriesRemaining();\n setValidatedFlag(false);\n\t}",
"public boolean reset();",
"public void reset(){\n paycheckController.reset();\n }",
"public void resetValid()\n\t{\n\t\tthis.valid = true;\n\t}",
"private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }",
"public void checkState() {\r\n\t\tout.println(state);\r\n\t\tif(getEnergy() < 80 && getOthers() > 5) {\r\n\t\t\tstate = 1;\r\n\t\t\tturnLeft(getHeading() % 90);\r\n\t\t\tahead(moveAmount);\r\n\t\t}\r\n\t\telse if(getEnergy() < 80 && getOthers() < 5) {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void deactivateCOP(){\r\n COP = false;\r\n }",
"public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }",
"public void setCargoIntookState() {\n redLED.set(true);\n greenLED.set(false);\n blueLED.set(false);\n }",
"public void settle() {\n\t\tif (status.equals(FacturaStatus.ABONADA)) {\n\t\t\tthrow new IllegalStateException(\"La factura ya está abonada.\");\n\t\t} else if (this.sumarCargos() != importe) {\n\t\t\tthrow new IllegalStateException(\"Los pagos hehcos no cubren el total del importe de la factura.\");\n\t\t} else {\n\t\t\tthis.status = FacturaStatus.ABONADA;\n\t\t}\n\t}",
"public void reset()\n {\n m_fCorrectEvent = false;\n }",
"public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }",
"public void reset(){\n\t\topen[0]=false;\n\t\topen[1]=false;\n\t\topen[2]=false;\n\t\tcount = 0;\n\t\t//System.out.println(\"The lock has been reset.\");\n\t}",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }",
"public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }",
"public void resetOvers(){\n over0 = false;\r\n over1 = false;\r\n over2 = false;\r\n over3 = false;\r\n over4 = false;\r\n over5 = false;\r\n over6 = false;\r\n over7 = false;\r\n over8 = false;\r\n }",
"public void reset() {\n finished = false;\n }",
"public final boolean reset() {\n return resetcontrols() ? fireChange() : false;\n\n }",
"public void reinitAff()\n\t{\n\t\tthis.gagne = false;\n\t\tthis.perdu = false;\n\t}",
"public void setWithdraw() {\n viewState.setWithdraw(true);\n }",
"public ChineseCheckersState() {\n reset();\n }",
"public void resetAttackAttempts() {\r\n\t\tattackAttempts = 0;\r\n\t}",
"public void turn_off () {\n this.on = false;\n }",
"public void resetState();",
"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}",
"protected abstract boolean resetcontrols();",
"public void setCargoOuttakeState() {\n greenLED.set(true);\n redLED.set(false);\n blueLED.set(false);\n }",
"private void unsetWorking(){\n\t\tcalibrationButtonImageView.setClickable(true);\n\t\tcalibrationButtonImageView.setEnabled(true);\n progressDialog.dismiss();\n\t}",
"private void resetValidMove()\n {\n validMoves = null;\n setToValidMoveColor = false;\n validMoveFlag = false;\n }",
"private void breakSpecialState() {\n this.inSpecialState = false;\n this.resetXMovement();\n }",
"public void resetMovementAttempts() {\r\n\t\tmovementAttempts = 0;\r\n\t}",
"public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}",
"public void reset() // reset method start\n\t\t{\n\t\t\tcreditBox1.setSelectedIndex(0);\n\t\t\tcreditBox1.setEnabled(false);\n\t\t\tcreditBox2.setSelectedIndex(0);\n\t\t\tamountField1.setText(\"0.00\");\n\t\t\tamountField2.setText(\"0.00\");\n\t\t\tcheckBox.setSelected(false);\n\t\t}",
"public void reset() {\r\n\r\n b1.setText(\"\");\r\n b1.setEnabled(true);\r\n\r\n b2.setText(\"\");\r\n b2.setEnabled(true);\r\n\r\n b3.setText(\"\");\r\n b3.setEnabled(true);\r\n\r\n b4.setText(\"\");\r\n b4.setEnabled(true);\r\n\r\n b5.setText(\"\");\r\n b5.setEnabled(true);\r\n\r\n b6.setText(\"\");\r\n b6.setEnabled(true);\r\n\r\n b7.setText(\"\");\r\n b7.setEnabled(true);\r\n\r\n b8.setText(\"\");\r\n b8.setEnabled(true);\r\n\r\n b9.setText(\"\");\r\n b9.setEnabled(true);\r\n\r\n win = false;\r\n count = 0;\r\n }",
"public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }",
"public void resetBoard() {\r\n //remove the potential winning cards after winner is picked\r\n cardSix.setText(\"\");\r\n cardSeven.setText(\"\");\r\n cardEight.setText(\"\");\r\n \r\n //change turn count\r\n if (turnCount == 4) {\r\n turnCount = 1;\r\n }\r\n else {\r\n turnCount++; \r\n }\r\n \r\n //if the player isnt the cardmaster, enable their cards\r\n if (turnCount != myNumber) {\r\n cardOne.setEnabled(true);\r\n cardTwo.setEnabled(true);\r\n cardThree.setEnabled(true);\r\n cardFour.setEnabled(true);\r\n cardFive.setEnabled(true); \r\n cardSix.setEnabled(false);\r\n cardSeven.setEnabled(false);\r\n cardEight.setEnabled(false); \r\n }\r\n if (turnCount == myNumber) {\r\n cardSix.setEnabled(true);\r\n cardSeven.setEnabled(true);\r\n cardEight.setEnabled(true);\r\n JOptionPane.showMessageDialog(null, \"You are the CardMaster for this turn.\");\r\n }\r\n }",
"public void ResetClimbEncoders() {\n leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }",
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"public void resetMove() {\n\t\tthis.moveMade = false;\n\t}",
"public void reset() {\r\n\r\n for ( Card card : cards ) {\r\n if ( card.isFaceUp() ) {\r\n card.toggleFace( true );\r\n }\r\n }\r\n Collections.shuffle( cards );\r\n\r\n this.undoStack = new ArrayList<>();\r\n\r\n this.moveCount = 0;\r\n\r\n announce( null );\r\n }",
"public void unsetReset() {\n\t\twasReset=false;\n\t}",
"public void reset() // reset method start\n\t\t{\n\t\t\tdebitBox1.setSelectedIndex(0);\n\t\t\tdebitBox2.setSelectedIndex(0);\n\t\t\tamountField1.setText(\"0.00\");\n\t\t\tamountField2.setText(\"0.00\");\n\t\t\tcheckBox.setSelected(false);\n\t\t}",
"public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }",
"void reset() {\n myIsJumping = myNoJumpInt;\n setRefPixelPosition(myInitialX, myInitialY);\n setFrameSequence(FRAME_SEQUENCE);\n myScoreThisJump = 0;\n // at first the cowboy faces right:\n setTransform(TRANS_NONE);\n }",
"public synchronized void reset(){\n\t\tif(motor.isMoving())\n\t\t\treturn;\n\t\tmotor.rotateTo(0);\n\t}",
"public void resetOvladani() {\n this.setEnabled(true);\n gameConnectButton.setEnabled(true);\n gameConnectButton.setText(\"Pripoj ke hre\");\n\n newGameButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n\n zalozenaHra = false;\n\n }",
"public void reset() {\n\t\txD = x;\n\t\tyD = y;\n\t\taction = 0;\n\t\tdir2 = dir;\n\t\tvisibleToEnemy = false;\n\t\tselected = false;\n\t\t\n\t\tif (UNIT_R == true) {\n\t\t\t// dir = 0;\n\t\t} else if (UNIT_G == true) {\n\t\t\t// dir = 180 / 2 / 3.14;\n\t\t}\n\t}",
"public void ResetData(boolean check) {\n }",
"public void reset() {\n\n\t\tazDiff = 0.0;\n\t\taltDiff = 0.0;\n\t\trotDiff = 0.0;\n\n\t\tazMax = 0.0;\n\t\taltMax = 0.0;\n\t\trotMax = 0.0;\n\n\t\tazInt = 0.0;\n\t\taltInt = 0.0;\n\t\trotInt = 0.0;\n\n\t\tazSqInt = 0.0;\n\t\taltSqInt = 0.0;\n\t\trotSqInt = 0.0;\n\n\t\tazSum = 0.0;\n\t\taltSum = 0.0;\n\t\trotSum = 0.0;\n\n\t\tcount = 0;\n\n\t\tstartTime = System.currentTimeMillis();\n\t\ttimeStamp = startTime;\n\n\t\trotTrkIsLost = false;\n\t\tsetEnableAlerts(true);\n\n\t}",
"public void reset(){\n super.reset();\n this.troef = CardColor.NONE;\n }",
"public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }",
"public void resetCarte(){\n\t\tnumAGRICOLI = 0;\n\t\tnumARIDI = 0;\n\t\tnumFIUMI = 0;\n\t\tnumFORESTE = 0;\n\t\tnumMONTAGNE = 0;\n\t\tnumPRATI = 0;\n\t}",
"public boolean initialize() {\n return reset();\n }",
"public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}",
"public void initialState() {\r\n\t\tfor (int i = 0; i < checkBoxes.length; i++) {\r\n\t\t\tamountBoxes[i].setSelectedIndex(0);\r\n\t\t\tcheckBoxes[i].setSelected(false);\r\n\t\t}\r\n\t}",
"public void reset() {\n this.state = null;\n }",
"public void planted(){\r\n\t\tenable = false; \r\n\t\tcount = 0; \r\n\t}",
"@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}",
"public void resetMoveCtr() {\n\t\t\n\t\t moveCtr=0;\n\t}",
"public void zero()\n {\n Runnable zeroRunnable = new Runnable() {\n @Override\n public void run()\n {\n {\n boolean liftLimit;\n boolean extendLimit;\n\n\n\n do\n {\n liftLimit = liftLimitSwitch.getState();\n extendLimit = extendLimitSwitch.getState();\n\n if (!liftLimit)\n {\n lift.setPower(-0.5);\n }\n else\n {\n lift.setPower(0);\n }\n\n if (extendLimit)\n {\n extend.setPower(-0.5);\n }\n else\n {\n extend.setPower(0);\n }\n\n if (cancel)\n {\n break;\n }\n } while (!liftLimit || !extendLimit);\n\n if (!cancel)\n {\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n extend.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n extend.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n isZeroed = true;\n }\n }\n }\n };\n\n zeroThread = new Thread(zeroRunnable);\n zeroThread.start();\n }",
"public synchronized void reset() {\n }",
"public void resetState() {\n \ts = State.STRAIGHT;\n }",
"public void disconnetti() {\n\t\tconnesso = false;\n\t}",
"public void setCargoIntakeState() {\n blueLED.set(false);\n greenLED.set(false);\n if (!redLED.get() && timer.get() >= pulseTime) {\n redLED.startPulse();\n timer.stop();\n timer.reset();\n }\n else if (redLED.get() && timer.get() > pulseTime) {\n redLED.set(false);\n }\n else {\n timer.start();\n }\n }",
"public void reset()\n {\n Action = new boolean[Environment.numberOfButtons];\n }",
"public void reset() {\n this.isExhausted = false;\n }",
"@Override\n\tpublic void stateCheck() {\n\t\tif(balance<0 && balance>=-1000)\n\t\t{\n\t\t\tacc.setState(new YellowState(this));\n\t\t}\n\t\telse if(balance<-1000)\n\t\t{\n\t\t\tacc.setState(new RedState(this));\n\t\t}\n\t}",
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}",
"public static void variableReset() {\n\t\tLogic.pieceJumped = 0;\n\t\tLogic.bool = false;\n\t\tLogic.curComp = null;\n\t\tLogic.prevComp = null;\n\t\tLogic.jumpedComp = null;\n\t\tLogic.ydiff = 0;\n\t\tLogic.xdiff = 0;\n\t\tLogic.jumping = false;\n\t\tmultipleJump = false;\n\t\t\n\t}",
"void resetInitialState(SpacecraftState state)\n throws OrekitException;",
"public void resetEnc(){\n EncX.reset();\n }",
"public void changepay(){\n pay = !pay;\n }",
"public boolean isReset()\n\t{\n\t\treturn m_justReset;\n\t}",
"public void setResetDisabled(boolean flag) {\n\t\tthis.resetDisabled = flag;\n\t}",
"public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }",
"private void reset() {\n }",
"public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }",
"private static void setNormalState() {\n InitialClass.arduino.serialWrite('0');\n InitialClass.arduino.serialWrite('6');\n InitialClass.arduino.serialWrite('2');\n InitialClass.arduino.serialWrite('8');\n InitialClass.arduino.serialWrite('C');\n InitialClass.arduino.serialWrite('A');\n InitialClass.arduino.serialWrite('4');\n /// hide animated images of scada\n pumpForSolutionOn.setVisible(false);\n pumpForTitrationOn.setVisible(false);\n mixerOn.setVisible(false);\n valveTitrationOpened.setVisible(false);\n valveSolutionOpened.setVisible(false);\n valveWaterOpened.setVisible(false);\n valveOutOpened.setVisible(false);\n\n log.append(\"Клапана закрыты\\nдвигатели выключены\\n\");\n\n }",
"private void resetForNextTurn() {\n\t\tremove(ball);\n\t\tdrawBall();\n\t\tsetInitialBallVelocity();\n\t\tpaddleCollisionCount = 0;\n\t\tpause(2000); \t\t\t\t\n }",
"public final synchronized void reset() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t\tlistenersInline = null;\r\n\t}"
] | [
"0.635816",
"0.6336165",
"0.6207486",
"0.6188199",
"0.6106514",
"0.6098095",
"0.6080186",
"0.60160136",
"0.6010424",
"0.59466106",
"0.5918341",
"0.59000796",
"0.58970636",
"0.589121",
"0.58871096",
"0.5877631",
"0.5848937",
"0.58340824",
"0.58165",
"0.5808997",
"0.5783988",
"0.57752466",
"0.57715684",
"0.5768029",
"0.57590646",
"0.57511765",
"0.5741464",
"0.5739167",
"0.5738076",
"0.57324785",
"0.5732251",
"0.5727039",
"0.57179385",
"0.5717807",
"0.5698334",
"0.56928724",
"0.5684644",
"0.56747943",
"0.567471",
"0.56738263",
"0.5654163",
"0.56536007",
"0.56509036",
"0.56456655",
"0.5641499",
"0.56402385",
"0.5621046",
"0.5616746",
"0.561391",
"0.56050915",
"0.5604359",
"0.55953455",
"0.5591436",
"0.5584142",
"0.55680907",
"0.55531985",
"0.55490476",
"0.55464476",
"0.5540536",
"0.55317384",
"0.5530194",
"0.5528997",
"0.55203253",
"0.5505282",
"0.5499612",
"0.54966927",
"0.548494",
"0.548182",
"0.54798925",
"0.547577",
"0.54591393",
"0.5454575",
"0.54524124",
"0.5450617",
"0.5448925",
"0.5443329",
"0.54388523",
"0.54371727",
"0.54223573",
"0.5419181",
"0.5417929",
"0.54168224",
"0.5415537",
"0.5409929",
"0.540815",
"0.5406276",
"0.5393929",
"0.53842616",
"0.5383545",
"0.53818893",
"0.53791976",
"0.5378871",
"0.5378838",
"0.53729063",
"0.5370748",
"0.53685313",
"0.5367473",
"0.5365251",
"0.5363968",
"0.53638685"
] | 0.5408033 | 85 |
TODO need better error mapping | @Override
public void onFailure(final Throwable t) {
final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);
error.setThrowable(t);
try {
listener.onResponse(transaction, "", error);
} catch (final RemoteException e) {
Log.e(TAG, "Failed to respond", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"abstract void error(String error);",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public interface Error {\n String getError();\n\n String getIdentifier();\n}",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"java.util.List<WorldUps.UErr> \n getErrorList();",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"protected abstract void error(String err);",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"ValidationError getValidationError();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"java.lang.String getErr();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0) {\n\n\t}",
"public String error();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0) {\n\n\t}",
"WorldUps.UErr getError(int index);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\t\tpublic void loadError() {\n\t\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"public void error();",
"@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public void correctErrors();",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"protected interface ProvideError {\n Exception getError();\n }",
"@Override\n\tpublic void VisitErrorNode(LegacyErrorNode Node) {\n\n\t}",
"@Override\n @SuppressWarnings(\"all\")\n protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\n HttpHeaders headers, HttpStatus status,\n WebRequest request) {\n Map<String, Object> hashMap = new LinkedHashMap<>();\n Map<String, Set<String>> setMap = ex.getBindingResult()\n .getFieldErrors()\n .stream()\n .collect(Collectors.groupingBy(\n FieldError::getField,\n Collectors.mapping(FieldError::getDefaultMessage, Collectors.toSet())));\n hashMap.put(\"errors\", setMap);\n return new ResponseEntity<>(hashMap, headers, status);\n }",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"protodef.b_error.info getError();",
"protodef.b_error.info getError();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"abstract void errorLogError(String error);",
"@Override\n\tpublic void error(Marker marker, String message, Object... params) {\n\n\t}",
"String getInvalidMessage();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"private ModelValidationException constructFieldException (String fieldName, \n\t\tString key)\n\t{\n\t\treturn constructFieldException(ModelValidationException.ERROR, \n\t\t\tfieldName, key);\n\t}",
"private void error(String string) {\n\t\r\n}",
"@Override\n\tpublic void error(Marker marker, Object message, Throwable t) {\n\n\t}",
"String getErrorMessage();",
"String getErrorMessage();",
"public void inquiryError() {\n\t\t\n\t}",
"private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}",
"private String resolveLocalizedErrorMessage(ObjectError fieldError) {\n\t\tString[] fieldErrorCodes = fieldError.getCodes();\n\t\tString localizedErrorMessage = fieldErrorCodes[0];\n\n\t\treturn localizedErrorMessage;\n\t}",
"void notSupported(String errorcode);",
"String getErrorsString();",
"@Override\n\tpublic void error(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public abstract void\n fail(ValidationError error);",
"private void addError(String field, String error, Object value) {\n if (errors == null) {\n errors = new LinkedHashMap<String, FieldError>();\n }\n LOG.debug(\"Add field: '{}' error: '{}' value: '{}'\", field, error, value);\n errors.put(field, new FieldError(field, error, value));\n }",
"@Override\n public void onError() {\n\n }",
"@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public ERRORDto validateBus();",
"public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}",
"public Map getError() {\n return this.error;\n }",
"public WorldUps.UErr getError(int index) {\n return error_.get(index);\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }",
"@Override\n\tpublic void error(Marker marker, String message, Throwable t) {\n\n\t}",
"protected <M> M validationError(Class<M> type) {\n Option<Object> err = actual.getValidationError(0);\n if (err.isEmpty()) {\n throwAssertionError(new BasicErrorMessageFactory(\"Expected a Result with validation errors, but instead was %s\",\n actualToString()));\n }\n return type.cast(err.get());\n }",
"public abstract Error errorCheck(Model m, String command);",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"Object getFailonerror();",
"Object getFailonerror();"
] | [
"0.6703367",
"0.65186447",
"0.65186447",
"0.65186447",
"0.64600277",
"0.6432866",
"0.6415474",
"0.6371929",
"0.63717926",
"0.6329687",
"0.6297717",
"0.62760216",
"0.62574446",
"0.6256946",
"0.6247701",
"0.6215194",
"0.6211002",
"0.6206051",
"0.6199306",
"0.6197895",
"0.6161868",
"0.61514646",
"0.6149024",
"0.6146008",
"0.61366045",
"0.6122239",
"0.6119773",
"0.61171985",
"0.61028296",
"0.60971797",
"0.6096599",
"0.608518",
"0.6077476",
"0.60651135",
"0.6056991",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.60459435",
"0.6043924",
"0.60402054",
"0.60331833",
"0.601602",
"0.60128236",
"0.6011461",
"0.6006997",
"0.60039574",
"0.60019433",
"0.5997786",
"0.5997786",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59833276",
"0.5980027",
"0.5970503",
"0.59667915",
"0.59590745",
"0.5947293",
"0.5942677",
"0.5926826",
"0.59254885",
"0.5915411",
"0.5913032",
"0.5911358",
"0.5911358",
"0.59061116",
"0.59040916",
"0.5898863",
"0.58983094",
"0.58971286",
"0.5885852",
"0.5880153",
"0.58725536",
"0.5855191",
"0.5853197",
"0.5853009",
"0.58527035",
"0.5848247",
"0.5841551",
"0.58367336",
"0.5829193",
"0.5822774",
"0.5816908",
"0.5816498",
"0.5813609",
"0.58023256",
"0.579508",
"0.5788692",
"0.57863444",
"0.57863444"
] | 0.0 | -1 |
nothing to update for debit | @Override
public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {
if (Boolean.TRUE.equals(transaction.getFundingSource().isDebit())) {
listener.onResponse(transaction, requestId, null);
return;
}
// update in converge
final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(
transaction.getFundingSource().getEntryDetails(),
transaction.getProcessorResponse().getRetrievalRefNum(),
adjustTransactionRequest);
convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {
@Override
public void onResponse(final ElavonTransactionResponse elavonResponse) {
try {
if (elavonResponse.isSuccess()) {
// if it's MSR and if we have signature it's a separate call
if (transaction.getFundingSource().getEntryDetails().getEntryMode() == EntryMode.TRACK_DATA_FROM_MAGSTRIPE
&& adjustTransactionRequest.getSignature() != null) {
updateSignature(transaction, adjustTransactionRequest, requestId, listener);
} else {
listener.onResponse(transaction, requestId, null);
}
} else {
listener.onResponse(transaction, requestId, new PoyntError(PoyntError.CODE_API_ERROR));
}
} catch (final RemoteException e) {
Log.e(TAG, "Failed to respond", e);
}
}
@Override
public void onFailure(final Throwable t) {
final PoyntError error = new PoyntError(PoyntError.CODE_API_ERROR);
error.setThrowable(t);
try {
listener.onResponse(transaction, requestId, error);
} catch (final RemoteException e) {
Log.e(TAG, "Failed to respond", e);
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"private void makeWithdraw() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debit() {\n\t\tSystem.out.println(\"hsbc debit\");\n\t}",
"@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}",
"public void deposit();",
"@Override\r\npublic void deposit() {\n\t\r\n}",
"private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public void update() {\n\t\n\tif(getBalance() > 0) {\n\t\tcanWithdraw = true;\n\t}else {canWithdraw = false;}//end else statement\n}",
"public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}",
"public void makeDeposit() {\n deposit();\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"@Test\n public void updateDecline() throws Exception {\n }",
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }",
"@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"private static void verifPayement(){\n\t\tint x,y, dime;\n\t\tx=jeu.getAssam().getXPion()-1;\n\t\ty=jeu.getAssam().getYPion()-1;\n\t\tint caseInfoTapis = jeu.cases[x][y].getCouleurTapis();\n\t\tif(caseInfoTapis == tour || caseInfoTapis == 0){\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\tdime = jeu.payerDime(caseInfoTapis,x,y,0,new boolean[7][7]);\n\t\t\tJoueur payeur = jeu.getJoueurs()[tour-1];\n\t\t\tJoueur paye = jeu.getJoueurs()[caseInfoTapis-1];\n\t\t\tif(jeu.payerVraimentDime(payeur,paye,dime)){\n\t\t\t\tjoueurElimine++;\n\t\t\t}\n\t\t\tconsole.afficherPayeurPaye(payeur, paye, dime);\n\t\t}\n\t}",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }",
"void purchaseMade();",
"@Override\n\tpublic int updateTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"@Override\r\n\tpublic double deductAccountMaintenanceFee() {\n\t\tif (this.getBalance() < 250.0)\r\n\t\t\treturn super.withdraw(250.0);\r\n\t\telse \r\n\t\t\treturn this.getBalance();\r\n\t\t\r\n\t}",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void nonSyncdeposit(double amount)\r\n\t {\r\n\t if(amount<0){//if deposit amount is negative\r\n\t \t System.out.println(\"Invalid amount cannot deposit\");\r\n\t }\r\n\t else{ //logic to deposit amount\r\n\t\t System.out.print(\"Depositing \" + amount);\r\n\t double newBalance = balance + amount;\r\n\t System.out.println(\", new balance is \" + newBalance);\r\n\t balance = newBalance;\r\n\t }\r\n\t }",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }",
"private void credit(JDA jda)\n {\n return;\n }",
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"void clearFunds() {\n\t\tbalance += cheque;\n\t\tcheque = 0;\n\t}",
"@Override\r\n public void pay() {\n }",
"private void getDetailedDebitAgingNONE(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n //Get and revert all updates made to all transactions from atDate to today.\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n EMCQuery settlementQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settlementQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) > 0) {\n //Debit\n settlementQuery.addFieldAggregateFunction(\"debitSettled\", \"SUM\");\n settlementQuery.addAnd(\"debitTransRef\", agingLine.getTransRecordID());\n //When changing the following line, note that the customer statement and detailed aging reports will be affected.\n settlementQuery.addOrderBy(\"debitTransactionDate\");\n } else {\n //Credit\n settlementQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n settlementQuery.addAnd(\"creditTransRef\", agingLine.getTransRecordID());\n //When changing the following line, note that the customer statement and detailed aging reports will be affected.\n settlementQuery.addOrderBy(\"creditTransactionDate\");\n }\n\n BigDecimal totalSettled = (BigDecimal) util.executeSingleResultQuery(settlementQuery, userData);\n\n if (totalSettled == null) {\n totalSettled = BigDecimal.ZERO;\n }\n\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) > 0) {\n //Debit\n agingLine.setBalance(agingLine.getBalance().add(totalSettled));\n } else {\n agingLine.setBalance(agingLine.getBalance().subtract(totalSettled));\n }\n }\n }\n }",
"public void debit(float f){\n\t\taccount.debit(f);\n\t\tSystem.out.println(\"\\t- \"+ f + \" euros are debited from \" + this + \" account whose balance is now \" +account);\n\t\t\n\t}",
"@Override\r\n public double purchaseFee(){\r\n return fee;\r\n }",
"private void makeDeductionsfromPayments(int walletid, int due,int bal,ArrayList<Integer> l) {\n\t\tArrayList<Integer> l1=l;\n\t\tint toPay=due;\n\t\tint pocket=bal;\n\t\tint id=walletid;\n\t\tint deduction=pocket-toPay;\n\t\tString str=\"update wallet set balance=\"+deduction+\" where walletId=\"+id;\n\t\ttry {\n\t\t\tint count=stmt.executeUpdate(str);\n\t\t\n\t\t\t\tupdateOrders(id,l1);\n\t\t\t\tupdatePayments(id,toPay);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void fundClosed(int time, int yourRevenue, int partnerRevenue) {\n /* Do nothing */\n }",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"public void credits() {\n\t}",
"public static void clear() {\r\n\t\tload();\r\n\t\tif (transList.size() == 0) {\r\n\t\t\tSystem.out.println(\"No transaction now....\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\tif (transList.get(i).toFile().charAt(0) == 'd') {\r\n\t\t\t\tDeposit trans = (Deposit) transList.get(i);\r\n\t\t\t\tif (!trans.isCleared()) {\r\n\t\t\t\t\ttrans.setCleared(AccountControl.deposit(trans.getAcc(), trans.getAmount()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsave();\r\n\t}",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"public void discharge() {\n\t\tstate = loanState.DISCHARGED; //changed 'StAtE' to 'state' and lOaN_sTaTe.DISCHARGED to loanState.DISCHARGED\r\n\t}",
"@Override\n\tpublic int update(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"@Override\r\n public void dispenseProduct() {\r\n System.out.println(\"Insufficient funds!\");\r\n\r\n }",
"@Override\n public void deposit(double amount) {\n super.deposit(amount);\n store_trans(amount);\n }",
"private void remplirFabricantData() {\n\t}",
"@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}",
"public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"@Override\n public void updateBudgetPassed() {\n }",
"@Override\n public BigDecimal withdraw(Account account, BigDecimal bigDecimal) {\n return null;\n }",
"public boolean saveDown() {\n if (\n cashFlow == null ||\n cashFlow.getDetail() == null ||\n cashFlow.getDetail().isEmpty()\n ) {\n System.out.println(\"invalid model store\");\n return false;\n }\n boolean cashFlowSaveResult = CashFlow.save(cashFlow);\n\n // save cash flow failure case\n if (!cashFlowSaveResult) {\n System.out.println(\"query false\");\n return false;\n }\n\n // get owe per provider\n boolean owe_log = true;\n int pointer = 0;\n final Map<String, Integer> providerIndex = new HashMap<>();\n final int nrow = cashFlow.getDetail().size();\n final int[] owe = new int[nrow];\n for (Payable p: cashFlow.getDetail()) {\n String prvId = p.getProviderId();\n if (providerIndex.containsKey(prvId)) {\n owe[ providerIndex.get(prvId) ] += p.getPrice();\n } else {\n providerIndex.put(prvId, pointer);\n owe[ pointer ] = p.getPrice();\n pointer++;\n }\n }\n for (String k: providerIndex.keySet()) {\n owe_log = owe_log &&\n db.send(\"UPDATE NhaCungCap SET NoPhaiTra = NoPhaiTra + \"\n + owe[ providerIndex.get(k) ]\n + \" WHERE MaNCC = \" + k);\n }\n if (!owe_log) {\n System.out.println(\"update own false\");\n }\n return owe_log;\n }",
"public void credit(){\n\t\tSystem.out.println(\"hdfcbank credited\");\n\t\t\n\t}",
"Transfer updateChargeBack(Transfer transfer, Transfer chargeback);",
"public final void mo12625b() {\n if (mo9140c() != null) {\n PkState pkState = (PkState) LinkCrossRoomDataHolder.m13782a().get(\"data_pk_state\");\n if (!this.f13397e && pkState == PkState.PENAL) {\n this.f13396d.f11684v = true;\n this.f13396d.f11680r = 0;\n this.f13397e = true;\n this.f13398f = true;\n ((C3245ad) ((LinkPKApi) C9178j.m27302j().mo22373b().mo10440a(LinkPKApi.class)).battleInvite(this.f13396d.f11665c).mo19297a((C7494t<T, ? extends R>) mo13033u())).mo10183a(new C4708ga(this), new C4709gb(this));\n }\n }\n }",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}",
"public AppliedHoldInfo() {\n }",
"public void clearUpadted() {\n this.updated = false;\n }",
"@Override\n\tpublic void transferBalnace() {\n\t\tSystem.out.println(\"balance is transferd\");\n\t}",
"void unsetAmount();",
"void setDeducted(double deducted) {\n this.deducted = deducted;\n }",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"public void changepay(){\n pay = !pay;\n }",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}",
"public void credit(){\n\t\tSystem.out.println(\"HSBC BANK :: CREDIT\");\n\t}",
"boolean debit(TransactionRequest transaction) throws ebank.InsufficientBalanceException,ebank.CardNumberException, SQLException, ClassNotFoundException;",
"public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }",
"private void calculateDebtDistribution() {\n calculateDebtDistribution(false);\n }",
"private boolean actualizarBPartner() {\n if (!isReceipt() && getC_BPartner_ID() != 0 && !isAllocated()) {\n MBPartner bp = new MBPartner(getCtx(), getC_BPartner_ID(), get_TrxName());\n BigDecimal previo = bp.getTotalOpenBalance();\n BigDecimal actual = Env.ZERO;\n\n BigDecimal monto = getAllocatedAmt();\n if (monto == null) {\n monto = Env.ZERO;\n }\n\n //\tSuma el monto no asignado del pago, al saldo del proveedor\n actual = previo.add(getPayAmt().add(monto));\n\n bp.setTotalOpenBalance(actual);\n return bp.save();\n }\n else\n return false;\n }",
"public void resetAmountBought() {\n //System.out.println(\"Resetting amount bought for \" + clientName + \"...\");\n amountBought = 0;\n }",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }",
"public void setBalance(){\n balance.setBalance();\n }",
"private void bid() {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdct4--;\r\n\t\t\t\tif(dct4<0){\r\n\t\t\t\t\tdct4 = 0;\r\n\t\t\t\t\tdttotal = dttotal - 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdct4 = dct4;\r\n\t\t\t\t\tdttotal = dttotal - 120;\r\n\t\t\t\t}\r\n\t\t\t\tdtAdd4.setText(\"\" + dct4);\r\n\t\t\t\tdtotal.setText(\"Bill Scratch Pad : To Pay tk. \" + dttotal);\r\n\t\t\t}",
"private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\trestoredata();\n\t\t\tcontractDetail.update();\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0007\", \"\", msgObjIdx, messages);\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t}",
"public void mo23023f() {\n this.f26122b.edit().putLong(\"has.ask.rate.at\", -1).apply();\n }",
"@Override\n public boolean withdraw(double amount) {\n boolean res = store_trans(amount*-1);\n\n if(res){\n res=super.withdraw(amount);\n }\n\n return res;\n }",
"@Override\n\tpublic void deposit(double d) {\n\t\tsuper.deposit(d);\n\t\tSystem.out.println(\"Checking deposit made: \" + d);\n\t}",
"public void deleteUniversalDeal() {\r\n/* 149 */ this._has_universalDeal = false;\r\n/* */ }",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"void deposit(double amount){\r\n\t\t//add to the current balance the amount\r\n\t\t setBalance(getBalance() + amount);\r\n\t }",
"public void spendAllMoney() {\n\t\tcurrentBalance = 0;\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"public void mraiExpire() {\n for (int tDest : this.dirtyDest) {\n this.sendUpdate(tDest);\n }\n this.dirtyDest.clear();\n }",
"@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}",
"@Override\n public boolean deposit(Account account, BigDecimal amount) {\n return false;\n }",
"public void debit(double amountDebit){\n\t\tif(amountDebit < 0)\n\t\t\tthrow new IllegalArgumentException();\n\t\t//Think about throw an exception if you don't allow the inhabitant to have an overdraft ! Here we allow it. \n\t\tthis.money= this.money - amountDebit;\n\t}",
"public void credit() {\n\t\tSystem.out.println(\"HSBC---credit\");\n\t}",
"public void credit() {\n\t\tSystem.out.println(\"HSBC---credit\");\n\t}",
"@Override\n\tpublic void tranfermoney() {\n\t\tSystem.out.println(\"hsbc tranfermoney\");\n\t}"
] | [
"0.6627483",
"0.65452135",
"0.65063894",
"0.64031434",
"0.6387207",
"0.6230513",
"0.611743",
"0.6058446",
"0.6049979",
"0.5997231",
"0.5970044",
"0.59680223",
"0.59532464",
"0.59294844",
"0.59263307",
"0.5918921",
"0.5911168",
"0.58792055",
"0.5849521",
"0.5825027",
"0.58089775",
"0.57962114",
"0.57902145",
"0.57750314",
"0.5772899",
"0.5767036",
"0.5765724",
"0.57538706",
"0.57319903",
"0.5728735",
"0.57259655",
"0.5723306",
"0.57132584",
"0.57101023",
"0.5697699",
"0.5687158",
"0.56688976",
"0.56678003",
"0.56669956",
"0.5662528",
"0.56445193",
"0.5639334",
"0.5636265",
"0.56345755",
"0.5634261",
"0.5626362",
"0.562623",
"0.56187654",
"0.56133205",
"0.5603676",
"0.5601872",
"0.56011933",
"0.55998415",
"0.55976105",
"0.55935746",
"0.55898327",
"0.55871",
"0.5569222",
"0.55662477",
"0.555702",
"0.55569905",
"0.55532783",
"0.5553249",
"0.5552083",
"0.5548324",
"0.55475116",
"0.55381924",
"0.5535965",
"0.5535965",
"0.55314577",
"0.55314577",
"0.5528808",
"0.55286354",
"0.55232316",
"0.55142987",
"0.551342",
"0.5510088",
"0.5509651",
"0.5500933",
"0.54974824",
"0.5489663",
"0.5487447",
"0.548578",
"0.54856974",
"0.5480718",
"0.54801387",
"0.5478503",
"0.54776245",
"0.5477113",
"0.5472047",
"0.5466191",
"0.54645604",
"0.5462952",
"0.5460768",
"0.5459005",
"0.54570806",
"0.5452615",
"0.5447146",
"0.544624",
"0.544624",
"0.5444242"
] | 0.0 | -1 |
Record EMV data from Card after completing a transaction | public void captureEMVData(
final String transactionId,
final EMVData emvData,
final String requestId) throws RemoteException {
Log.d(TAG, "captureEMVData: " + transactionId);
// store the emvData in cache in case if we receive
emvDataCache.put(transactionId, emvData);
// start background thread to check if the emvData has been sent to server or not
// after 60 secs
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
// check if the emvData has been processed or not
final EMVData emvData1 = emvDataCache.get(transactionId);
if (emvData1 != null) {
emvDataCache.remove(transactionId);
// get transaction from poynt service first
try {
getTransaction(transactionId, requestId, new IPoyntTransactionServiceListener.Stub() {
@Override
public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {
// update in converge
// let's create an AdjustTransactionRequest so we don't need to create multiple variations
// of this method
AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();
adjustTransactionRequest.setEmvData(emvData1);
final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(
transaction.getFundingSource().getEntryDetails(),
transaction.getProcessorResponse().getRetrievalRefNum(),
adjustTransactionRequest);
convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {
@Override
public void onResponse(final ElavonTransactionResponse elavonResponse) {
if (elavonResponse.isSuccess()) {
Log.d(TAG, "Successfully Captured EMV Data for: " + transaction.getId());
} else {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
}
@Override
public void onFailure(final Throwable t) {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
});
}
@Override
public void onLoginRequired() throws RemoteException {
Log.e(TAG, "Failed to get transaction:" + transactionId);
}
@Override
public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {
Log.e(TAG, "Failed to get transaction:" + transactionId);
}
});
} catch (RemoteException e) {
e.printStackTrace();
}
} else {
Log.d(TAG, "EMVData already captured for :" + transactionId);
}
}
}, 60 * 1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}",
"@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}",
"public Receipt recordTransaction(Transaction t) throws RemoteException;",
"int insert(CmstTransfdevice record);",
"void beginVCard();",
"@Override\n public void run() {\n final EMVData emvData1 = emvDataCache.get(transactionId);\n if (emvData1 != null) {\n emvDataCache.remove(transactionId);\n // get transaction from poynt service first\n try {\n getTransaction(transactionId, requestId, new IPoyntTransactionServiceListener.Stub() {\n @Override\n public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {\n // update in converge\n // let's create an AdjustTransactionRequest so we don't need to create multiple variations\n // of this method\n AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();\n adjustTransactionRequest.setEmvData(emvData1);\n\n final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(\n transaction.getFundingSource().getEntryDetails(),\n transaction.getProcessorResponse().getRetrievalRefNum(),\n adjustTransactionRequest);\n convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {\n @Override\n public void onResponse(final ElavonTransactionResponse elavonResponse) {\n if (elavonResponse.isSuccess()) {\n Log.d(TAG, \"Successfully Captured EMV Data for: \" + transaction.getId());\n } else {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n }\n\n @Override\n public void onFailure(final Throwable t) {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n });\n }\n\n @Override\n public void onLoginRequired() throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n\n @Override\n public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n });\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n } else {\n Log.d(TAG, \"EMVData already captured for :\" + transactionId);\n }\n }",
"@Override\n\tpublic void onCardSucess() {\n\t\tLoggerUtils.d(\"onCardSucess Start!!!\");\n\t\tonSucess();\n\t}",
"public void createESECard(String farmerId, String farmerCardId, Date txnTime, int type);",
"public void sendCard(Card card) {\n try {\n dOut.writeObject(card);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send card object\");\n e.printStackTrace();\n }\n }",
"@Override\n public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {\n AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();\n adjustTransactionRequest.setEmvData(emvData1);\n\n final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(\n transaction.getFundingSource().getEntryDetails(),\n transaction.getProcessorResponse().getRetrievalRefNum(),\n adjustTransactionRequest);\n convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {\n @Override\n public void onResponse(final ElavonTransactionResponse elavonResponse) {\n if (elavonResponse.isSuccess()) {\n Log.d(TAG, \"Successfully Captured EMV Data for: \" + transaction.getId());\n } else {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n }\n\n @Override\n public void onFailure(final Throwable t) {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n });\n }",
"@Override\n\tpublic void createCard(Card card) {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* persist */ \n\t\tsession.save(card); \n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}",
"public void addCard(Card card) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n \r\n ContentValues values = new ContentValues();\r\n values.put(COL_ACCOUNT, card.getAccount()); \r\n values.put(COL_USERNAME, card.getUsername()); \r\n values.put(COL_PASSWORD, card.getPassword()); \r\n values.put(COL_URL, card.getUrl()); \r\n values.put(COL_DELETED, card.getDeleted()); \r\n values.put(COL_HIDE_PWD, card.getHidePwd()); \r\n values.put(COL_REMIND_ME, card.getRemindMe()); \r\n values.put(COL_UPDATED_ON, card.getUpdatedOn()); \r\n values.put(COL_COLOR, String.valueOf(card.getColor()));\r\n values.put(COL_REMIND_ME_DAYS, card.getRemindMeDays());\r\n \r\n db.insert(TABLE_CARDS, null, values);\r\n db.close(); \r\n }",
"@Override\n public void onLeftCardExit(Object dataObject) {\n db.insertResult(1);\n }",
"public void addPartnerCard(Card card);",
"void buyDevCard();",
"public void ActonCard() {\n\t}",
"public void record(){\n\t}",
"private void addrec() {\n\t\tnmfkpinds.setPgmInd34(false);\n\t\tnmfkpinds.setPgmInd36(true);\n\t\tnmfkpinds.setPgmInd37(false);\n\t\tstateVariable.setActdsp(replaceStr(stateVariable.getActdsp(), 1, 8, \"ADDITION\"));\n\t\tstateVariable.setXwricd(\"INV\");\n\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00003 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t}\n\t\tstateVariable.setXwa2cd(\"EAC\");\n\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\taddrec0();\n\t}",
"private void setCard(@NonNull Card card) {\n Debug.trace(\"CardDetails\", card.toString());\n etCardNumber.setText(card.getCardNumber());\n etCardHolderName.setText(card.getCardHolderName());\n// etCardExpiryDate.removeTextListener();\n etCardExpiryDate.setText(DateFormatUtils.stringToStringConversion(card.getExpirationDate(), \"MM/yy\", \"MM/yyyy\"));\n// etCardExpiryDate.addDateSlash(etCardExpiryDate.getEditableText());\n// etCardExpiryDate.addTextListener();\n }",
"private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}",
"int insert(Card record);",
"public void createCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.createCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n System.out.println(\"Create CardInventory Successfully\");\n messageDataBean.setMessage(\"CardInventory added successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n cardInventoryDataBean.setNull();\n this.retrieveCardInventoryList();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n messageDataBean.setMessage(e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n System.out.println(e);\n }\n }",
"@Override\r\n\tpublic void buyCard() {\n\t\t\r\n\t}",
"int insert(ErpOaLicKey record);",
"public void onCompletion(RecordMetadata recordMetadata, Exception e) {\n if (e == null) {\n // if exeption is null then the record is successfully sent\n logger.info(\"recieved new medadata.\" +\n \"\\nTopic: \" + recordMetadata.topic() +\n \"\\nPartition: \" + recordMetadata.partition() +\n \"\\nOffset: \" + recordMetadata.offset() +\n \"\\nTimestamp: \" + recordMetadata.timestamp());\n } else {\n logger.error(\"Error while producing\", e);\n }\n }",
"int insert(DangerMerchant record);",
"int insert(TbComEqpModel record);",
"int insert(SdkMobileVcode record);",
"SourceMessage commitRecord(SourceRecord record);",
"private void storeTransactionToDatabase(final String clientId, final String earnedOrSpent, final String amountGiven, String sourceGiven, String descriptionGiven) {\n Transaction transaction = new Transaction(clientId, earnedOrSpent, amountGiven, sourceGiven, descriptionGiven, String.valueOf(date.getTime()));\n try {\n String transactionId = UUID.randomUUID().toString();\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"Transactions/\" + transactionId);\n database.setValue(transaction).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n updateCurrentBalance(earnedOrSpent, clientId, amountGiven);\n Log.d(\"NewTransactionActivity\", \"Successfully added Transaction to Database\");\n } else {\n Log.d(\"NewTransactionActivity\", \"Failed to add Transaction to Database\");\n }\n }\n });\n }catch(Exception e){\n Log.d(\"NewTransactionActivity\", e.toString());\n }\n }",
"public void record(RecordElement2 r) throws OdenException;",
"void addCustomerCard(CardDto cardDto, String name) throws EOTException;",
"@Override\n public void onSuccess(PaymentProtocol.Ack result) {\n log.info(\"Received PaymentAck from merchant. Memo: {}\", result.getMemo());\n getSendBitcoinShowPaymentACKMemoPanelModel().setPaymentACKMemo(result.getMemo());\n\n PaymentProtocolService paymentProtocolService = CoreServices.getPaymentProtocolService();\n\n if (finalPayment != null) {\n Optional<Protos.PaymentACK> paymentACK = paymentProtocolService.newPaymentACK(finalPayment, result.getMemo());\n\n finalPaymentRequestData.setPayment(Optional.of(finalPayment));\n finalPaymentRequestData.setPaymentACK(paymentACK);\n log.debug(\"Saving PaymentMemo of {} and PaymentACKMemo of {}\", finalPayment.getMemo(), paymentACK.isPresent() ? paymentACK.get().getMemo() : \"n/a\");\n WalletService walletService = CoreServices.getOrCreateWalletService(WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletId());\n walletService.addPaymentRequestData(finalPaymentRequestData);\n\n // Write payments\n CharSequence password = WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletPassword().getPassword();\n if (password != null) {\n walletService.writePayments(password);\n }\n\n CoreEvents.firePaymentSentToRequestorEvent(new PaymentSentToRequestorEvent(true, CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_OK, null));\n } else {\n log.error(\"No payment and hence cannot save payment or paymentACK\");\n }\n }",
"void parseCardData(ICardContext context);",
"@Override\n\tpublic int insert(WdReceiveCard record) {\n\t\treturn wdReceiveCardMapper.insert(record);\n\t}",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"void onStartRecord();",
"void onAddEditCardSuccess(long rowID);",
"public boolean recordTrade(Trade trade) throws Exception;",
"@Override\n\tpublic void tranfermoney() {\n\t\tSystem.out.println(\"hsbc tranfermoney\");\n\t}",
"GasData receiveGasData();",
"CarPaymentMethod processCreditCard();",
"public void creditCard() {\n\t\tSystem.out.println(\"hsbc --- credit card\");\n\t\t\n\t}",
"int insert(CGcontractCredit record);",
"int insertSelective(CmstTransfdevice record);",
"private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }",
"public void executeInsertCard() {\n\t\tcurrentState.edgeInsertCard();\n\t}",
"private void getrec() {\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00010 Product not found on Contract_Detail\n\t\tif (nmfkpinds.pgmInd36()) {\n\t\t\tmsgObjIdx = setMsgObj(\"OES0115\", \"XWABCD\", msgObjIdx, messages);\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t\telse {\n\t\t\tif (nmfkpinds.pgmInd66()) {\n\t\t\t\tif (fileds.filests == 1218) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y3U9999\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalidt();\n\t\t\t}\n\t\t}\n\t}",
"public abstract String requestCard(byte[] messageRec) throws IOException;",
"void purchaseMade();",
"public void insertcard() throws java.lang.InterruptedException;",
"public void saveCard(card cardToBeSaved)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.saveCard(packId, cardToBeSaved.getCardId(), cardToBeSaved.getFront(),cardToBeSaved.getBack());\n \n \n }",
"Record(VideoObj video, int numOwned, int numOut, int numRentals) {\n\t\tthis.video = video;\n\t\tthis.numOwned = numOwned;\n\t\tthis.numOut = numOut;\n\t\tthis.numRentals = numRentals;\n\t}",
"@Override\n\tpublic void payCreditCard() {\n System.out.println(\"creditcard payed\");\t\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ADD_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String newQuestion = extras.getString(\"question\");\n String newAnswer = extras.getString(\"answer\");\n String wrongAnswer1 = extras.getString(\"wrong_answer1\");\n String wrongAnswer2 = extras.getString(\"wrong_answer2\");\n\n database.insertCard(new Flashcard(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2));\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(newQuestion, newAnswer, wrongAnswer1, wrongAnswer2);\n currentDisplayIndex = allFlashCards.size() - 1;\n } else if (requestCode == EDIT_CARD_REQUEST_CODE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n String question = extras.getString(\"question\");\n String answer = extras.getString(\"answer\");\n String wrong1 = extras.getString(\"wrong_answer1\");\n String wrong2 = extras.getString(\"wrong_answer2\");\n\n Flashcard currentCard = allFlashCards.get(currentDisplayIndex);\n currentCard.setQuestion(question);\n currentCard.setAnswer(answer);\n currentCard.setWrongAnswer1(wrong1);\n currentCard.setWrongAnswer2(wrong2);\n database.updateCard(currentCard);\n allFlashCards = database.getAllCards();\n\n resetAnswerButtonStates();\n setAnswerButtonsAndQuestion(question, answer, wrong1, wrong2);\n }\n }",
"@Override\n\n public void onClick(View v) {\n\n simplify.createCardToken(cardEditor.getCard(), new CardToken.Callback() {\n\n @Override\n\n public void onSuccess(CardToken cardToken) {\n\n //Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n //finish();\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }\n\n @Override\n\n public void onError(Throwable throwable) {\n\n Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n\n }\n\n });\n\n\n }",
"int insert(MVoucherDTO record);",
"private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void store() {\r\n\t\tdata = busExt.get();\r\n\t}",
"int insert(InternalTradeEpa022016 record);",
"int insert(TbaDeliveryinfo record);",
"public void capture(HashMap<String, String> params) {\n\t\tAPI = \"bp10emu\";\n\t\tTRANSACTION_TYPE = \"CAPTURE\";\n\t\tAMOUNT = params.get(\"amount\");\n\t\tRRNO = params.get(\"transactionID\");\n\t}",
"void pushCard(ICard card);",
"public void transferWrite( String sContract,String sMchCode,String sMchNameDes,String sMchCodeCont,String sTestPointId,String sPmNo,String pmDescription,String insNote) \n {\n ASPManager mgr = getASPManager();\n String repby=null;\n\n cmd = trans.addEmptyCommand(\"HEAD\",\"FAULT_REPORT_API.New__\",headblk);\n cmd.setOption(\"ACTION\",\"PREPARE\");\n trans = mgr.perform(trans);\n data = trans.getBuffer(\"HEAD/DATA\");\n\n trans.clear();\n cmd = trans.addCustomFunction(\"GETUSER\",\"Fnd_Session_API.Get_Fnd_User\",\"ISUSER\");\n\n cmd = trans.addCustomFunction(\"GETREPBY\",\"Person_Info_API.Get_Id_For_User\",\"REPORTED_BY\");\n cmd.addReference(\"ISUSER\",\"GETUSER/DATA\");\n\n cmd = trans.addCustomFunction(\"REPBYID\",\"Company_Emp_API.Get_Max_Employee_Id\",\"REPORTED_BY_ID\");\n cmd.addParameter(\"COMPANY\",data.getFieldValue(\"COMPANY\"));\n cmd.addReference(\"REPORTED_BY\",\"GETREPBY/DATA\");\n\n trans = mgr.perform(trans);\n repby = trans.getValue(\"GETREPBY/DATA/REPORTED_BY\");\n reportById = trans.getValue(\"REPBYID/DATA/REPORTED_BY_ID\");\n\n data.setValue(\"REPORTED_BY\",repby);\n data.setValue(\"REPORTED_BY_ID\",reportById);\n data.setValue(\"CONTRACT\",sContract);\n data.setValue(\"MCH_CODE\",sMchCode);\n data.setValue(\"MCH_CODE_DESCRIPTION\",sMchNameDes);\n data.setValue(\"MCH_CODE_CONTRACT\",sMchCodeCont);\n data.setValue(\"TEST_POINT_ID\",sTestPointId);\n data.setValue(\"PM_NO\",sPmNo);\n data.setValue(\"PM_DESCR\",pmDescription);\n data.setValue(\"NOTE\",insNote);\n //Bug 76003, start\n data.setValue(\"CONNECTION_TYPE_DB\",\"EQUIPMENT\");\n //Bug 76003, end\n\n headset.addRow(data);\n }",
"private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }",
"int insert(EtpBase record);",
"int insert(PasswordCard record);",
"int insert(UcOrderGuestInfo record);",
"public void execute() {\r\n int depositAmount = this.promptDepositAmount(); // amount in cents\r\n if (depositAmount != CANCELED) {\r\n screen.displayMessage(\"\\nPlease insert a deposit envelope containing: \");\r\n screen.displayDollarAmount(depositAmount / 100);\r\n screen.displayMessageLine(\".\");\r\n\r\n if (depositSlot.isEnvelopeReceived()) {\r\n screen.displayMessageLine(\"\\nYour envelope has been received.\");\r\n screen.displayMessageLine(\"The money just deposited will not be available until we verify \" +\r\n \"the amount of any enclosed cash and your checks clear.\");\r\n bankDatabase.credit(this.accountNumber, depositAmount / 100);\r\n } else {\r\n screen.displayMessageLine (\"\\nYou did not insert an envelope. The ATM has canceled your transaction.\");\r\n }\r\n } else {\r\n screen.displayMessageLine( \"\\nCanceling transaction...\");\r\n }\r\n }",
"public void onCompletion(RecordSend send);",
"void setAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;",
"@Override\n\tpublic void onCardFail() {\n\t\tLoggerUtils.d(\"onCardFail Start!!!\");\n\t\tonFail();\n\t}",
"void update(Card card) throws PersistenceCoreException;",
"public void submitCard() {\n String description = cardDescription.getText().toString();\n String tag = LTAPIConstants.NAME_TO_TAG.get(cardTag.getSelectedItem().toString());\n String locationText = autoCompView.getText().toString();\n String CardAuthor = author.getText().toString();\n boolean test = photoFile == null;\n LTLog.debug(LOG_TAG, \"danjie: \" + test);\n String emptyComplain = buildSubmitEmptyComplain(\n Utils.isEmptyString(description), \"-1\".equals(tag),\n Utils.isEmptyString(locationText), photoFile == null,\n Utils.isEmptyString(CardAuthor));\n if (!Utils.isEmptyString(emptyComplain)) {\n ShowToast(emptyComplain);\n return;\n }\n TripCard tCard = ((NewTripCardActivity) getActivity()).getCurrentTripCard();\n if (Utils.isEnglishchar(description.trim().charAt(0))) {\n tCard.setDescriptionLang(\"en\");\n } else {\n tCard.setDescriptionLang(\"zh\");\n }\n// tCard.setTitle(cardTitle.getText().toString());\n tCard.setDescription(cardDescription.getText().toString());\n tCard.setCountry(location.getCountryCode());\n tCard.setCardAuthor(CardAuthor);\n tCard.setLocationFullName(locationText);\n tCard.setStatus(1);\n tCard.setGooglelocationid(location.getLocationId());\n // Associate the meal with the current user\n tCard.setAuthor(ParseUser.getCurrentUser());\n\n // Add the rating\n tCard.setTag(LTAPIConstants.NAME_TO_TAG.get(cardTag.getSelectedItem().toString()));\n\n // If the user added a photo, that data will be\n // added in the CameraFragment\n\n // Save the meal and return\n tCard.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e == null) {\n getActivity().setResult(Activity.RESULT_OK);\n getActivity().finish();\n } else {\n debugShowToast(\"Error saving: \" + e.getMessage());\n }\n }\n });\n }",
"public boolean addRecord(VinDevices data)\n\t\t{\n\t\t\t\n\t\t\tTransaction tx=null; \n\t\t\ttry{\n\t\t\t\tcontrolOpen();\n\t\t\t\tthis.logData(data,\"New\");\n\t\t\t\t\n\t\t\t\ttx = this.hibernateSession.beginTransaction();\n\t\t\t\t\thibernateSession.save(data);\n\t\t\t\ttx.commit();\n\t\t\t\tthis.hibernateSession.clear(); //limpiamos toda la cache\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\taddLog(\"(addRecord)ERROR:\"+e.getMessage());\n\t\t\t\treturn false; //error de grabaci�n\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tcontrolClose();\n\t\t\t\ttx = null; //liberamos la transaccion de memoria\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"@Override\n public void onClick(View v) {\n merchantWebService = new MerchantWebService();\n merchantWebService.setKey(mPaymentParams.getKey());\n merchantWebService.setCommand(PayuConstants.SAVE_USER_CARD);\n merchantWebService.setHash(mPayuHashes.getSaveCardHash());\n merchantWebService.setVar1(mPaymentParams.getUserCredentials());\n merchantWebService.setVar2(\"\" + cardHolderNameEditText.getText().toString());\n merchantWebService.setVar3(PayuConstants.CC);\n merchantWebService.setVar4(PayuConstants.CC);\n merchantWebService.setVar5(\"\" + cardNameEditText.getText().toString());\n merchantWebService.setVar6(\"\" + cardNumberEditText.getText().toString());\n merchantWebService.setVar7(\"\" + cardExpiryMonthEditText.getText().toString());\n merchantWebService.setVar8(\"\" + cardExpiryYearEditText.getText().toString());\n\n postData = new MerchantWebServicePostParams(merchantWebService).getMerchantWebServicePostParams();\n\n if (postData.getCode() == PayuErrors.NO_ERROR) {\n payuConfig.setData(postData.getResult());\n\n SaveCardTask saveCardTask = new SaveCardTask(PayUVerifyApiActivity.this);\n saveCardTask.execute(payuConfig);\n\n // lets cancel the dialog.\n saveUserCardDialog.dismiss();\n } else {\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }",
"private void TempCardAdd(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\tPrintWriter out=response.getWriter();\n\t\t//这里也有停车位 状态转变问题\n\t\tString tempcard_id=request.getParameter(\"card_id\");\n\t\tString car_num=new String(request.getParameter(\"car_num\").getBytes(\"ISO-8859-1\"),\"UTF-8\");\n\t\tString seat_id=request.getParameter(\"seat_id\");\n\t\t//往停车位中添加临时IC卡就要改变分配的车位的 seat_tag 临时车主车位\n\t\t//车位的状态seat_state也要改变 临时卡 只有在进场时才会分配 进场即改变车位状态 为占有 1 \n\t\tSeat seat=new Seat();\n\t\tSeatDao seatDao=new SeatDao();//停车位逻辑层,对数据库 表进行操作\n\t\tseat=seatDao.getSeat(seat_id);\n\t\tseat.setSeat_state(1);//入场后 更新临时车主占用车位的状态 ,设置为占有状态\n\t\tseat.setSeat_tag(\"临时车主车位\");//设置备注未临时车主车位\n\t\tseatDao.updateSeat(seat);//更新状态\n\t\tseatDao.closeCon();\n\t\t\n\t\tString entry_time,entry_date;\n\t\tSimpleDateFormat dFormat=new SimpleDateFormat(\"yyyy-MM-dd\");//设置进场时间\n\t\tSimpleDateFormat tFormat=new SimpleDateFormat(\"HH:mm:ss\");//进场具体时间\n\t\tentry_date=dFormat.format(new Date());\n\t\tentry_time=tFormat.format(new Date());\n\t\t\n\t\tString out_date=\"1111-11-11\";//先将进场时间设置为1111-11-11 标识未出场\n\t\tString out_time=\"11:11:11\";\t\t\n\t\t\n\t\tTempCard tempcard=new TempCard();\n\t\ttempcard.setCard_id(tempcard_id);//设置临时车主的相关信息 ID\n\t\ttempcard.setSeat_id(seat_id);//分配的停车位\n\t\ttempcard.setCar_num(car_num);//车牌号\n\t\ttempcard.setEntry_date(entry_date);//进场时间\n\t\ttempcard.setEntry_time(entry_time);//具体时间\n\t\ttempcard.setOut_date(out_date);//\n\t\ttempcard.setOut_time(out_time);\n\t\t//缴费 添加卡时默认为0\n\t\tTempCardDao tempcardDao=new TempCardDao();\n\t\tif(tempcardDao.addTempCard(tempcard)) {//对数据库中临时车主信息表进行添加信息\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('添加信息成功(进场)!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"success\");\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tout.write(\"<script>alert('添加信息失败!'); location.href = '/ParkManager/TempCardServlet?type=gettempcardlist';</script>\");\n\t\t\t\t//response.getWriter().write(\"failed\");\n\t\t\t}finally {\n\t\t\t\ttempcardDao.closeCon();\n\t\t\t}\n\t\t}\n\t}",
"void recordSale(Customer customer, Movie movie, SaleDetails saleDetails) {\n System.out.println(\"Connecting to Sales server\");\n AcmeSalesServer salesServer = AcmeSalesServer.connect();\n System.out.println(\"Adding sale to server\");\n salesServer.addSale(customer, movie, saleDetails);\n System.out.println(\"Sale added\");\n }",
"@Override\n public void swipCardSucess(String cardNumber) {\n showLogMessage(\"PAN:\" + cardNumber.toString());\n Message updateMessage = mMainMessageHandler.obtainMessage();\n updateMessage.obj = \"\";\n updateMessage.what = 0x98;\n updateMessage.sendToTarget();\n }",
"private void requestRecord() throws IOException {\n\n String targetCamCode = dis.readUTF();\n\n Cam targetCam = CamRegister.findRegisteredCam(targetCamCode);\n\n try {\n DataOutputStream targetDos = new DataOutputStream(targetCam.getCamSocket().getOutputStream());\n targetDos.writeInt(RECORD_CAM_COMMAND);\n targetDos.flush();\n\n dos.writeInt(SUCCESS_CODE);\n dos.flush();\n } catch (Exception e) {\n dos.writeInt(NOT_FOUND_CODE);\n dos.flush();\n }\n }",
"public void updateCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.updateCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n messageDataBean.setMessage(\"CardInventory updated successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n retrieveCardInventoryList();\n cardInventoryDataBean.setNull();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n System.out.println(e);\n messageDataBean.setMessage(\"Error =>\" + e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }",
"CarPaymentMethod processSavedVisa(String securityCode);",
"public void addCard(Card e) {\n\t\tthis.deck.add((T) e);\n\t}",
"int insert(R_dept_trade record);",
"void askDevCardProduction();",
"void save(AcHost acHost) throws Throwable;",
"void insert(PaymentTrade record);",
"void onOTPSendSuccess(ConformationRes data);",
"@Override\n\tpublic int save(RotateBID record) {\n\t\trecord.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\tBigDecimal total= new BigDecimal(0);\n\t\tif(\"招标采购\".equals(record.getBidType())) {\n\t\t\tList<RotateBIDPurchase> purchaseList=record.getPurchaseList();\n\t\t\tfor(RotateBIDPurchase purchase:purchaseList) {\n\t\t\t\tpurchase.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\t\t\ttotal = total.add(purchase.getQuantity());\n\t\t\t}\n\t\t}else {\n\t\t\tList<RotateBIDSale> saleList=record.getSaleList();\n\t\t\tfor(RotateBIDSale sale:saleList) {\n\t\t\t\tsale.setId(UUID.randomUUID().toString().replaceAll(\"-\", \"\"));\n\t\t\t\ttotal= total.add(sale.getTotal());\n\t\t\t}\n\t\t}\n\t\trecord.setTotal(total);\n\t\trecord.setCreateDate(new Date());\n//\t\trecord.setCreator(TokenManager.getToken().getName());\n\t\treturn dao.save(record);\n\t}",
"int insert(PrescriptionVerifyRecordDetail record);",
"@Override\n\tpublic void adaugaSDCard(InterfataExternalMemory memorieExterna) {\n\t\tdispozitiv.setCardMemorie(memorieExterna);\n\t\t\n\t}",
"private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }",
"public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }",
"int insert(DepAcctDO record);",
"public Card(final VCard vcard) {\n this.vcard = vcard;\n prevLastmod = getLastmod();\n }",
"int insert(Enfermedad record);",
"@Override\n public void onAcknowledgement(RecordMetadata rm, Exception excptn) {\n }",
"@Override\n\tpublic void unlock() {\n\t\tSystem.out.println(\"Card in ATM1 is unlocked !\");\n\t}",
"int insert(OcCustContract record);"
] | [
"0.6325304",
"0.5904578",
"0.5878462",
"0.582457",
"0.5757186",
"0.5753384",
"0.5702138",
"0.5701409",
"0.55738217",
"0.5559669",
"0.5470938",
"0.5430258",
"0.53620243",
"0.5361239",
"0.53173447",
"0.53030354",
"0.52998775",
"0.5288915",
"0.5267351",
"0.5264052",
"0.52411073",
"0.52301013",
"0.5228337",
"0.5226134",
"0.5224873",
"0.5203486",
"0.51741874",
"0.5150845",
"0.51505816",
"0.51486665",
"0.51481736",
"0.51479495",
"0.51323074",
"0.5130792",
"0.512833",
"0.5118057",
"0.5112625",
"0.5112497",
"0.50996673",
"0.5098469",
"0.50949556",
"0.50892085",
"0.50824183",
"0.5064132",
"0.5057886",
"0.50573874",
"0.5054381",
"0.50531566",
"0.50360763",
"0.5035444",
"0.50318927",
"0.5025314",
"0.5021711",
"0.5020827",
"0.5003667",
"0.5001391",
"0.49967557",
"0.49954712",
"0.498958",
"0.49803346",
"0.4968261",
"0.4959903",
"0.49501395",
"0.49432868",
"0.4942757",
"0.49422735",
"0.49356058",
"0.4927671",
"0.49225596",
"0.4922237",
"0.49209398",
"0.4915202",
"0.49137276",
"0.49086678",
"0.4903961",
"0.4902348",
"0.4902176",
"0.48987073",
"0.4898384",
"0.48957077",
"0.48925328",
"0.48885578",
"0.48883075",
"0.4888236",
"0.4886431",
"0.48842508",
"0.48732045",
"0.48723137",
"0.48702884",
"0.48651472",
"0.48588276",
"0.48575285",
"0.4855611",
"0.4847907",
"0.48429412",
"0.48408076",
"0.48364708",
"0.48327005",
"0.4832508",
"0.48302296"
] | 0.5916513 | 1 |
check if the emvData has been processed or not | @Override
public void run() {
final EMVData emvData1 = emvDataCache.get(transactionId);
if (emvData1 != null) {
emvDataCache.remove(transactionId);
// get transaction from poynt service first
try {
getTransaction(transactionId, requestId, new IPoyntTransactionServiceListener.Stub() {
@Override
public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {
// update in converge
// let's create an AdjustTransactionRequest so we don't need to create multiple variations
// of this method
AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();
adjustTransactionRequest.setEmvData(emvData1);
final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(
transaction.getFundingSource().getEntryDetails(),
transaction.getProcessorResponse().getRetrievalRefNum(),
adjustTransactionRequest);
convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {
@Override
public void onResponse(final ElavonTransactionResponse elavonResponse) {
if (elavonResponse.isSuccess()) {
Log.d(TAG, "Successfully Captured EMV Data for: " + transaction.getId());
} else {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
}
@Override
public void onFailure(final Throwable t) {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
});
}
@Override
public void onLoginRequired() throws RemoteException {
Log.e(TAG, "Failed to get transaction:" + transactionId);
}
@Override
public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {
Log.e(TAG, "Failed to get transaction:" + transactionId);
}
});
} catch (RemoteException e) {
e.printStackTrace();
}
} else {
Log.d(TAG, "EMVData already captured for :" + transactionId);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"private void verificaData() {\n\t\t\n\t}",
"public boolean isValid()\r\n {\r\n \treturn this.vp.data != null;\r\n }",
"@Test public void testVerifyProcessing() throws Exception {\n Data data = new Data(new Long(1l), \"test\");\n gigaSpace.write(data);\n\n // create a template of the processed data (processed)\n Data template = new Data();\n template.setType(new Long(1l));\n template.setProcessed(Boolean.TRUE);\n\n // wait for the result\n Data result = (Data)gigaSpace.take(template, 500);\n // verify it\n assertNotNull(\"No data object was processed\", result);\n assertEquals(\"Processed Flag is false, data was not processed\", Boolean.TRUE, result.isProcessed());\n assertEquals(\"Processed text mismatch\", \"PROCESSED : \" + data.getRawData(), result.getData());\n }",
"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 }",
"private boolean isEntityBufferEmpty()\n\t{\n\t\treturn this.newEntityBuffer.isEmpty();\n\t}",
"@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 boolean process() /// Returns true if it has finished processing\r\n {\r\n return true;\r\n }",
"private boolean isEmpty() {\n return dataSize == 0;\n }",
"public boolean hasData();",
"boolean hasCollectResult();",
"public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }",
"protected abstract boolean processData(Object data);",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"public boolean isProcessing (){\n\t\treturn this._processing>0;\n\t}",
"@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}",
"private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}",
"public boolean hasEresult() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public void captureEMVData(\n final String transactionId,\n final EMVData emvData,\n final String requestId) throws RemoteException {\n Log.d(TAG, \"captureEMVData: \" + transactionId);\n\n // store the emvData in cache in case if we receive\n emvDataCache.put(transactionId, emvData);\n\n // start background thread to check if the emvData has been sent to server or not\n // after 60 secs\n new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {\n @Override\n public void run() {\n\n // check if the emvData has been processed or not\n final EMVData emvData1 = emvDataCache.get(transactionId);\n if (emvData1 != null) {\n emvDataCache.remove(transactionId);\n // get transaction from poynt service first\n try {\n getTransaction(transactionId, requestId, new IPoyntTransactionServiceListener.Stub() {\n @Override\n public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {\n // update in converge\n // let's create an AdjustTransactionRequest so we don't need to create multiple variations\n // of this method\n AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();\n adjustTransactionRequest.setEmvData(emvData1);\n\n final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(\n transaction.getFundingSource().getEntryDetails(),\n transaction.getProcessorResponse().getRetrievalRefNum(),\n adjustTransactionRequest);\n convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {\n @Override\n public void onResponse(final ElavonTransactionResponse elavonResponse) {\n if (elavonResponse.isSuccess()) {\n Log.d(TAG, \"Successfully Captured EMV Data for: \" + transaction.getId());\n } else {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n }\n\n @Override\n public void onFailure(final Throwable t) {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n });\n }\n\n @Override\n public void onLoginRequired() throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n\n @Override\n public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n });\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n } else {\n Log.d(TAG, \"EMVData already captured for :\" + transactionId);\n }\n }\n }, 60 * 1000);\n\n\n }",
"protected boolean transformIncomingData() {\r\n\t\tboolean rB=false;\r\n\t\tArrayList<String> targetStruc ;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (transformationModelImported == false){\r\n\t\t\t\testablishTransformationModel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// soappTransform.requiredVariables\r\n\t\t\tif (transformationsExecuted == false){\r\n\t\t\t\texecuteTransformationModel();\r\n\t\t\t}\r\n\t\t\trB = transformationModelImported && transformationsExecuted ;\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\treturn rB;\r\n\t}",
"boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"public boolean hasEresult() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\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 valid()\r\n\t{\r\n\t\treturn valid(getInputStream());\r\n\t}",
"@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }",
"public boolean isSetData() {\n return this.data != null;\n }",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }",
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\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}",
"public boolean hasStoreChunk() {\n return msgCase_ == 1;\n }",
"public boolean isEmpty() { return curChunker() == null; }",
"public boolean hasStoreChunk() {\n return msgCase_ == 1;\n }",
"public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }",
"@Override\n\tpublic boolean runComplete(EvolutionState evoState) {\n\t\treturn false;\n\t}",
"public boolean needsProcessing() {\r\n return !INTL_NODE.getOutMarbles().isEmpty();\r\n }",
"public boolean isComplete() {\n /* first a simple check */\n if(number_of_frags_recvd < fragments.length)\n return false;\n\n /* then double-check just in case */\n for(Message msg: fragments) {\n if(msg == null)\n return false;\n }\n return true;\n }",
"public boolean processed(final Object id) {\r\n return _processed.contains(id);\r\n }",
"public boolean hasData() {\r\n\t\treturn page.hasContent();\r\n\t}",
"boolean handle(IncomingDataBatch batch) throws FragmentSetupException, IOException;",
"@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 isSetFileData() {\n return this.fileData != null;\n }",
"private final boolean size_ready ()\n {\n next_step (in_progress.data (), in_progress.size (),\n message_ready, !in_progress.has_more());\n return true;\n }",
"private void validateData() {\n }",
"public boolean dataComplete() {\n return !item_category.getText().toString().isEmpty() && !item_name.getText().toString().isEmpty()\n && !item_price.getText().toString().isEmpty() && !item_description.getText().toString().isEmpty();\n }",
"public abstract boolean promulgationDataDefined();",
"protected boolean processGameInfo(GameInfoStruct data){return false;}",
"public boolean hasStoreChunkResponse() {\n return msgCase_ == 8;\n }",
"public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }",
"public void checkData(){\n\n }",
"public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasFinalData()\r\n/* 297: */ {\r\n/* 298:322 */ return this.tail.readIndex != this.tail.get();\r\n/* 299: */ }",
"protected boolean isValidData() {\n return true;\n }",
"public boolean temProcesso() {\r\n\t\tfor (Escalonador e : escalonadores) {\r\n\t\t\tif (e.temProcesso()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"public boolean isDataValid() {\r\n return validData;\r\n }",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"protected boolean process() {\n BooleanSupplier step = _steps.peek();\n if (step == null) {\n return false;\n }\n if (step.getAsBoolean()) {\n return true;\n } else {\n _steps.remove();\n return !isFinished();\n }\n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"private boolean m72694hk() {\n if (this.aer == null || this.mIntent == null || this.aeo.isEmpty() || this.aep.isEmpty()) {\n return false;\n }\n Collections.unmodifiableList(this.aep);\n return true;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"protected boolean processStoppedObserving(int gameNumber){return false;}",
"public abstract boolean isConsumed();",
"public boolean isReady() {\n return mPoints != null && mPoints.size() >= MINIMUM_SIZE;\n }",
"@Override\r\n public boolean hasNext() {\r\n return (next.data != null);\r\n }",
"private boolean refill() {\n byteBuffer.clear();\n int nRead = loadData();\n byteBuffer.flip();\n if (nRead <= 0) {\n return false;\n }\n return true;\n }",
"boolean isEmpty() {\n return mapped_vms.isEmpty();\n }",
"public boolean end() {\n outputList.add(new ByteArrayInputStream(outputData));\n totBytes += outputData.length;\n return true;\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}",
"public boolean hasEk() {\n return result.hasEk();\n }",
"public boolean hasEk() {\n return result.hasEk();\n }",
"private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }",
"public boolean emptyBuffer() {\n if(eventBeans.size() == 0)\n return true;\n else return false;\n }",
"private boolean endOfProcessingReached(long entityCount) {\n // Special case, -1 means all entities in the corpus\n if (numToProcess == -1) {\n return false;\n } else if (numToProcess == 0) {\n return true;\n } else {\n // check if exceeded or matched the configured max number of entities\n return (entityCount >= numToProcess);\n }\n }",
"@Override\n public boolean isDone()\n {\n return false;\n }",
"public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"protected boolean isFinished() {\n \t//System.out.println(\"FINISHED\");\n \tif(sizeArray.length>0)\n \t\treturn sizeArray[0]>targetSize;\n else\n \treturn noBubbles;\n \t\n \t\n }",
"boolean hasEvents() {\n return !currentSegment.isEmpty() || !historySegments.isEmpty();\n }",
"private void checkIfAlive() {\n synchronized (this) {\n if (!mIsAlive) {\n Log.e(LOG_TAG, \"use of a released dataHandler\", new Exception(\"use of a released dataHandler\"));\n //throw new AssertionError(\"Should not used a MXDataHandler\");\n }\n }\n }",
"void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }",
"@Override\n public boolean isDone() {\n return false;\n }",
"private boolean isThereMoreData() {\n return nextUrl != null;\n }"
] | [
"0.6385455",
"0.6385455",
"0.6385455",
"0.6385455",
"0.6385455",
"0.6385455",
"0.63099265",
"0.6127785",
"0.6118674",
"0.6023294",
"0.5995493",
"0.58496594",
"0.5814059",
"0.5797743",
"0.5780954",
"0.57776076",
"0.5756365",
"0.5755695",
"0.57536274",
"0.56938136",
"0.56938136",
"0.56938136",
"0.56938136",
"0.56938136",
"0.56938136",
"0.56938136",
"0.56630814",
"0.5662341",
"0.56584567",
"0.5654435",
"0.5648432",
"0.560957",
"0.5579873",
"0.55551535",
"0.5544171",
"0.55430555",
"0.55149484",
"0.5508413",
"0.5498693",
"0.5492513",
"0.54873824",
"0.5477983",
"0.5477778",
"0.5450088",
"0.54461116",
"0.5429253",
"0.54179037",
"0.54149735",
"0.5407617",
"0.5407505",
"0.54037267",
"0.53888583",
"0.5387967",
"0.5386268",
"0.5385642",
"0.5384853",
"0.53818345",
"0.5375756",
"0.5368694",
"0.5366455",
"0.5358182",
"0.53520274",
"0.5343184",
"0.5330215",
"0.5330215",
"0.5323461",
"0.5322402",
"0.531019",
"0.529961",
"0.5297323",
"0.529159",
"0.52879465",
"0.52878225",
"0.52878225",
"0.52878225",
"0.5285308",
"0.52785695",
"0.52785695",
"0.52775794",
"0.5272272",
"0.5271714",
"0.527004",
"0.52662116",
"0.526289",
"0.52587277",
"0.52585876",
"0.5254716",
"0.5254716",
"0.5251582",
"0.5249712",
"0.52484024",
"0.5236982",
"0.52289647",
"0.52107716",
"0.5206685",
"0.5202886",
"0.5201847",
"0.5194429",
"0.51912344",
"0.51737756"
] | 0.5608307 | 32 |
update in converge let's create an AdjustTransactionRequest so we don't need to create multiple variations of this method | @Override
public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {
AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();
adjustTransactionRequest.setEmvData(emvData1);
final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(
transaction.getFundingSource().getEntryDetails(),
transaction.getProcessorResponse().getRetrievalRefNum(),
adjustTransactionRequest);
convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {
@Override
public void onResponse(final ElavonTransactionResponse elavonResponse) {
if (elavonResponse.isSuccess()) {
Log.d(TAG, "Successfully Captured EMV Data for: " + transaction.getId());
} else {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
}
@Override
public void onFailure(final Throwable t) {
Log.e(TAG, "Failed to capture EMV Data for: " + transaction.getId());
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateTransaction(Transaction trans);",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"public CleaningTransaction update(CleaningTransaction cleaningTransaction);",
"public void applyTransaction(Transaction tx, byte[] coinbase) {\n\t\tif (blockchain != null)\n\t\t\tblockchain.addWalletTransaction(tx);\n\n\t\t// TODO: what is going on with simple wallet transfer ?\n\n\t\t// 1. VALIDATE THE NONCE\n\t\tbyte[] senderAddress = tx.getSender();\n\n\t\tAccountState senderAccount = repository.getAccountState(senderAddress);\n\n\t\tif (senderAccount == null) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"No such address: {}\",\n\t\t\t\t\t\tHex.toHexString(senderAddress));\n\t\t\treturn;\n\t\t}\n\n\t\tBigInteger nonce = repository.getNonce(senderAddress);\n\t\tif (nonce.compareTo(new BigInteger(tx.getNonce())) != 0) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"Invalid nonce account.nonce={} tx.nonce={}\",\n\t\t\t\t\t\tnonce.longValue(), new BigInteger(tx.getNonce()));\n\t\t\treturn;\n\t\t}\n\n\t\t// 2.1 PERFORM THE GAS VALUE TX\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\n\t\t// first of all debit the gas from the issuer\n\t\tBigInteger gasDebit = tx.getTotalGasValueDebit();\n\n\t\t// The coinbase get the gas cost\n\t\trepository.addBalance(coinbase, gasDebit);\n\n\t\tbyte[] contractAddress;\n\n\t\t// Contract creation or existing Contract call\n\t\tif (tx.isContractCreation()) {\n\n\t\t\t// credit the receiver\n\t\t\tcontractAddress = tx.getContractAddress();\n\t\t\trepository.createAccount(contractAddress);\n\t\t\tstateLogger.info(\"New contract created address={}\",\n\t\t\t\t\tHex.toHexString(contractAddress));\n\t\t} else {\n\n\t\t\tcontractAddress = tx.getReceiveAddress();\n\t\t\tAccountState receiverState = repository.getAccountState(tx\n\t\t\t\t\t.getReceiveAddress());\n\n\t\t\tif (receiverState == null) {\n\t\t\t\trepository.createAccount(tx.getReceiveAddress());\n\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\tstateLogger.info(\"New account created address={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\t\t\t}\n\t\t}\n\n\t\t// 2.2 UPDATE THE NONCE\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\t\tBigInteger balance = repository.getBalance(senderAddress);\n\t\tif (balance.compareTo(BigInteger.ZERO) == 1) {\n\t\t\trepository.increaseNonce(senderAddress);\n\n\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\tstateLogger.info(\n\t\t\t\t\t\t\"Before contract execution the sender address debit with gas total cost, \"\n\t\t\t\t\t\t\t\t+ \"\\n sender={} \\n gas_debit= {}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()), gasDebit);\n\t\t}\n\n\t\t// actual gas value debit from the sender\n\t\t// the purchase gas will be available for the\n\t\t// contract in the execution state, and\n\t\t// can be validate using GAS op\n\t\tif (gasDebit.signum() == 1) {\n\t\t\tif (balance.compareTo(gasDebit) == -1) {\n\t\t\t\tlogger.info(\"No gas to start the execution: sender={}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\trepository.addBalance(senderAddress, gasDebit.negate());\n\t\t}\n\n\t\t// 3. START TRACKING FOR REVERT CHANGES OPTION !!!\n\t\tRepository trackRepository = repository.getTrack();\n\t\ttrackRepository.startTracking();\n\n\t\ttry {\n\n\t\t\t// 4. THE SIMPLE VALUE/BALANCE CHANGE\n\t\t\tif (tx.getValue() != null) {\n\n\t\t\t\tBigInteger senderBalance = repository.getBalance(senderAddress);\n\t\t\t\tBigInteger contractBalance = repository.getBalance(contractAddress);\n\n\t\t\t\tif (senderBalance.compareTo(new BigInteger(1, tx.getValue())) >= 0) {\n\n\t\t\t\t\trepository.addBalance(contractAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()));\n\t\t\t\t\trepository.addBalance(senderAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()).negate());\n\n\t\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\t\tstateLogger.info(\"Update value balance \\n \"\n\t\t\t\t\t\t\t\t+ \"sender={}, receiver={}, value={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(senderAddress),\n\t\t\t\t\t\t\t\tHex.toHexString(contractAddress),\n\t\t\t\t\t\t\t\tnew BigInteger(tx.getValue()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 3. FIND OUT WHAT IS THE TRANSACTION TYPE\n\t\t\tif (tx.isContractCreation()) {\n\n\t\t\t\tbyte[] initCode = tx.getData();\n\n\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\tlogger.info(\"running the init for contract: addres={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getContractAddress()));\n\n\t\t\t\tVM vm = new VM();\n\t\t\t\tProgram program = new Program(initCode, programInvoke);\n\t\t\t\tvm.play(program);\n\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\tsenderAddress, tx.getContractAddress(), coinbase);\n\n\t\t\t} else {\n\n\t\t\t\tbyte[] programCode = trackRepository.getCode(tx\n\t\t\t\t\t\t.getReceiveAddress());\n\t\t\t\tif (programCode != null) {\n\n\t\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\t\tlogger.info(\"calling for existing contract: addres={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\n\t\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\t\tVM vm = new VM();\n\t\t\t\t\tProgram program = new Program(programCode, programInvoke);\n\t\t\t\t\tvm.play(program);\n\n\t\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\t\tsenderAddress, tx.getReceiveAddress(), coinbase);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (RuntimeException e) {\n\t\t\ttrackRepository.rollback();\n\t\t\treturn;\n\t\t}\n\t\ttrackRepository.commit();\n\t\tpendingTransactions.put(Hex.toHexString(tx.getHash()), tx);\n\t}",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"protected abstract Transaction createAndAdd();",
"private void doneUpdate(long transaction) throws RequestIsOutException {\n\t\t\tassert this.lastSentTransaction == null || transaction > this.lastSentTransaction;\n\t\t\t\n\t\t\tthis.sendLock.readLock().unlock();\n\t\t}",
"TransactionResponseDTO transferTransaction(TransactionRequestDTO transactionRequestDTO);",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {\n if (Boolean.TRUE.equals(transaction.getFundingSource().isDebit())) {\n listener.onResponse(transaction, requestId, null);\n return;\n }\n\n // update in converge\n final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(\n transaction.getFundingSource().getEntryDetails(),\n transaction.getProcessorResponse().getRetrievalRefNum(),\n adjustTransactionRequest);\n convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {\n @Override\n public void onResponse(final ElavonTransactionResponse elavonResponse) {\n try {\n if (elavonResponse.isSuccess()) {\n // if it's MSR and if we have signature it's a separate call\n if (transaction.getFundingSource().getEntryDetails().getEntryMode() == EntryMode.TRACK_DATA_FROM_MAGSTRIPE\n && adjustTransactionRequest.getSignature() != null) {\n updateSignature(transaction, adjustTransactionRequest, requestId, listener);\n } else {\n listener.onResponse(transaction, requestId, null);\n }\n } else {\n listener.onResponse(transaction, requestId, new PoyntError(PoyntError.CODE_API_ERROR));\n }\n } catch (final RemoteException e) {\n Log.e(TAG, \"Failed to respond\", e);\n }\n }\n\n @Override\n public void onFailure(final Throwable t) {\n final PoyntError error = new PoyntError(PoyntError.CODE_API_ERROR);\n error.setThrowable(t);\n try {\n listener.onResponse(transaction, requestId, error);\n } catch (final RemoteException e) {\n Log.e(TAG, \"Failed to respond\", e);\n }\n }\n });\n }",
"public Optional<TransactionHistory> updateTransaction()\n {\n return null;\n }",
"private void updateTransactionFields() {\n if (transaction == null) {\n descriptionText.setText(\"\");\n executionDateButton.setText(dateFormat.format(new Date()));\n executionTimeButton.setText(timeFormat.format(new Date()));\n valueText.setText(\"\");\n valueSignToggle.setNegative();\n addButton.setText(R.string.add);\n // If we are editing a node, fill fields with current information\n } else {\n try {\n transaction.load();\n descriptionText.setText(transaction.getDescription());\n executionDateButton.setText(dateFormat.format(\n transaction.getExecutionDate()));\n executionTimeButton.setText(timeFormat.format(\n transaction.getExecutionDate()));\n BigDecimal value = transaction.getValue();\n valueText.setText(value.abs().toString());\n valueSignToggle.setToNumberSign(value);\n addButton.setText(R.string.edit);\n } catch (DatabaseException e) {\n Log.e(\"TMM\", \"Error loading transaction\", e);\n }\n }\n \n if (currentMoneyNode != null) {\n currencyTextView.setText(currentMoneyNode.getCurrency());\n }\n \n updateCategoryFields();\n updateTransferFields();\n }",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"TxnRequestProto.TxnRequest getTxnrequest();",
"@Override\n\tpublic Transaction update(Integer transactionId, Transaction transaction) {\n\t\treturn null;\n\t}",
"public int a(double newbal, Long ano, Long reqId, Double double1, Long compId,\r\n\t\tLong noShare,Long userid)throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"update bank set balance=\"+newbal+\"where accno=\"+ano+\"\");\r\n\tint j=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought'wherereq_id=\"+reqId+\"\");\r\n\tint k=DbConnect.getStatement().executeUpdate(\"insert into transaction values(trans_seq.nextval,\"+userid+\",sysdate,\"+double1+\",'purchase','broker',\"+compId+\",\"+noShare+\"\");\r\n\tint m=DbConnect.getStatement().executeUpdate(\"update moreshare set no_share=\"+noShare+\"where comp_id=\"+compId+\"\");\r\n\t\r\n\treturn i;\r\n}",
"@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }",
"Transaction getCurrentTransaction();",
"public void createTransaction(Transaction trans);",
"void addTransaction(Transaction transaction, long timestamp) throws TransactionNotInRangeException;",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"public MRequestUpdate( Properties ctx,int R_RequestUpdate_ID,String trxName ) {\n super( ctx,R_RequestUpdate_ID,trxName );\n }",
"Transaction createTransaction();",
"int updateParticipant(TccTransaction tccTransaction);",
"@Override\n\tpublic void allocateorder(Block block) {\n\t\tint executedQty=(int) block.getQtyExecuted();\n\t\tList<Order> list = new ArrayList<Order>();\n\t\tQuery query = em.createQuery(\"from Order where blockId = :id order by orderDate\");\n\t\tquery.setParameter(\"id\", block.getBlockId());\n\t\tlist = query.getResultList();\n\t\tfor (Order order1 : list) {\n\t\tint q=order1.getQtyPlaced();\n\t\tStatus status = null;\n\t\t\tif((q<= executedQty) && (executedQty>0))\n\t\t\t{\n\t\t\t\tSystem.out.println(em);\n\t\t\t\tSystem.out.println(\"Inside first loop\");\n\t\t\t\tSystem.out.println(q);\n\t\t\t\texecutedQty=executedQty-q;\n\t\t\t\t\n\t\t\t\tQuery query1 = em.createQuery(\"Update Order set qtyExecuted=:qty1, status=:status1 where orderId=:oid\");\n\t\t\t\tquery1.setParameter(\"qty1\",q);\n\t\t\t\tquery1.setParameter(\"status1\",status.Completed.toString());\n\t\t\t\tquery1.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query1.executeUpdate());\n\t\t\t\tSystem.out.println(executedQty + q);\n\t\t\t\t//query1.executeUpdate();\n\n\t\t\t}\n\t\t\telse if(q>=executedQty && executedQty>0){\n\t\t\t\texecutedQty=q-executedQty;\n\t\t\t\tSystem.out.println(\"Inside second loop\");\n\t\t\t\tQuery query1 = em.createQuery(\"Update Order set qtyExecuted=:qty2, status=:status2 where orderId=:oid\");\n\t\t\t\tquery1.setParameter(\"qty2\",executedQty);\n\t\t\t\tquery1.setParameter(\"status2\", status.PartiallyAllocated.toString());\n\t\t\t\tquery1.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query1.executeUpdate());\n\t\t\t\t//query1.executeUpdate();\n\t\t\t\texecutedQty=0;\n\t\t\t\tSystem.out.println(executedQty);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tQuery query2 = em.createQuery(\"update Order set status=:status3 where orderId=:oid\");\n\t\t\t\tquery2.setParameter(\"status3\", status.Open.toString());\n\t\t\t\tquery2.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query2.executeUpdate());\n\t\t\t\t//query2.executeUpdate();\n\t\t\t}}\n\t\tSystem.out.println(\"Inside OrderDAO\");\n\n\t\t\n\t}",
"private int modifyByTrans(HttpServletRequest request, LineCodeMapper entityMapper, PrmVersionMapper pvMapper, LineCode po) throws Exception {\n TransactionStatus status = null;\r\n int n = 0;\r\n try {\r\n\r\n// txMgr = DBUtil.getDataSourceTransactionManager(request);\r\n// status = txMgr.getTransaction(DBUtil.getTransactionDefinition(request));\r\n status = txMgr.getTransaction(this.def);\r\n n = entityMapper.modifyLineCode(po);\r\n pvMapper.modifyPrmVersionForDraft(po);\r\n\r\n txMgr.commit(status);\r\n } catch (Exception e) {\r\n if (txMgr != null) {\r\n txMgr.rollback(status);\r\n }\r\n throw e;\r\n }\r\n return n;\r\n }",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"@Override\n\tpublic int updateInventory(int tranNo, int amount) throws Exception {\n\t\treturn 0;\n\t}",
"List<TransactionVO> addPendingTransactions(List<SignedTransaction> transactions);",
"public int TransBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share+\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t}\r\n\treturn 1;\r\n}",
"public void completeOrderTransaction(Transaction trans){\n }",
"TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);",
"Update createUpdate();",
"public void rollbackTx()\n\n{\n\n}",
"Transaction beginTx();",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"@Test\n public void testUpdateCoin() throws Exception {\n VirtualCoinAddReq update = new VirtualCoinAddReq();\n update.setId(1l);\n update.setShortName(\"btc\");\n update.setName(\"btc\");\n update.setSecretKey(\"btc123456\");\n update.setAccessKey(\"btcabc87654321\");\n update.setIp(\"130.252.100.93\");\n update.setPort(\"8385\");\n update.setIconUrl(\"xx\");\n update.setIsWithDraw(\"\");\n update.setIsRecharge(\"\");\n update.setIsAuto(\"\");\n update.setMainAddress(\"main1\");\n update.setLowRechargeFees(new BigDecimal(1.0));\n update.setRechargeFees(new BigDecimal(1.0));\n update.setLowWithdrawFees(new BigDecimal(1.0));\n update.setWithdrawFees(new BigDecimal(1.0));\n update.setSingleLowRecharge(new BigDecimal(1.0));\n update.setSingleHighRecharge(new BigDecimal(1.0));\n update.setDayHighRecharge(new BigDecimal(1.0));\n update.setSingleLowWithdraw(new BigDecimal(1.0));\n update.setSingleHighWithdraw(new BigDecimal(1.0));\n update.setDayHighWithdraw(new BigDecimal(1.0));\n update.setLowTradeFees(new BigDecimal(6.0));\n update.setTradeFees(new BigDecimal(9.0));\n String token = CacheHelper.buildTestToken(\"1\");\n update.setToken(token);\n LOG.d(this,update);\n WebApiResponse response = virtualCoinCtrl. updateCoin(update);\n LOG.d(this,response);\n }",
"public void adjust()\n {\n }",
"protected void setForUpdate(Txn txn, boolean forUpdate) {\r\n }",
"@Override\n public void startTx() {\n \n }",
"public int TransSale(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='sale' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='sale' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'sale','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share-\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t}\r\n\t\r\n\treturn 1;\r\n}",
"public void UpdateTransaction() {\n\t\tgetUsername();\n\t\tcol_transactionID.setCellValueFactory(new PropertyValueFactory<Account, Integer>(\"transactionID\"));\n\t\tcol_date.setCellValueFactory(new PropertyValueFactory<Account, Date>(\"date\"));\n\t\tcol_description.setCellValueFactory(new PropertyValueFactory<Account, String>(\"description\"));\n\t\tcol_category.setCellValueFactory(new PropertyValueFactory<Account, String>(\"category\"));\n\t\tcol_amount.setCellValueFactory(new PropertyValueFactory<Account, Double>(\"amount\"));\n\t\tmySqlCon.setUsername(username);\n\t\tlists = mySqlCon.getAccountData();\n\t\ttableTransactions.setItems(lists);\n\t}",
"public void handle(UpdateEstimate c) throws Exception {\n try {\n Estimate estimate = this._handleUpdateInvoice(c.updateInvoiceProto);\n if (estimate != null) {\n// if (c.isCommittable()) {\n// HibernateUtils.commitTransaction(trx);\n// }\n c.setObject(estimate);\n }\n } catch (Exception ex) {\n\n throw ex;\n\n\n }\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 createTransaction() {\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n if(mCategory == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(\",\", \"\"));\n if(amount < 0) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));\n return;\n }\n\n int CategoryId = mCategory != null ? mCategory.getId() : 0;\n String Description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n boolean isDebtValid = true;\n // Less: DebtCollect, More: Borrow\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n }\n\n if(isDebtValid) {\n Transaction transaction = new Transaction(0,\n TransactionEnum.Income.getValue(),\n amount,\n CategoryId,\n Description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n long newTransactionId = mDbHelper.createTransaction(transaction);\n\n if (newTransactionId != -1) {\n\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) newTransactionId);\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n mDbHelper.deleteTransaction(newTransactionId);\n }\n } else {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n }\n }\n\n }",
"public MRequestUpdate( MRequest parent ) {\n super( parent.getCtx(),0,parent.get_TrxName());\n setClientOrg( parent );\n setR_Request_ID( parent.getR_Request_ID());\n set_ValueNoCheck( \"Created\",parent.getUpdated());\n set_ValueNoCheck( \"CreatedBy\",new Integer( parent.getUpdatedBy()));\n set_ValueNoCheck( \"Updated\",parent.getUpdated());\n set_ValueNoCheck( \"UpdatedBy\",new Integer( parent.getUpdatedBy()));\n\n //\n\n setStartTime( parent.getStartTime());\n setEndTime( parent.getEndTime());\n setResult( parent.getResult());\n setQtySpent( parent.getQtySpent());\n setQtyInvoiced( parent.getQtyInvoiced());\n setM_ProductSpent_ID( parent.getM_ProductSpent_ID());\n setConfidentialTypeEntry( parent.getConfidentialTypeEntry());\n }",
"@Override\n public void commitTx() {\n \n }",
"@Override\r\n\tpublic void updateTranCode(Purchase Purchase) throws Exception {\n\t\t\r\n\t}",
"@RequestMapping(value = \"/accounts/transaction\", method = RequestMethod.POST)\n\tpublic ResponseEntity<String> transaction(\n\t\t\t@RequestBody Transaction transaction) {\n\t\tlogger.debug(\"AccountController.transaction: \" + transaction.toString());\n\t\tif (transaction.getType().equals(TransactionType.DEBIT)) {\n\t\t\tlogger.debug(\"debit transaction\");\n\t\t\tAccount accountResponse = this.service.findAccount(transaction\n\t\t\t\t\t.getAccountId());\n\n\t\t\tBigDecimal currentBalance = accountResponse.getBalance();\n\n\t\t\tBigDecimal newBalance = currentBalance.subtract(transaction\n\t\t\t\t\t.getAmount());\n\n\t\t\tif (newBalance.compareTo(BigDecimal.ZERO) >= 0) {\n\t\t\t\taccountResponse.setBalance(newBalance);\n\t\t\t\tthis.service.saveAccount(accountResponse);\n\t\t\t\t// TODO save transaction?\n\t\t\t\tlogger.debug(\"transaction processed.\");\n\t\t\t\treturn new ResponseEntity<String>(\"SUCCESS\",\n\t\t\t\t\t\tgetNoCacheHeaders(), HttpStatus.OK);\n\n\t\t\t} else {\n\t\t\t\t// no sufficient founds available\n\t\t\t\treturn new ResponseEntity<String>(\"FAILED\",\n\t\t\t\t\t\tgetNoCacheHeaders(), HttpStatus.EXPECTATION_FAILED);\n\t\t\t}\n\n\t\t} else if (transaction.getType().equals(TransactionType.CREDIT)) {\n\t\t\tlogger.debug(\"credit transaction\");\n\t\t\tAccount accountResponse = this.service.findAccount(transaction.getAccountId());\n\n\t\t\tBigDecimal currentBalance = accountResponse.getBalance();\n\n\t\t\tlogger.debug(\"AccountController.transaction: current balance='\"\n\t\t\t\t\t+ currentBalance + \"'.\");\n\n\t\t\tif (transaction.getAmount().compareTo(BigDecimal.ZERO) > 0) {\n\n\t\t\t\tBigDecimal newBalance = currentBalance.add(transaction.getAmount());\n\t\t\t\tlogger.debug(\"AccountController.increaseBalance: new balance='\"\n\t\t\t\t\t\t+ newBalance + \"'.\");\n\n\t\t\t\taccountResponse.setBalance(newBalance);\n\t\t\t\tthis.service.saveAccount(accountResponse);\n\t\t\t\t// TODO save transaction?\n\t\t\t\treturn new ResponseEntity<String>(\"SUCCESS\", getNoCacheHeaders(), HttpStatus.OK);\n\n\t\t\t} else {\n\t\t\t\t// amount can not be negative for increaseBalance, please use\n\t\t\t\t// decreaseBalance\n\t\t\t\treturn new ResponseEntity<String>(\"FAILED\", getNoCacheHeaders(),\n\t\t\t\t\t\tHttpStatus.EXPECTATION_FAILED);\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\t}",
"private boolean prepareTransaction() {\n\n // Ensure Bitcoin network service is started\n BitcoinNetworkService bitcoinNetworkService = CoreServices.getOrCreateBitcoinNetworkService();\n Preconditions.checkState(bitcoinNetworkService.isStartedOk(), \"'bitcoinNetworkService' should be started\");\n\n Address changeAddress = bitcoinNetworkService.getNextChangeAddress();\n\n // Determine if this came from a BIP70 payment request\n if (paymentRequestData.isPresent()) {\n Optional<FiatPayment> fiatPayment = paymentRequestData.get().getFiatPayment();\n PaymentSession paymentSession;\n try {\n if (paymentRequestData.get().getPaymentRequest().isPresent()) {\n paymentSession = new PaymentSession(paymentRequestData.get().getPaymentRequest().get(), false);\n } else {\n log.error(\"No PaymentRequest in PaymentRequestData - cannot create a paymentSession\");\n return false;\n }\n } catch (PaymentProtocolException e) {\n log.error(\"Could not create PaymentSession from payment request {}, error was {}\", paymentRequestData.get().getPaymentRequest().get(), e);\n return false;\n }\n\n // Build the send request summary from the payment request\n Wallet.SendRequest sendRequest = paymentSession.getSendRequest();\n log.debug(\"SendRequest from BIP70 paymentSession: {}\", sendRequest);\n\n Optional<FeeState> feeState = WalletManager.INSTANCE.calculateBRITFeeState(true);\n\n // Prepare the transaction i.e work out the fee sizes (not empty wallet)\n sendRequestSummary = new SendRequestSummary(\n sendRequest,\n fiatPayment,\n FeeService.normaliseRawFeePerKB(Configurations.currentConfiguration.getWallet().getFeePerKB()),\n null,\n feeState\n );\n\n // Ensure we keep track of the change address (used when calculating fiat equivalent)\n sendRequestSummary.setChangeAddress(changeAddress);\n sendRequest.changeAddress = changeAddress;\n } else {\n Preconditions.checkNotNull(enterAmountPanelModel);\n Preconditions.checkNotNull(confirmPanelModel);\n\n // Check a recipient has been set\n if (!enterAmountPanelModel\n .getEnterRecipientModel()\n .getRecipient().isPresent()) {\n return false;\n }\n\n // Build the send request summary from the user data\n Coin coin = enterAmountPanelModel.getEnterAmountModel().getCoinAmount().or(Coin.ZERO);\n Address bitcoinAddress = enterAmountPanelModel\n .getEnterRecipientModel()\n .getRecipient()\n .get()\n .getBitcoinAddress();\n\n Optional<FeeState> feeState = WalletManager.INSTANCE.calculateBRITFeeState(true);\n\n // Create the fiat payment - note that the fiat amount is not populated, only the exchange rate data.\n // This is because the client and transaction fee is only worked out at point of sending, and the fiat equivalent is computed from that\n Optional<FiatPayment> fiatPayment;\n Optional<ExchangeRateChangedEvent> exchangeRateChangedEvent = CoreServices.getApplicationEventService().getLatestExchangeRateChangedEvent();\n if (exchangeRateChangedEvent.isPresent()) {\n fiatPayment = Optional.of(new FiatPayment());\n fiatPayment.get().setRate(Optional.of(exchangeRateChangedEvent.get().getRate().toString()));\n // A send is denoted with a negative fiat amount\n fiatPayment.get().setAmount(Optional.<BigDecimal>absent());\n fiatPayment.get().setCurrency(Optional.of(exchangeRateChangedEvent.get().getCurrency()));\n fiatPayment.get().setExchangeName(Optional.of(ExchangeKey.current().getExchangeName()));\n } else {\n fiatPayment = Optional.absent();\n }\n\n // Prepare the transaction i.e work out the fee sizes (not empty wallet)\n sendRequestSummary = new SendRequestSummary(\n bitcoinAddress,\n coin,\n fiatPayment,\n changeAddress,\n FeeService.normaliseRawFeePerKB(Configurations.currentConfiguration.getWallet().getFeePerKB()),\n null,\n feeState,\n false);\n }\n\n log.debug(\"Just about to prepare transaction for sendRequestSummary: {}\", sendRequestSummary);\n return bitcoinNetworkService.prepareTransaction(sendRequestSummary);\n }",
"Transfer updateChargeBack(Transfer transfer, Transfer chargeback);",
"Transaction createTransaction(Settings settings);",
"@Override\n\tpublic void updateRequest(Request request) {\n\n\t\tString requestBody = request.getBodyAsString();\n\t\tif ( (requestBody == null)\n\t\t || (requestBody.trim().isEmpty()) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tboolean toArguments = true;\n\t\tXMLRequestParser parser = new XMLwithAttributesParser(request,toArguments);\n\n\t\ttry {\n\t\t\tparser.parseXml().saveResultsToRequest();\n\t\t} catch (IOException ex) {\n\t\t\tLOGGER.error(ex.getMessage(), ex);\n\t\t\tthrow new RuntimeException(ex.getMessage(), ex);\n\t\t} catch (SAXException ex) {\n\t\t\tLOGGER.error(ex.getMessage(), ex);\n\t\t\tthrow new RuntimeException(ex.getMessage(), ex);\n\t\t}\n\t}",
"TxnRequestProto.TxnRequestOrBuilder getTxnrequestOrBuilder();",
"@Override\n\tpublic void updateRequest(TestExec testExec, Request request) {\n\t\tthis.updateRequest(request);\n\t}",
"@Override\n public void rollbackTx() {\n \n }",
"private void automaticPayment(String accountName, String reciever, String billName, final int amount, String date) {\n Log.d(TAG, \"makeTransaction: Has been called\");\n final DocumentReference senderDocRef = db.collection(\"users\").document(user.getEmail())\n .collection(\"accounts\").document(accountName);\n\n final DocumentReference recieverDocRef = db.collection(\"companies\").document(reciever);\n\n final DocumentReference billDocRef = db.collection(\"companies\").document(reciever).collection(\"customer\")\n .document(user.getEmail()).collection(\"bills\").document(billName);\n\n db.runTransaction(new Transaction.Function<Void>() {\n @Override\n public Void apply(Transaction transaction) throws FirebaseFirestoreException {\n DocumentSnapshot sender = transaction.get(senderDocRef);\n DocumentSnapshot reciever = transaction.get(recieverDocRef);\n\n\n int senderBalance = sender.getLong(\"balance\").intValue();\n int recieverBalance = reciever.getLong(\"amount\").intValue();\n int transactionBalance = Math.abs(amount);\n\n if (senderBalance >= transactionBalance) {\n transaction.update(senderDocRef, \"balance\", senderBalance - transactionBalance);\n transaction.update(recieverDocRef, \"amount\", recieverBalance + transactionBalance);\n transaction.update(billDocRef, \"isPaid\", true);\n\n\n SimpleDateFormat dateformat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date newDate = new Date();\n Calendar cal = Calendar.getInstance();\n cal.setTime(newDate);\n cal.add(Calendar.MONTH, 1);\n newDate = cal.getTime();\n transaction.update(billDocRef, \"recurring\", dateformat.format(newDate));\n } else {\n Log.d(TAG, \"apply: Transaction ikke fuldført\");\n }\n\n // Success\n return null;\n }\n }).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"Transaction success!\");\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(TAG, \"Transaction failure.\", e);\n }\n });\n\n }",
"public int updateOrderRequest(OrderEntity orderEntity);",
"@Test\n public void oldNotUpdateSuccessExchangeWithdraw() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(firstTokenId));\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, String.valueOf(1), firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n long id = 1;\n //V1 not update\n ExchangeCapsule exchangeCapsule = dbManager.getExchangeStore().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule.getID());\n Assert.assertEquals(1000000, exchangeCapsule.getCreateTime());\n Assert.assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsule.getSecondTokenId()));\n Assert.assertNotEquals(0L, exchangeCapsule.getFirstTokenBalance());\n Assert.assertNotEquals(0L, exchangeCapsule.getSecondTokenBalance());\n //V2\n ExchangeCapsule exchangeCapsule2 = dbManager.getExchangeV2Store().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule2.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule2.getID());\n Assert.assertEquals(1000000, exchangeCapsule2.getCreateTime());\n Assert.assertEquals(0L, exchangeCapsule2.getFirstTokenBalance());\n Assert.assertEquals(0L, exchangeCapsule2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetMap = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(firstTokenQuant, assetMap.get(String.valueOf(1)).longValue());\n Assert.assertEquals(secondTokenQuant, assetMap.get(String.valueOf(2)).longValue());\n\n Assert.assertEquals(secondTokenQuant, ret.getExchangeWithdrawAnotherAmount());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"private Transaction setUpTransaction(double amount, Transaction.Operation operation, String username){\n Transaction transaction = new Transaction();\n transaction.setDate(Date.valueOf(LocalDate.now()));\n transaction.setAmount(amount);\n transaction.setOperation(operation);\n transaction.setUserId(userRepository.getByUsername(username).getId());\n return transaction;\n }",
"@Override\r\n\tpublic TransferAmountResponseDto transfer(TransferAmountRequestDto transferAmountRequestDto) {\r\n\t\tlog.info(\"inside transaction service\");\r\n\r\n\t\tTransferAmountResponseDto transferAmountResponseDto = new TransferAmountResponseDto();\r\n\r\n\t\tTransaction debitTransaction = new Transaction();\r\n\t\tTransaction creditTransaction = new Transaction();\r\n\r\n\t\tAccount fromAccount = accountRepository.findByCustomerId(transferAmountRequestDto.getCustomerId());\r\n\t\tAccount toAccount = accountRepository.findByAccountNumber(transferAmountRequestDto.getCreditTo());\r\n\r\n\t\tif (fromAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (toAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getAccountNumber().equalsIgnoreCase(toAccount.getAccountNumber())) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_ACCOUNT);\r\n\t\t}\r\n\r\n\t\tBeneficiary existBeneficiary = beneficiaryRepository.findByCustomerAccountNumberAndBeneficiaryAccountNumber(\r\n\t\t\t\tfromAccount.getAccountNumber(), toAccount.getAccountNumber());\r\n\r\n\t\tif (existBeneficiary == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.NOT_BENEFICIARY);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getBalance() < transferAmountRequestDto.getTransferAmount()) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_AMOUNT);\r\n\t\t}\r\n\r\n\t\tif (transferAmountRequestDto.getTransferAmount() <= 0) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.MINIMUM_AMOUNT);\r\n\t\t}\r\n\r\n\t\tdebitTransaction.setAccountNumber(fromAccount.getAccountNumber());\r\n\t\tdebitTransaction.setTransactionType(\"debit\");\r\n\t\tdebitTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tdebitTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tdebitTransaction.setAccount(fromAccount);\r\n\r\n\t\tcreditTransaction.setAccountNumber(toAccount.getAccountNumber());\r\n\t\tcreditTransaction.setTransactionType(\"credit\");\r\n\t\tcreditTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tcreditTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tcreditTransaction.setAccount(toAccount);\r\n\r\n\t\tdouble remainingBalance = fromAccount.getBalance() - transferAmountRequestDto.getTransferAmount();\r\n\t\tdouble updatedBalance = toAccount.getBalance() + transferAmountRequestDto.getTransferAmount();\r\n\r\n\t\tfromAccount.setBalance(remainingBalance);\r\n\t\ttoAccount.setBalance(updatedBalance);\r\n\r\n\t\taccountRepository.save(fromAccount);\r\n\r\n\t\tTransaction transaction = transactionRepository.save(debitTransaction);\r\n\t\tif (transaction.getTransactionId() == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.TRANSACTION_FAILED);\r\n\t\t}\r\n\t\taccountRepository.save(toAccount);\r\n\r\n\t\ttransactionRepository.save(creditTransaction);\r\n\r\n\t\ttransferAmountResponseDto.setMessage(\"Amount Transferred successfully..\");\r\n\t\ttransferAmountResponseDto.setTransactionId(transaction.getTransactionId());\r\n\t\ttransferAmountResponseDto.setStatusCode(201);\r\n\t\treturn transferAmountResponseDto;\r\n\t}",
"@Override\n\tpublic Transaction update(Transaction item) {\n\t\treturn null;\n\t}",
"public int updatePayment2(int requestId, int amount);",
"public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"public void completeTx(SendRequest req) throws InsufficientMoneyException {\n try {\n checkArgument(!req.completed, \"Given SendRequest has already been completed.\");\n // Calculate the amount of value we need to import.\n Coin value = Coin.ZERO;\n for (TransactionOutput output : req.tx.getOutputs()) {\n value = value.add(output.getValue());\n }\n\n log.info(\"Completing send tx with {} outputs totalling {} and a fee of {}/kB\", req.tx.getOutputs().size(),\n value.toFriendlyString(), req.feePerKb.toFriendlyString());\n\n // If any inputs have already been added, we don't need to get their value from wallet\n Coin totalInput = Coin.ZERO;\n for (TransactionInput input : req.tx.getInputs())\n if (input.getConnectedOutput() != null)\n totalInput = totalInput.add(input.getConnectedOutput().getValue());\n else\n log.warn(\"SendRequest transaction already has inputs but we don't know how much they are worth - they will be added to fee.\");\n value = value.subtract(totalInput);\n\n List<TransactionInput> originalInputs = new ArrayList<TransactionInput>(req.tx.getInputs());\n\n // Check for dusty sends and the OP_RETURN limit.\n if (req.ensureMinRequiredFee && !req.emptyWallet) { // Min fee checking is handled later for emptyWallet.\n int opReturnCount = 0;\n for (TransactionOutput output : req.tx.getOutputs()) {\n if (output.isDust())\n throw new DustySendRequested();\n if (output.getScriptPubKey().isOpReturn())\n ++opReturnCount;\n }\n if (opReturnCount > 1) // Only 1 OP_RETURN per transaction allowed.\n throw new MultipleOpReturnRequested();\n }\n\n // Calculate a list of ALL potential candidates for spending and then ask a coin selector to provide us\n // with the actual outputs that'll be used to gather the required amount of value. In this way, users\n // can customize coin selection policies. The call below will ignore immature coinbases and outputs\n // we don't have the keys for.\n List<TransactionOutput> candidates = calculateAllSpendCandidates(true, req.missingSigsMode == MissingSigsMode.THROW);\n\n CoinSelection bestCoinSelection;\n TransactionOutput bestChangeOutput = null;\n List<Coin> updatedOutputValues = null;\n if (!req.emptyWallet) {\n // This can throw InsufficientMoneyException.\n FeeCalculation feeCalculation = calculateFee(req, value, originalInputs, req.ensureMinRequiredFee, candidates);\n bestCoinSelection = feeCalculation.bestCoinSelection;\n bestChangeOutput = feeCalculation.bestChangeOutput;\n updatedOutputValues = feeCalculation.updatedOutputValues;\n } else {\n // We're being asked to empty the wallet. What this means is ensuring \"tx\" has only a single output\n // of the total value we can currently spend as determined by the selector, and then subtracting the fee.\n checkState(req.tx.getOutputs().size() == 1, \"Empty wallet TX must have a single output only.\");\n CoinSelector selector = req.coinSelector == null ? coinSelector : req.coinSelector;\n bestCoinSelection = selector.select(params.getMaxMoney(), candidates);\n candidates = null; // Selector took ownership and might have changed candidates. Don't access again.\n req.tx.getOutput(0).setValue(bestCoinSelection.valueGathered);\n log.info(\" emptying {}\", bestCoinSelection.valueGathered.toFriendlyString());\n }\n\n for (TransactionOutput output : bestCoinSelection.gathered)\n req.tx.addInput(output);\n\n if (req.emptyWallet) {\n final Coin feePerKb = req.feePerKb == null ? Coin.ZERO : req.feePerKb;\n if (!adjustOutputDownwardsForFee(req.tx, bestCoinSelection, feePerKb, req.ensureMinRequiredFee))\n throw new CouldNotAdjustDownwards();\n }\n\n if (updatedOutputValues != null) {\n for (int i = 0; i < updatedOutputValues.size(); i++) {\n req.tx.getOutput(i).setValue(updatedOutputValues.get(i));\n }\n }\n\n if (bestChangeOutput != null) {\n req.tx.addOutput(bestChangeOutput);\n log.info(\" with {} change\", bestChangeOutput.getValue().toFriendlyString());\n }\n\n // Now shuffle the outputs to obfuscate which is the change.\n if (req.shuffleOutputs)\n req.tx.shuffleOutputs();\n\n // Now sign the inputs, thus proving that we are entitled to redeem the connected outputs.\n if (req.signInputs)\n signTransaction(req);\n\n // Check size.\n final int size = req.tx.unsafeUlordSerialize().length;\n if (size > UldTransaction.MAX_STANDARD_TX_SIZE)\n throw new ExceededMaxTransactionSize();\n\n // Label the transaction as being a user requested payment. This can be used to render GUI wallet\n // transaction lists more appropriately, especially when the wallet starts to generate transactions itself\n // for internal purposes.\n req.tx.setPurpose(UldTransaction.Purpose.USER_PAYMENT);\n // Record the exchange rate that was valid when the transaction was completed.\n req.tx.setMemo(req.memo);\n req.completed = true;\n log.info(\" completed: {}\", req.tx);\n } finally {\n }\n }",
"public static String oamAdjustBalance(DataBaseUtil dataBaseUtil, String oneAccountId, int adjustAmount, RESTActions actions) {\n\t\tString uid = UUID.randomUUID().toString();\n\t\tString unregisteredEmail = \"\";\n\t\tString deviceId = NISGlobals.NIS_DEVICE_ID;\n\t\tString clientRefId = deviceId + \":\" + BackOfficeUtils.generateRandomString(BackOfficeGlobals.BACKOFFICE_CLIENT_REF_ID_LENGTH - deviceId.length() - 1);\n\t\tList<WSAdjustProductLineItem> productLineItems = null;\n\t\tWSAdjustProductLineItem productLineItem = null;\n\t\tWSAdjustProduct product = null;\n\t\tString notes = BackOfficeGlobals.BACKOFFICE_OAM_ADJUST_NOTES_TEXT;\n\t\tString purseId = \"\";\n\t\tint financiallyResponsibleOperatorId = BackOfficeGlobals.BACKOFFICE_DEFAULT_OAM_OPERATOR_ID;\n\t\tOAMAccount accountObj = null;\n\t\tCSOrderAdjustmentResp respObj = null;\n\t\t\n\t\tLOG.info(\"##### Adjusting Balance to: \" + adjustAmount + \", for OneAccount ID: \" + oneAccountId + \"\\n\");\n\t\t\n\t\t// Get all values needed for the request\n\t\tpurseId = OAMUtils.oamGetPurseId(dataBaseUtil, oneAccountId);\n\t\taccountObj = OAMUtils.oamGetAccount(dataBaseUtil, oneAccountId);\n\t\tproduct = new WSAdjustOneAccountValue(adjustAmount, BackOfficeGlobals.BACKOFFICE_ADJUST_PRODUCT_TYPE_OAM_VALUE, oneAccountId, purseId);\n\t\t\n\t\tproductLineItem = new WSAdjustProductLineItem(product);\n\t\tproductLineItems = Arrays.asList(productLineItem);\n\t\t\n\t\trespObj = CSOrderAdjustmentPOST.sendReq(accountObj.getCustomerId(), unregisteredEmail, clientRefId, productLineItems, uid, notes, financiallyResponsibleOperatorId, actions);\n\t\tLOG.info(\"Returning Response Code: \" + respObj.getResponseCode() + \"\\n\");\n\t\t\n\t\treturn respObj.getResponseCode();\n\t}",
"Transaction save(Transaction transaction);",
"public static void updateAutoEncumbrancechanges(EscmProposalMgmt proposalmgmt, boolean isCancel) {\n try {\n OBContext.setAdminMode();\n BigDecimal amt = BigDecimal.ZERO, amtTemp = BigDecimal.ZERO;\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n List<EscmProposalmgmtLine> baseProlineList;\n BigDecimal diff = BigDecimal.ZERO;\n\n // checking with propsal line\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()\n && (proposalline.getStatus() == null || !proposalline.getStatus().equals(\"CL\"))) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (isCancel) {\n\n if (encline.getManualEncumbrance().getAppliedAmount().compareTo(BigDecimal.ZERO) == 1) {\n\n if (proposalmgmt.getEscmBaseproposal() == null) {\n\n amt = encline.getAPPAmt().subtract(proposalline.getLineTotal());\n encline.setAPPAmt(amt);\n amtTemp = amtTemp.add(proposalline.getLineTotal());\n if (encline.getManualEncumbrance().getAppliedAmount().subtract(amtTemp)\n .compareTo(BigDecimal.ZERO) == 0 && baseProposalObj == null)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n }\n if (proposalmgmt.getEscmBaseproposal() == null)\n BidManagementDAO.insertEncumbranceModification(encline,\n proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n // This else is for the particular case (proposal->po, po cancel and proposal\n // cancel)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n break;\n }\n\n } else {\n\n if (baseProposalObj == null) {\n if (encline != null) {\n encline.getManualEncumbrance().setDocumentStatus(\"DR\");\n // remove associated proposal line refernce\n if (encline.getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList().size() > 0) {\n for (EscmProposalmgmtLine proLineList : encline\n .getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList()) {\n proLineList.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proLineList);\n }\n }\n\n OBDal.getInstance().remove(encline);\n }\n }\n }\n /*\n * Trigger changes EfinEncumbarnceRevision.updateBudgetInquiry(encline,\n * encline.getManualEncumbrance(), proposalline.getLineTotal().negate());\n */\n }\n }\n\n // for cancel case if there exist a previous version, then update the encumbrance based on\n // the previous version values (Adding new records in the modification tab based on the new\n // and old proposal)\n if (isCancel) {\n if (baseProposalObj != null) {\n for (EscmProposalmgmtLine newproposalline : prolineList) {\n if (!newproposalline.isSummary()) {\n if (newproposalline.getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getLineTotal()\n .subtract(newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO);\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline,\n diff.negate(), null, false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff.negate()));\n OBDal.getInstance().save(encline);\n }\n } else if (newproposalline.getStatus() != null\n && newproposalline.getEscmOldProposalline() != null\n && newproposalline.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO;\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline, diff, null,\n false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff));\n OBDal.getInstance().save(encline);\n }\n }\n }\n }\n }\n }\n OBDal.getInstance().flush();\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tprotected void executeTransaction(int cents) {\n\t}",
"public CTransaction( PointDBDataStore parent, OGCWebServiceRequest request ) {\r\n super( parent, request );\r\n config = parent.getConfiguration();\r\n pool = parent.getConnectionPool();\r\n }",
"@Transactional\n\tpublic String addTransaction(int toAccNo, int fromAccNo, Transaction tran) {\n\t\t\tEntityManager entityManager = getEntityManager();\n\t\t\tAccountdetail acc = (Accountdetail) entityManager.createQuery(\"select a from Accountdetail a where a.accountnumber =: toaccNo\").setParameter(\"toaccNo\", toAccNo ).getSingleResult();\n\t\t\tAccountdetail acc1 = (Accountdetail) entityManager.createQuery(\"select ac from Accountdetail ac where ac.accountnumber =: fromAccNo\").setParameter(\"fromAccNo\", fromAccNo ).getSingleResult();\n\t\t\t\n\t\t\t//Validation -----> The Balance amount should be greater than the Amount Transfered \n\t\t\tif(acc1.getCurrentbalance()>=tran.getAmounttransferred()) {\n\t\t\t\t\ttran.setAccountto(acc);\n\t\t\t\t\ttran.setAccountfrom(acc1);\n\t\t\t\t\tentityManager.merge(tran);\n\t\t\t\t\t\n\t\t\t\t\t//Taking the amount transfered\n\t\t\t\t\tint amt = tran.getAmounttransferred();\n\t\t\t\t\tSystem.out.println(toAccNo);\n\t\t\t\t\t\n\t\t\t\t\t//Also crediting and debiting the amount from the accounts \n\t\t\t\t\tacc.setCurrentbalance(acc.getCurrentbalance()+amt);\n\t\t\t\t\tacc1.setCurrentbalance(acc1.getCurrentbalance()-amt);\n\t\t\t\t\t\n\t\t\t\t\t//Mailing the details of the transaction to the Respective Account Numbers\n\t\t\t\t\tString info_deb = \"Amount debited from your account.\\nAmount -->\"+amt+\"\\nTo Account -->\"+acc.getAccountnumber();\n String info_rec = \"Amount credited to your account.\\nAmount -->\"+amt+\"\\nFrom Account -->\"+acc1.getAccountnumber();\n mailService.sendMail(info_deb, acc1.getCustomerdetail().getEmail());\n mailService.sendMail(info_rec, acc.getCustomerdetail().getEmail());\n \n\t\t\t\t\treturn \"Transaction Inserted\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If Balance is less than the Amount Transfered \n\t\t\t\telse if(acc1.getCurrentbalance()<tran.getAmounttransferred()) {\n\t\t\t\t\treturn \"insufficient funds\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If the Details is wrong\n\t\t\t\telse {\n\t\t\t\t\treturn \"Wrong details. Please try again\";\n\t\t\t\t}\n\t }",
"public void onEditTransaction(Transaction transaction) {\n\t}",
"public void transactionWriteForAlertAndStockTable(TransactionWriteRequest transactionWriteRequest,\n DynamoDBMapperConfig config, boolean shouldIncreaseAlertCount) {\n if (transactionWriteRequest == null) {\n throw new SdkClientException(\"Input request is null or empty\");\n }\n\n final DynamoDBMapperConfig finalConfig = mergeConfig(config);\n\n List<TransactionWriteRequest.TransactionWriteOperation> writeOperations =\n transactionWriteRequest.getTransactionWriteOperations();\n List<ValueUpdate> inMemoryUpdates = new LinkedList<ValueUpdate>();\n TransactWriteItemsRequest transactWriteItemsRequest = new TransactWriteItemsRequest();\n List<TransactWriteItem> transactWriteItems = new ArrayList<TransactWriteItem>();\n\n transactWriteItemsRequest.setClientRequestToken(transactionWriteRequest.getIdempotencyToken());\n\n for (TransactionWriteRequest.TransactionWriteOperation writeOperation : writeOperations) {\n TransactWriteItem writeItem = generateTransactWriteItem(writeOperation, inMemoryUpdates, finalConfig);\n if (writeOperation.getObject() instanceof StockDataItem && writeItem.getUpdate() != null) {\n String updateExpression = writeItem.getUpdate().getUpdateExpression();\n\n String identifierForAlertCount = getIdentifier(writeItem.getUpdate().getExpressionAttributeNames(),\n TABLE_ALERT_COUNT_KEY);\n\n String identifierForExchange = getIdentifier(writeItem.getUpdate().getExpressionAttributeNames(),\n TABLE_STOCK_EXCHANGE_KEY);\n\n String identifierForPriority= getIdentifier(writeItem.getUpdate().getExpressionAttributeNames(),\n TABLE_UPDATE_PRIORITY_KEY);\n\n String exchange = ((StockDataItem) writeOperation.getObject()).getExchange();\n\n if (updateExpression != null) {\n\n if(identifierForAlertCount != null) {\n updateExpression = updateExpression.replace(identifierForAlertCount + \" = \",\n identifierForAlertCount + \" = \" + \" if_not_exists(\" + identifierForAlertCount + \", :initial)\" +\n (shouldIncreaseAlertCount ? \" + \" : \"-\"));\n }\n\n //if exchange is not equal to DEF then we always update the exchange otherwise we only add it if there is no exhcnage currently\n if(identifierForExchange != null && TABLE_STOCK_EXCHANGE_DEFAULT_VALUE.equalsIgnoreCase(exchange)) {\n String identifierForExchangeValue = identifierForExchange.replace(\"#\", \":\");\n updateExpression = updateExpression.replace(identifierForExchangeValue ,\n \"if_not_exists(\" + identifierForExchange + \", \" + identifierForExchangeValue + \")\");\n }\n\n if(identifierForPriority != null ) {\n String identifierForPriorityValue = identifierForPriority.replace(\"#\", \":\");\n updateExpression = updateExpression.replace(identifierForPriorityValue ,\n \"if_not_exists(\" + identifierForPriority + \", \" + identifierForPriorityValue + \")\");\n }\n\n writeItem.getUpdate().setUpdateExpression(updateExpression);\n writeItem.getUpdate().getExpressionAttributeValues().put(\":initial\", new AttributeValue().withN(\"0\"));\n }\n }\n transactWriteItems.add(writeItem);\n }\n\n transactWriteItemsRequest.setTransactItems(transactWriteItems);\n\n dynamoDB.transactWriteItems(transactWriteItemsRequest);\n\n // Update the inMemory values for autogenerated attributeValues after successful completion of transaction\n for (ValueUpdate update : inMemoryUpdates) {\n update.apply();\n }\n }",
"public MRequestUpdate( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }",
"@Override\r\n\tpublic TransactionMetadata initializeTransaction(BigInteger txid,TransactionMetadata prevMetadata) {\n\t\tTransactionMetadata ret = initializeTransactionMetadat();\r\n\t\tif(nextBatchRows!=null && !nextBatchRows.isEmpty()){\r\n\t\t\tList<ObjectId> rowIds = Util.convertToIdList(nextBatchRows);\r\n//\t\t\tquantity = quantity > MAX_TRANSACTION_SIZE ? MAX_TRANSACTION_SIZE : quantity;\r\n\t\t\tret = new TransactionMetadata(collectionName,rowIds);\r\n\t\t\tObjectId[] objectIds = Util.convertObjectIdListToArr(rowIds);\r\n\t\t\tString objIdStr = Util.convertObjectIdArrToStr(objectIds);\r\n\t\t\tlogger.debug(\"store transactionMetadata,txid:\"+txid+\" [collection:\"+collectionName+\"]objIds : \"+objIdStr);\r\n\t\t}\r\n//\t\tnextRead += quantity;\r\n//\t\tmongoManager.updateFlagToInprogress(idList);\r\n\t\treturn ret;\r\n\t}",
"public Transaction getDummyTransaction(String action) {\n\n\t\t// Long payerAccountNum = 111l;\n\t\tLong payerRealmNum = 0l;\n\t\tLong payerShardNum = 0l;\n\t\t// Long nodeAccountNum=123l;\n\t\tLong nodeRealmNum = 0l;\n\t\tLong nodeShardNum = 0l;\n\t\tlong transactionFee = 0l;\n\t\tTimestamp startTime =\n\t\t\t\tRequestBuilder.getTimestamp(Instant.now(Clock.systemUTC()).minusSeconds(13));\n\t\tDuration transactionDuration = RequestBuilder.getDuration(100);\n\t\tboolean generateRecord = false;\n\t\tString memo = \"UnitTesting\";\n\t\tint thresholdValue = 10;\n\t\tList<Key> keyList = new ArrayList<>();\n\t\tKeyPair pair = new KeyPairGenerator().generateKeyPair();\n\t\tbyte[] pubKey = ((EdDSAPublicKey) pair.getPublic()).getAbyte();\n\t\tKey akey =\n\t\t\t\tKey.newBuilder().setEd25519(ByteString.copyFromUtf8((MiscUtils.commonsBytesToHex(pubKey)))).build();\n\t\tPrivateKey priv = pair.getPrivate();\n\t\tkeyList.add(akey);\n\t\tlong initBal = 100;\n\t\tlong sendRecordThreshold = 5;\n\t\tlong receiveRecordThreshold = 5;\n\t\tboolean receiverSign = false;\n\t\tDuration autoRenew = RequestBuilder.getDuration(100);\n\t\t;\n\t\tlong proxyAccountNum = 12345l;\n\t\tlong proxyRealmNum = 0l;\n\t\tlong proxyShardNum = 0l;\n\t\tint proxyFraction = 10;\n\t\tint maxReceiveProxyFraction = 10;\n\t\tlong shardID = 0l;\n\t\tlong realmID = 0l;\n\n\t\tTransaction trx = null;\n\t\tSignatureList sigList = SignatureList.getDefaultInstance();\n\t\tTimestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\n\t\t/**\n\t\t * SignatureList sigList = SignatureList.getDefaultInstance(); Transaction transferTx =\n\t\t * RequestBuilder.getCryptoTransferRequest( payer.getAccountNum(), payer.getRealmNum(),\n\t\t * payer.getShardNum(), nodeAccount.getAccountNum(), nodeAccount.getRealmNum(),\n\t\t * nodeAccount.getShardNum(), 800, timestamp, transactionDuration, false, \"test\", sigList,\n\t\t * payer.getAccountNum(), -100l, nodeAccount.getAccountNum(), 100l); transferTx =\n\t\t * TransactionSigner.signTransaction(transferTx, accountKeys.get(payer));\n\t\t */\n\n\t\tif (\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t\ttrx = RequestBuilder.getCryptoTransferRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 800, timestamp,\n\t\t\t\t\ttransactionDuration, false, \"test\", sigList, payerAccountId.getAccountNum(), -100l,\n\t\t\t\t\tnodeAccountId.getAccountNum(), 100l);\n\t\t\t// trx = TransactionSigner.signTransaction(trx, account2keyMap.get(payerAccountId));\n\t\t}\n\n\t\tif (\"createContract\".equalsIgnoreCase(action)) {\n\t\t\tFileID fileID = FileID.newBuilder().setFileNum(9999l).setRealmNum(1l).setShardNum(2l).build();\n\n\t\t\ttrx = RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 50000000000l, timestamp,\n\t\t\t\t\ttransactionDuration, true, \"createContract\", DEFAULT_CONTRACT_OP_GAS, fileID,\n\t\t\t\t\tByteString.EMPTY, 0, transactionDuration,\n\t\t\t\t\tSignatureList.newBuilder().addSigs(\n\t\t\t\t\t\t\tSignature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t\t\t\t\t\t.build(),\n\t\t\t\t\t\"\");\n\t\t}\n\n\t\t// if(\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t// long durationInSeconds = DAY_SEC * 30;\n\t\t// * Duration contractAutoRenew = Duration.newBuilder().setSeconds(durationInSeconds).build();\n\t\t// * Timestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\t\t// * Duration transactionDuration = RequestBuilder.getDuration(30, 0);\n\t\t// * Transaction createContractRequest =\n\t\t// RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t// * payerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t// * nodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 100l, timestamp,\n\t\t// transactionDuration, true, \"createContract\",\n\t\t// * DEFAULT_CONTRACT_OP_GAS, contractFile, ByteString.EMPTY, 0, contractAutoRenew,\n\t\t// * SignatureList.newBuilder()\n\t\t// *\n\t\t// .addSigs(Signature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t// * .build());\n\t\t// }\n\n\t\treturn trx;\n\n\t}",
"public void beginTransaction() {\n\r\n\t}",
"public int TransBroBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\t\tjava.util.Date d=new java.util.Date();\r\n\t\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\t\tString sdate=sd.format(d);\r\n\t\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\t\tif(rs1.next()==true)\r\n\t\t{\r\n\t\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','broker',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t\t}\r\n\t\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\t\tif(rss.next()==true)\r\n\t\t{\r\n\t\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share+\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"@Override\n\tpublic void update(Peer otherPeer) {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\n\t\t\tif(otherPeer.equals(request.getConsumer()) || otherPeer.equals(request.getProvider()))\t\t\n\t\t\t\tupdateAccounting(request);\n\t\t}\t\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of this peer was performed, \n\t\t * we now update the lastUpdatedTime of this accounting info. \n\t\t */\n\t\tgetAccountingInfo(otherPeer).setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\n\t\tfinishRequests();\t\t\n\t}",
"public void broadCastTransaction(final String mTransaction, int mWallet_id) {\r\n this.mWallet_id = mWallet_id;\r\n try {\r\n mJsonRequest.put(SDKHelper.RAW_TX, mTransaction);\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n String mTransactionHistoryUrl = \"\";\r\n if (SDKConstants.WALLET_TYPE== SDKHelper.ZERO){\r\n mTransactionHistoryUrl = SDKHelper.TESTNET_URL_PUSH_TRANSACTION_URL;\r\n }else{\r\n mTransactionHistoryUrl = SDKHelper.MAIN_PUSH_TRANSACTION_URL;\r\n }\r\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST, mTransactionHistoryUrl,\r\n mJsonRequest, responselistner, errorListener) {\r\n /**\r\n * Passing some request headers\r\n * */\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n Map headers = new HashMap();\r\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\r\n return headers;\r\n }\r\n\r\n @Override\r\n protected Map<String, String> getParams() throws AuthFailureError {\r\n return super.getParams();\r\n }\r\n\r\n };\r\n SDKControl.getInstance().cancelPendingRequests(new RequestQueue.RequestFilter() {\r\n @Override\r\n public boolean apply(Request<?> request) {\r\n return true;\r\n }\r\n });\r\n SDKControl.getInstance().cancelPendingRequests(SDKHelper.TAG_SEND_TRANS);\r\n jsonObjReq.setRetryPolicy(new DefaultRetryPolicy(SDKHelper.WEBCALL_TIMEOUT, SDKHelper.RETRY_COUNT,\r\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\r\n jsonObjReq.setShouldCache(false);\r\n // Adding request to request queue\r\n SDKControl.getInstance().addToRequestQueue(jsonObjReq, SDKHelper.TAG_SEND_TRANS);\r\n\r\n }",
"private ReservationUpdateRequest createReservationUpdateRequest(\n ReservationUpdateRequestInfo resContext) throws IOException {\n if (resContext == null) {\n throw new BadRequestException(\n \"Input ReservationSubmissionContext should not be null\");\n }\n ReservationDefinitionInfo resInfo = resContext.getReservationDefinition();\n if (resInfo == null) {\n throw new BadRequestException(\n \"Input ReservationDefinition should not be null\");\n }\n ReservationRequestsInfo resReqsInfo = resInfo.getReservationRequests();\n if (resReqsInfo == null || resReqsInfo.getReservationRequest() == null\n || resReqsInfo.getReservationRequest().size() == 0) {\n throw new BadRequestException(\"The ReservationDefinition should\"\n + \" contain at least one ReservationRequest\");\n }\n if (resContext.getReservationId() == null) {\n throw new BadRequestException(\n \"Update operations must specify an existing ReservationId\");\n }\n\n ReservationRequestInterpreter[] values =\n ReservationRequestInterpreter.values();\n ReservationRequestInterpreter resInt =\n values[resReqsInfo.getReservationRequestsInterpreter()];\n List<ReservationRequest> list = new ArrayList<ReservationRequest>();\n\n for (ReservationRequestInfo resReqInfo : resReqsInfo\n .getReservationRequest()) {\n ResourceInfo rInfo = resReqInfo.getCapability();\n Resource capability =\n Resource.newInstance(rInfo.getMemorySize(), rInfo.getvCores());\n int numContainers = resReqInfo.getNumContainers();\n int minConcurrency = resReqInfo.getMinConcurrency();\n long duration = resReqInfo.getDuration();\n ReservationRequest rr = ReservationRequest.newInstance(capability,\n numContainers, minConcurrency, duration);\n list.add(rr);\n }\n ReservationRequests reqs = ReservationRequests.newInstance(list, resInt);\n ReservationDefinition rDef = ReservationDefinition.newInstance(\n resInfo.getArrival(), resInfo.getDeadline(), reqs,\n resInfo.getReservationName(), resInfo.getRecurrenceExpression(),\n Priority.newInstance(resInfo.getPriority()));\n ReservationUpdateRequest request = ReservationUpdateRequest.newInstance(\n rDef, ReservationId.parseReservationId(resContext.getReservationId()));\n\n return request;\n }",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithKind,\n UpdateStages.WithSku,\n UpdateStages.WithIdentity,\n UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Account apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Account apply(Context context);\n }",
"public void saveOrUpdate(Transaction transaction) throws Exception;",
"public void update(TransactionUpdateRequest transactionUpdateRequest) {\n\n if (transactionUpdateRequest.getAmount() != null) {\n update(\"id\", transactionUpdateRequest.getId(), \"amount\", String.valueOf(transactionUpdateRequest.getAmount()));\n }\n if (transactionUpdateRequest.getProduct() != null) {\n update(\"id\", transactionUpdateRequest.getId(), \"product\", String.valueOf(transactionUpdateRequest.getProduct()));\n }\n if (transactionUpdateRequest.getUser() != null) {\n update(\"id\", transactionUpdateRequest.getId(), \"user\", String.valueOf(transactionUpdateRequest.getUser()));\n }\n }",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"@Override\n\tpublic void processTransaction(Transaction transactionObject) {\n\t\t\n\t\ttrasactionList.addLast(transactionObject);\n\t\t\n\t\tif ( transactionObject.getTransactionType() == 'C'){\n\t\t\t\n\t\t\tbalance -= transactionObject.getTransactionAmount(); \n\t\t\t\n\t\t}\n\t\t\n\t\telse if ( transactionObject.getTransactionType() == 'D'){\n\t\t\t\n\t\t\tbalance += transactionObject.getTransactionAmount(); \n\t\t}\n\t}",
"@Override\r\n\tpublic void updateTranCode(Transaction transaction) throws Exception {\n\t\ttranDao.updateTranCode(transaction);\r\n\t}",
"public void forceCommitTx()\n{\n}",
"public boolean transferAmount(String id,String sourceAccount,String targetAccount,int amountTransfer) throws SQLException {\n\t\n\tConnection con = null;\n\tcon = DatabaseUtil.getConnection();\n\tint var=0;\n\tint var2=0;\n\tPreparedStatement ps1 = null;\n\tPreparedStatement ps2 = null;\n\tPreparedStatement ps3 = null;\n\tPreparedStatement ps4 = null;\n\tResultSet rs1 = null;\n\tResultSet rs2 = null;\n\tResultSet rs3 = null;\n\tResultSet rs4 = null;\n\tboolean flag=false;\n\n\tcon = DatabaseUtil.getConnection();\n\t\n\t//Account account=new Account();\n\tps1=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps1.setInt(1,Integer.parseInt(id));\n\tps1.setString(2,targetAccount);\n\trs1=ps1.executeQuery();\n\t\n\twhile (rs1.next()) {\n\t var = rs1.getInt(1);\n\t \n\t if (rs1.wasNull()) {\n\t System.out.println(\"id is null\");\n\t }\n\t}\n\t\n\tint targetAmount=var+amountTransfer;\n\tSystem.out.println(\"target amount \"+targetAmount);\n\t//System.out.println(\"very good\");\n\tps2=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps2.setInt(1,Integer.parseInt(id));\n\tps2.setString(2,sourceAccount);\n\trs2=ps2.executeQuery();\n\t\n\twhile (rs2.next()) {\n\t var2 = rs2.getInt(1);\n\t //System.out.println(\"id=\" + var);\n\t if (rs2.wasNull()) {\n\t System.out.println(\"name is null\");\n\t }\n\t}\n\t\n\tint sourceAmount=var2-amountTransfer;\n\tSystem.out.println(\"source amount\"+ sourceAmount);\n\tif(sourceAmount<0 ) {\n\t\tSystem.out.println(\"Unable to tranfer\");\n\t}else {\n\t\tflag=true;\n\t\tps3=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps3.setInt(1,sourceAmount);\n\t\tps3.setString(2,sourceAccount);\n\t\t//System.out.println(\"hey\");\n\t\trs3=ps3.executeQuery();\n\t\t\n\t\tps4=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps4.setInt(1,targetAmount);\n\t\tps4.setString(2,targetAccount);\n\t\trs4=ps4.executeQuery();\n\t\t//System.out.println(\"Transfer Dao1\");\n\t}\n\tDatabaseUtil.closeConnection(con);\n\tDatabaseUtil.closeStatement(ps1);\n\tDatabaseUtil.closeStatement(ps2);\n\tDatabaseUtil.closeStatement(ps3);\n\tDatabaseUtil.closeStatement(ps4);\n\treturn flag;\n}",
"void beginTransaction();",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }",
"public void updateTransaction(){\n\n System.out.println(\"Update transaction with ID: \");\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n Transaction newTransaction = this.ctrl.getTransactions().findOne(id).get();\n System.out.println(\"Choose an action: \\n 1.Change the client details. \\n\" +\n \"2.Add a new item to the same transaction. \\n 3.Update the date.\");\n\n String option = bufferRead.readLine();\n\n switch (option) {\n case \"1\":\n System.out.println(\"New client? \");\n String opt = bufferRead.readLine();\n Client c = new Client();\n if(opt.equals(\"yes\")){\n c = this.readClient();\n this.ctrl.addClient(c);\n }\n else {\n this.printAllClients();\n int clientOption = Integer.parseInt(bufferRead.readLine());\n Long clientId = ((Client) this.ctrl.getAllClients().toArray()[clientOption - 1]).getId();\n System.out.println(\"Enter new characteristics: \");\n System.out.println(\"Name: \");\n String newName = bufferRead.readLine();\n System.out.println(\"Age: \");\n int newAge = Integer.parseInt(bufferRead.readLine());\n System.out.println(\"Membership type: \");\n String newMembershipType = bufferRead.readLine();\n\n c = new Client(newName, newAge, newMembershipType);\n c.setId(clientId);\n ctrl.updateClient(c);\n }\n newTransaction.setClient(c);\n ctrl.updateTransaction(newTransaction);\n break;\n case \"2\":\n System.out.println(\"Choose the item you would like to add: \");\n this.printAllItems();\n String sOption = bufferRead.readLine();\n\n while(!(sOption.equals(\"stop\"))) {\n\n int itemOption = 0;\n\n itemOption = Integer.parseInt(sOption);\n ClothingItem item = (ClothingItem) this.ctrl.getAllItems().toArray()[itemOption - 1];\n newTransaction.addItemToCart(item);\n\n this.printAllItems();\n System.out.println(\"Choose another item(or stop if you have finished adding): \");\n sOption = bufferRead.readLine();\n }\n ctrl.updateTransaction(newTransaction);\n break;\n case \"3\":\n System.out.println(\"Enter a new date(dd/mm/yyyy): \");\n String newDate = bufferRead.readLine();\n newTransaction.setDate(newDate);\n ctrl.updateTransaction(newTransaction);\n break;\n default:\n break;\n\n }\n\n\n\n this.ctrl.updateTransaction(newTransaction);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public boolean doTransaction() {\r\n int nonce = -1;\r\n TransactionOperation transactionOperation = null;\r\n try {\r\n double balance;\r\n \r\n //read the stream for requests from client\r\n byte[] cipherText = (byte [])is.readObject();\r\n \r\n // decrypt the ciphertext to obtain the signed message\r\n ATMSessionMessage atmSessionMessage = (ATMSessionMessage) crypto.decryptRijndael(cipherText, kSession);\r\n if(!(currTimeStamp < atmSessionMessage.getTimeStamp())) error (\"Time stamp does not match\");\r\n \r\n //interpret the transaction operation in the request\r\n SignedMessage signedMessage = atmSessionMessage.getSignedMessage();\r\n \r\n \r\n \t\t//verify signature\r\n \t\ttry {\r\n \t\t\tif(!crypto.verify(signedMessage.msg, signedMessage.signature, currAcct.kPub))\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"Digital signature failed...\");\r\n \t\t\t}\r\n \t\t\tSystem.out.println(\"Message signature valid...\");\r\n \t\t} catch (SignatureException e2) {\r\n \t\t\te2.printStackTrace();\r\n \t\t\treturn false;\r\n \t\t} catch (KeyException e2) {\r\n \t\t\te2.printStackTrace();\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n TransactionMessage transactionMessage = (TransactionMessage)signedMessage.getObject();\r\n transactionOperation = transactionMessage.getOperation();\r\n \r\n //print the signed message\r\n System.out.println(\"\\n\" + (new Date()).toString());\r\n System.out.println(signedMessage.toString());\r\n \r\n //strip out the parameters embedded \r\n nonce = atmSessionMessage.getNonce();\r\n double value = transactionMessage.getValue();\r\n \r\n //print the timestamp when the transaction takes place\r\n Date now = new Date();\r\n System.out.println(\"\\n\" + now.toString());\r\n \r\n //re-route the request to the appropriate handling function\r\n if(transactionOperation == TransactionOperation.Deposit) {\r\n \t System.out.println(\"ACCT #:\" + currAcct.getNumber() + \" DEPOSIT: \" + value);\r\n currAcct.deposit(value);\r\n \r\n System.out.println(\"\\n\" + (now).toString());\r\n System.out.println(\"Deposit Complete. BALANCE:\" + currAcct.getBalance());\r\n }\r\n else if(transactionOperation == TransactionOperation.Withdraw) {\r\n \t System.out.println(\"ACCT #:\" + currAcct.getNumber() + \" WITHDRAW: \" + value);\r\n \t currAcct.withdraw(value);\r\n \t \r\n System.out.println(\"\\n\" + (now).toString());\r\n System.out.println(\"Withdrawal Complete. BALANCE:\" + currAcct.getBalance());\r\n }\r\n else if(transactionOperation == TransactionOperation.EndSession) \r\n \t {\r\n \t \tSystem.out.println(\"\\nTerminating session with ACCT#: \" + currAcct.getNumber());\r\n \t \treturn false;\r\n \t \t\r\n \t }\r\n \r\n accts.save();\r\n //create a successful reply Success and set the balance\r\n balance = currAcct.getBalance(); \r\n transactionMessage = new TransactionMessage(MessageType.ResponseSuccess,transactionOperation,balance);\r\n atmSessionMessage = new ATMSessionMessage(transactionMessage);\r\n \r\n //set the nonce \r\n atmSessionMessage.setNonce(nonce);\r\n currTimeStamp = atmSessionMessage.getTimeStamp();\r\n //encrypt the response and send it\r\n cipherText = crypto.encryptRijndael(atmSessionMessage, kSession);\r\n os.writeObject((Serializable)cipherText);\r\n \r\n //Logging.....\r\n //get the signed message and encrypt it\r\n \r\n signedMessage.encryptMessage(this.kLog);\r\n \r\n //encrypt the action\r\n //archive the signed message for logging and non-repudiation purposes \r\n SignedAction signedAction = new SignedAction(currAcct.getNumber(), atmSessionMessage.getTimeStamp(), signedMessage);\r\n \r\n //flush out transaction record to the audit file\r\n BankServer.log.write(signedAction);\r\n \r\n\t return true;\r\n }\r\n catch(Exception e){\r\n if(e instanceof TransException) replyFailure(transactionOperation,nonce);\r\n System.out.println(\"Terminating session with ACCT#: \" + currAcct.getNumber());\r\n \t//e.printStackTrace();\r\n \r\n return true;\r\n }\r\n }",
"public com.vodafone.global.er.decoupling.binding.request.ModifySpendLimitsRequest createModifySpendLimitsRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifySpendLimitsRequestImpl();\n }"
] | [
"0.67457306",
"0.63981205",
"0.6397402",
"0.60404927",
"0.58702433",
"0.5805205",
"0.5774014",
"0.57360286",
"0.56614447",
"0.5629885",
"0.5614149",
"0.557925",
"0.5542796",
"0.5497326",
"0.54872507",
"0.5467033",
"0.54520464",
"0.54341",
"0.54321283",
"0.5412232",
"0.54110134",
"0.5396232",
"0.53932625",
"0.5381099",
"0.5377228",
"0.53755736",
"0.5366629",
"0.5360539",
"0.5339503",
"0.53382325",
"0.5334832",
"0.5328071",
"0.53117496",
"0.5306643",
"0.52895474",
"0.527903",
"0.5270646",
"0.52698904",
"0.52516013",
"0.5240936",
"0.52372533",
"0.5231236",
"0.5226229",
"0.5210728",
"0.5210031",
"0.5209008",
"0.5205838",
"0.5203456",
"0.51991016",
"0.5195697",
"0.5194554",
"0.51933193",
"0.5189115",
"0.5187004",
"0.51842135",
"0.51800835",
"0.51748365",
"0.51650476",
"0.515841",
"0.5156426",
"0.51483476",
"0.51450807",
"0.5143975",
"0.51347643",
"0.51292396",
"0.51164734",
"0.5112019",
"0.5108262",
"0.51075697",
"0.5107417",
"0.50928587",
"0.5087498",
"0.5085933",
"0.50845647",
"0.50834495",
"0.5067338",
"0.5065655",
"0.5063385",
"0.5060503",
"0.50409806",
"0.50404596",
"0.503672",
"0.5034388",
"0.50340647",
"0.5031207",
"0.5028614",
"0.50197774",
"0.5017533",
"0.5015221",
"0.5003082",
"0.5002097",
"0.5001885",
"0.49991214",
"0.49976265",
"0.4994204",
"0.49883553",
"0.4987037",
"0.4978876",
"0.49647877",
"0.49621162"
] | 0.5635656 | 9 |
update action to VOID so when we return the voided transaction object it has correct status | @Override
public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {
transaction.setAction(TransactionAction.VOID);
final ElavonTransactionRequest request = convergeMapper.getTransactionVoidRequest(
transaction.getFundingSource(),
transaction.getProcessorResponse().getRetrievalRefNum());
convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {
@Override
public void onResponse(final ElavonTransactionResponse elavonResponse) {
Log.d(TAG, elavonResponse != null ? elavonResponse.toString() : "n/a");
if (elavonResponse.isSuccess()) {
Log.i(TAG, "voidTransaction: " + transaction.getId() + " SUCCESS");
if (listener != null) {
convergeMapper.mapTransactionResponse(elavonResponse, transaction);
try {
// update the transactionId w/ new void txn Id and set parent
transaction.setParentId(transaction.getId());
transaction.setId(UUID.randomUUID());
listener.onResponse(transaction, requestId, null);
} catch (RemoteException e) {
e.printStackTrace();
}
}
} else {
Log.e(TAG, "voidTransaction: " + transaction.getId() + " FAILED");
if (listener != null) {
try {
// TODO need better error mapping
PoyntError error = new PoyntError(PoyntError.CODE_API_ERROR);
listener.onResponse(transaction, requestId, error);
} catch (RemoteException e) {
e.printStackTrace();
}
}
}
}
@Override
public void onFailure(final Throwable t) {
t.printStackTrace();
Log.e(TAG, "voidTransaction: " + transaction.getId() + " FAILED");
if (listener != null) {
// TODO need better error mapping
final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);
error.setThrowable(t);
try {
listener.onResponse(transaction, requestId, error);
} catch (RemoteException e) {
e.printStackTrace();
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BrainTreeVoidResult voidTransaction(VoidRequest voidRequest);",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"void confirmTrans(ITransaction trans);",
"TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);",
"@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }",
"@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}",
"public void authorizeTransaction() {}",
"TransactionResponseType createTransactionResponseType();",
"@Override\r\n public void refund() {\r\n vend.setCurrState(\"Refunding\");\r\n vend.refund();\r\n\r\n }",
"@Transactional//expect both \"T\" and \"F\"\n\tpublic Object invalidTxInPublicMethod(String action) {\n\t\tuniActionLogDao.insert(\"T\");\n\t\ttry {\n\t\t\tlogInfo12();\n\t\t} catch (Exception e) {\n\t\t\t//do nothing\n\t\t\treturn \"F1\";\n\t\t}\n\t\treturn \"T1\";\n\t}",
"@Override\r\n\tpublic boolean doUpdate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}",
"@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }",
"public void itemOkay() \r\n\t{\n\t\t\r\n\t}",
"private SpeechletResponse handleTransferMoneyExecute(Session session) {\n\t\treturn null;\n\t}",
"public void confirmFlight();",
"@Override\n public void onClick(View v) {\n Map<String, Object> updateMap = new HashMap<String, Object>();\n updateMap.put(FooditemTransaction.FIELD_STATUS,\n Const.getInstance().TRANSACTION_STATUS.get(\"Success\"));\n updateMap.put(FooditemTransaction.FIELD_FINISH_DATE,\n Timestamp.now());\n snapshot.getReference().update(updateMap);\n foodRef.update(\"status\",\n Const.getInstance().TRANSACTION_STATUS.get(\"success\"));\n updateLeaderboard(transaction);\n }",
"void readOnlyTransaction();",
"public void completeOrderTransaction(Transaction trans){\n }",
"@Override\n public void clickPositive() {\n meetingManager.undoConfirm(chosenTrade, chosenTrader);\n Toast.makeText(this, \"Successfully undo confirm\", Toast.LENGTH_SHORT).show();\n viewList();\n\n }",
"private void reportTransactionStatus(boolean success){\n if(success){\n sendMessage(\"<st>\");\n }else{\n sendMessage(\"<f>\");\n }\n }",
"@Override\n\tpublic void cancelRequest(int id) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"update Booking b set b.bookingStatus='' where b.bookingId=\"+id );\n\t\tint i = query.executeUpdate();\n\t\t\n\t\t\n\t}",
"public void cancelInvitionUser() {\n\n }",
"void setTransactionSuccessful();",
"public void voidTransaction(String transactionID) {\n\t\tTRANSACTION_TYPE = \"VOID\";\n\t\tAPI = \"bp10emu\";\n\t\tAMOUNT = \"\";\n\t\tRRNO = transactionID;\n\t}",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tprotected void onCancelRequestPurchase() {\n\t\tmTxtStatus.setText(\"requestPurchase onCancel\");\n\t}",
"@RequestMapping(\"/create-transaction-void\")\n public String createTransactionVoid(Model model,\n @RequestParam(value = \"transaction_id\", required = false) final String transactionId) {\n if (StringUtils.isNotBlank(transactionId)) {\n TransactionVoid transactionVoid = new TransactionVoid.Builder(ReturnReason.FRAUD, transactionId).build();\n TransactionVoid createdTransactionVoid = alternativePaymentClient.create(transactionVoid,\n TransactionVoid.getApiEndpoint(transactionId), TransactionVoid.class);\n\n model.addAttribute(\"transactionVoid\", createdTransactionVoid);\n }\n return \"void/create-transaction-void\";\n }",
"@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}",
"public void cancelTransaction() {\n\t\t//Cancel the transaction\n\t\tregister[registerSelected].cancelTransaction();\n\t}",
"public void other_statements_ok(Transaction t) {\n System.out.println(\"about to verify\");\n verify_transaction(t);\n System.out.println(\"verified\");\n make_transaction(t);\n System.out.println(\"success!\");\n }",
"public void rollbackTx()\n\n{\n\n}",
"@Override\n public void onSuccess(Transaction transaction, String s) {\n setState(State.IDLE);\n }",
"void finalConfirm(ITransaction trans,boolean confirmation, String userId);",
"void confirmRealWorldTrade(IUserAccount user, ITransaction trans);",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\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 if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}",
"public void undoAction(){}",
"public Object doInTransaction(TransactionStatus status) {\n sendEvent();\n sendEvent();\n sendEvent();\n sendEvent();\n status.setRollbackOnly();\n return null;\n }",
"public ReversionResponse() {\n\t\tthis.codigoBusqueda = \"\";\n\t\tthis.idTxnNeivorResponse = 0L;\n\t\tthis.idTxnRevertida = 0L;\n\t}",
"@Override\n public void onClick(View v) {\n snapshot.getReference().update(FooditemTransaction.FIELD_STATUS,\n Const.getInstance().TRANSACTION_STATUS.get(\"Cancelled\"));\n foodRef.update(\"count\", FieldValue.increment(1));\n }",
"public void returnAct() {\r\n\t\t\r\n\t\tif(createWine() != null) {\r\n\t\t\t\r\n\t\t\ttext_amount =String.valueOf( cus.returnTransaction(createWine()));\r\n\t\t\twine_name.setText(name.getText());\r\n\t\t\tamount.setText(\" £ \" + text_amount + \" \" );\r\n\t\t\tbalance.setText(\" £ \" + isCredit((double)cus.getAccount() / 100.00) + \" \");\r\n\t\t\t\r\n\t\t\t//reset all textfield\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}",
"@Override\n\tpublic int updateInventory(int tranNo, int amount) throws Exception {\n\t\treturn 0;\n\t}",
"protected abstract void abortTxn(Txn txn) throws PersistException;",
"public void reportNothingToUndoYet() {\r\n Assert.isTrue(isReceiving());\r\n setNothingToUndoReported(true);\r\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"Transfer updateStatus(Long id, Payment.Status status);",
"@Override\n public void onSuccess(Transaction transaction) {\n\n transaction = transaction;\n dialog.setMessage(\"Trying to Verify Your Transaction... please wait\");\n Log.d(\"REFERENCE\", transaction.getReference());\n Toast.makeText(getActivity(), transaction.getReference(), Toast.LENGTH_LONG).show();\n\n\n verifyOnServer(transaction.getReference());\n }",
"public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}",
"public String doCancel(Integer id, User user)\r\n/* 130: */ {\r\n/* 131:130 */ String result = \"\";String returnStat = \"0\";\r\n/* 132: */ \r\n/* 133:132 */ Expence expence = (Expence)this.expenceDao.get(Integer.valueOf(id.intValue()));\r\n/* 134:133 */ if ((\"0\".equals(expence.getStat())) || (expence.getStat() == \"0\") || (\"1\".equals(expence.getStat())) || (expence.getStat() == \"1\")) {\r\n/* 135:134 */ return result = \"[id=\" + expence.getId() + \"]该项数据已经回退!\";\r\n/* 136: */ }\r\n/* 137:138 */ ExpenceFlow expenceFlow = new ExpenceFlow();\r\n/* 138:139 */ expenceFlow.setGxsj(new Date());\r\n/* 139:140 */ expenceFlow.setExpence(expence);\r\n/* 140:141 */ expenceFlow.setUser(user);\r\n/* 141:142 */ expenceFlow.setOptContent(\"回退\");\r\n/* 142:143 */ expenceFlow.setYwlc(Integer.valueOf(0));\r\n/* 143:144 */ this.expenceFlowDao.save(expenceFlow);\r\n/* 144:146 */ if ((expence.getStat() == \"3\") || (\"3\".equals(expence.getStat())))\r\n/* 145: */ {\r\n/* 146:147 */ if (expence.getBankRunningId() == null) {\r\n/* 147:148 */ return result = \"[flow_id=\" + id + \"]bankRunningId为空!\";\r\n/* 148: */ }\r\n/* 149:151 */ BankRunning bankRunning = (BankRunning)this.bankRunningService.get(Integer.valueOf(expence.getBankRunningId().intValue()));\r\n/* 150:152 */ if (bankRunning == null) {\r\n/* 151:153 */ return \"银行流水id:\" + expence.getBankRunningId();\r\n/* 152: */ }\r\n/* 153:157 */ if ((bankRunning.getBank() != null) && (!\"\".equals(bankRunning.getBank().getId())))\r\n/* 154: */ {\r\n/* 155:158 */ Bank b = (Bank)this.bankService.get(bankRunning.getBank().getId());\r\n/* 156:159 */ double cush = new Double(b.getCush() - bankRunning.getLrje()).doubleValue();\r\n/* 157:160 */ this.bankService.updateBankCush(cush, Integer.valueOf(bankRunning.getBank().getId().intValue()));\r\n/* 158:161 */ this.bankRunningService.delete(expence.getBankRunningId());\r\n/* 159: */ }\r\n/* 160: */ }\r\n/* 161:166 */ expence.setGxsj(new Date());\r\n/* 162:167 */ expence.setStat(returnStat);\r\n/* 163:168 */ this.expenceDao.update(expence);\r\n/* 164: */ \r\n/* 165:170 */ return result;\r\n/* 166: */ }",
"public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }",
"public void method_204() {}",
"com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();",
"POGOProtos.Rpc.CombatActionProto getCurrentAction();",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public Optional<TransactionHistory> updateTransaction()\n {\n return null;\n }",
"public void updateTransaction(Transaction trans);",
"public void executeAction(View v) {\n float amount = Float.parseFloat(editAmount.getText().toString());\n boolean worked = databaseHelper.depositOrWithdraw(user, account, actionValue, amount);\n if (worked == true) {\n if (actionValue == \"Withdraw\") {\n Toast.makeText(DepositOrWithdraw.this,\"Successfully withdrew the amount of money.\", Toast.LENGTH_LONG).show();\n } else if (actionValue == \"Deposit\") {\n Toast.makeText(DepositOrWithdraw.this,\"Successfully deposited the amount of money.\", Toast.LENGTH_LONG).show();\n }\n writeActionEvent(user.getUserName(), account.getAccountName(), actionValue, amount);\n } else {\n Toast.makeText(DepositOrWithdraw.this,\"Action failed\", Toast.LENGTH_LONG).show();\n }\n Intent intent = new Intent(getBaseContext(), Dashboard.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n finish();\n }",
"public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"VerifyBasicCallback() {\n m_transactionType = null;\n m_procedureName = null;\n }",
"@Override\n public void executeTransaction() {\n System.out.println(\"Please make a selection first\");\n }",
"@Suspendable\n @Override\n public Void call() throws FlowException {\n // We retrieve the notary identity from the network map.\n final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId),\n Vault.StateStatus.UNCONSUMED, null);\n List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates();\n\n // We create the transaction components.\n NDAState outputState = new NDAState(getOurIdentity(), crmParty, \"APPROVED\");\n StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID);\n List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey());\n Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners);\n\n // We create a transaction builder and add the components.\n final TransactionBuilder txBuilder = new TransactionBuilder();\n txBuilder.addInputState(ndaStates.get(0));\n txBuilder.setNotary(notary);\n txBuilder.withItems(outputStateAndContract, cmd);\n\n // Signing the transaction.\n final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n // Creating a session with the other party.\n FlowSession otherpartySession = initiateFlow(crmParty);\n // Obtaining the counterparty's signature.\n SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow(\n signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker()));\n // Finalising the transaction.\n subFlow(new FinalityFlow(fullySignedTx));\n return null;\n }",
"@Override\n public void setStatus(int arg0) {\n\n }",
"private void updateAccountStatus() {\n\r\n }",
"@Override\n public void cancel(Order order) {\n Optional<OrderEntity> orderEntity = orderRepository.findById(order.getId());\n\n if(orderEntity.isPresent()){\n orderEntity.get().setOrder_state(\"CANCELLED\");\n orderRepository.save(orderEntity.get());\n }\n }",
"@Override\n public void onSuccess(@NullableDecl CommitInfo result) {\n context.stop();\n }",
"public ActionReturn() {\r\n error = OK;\r\n msg = null;\r\n }",
"@Override\n\tpublic Transaction update(Transaction item) {\n\t\treturn null;\n\t}",
"private String sendTransaction(AgentTransaction txn) {\n\t\tString responseMsg = null;\n\t\t/* vishal end */\n\t\tList<ERRORType> errorType = null;\n\t\tList<ERRORDETAILSType> errorDetails = null;\n\t\tString errorDesc = null;\n\n\n\t\ttry {\n\t\t\tFCUBSCLService service = new FCUBSCLService(); \n\t\t\tFCUBSCLServiceSEI ser = service.getFCUBSCLServiceSEI();\n\t\t\tFCUBSHEADERType fcubsHeaderType = getFcubsHeaderTypeObject();\n\t\t\tif (txn.getTxnType().equals(ServiceConstants.REAPYMENT_STATUS)) {\n\t\t\t\tlogger.info(\"sendTransaction to CBS::REPAYMENT : \"+txn.getId());\n\t\t\t\tCREATEPAYMENTFSFSREQ requestMsg = populateCreatePaymentReq(txn,\n\t\t\t\t\t\tfcubsHeaderType);\n\t\t\t\tCREATEPAYMENTFSFSRES response = ser.createPaymentFS(requestMsg);\n\t\t\t\t/* vishal Start */\n\t\t\t\tif(response != null){\n\t\t\t\t/* vishal end */\t\n\t\t\t\t\t\n\t\t\t\t\tresponseMsg = response.getFCUBSHEADER().getMSGSTAT().value();\n\t\t\t\t\terrorType = response.getFCUBSBODY().getFCUBSERRORRESP();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlogger.info(\"sendTransaction to CBS::REPAYMENT NULL RESPONSE: \"+ txn.getId());\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t} else {\n\t\t\t\tlogger.info(\"sendTransaction to CBS::DISBURSEMENT : \"+txn.getId());\n\t\t\t\tCREATEDISBURSEMENTIOPKREQ requestMsg = populateCreateDisbrReq(\n\t\t\t\t\t\ttxn, fcubsHeaderType);\n\t\t\t\tCREATEDISBURSEMENTIOPKRES response = ser\n\t\t\t\t\t\t.createDisbursementIO(requestMsg);\n\t\t\t\t/* vishal Start */\n\t\t\t\tif(response != null){\t\t\t\t\n\t\t\t\t\tresponseMsg = response.getFCUBSHEADER().getMSGSTAT().value();\n\t\t\t\t\terrorType = response.getFCUBSBODY().getFCUBSERRORRESP();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"sendTransaction to CBS::FAILED ::RESPONSE NULL:: \"+txn.getId());\n\t\t\t\n\t\t\t\t}\n\t\t\t\t/* vishal end */\n\t\t\t}\n\t\t\t/* vishal Start */\n\t\t\tif (errorType != null && !errorType.isEmpty()) {\n\t\t\t/* vishal End */\n\t\t\t\terrorDetails = errorType.get(0).getERROR();\n\t\t\t/* vishal Start */\n\t\t\t\tif (errorDetails != null && !errorDetails.isEmpty()) {\n\t\t\t/* vishal End */\n\t\t\t\t\terrorDesc = errorDetails.get(0).getEDESC();\n\t\t\t\t\tgetFcubsCbsWebDao().updateTxnWithErrorMsg(errorDesc,\n\t\t\t\t\t\t\ttxn.getTxnId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (WebServiceException e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tthrow new WebServiceException();\n\t\t}\n\t\treturn responseMsg;\n\t}",
"protected void cancelChanges() {\n }",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"VoidOperation createVoidOperation();",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public T caseUbqAction(UbqAction object) {\r\n\t\treturn null;\r\n\t}",
"int updateParticipant(TccTransaction tccTransaction);",
"public void vetoableAction(PermissibleActionEvent evt) {\n\t}",
"@Override public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.String _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getUserAvaibility, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readString();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t// if (resultCode == RESULT_OK) {\r\n\t\t// if (requestCode == editRequest) { //修改成功后的状态一定是审核状态\r\n\t\t// m_nstatus = HeadhunterPublic.TASK_STATUS_AUDIT;\r\n\t\t// rewardInfo.setTask_status(String.valueOf(m_nstatus));\r\n\t\t// refresh();\r\n\t\t// setResult(RESULT_OK);\r\n\t\t// }\r\n\t\t// }\r\n\t}",
"@Override\n\tpublic void onTransactionCanceled() {\n\t\tToast.makeText(getActivity(), R.string.ibs_error_billing_transactionCancelled, Toast.LENGTH_SHORT).show();\n\t}",
"@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }",
"protected void executionSuccess() {\n this.isUndoable = true;\n }",
"@Override\n public void onStatusChange(int status) {\n }",
"@Override\r\n\tprotected IAPIResponse executeLegacyService(APIRequestVO apiVO) {\r\n\t\tSOCancelResponse cancelResponse = new SOCancelResponse();\r\n\t\treturn cancelResponse;\r\n\t}",
"private SpeechletResponse handleUpdateInsuranceYesIntent(Session session) {\n\t\treturn null;\n\t}",
"void resetTX(Transaction transaction);",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"@Then(\"^: proceed to checkout$\")\r\n\tpublic void proceed_to_checkout() throws Throwable {\n\t\tobj.update();\r\n\t}",
"public TransactionState state();",
"@Override\n public boolean isTransActionAlive() {\n Transaction transaction = getTransaction();\n return transaction != null && transaction.isActive();\n }",
"public void onConfirmButtonClick(View v){\n // Read amount from field to variable\n int amount = Integer.parseInt(amountField.getText().toString());\n\n // Set Strings ready for reading\n String toAccount = \"\";\n String fromAccount = \"\";\n String transactionType = \"\";\n\n // Different read methods for different transaction types\n if (internalBtn.isChecked()){\n transactionType = \"Internal transfer\";\n toAccount = toSpinner.getSelectedItem().toString();\n fromAccount = fromSpinner.getSelectedItem().toString();\n }\n else if (externalBtn.isChecked()){\n transactionType = \"External transfer\";\n toAccount = toTextField.getText().toString();\n fromAccount = fromSpinner.getSelectedItem().toString();\n }\n else if (depositBtn.isChecked()){\n transactionType = \"Deposit\";\n toAccount = toSpinner.getSelectedItem().toString();\n }\n else {\n // If no radio button checked, just finish this activity\n finish();\n }\n\n // Create new Transaction instance from values read\n Transaction transaction = new Transaction(transactionType, fromAccount, toAccount, amount);\n\n // Create intent and put transaction to it as extra\n Intent i = new Intent();\n i.putExtra(\"trans\", transaction);\n\n // Set ok result and finish\n setResult(RESULT_OK, i);\n finish();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource()==autopay){\n model.getCustomer().getOrder().orderStatus=OrderStatus.paid;\n dispose();\n }\n\n if(e.getSource()==Paywithanothercard){\n if(model.getCustomer().getOrder().orderStatus.name().equals(\"unpaid\")){\n //String orNUm=model.getCustomer().or.orderNumber;\n new Payment(model.getCustomer().getOrder(),model.getCustomer().getOrder().orderType);\n // System.out.println(model.getCustomer().or.orderNumber+\" \"+model.getCustomer().or.orderStatus);\n }else{\n JOptionPane.showMessageDialog(this,\n \"Your order has paied\", \"Error Message\",\n JOptionPane.ERROR_MESSAGE);\n }\n dispose();\n }\n\n\n if(e.getSource()==cancel){\n dispose();\n }\n\n }",
"BrainTreeRefundTransactionResult refundTransaction(BrainTreeRefundTransactionRequest request);",
"public void setStatus(TransactionStatus status) {\n this.status = status;\n }",
"@Override\n public void onClick(View v) {\n\n Message msg = new Message();\n msg.what = DeliveryActivity.SHOW_ERROR_MESSAGE_CANCEL;\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(\"errorMsg\", \"请在取消订单之前,与用户进行沟通,避免不必要的纠纷\");\n map.put(\"odi\", odi);\n map.put(\"refund_status\", 2);\n msg.obj = map;\n handler.sendMessage(msg);\n\n }",
"public void setRequested(){\n this.status = \"Requested\";\n }"
] | [
"0.6252615",
"0.61650866",
"0.6147156",
"0.6107613",
"0.6093064",
"0.5944487",
"0.593766",
"0.5925889",
"0.5857692",
"0.58041024",
"0.57951635",
"0.5749804",
"0.5674267",
"0.56742495",
"0.56533676",
"0.5634601",
"0.5593433",
"0.55828583",
"0.55670774",
"0.55461025",
"0.5531927",
"0.5527486",
"0.55272824",
"0.5521527",
"0.55005366",
"0.5493034",
"0.54909253",
"0.54852635",
"0.5479371",
"0.5474689",
"0.5472896",
"0.5469753",
"0.54695314",
"0.546778",
"0.54496706",
"0.53732324",
"0.53732324",
"0.5366274",
"0.53421706",
"0.534172",
"0.5339209",
"0.53282994",
"0.5327189",
"0.5324137",
"0.53189886",
"0.52846444",
"0.5282298",
"0.5279495",
"0.52636266",
"0.5260318",
"0.52489233",
"0.5246495",
"0.5235703",
"0.52223355",
"0.5209116",
"0.52084535",
"0.520059",
"0.51959956",
"0.519568",
"0.51734895",
"0.5168278",
"0.5159635",
"0.51569635",
"0.5156229",
"0.5152149",
"0.51521033",
"0.514504",
"0.51380527",
"0.51351506",
"0.5130781",
"0.5127427",
"0.5121809",
"0.5118571",
"0.5118231",
"0.5116737",
"0.51100624",
"0.5097878",
"0.5097878",
"0.5096064",
"0.5092801",
"0.50845194",
"0.5072938",
"0.50712657",
"0.5070079",
"0.50679284",
"0.5064508",
"0.5053834",
"0.5051546",
"0.50507164",
"0.5048314",
"0.5046454",
"0.5044762",
"0.5032011",
"0.5025753",
"0.50236464",
"0.502277",
"0.5022624",
"0.5019523",
"0.5017893",
"0.50137"
] | 0.6064988 | 5 |
failed to obtain transaction | @Override
public void onLoginRequired() throws RemoteException {
final PoyntError error = new PoyntError(PoyntError.CODE_API_ERROR);
listener.onResponse(transaction, requestId, error);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void beginTransaction() throws Exception;",
"Transaction createTransaction();",
"public void checkForTransaction() throws SystemException;",
"Transaction getCurrentTransaction();",
"@Override\n public void rollbackTx() {\n \n }",
"Transaction beginTx();",
"void beginTransaction();",
"protected abstract Object getTransactionObject() throws TransactionInfrastructureException;",
"public void createTransaction(Transaction trans);",
"IDbTransaction beginTransaction();",
"public void rollbackTx()\n\n{\n\n}",
"@Override\n public void commitTx() {\n \n }",
"public int startTransaction();",
"void rollbackTransaction();",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void beginTransaction() {\n\r\n\t}",
"void startTransaction();",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"void commitTransaction();",
"@Override\n public void startTx() {\n \n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"public Transaction getTransaction() throws RuntimeException{\n\t\tif(tr == null)\n\t\t\tthrow new RuntimeException(\"The transaction has not been started\");\n\t\treturn tr;\n\t}",
"IDbTransaction beginTransaction(IsolationLevel il);",
"void addTransaction(Transaction transaction) throws SQLException, BusinessException;",
"public EntityTransactionException() {\r\n\t\tsuper();\r\n\t}",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public long createTransaction(Credentials c, TransactionType tt) throws RelationException;",
"Transaction createTransaction(Settings settings);",
"void beginTransaction(ConnectionContext context) throws IOException;",
"public void authorizeTransaction() {}",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"void readOnlyTransaction();",
"public Object getTransactionId() throws StandardException;",
"@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"public void openTheTransaction() {\n openTransaction();\n }",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"protected abstract void rollbackIndividualTrx();",
"@Override\r\n\tpublic Transaction getTransaction() throws SystemException {\r\n\t\tif (threadTransaction.get()==null)\r\n\t\t\tsetNewTransaction();\r\n\t\treturn threadTransaction.get();\r\n\t}",
"void rollback(Transaction transaction);",
"protected abstract Transaction createAndAdd();",
"void commit(Transaction transaction);",
"public void commitTransaction() {\n\r\n\t}",
"public void forceCommitTx()\n{\n}",
"protected abstract boolean commitTxn(Txn txn) throws PersistException;",
"@Override\n public SimpleTransaction getTransaction() throws SystemException {\n SimpleTransaction txn = txns.get();\n if (txn == null) {\n txn = new SimpleTransaction();\n txn.setStatus(Status.STATUS_ACTIVE);\n txns.set(txn);\n }\n return txn;\n }",
"public void errorWhenCommitting();",
"private void testRollback001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback001\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"void confirmTrans(ITransaction trans);",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }",
"@Override\n\tpublic void onTransactionStart() {}",
"@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }",
"@Test\n\tpublic void testInvalidMerchantTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\tdatabase.addCustomer(customer);\n\t\t//database.addCustomer(merchant); Merchant not in database\n\t\tdatabase.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This merchant is not a DTUPay user\",verifyParticipants);\n\t}",
"Transaction get(String id) throws Exception;",
"void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;",
"public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}",
"public LocalTransactionException( String reason ) {\n super( reason );\n }",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"Transaction getTransctionByTxId(String txId);",
"public Transaction() {\n }",
"@Override\r\n\tpublic int addTran(Transaction transaction) throws Exception {\n\t\t\t\t\r\n\t\treturn tranDao.insertTran(transaction);\r\n\t}",
"public VerifyTransactionImpl() {\n super();\n }",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }",
"public void completeOrderTransaction(Transaction trans){\n }",
"public abstract void rollback() throws DetailException;",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tMasterBEnt masterBEnt = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tMasterBComp masterBComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAuZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> compDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wIiwicmF3S2V5VmFsdWVzIjpbIjEiLCIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciIsImphdmEubGFuZy5JbnRlZ2VyIl19\");\r\n\t\t\t\tMasterBCompComp masterBCompComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wLmRldGFpbEFFbnRDb2wiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tCollection<DetailAEnt> compCompDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp(), sameInstance(masterBComp)\", masterBEnt.getMasterBComp(), sameInstance(masterBComp));\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compDetailAEntCol))\", detailAEntCol, not(sameInstance(compDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compCompDetailAEntCol))\", detailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"compDetailAEntCol, not(sameInstance(compCompDetailAEntCol))\", compDetailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"protected abstract void abortTxn(Txn txn) throws PersistException;",
"private void testRollback002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_SHARED);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"TransactionContext setException(Exception exception);",
"public javax.resource.spi.LocalTransaction getLocalTransaction()\n throws ResourceException {\n throw new NotSupportedException(resource.getString(\"NO_TRANSACTION\"));\n }",
"@Test\n\tpublic void testInvalidCustomerTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\t\n\t\t//database.addCustomer(customer); not registered\n\t\tdatabase.addCustomer(merchant);\n\t\tdatabase.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This barcode does not belong to any of DTUPay users\",verifyParticipants);\n\t}",
"private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}",
"public static void assertTransactionValid(InvocationContext ctx)\n {\n Transaction tx = ctx.getTransaction();\n if (!isValid(tx))\n {\n try\n {\n throw new CacheException(\"Invalid transaction \" + tx + \", status = \" + (tx == null ? null : tx.getStatus()));\n }\n catch (SystemException e)\n {\n throw new CacheException(\"Exception trying to analyse status of transaction \" + tx, e);\n }\n }\n }",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Txn() {\n }",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"public int orderCountByUser(int userId)throws ApplicationEXContainer.ApplicationCanNotChangeException{\n int count;\n try(Connection connection = MySQLDAOFactory.getConnection();\n AutoRollback autoRollback = new AutoRollback(connection)){\n count = orderDao.orderCountByUser(connection,userId);\n autoRollback.commit();\n } catch (SQLException | NamingException | DBException throwables) {\n LOGGER.error(throwables.getMessage());\n throw new ApplicationEXContainer.ApplicationCanNotChangeException(throwables.getMessage(),throwables);\n }\n return count;\n}",
"private void doRollback() throws TransactionInfrastructureException {\n\t\t// DO WE WANT TO ROLL\n\t\t//\t\tif (isTransactionalMethod(m))\n\t\tObject txObject = getTransactionObject();\n\t\tif (txObject == null)\n\t\t\tthrow new TransactionInfrastructureException(\"Cannot rollback transaction: don't have a transaction\");\n\t\trollback(txObject);\n\t}",
"public Object doInTransaction(TransactionStatus status) {\n\t\t\t\tlog.debug(\"Start Transaction\");\n\t\t\t\tquery_insertStudent.update(param);\n\n\t\t\t\t/*\n\t\t\t\t * activate the following error line to create an Error which\n\t\t\t\t * terminates this method. One will see, that the complete\n\t\t\t\t * transaction is rolled back, hence the insert statement above\n\t\t\t\t * is not executed, alternatively the second rollback statement\n\t\t\t\t * can be activated with the same result which in that case is a\n\t\t\t\t * manual rollback of the transaction\n\t\t\t\t */\n\n\t\t\t\t// if (true) throw new Error(\"Test Exception\");\n\t\t\t\t// or\n\t\t\t\t// status.setRollbackOnly();\n\t\t\t\t/*\n\t\t\t\t * result from query is a list, actually containing only one row\n\t\t\t\t * and one column\n\t\t\t\t */\n\t\t\t\tList<?> results = query_getStudentId.execute();\n\t\t\t\tInteger id = (Integer) results.get(0);\n\t\t\t\tlog.debug(\"End Transaction\");\n\t\t\t\treturn id;\n\t\t\t\t/*\n\t\t\t\t * and the transaction ends here! if no error occurs the\n\t\t\t\t * transaction is committed by Spring otherwise it is rolled\n\t\t\t\t * back\n\t\t\t\t */\n\t\t\t}",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}",
"@Test\n\tpublic void testInvalidBarcodeTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\tdatabase.addCustomer(merchant); //Merchant not in database\n\t\t//database.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This barcode does not exist\",verifyParticipants);\n\t}",
"public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }",
"OBasicTransaction getMicroOrRegularTransaction();",
"public void testRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n\n SqlDbManager.safeRollbackAndClose(conn);\n conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n }",
"private void testRollback003() {\n DmtSession session = null;\n try {\n DefaultTestBundleControl.log(\"#testRollback003\");\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_ATOMIC);\n session.rollback();\n TestCase.assertEquals(\"Asserting that after a rollback(), the session is not closed.\", session.getState(), DmtSession.STATE_OPEN);\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }",
"final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }",
"@Override\n public Object transaction(DAOCommand command) {\n Object result = null;\n try {\n openConnection();\n startTransaction();\n result = command.execute(this);\n commitTransaction();\n } catch (DAOManagerException e) {\n LOGGER.error(e);\n rollbackTransaction();\n }\n return result;\n }",
"@Override\n public void onError(Throwable error, Transaction transaction) {\n transaction = transaction;\n if (error instanceof ExpiredAccessCodeException) {\n try {\n startAFreshCharge(false);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n chargeCard();\n return;\n }\n\n dismissDialog();\n\n if (transaction.getReference() != null) {\n Toast.makeText(getActivity(), transaction.getReference() + \" concluded with error: \" + error.getMessage(), Toast.LENGTH_LONG).show();\n //mTextError.setText(String.format(\"%s concluded with error: %s %s\", transaction.getReference(), error.getClass().getSimpleName(), error.getMessage()));\n\n } else {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n // mTextError.setText(String.format(\"Error: %s %s\", error.getClass().getSimpleName(), error.getMessage()));\n }\n\n }",
"void commitTransaction(ConnectionContext context) throws IOException;",
"protected abstract void commitIndividualTrx();",
"private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }"
] | [
"0.69794255",
"0.6841578",
"0.68121207",
"0.67970437",
"0.679184",
"0.67401165",
"0.664341",
"0.66322297",
"0.660827",
"0.6585819",
"0.6579865",
"0.6411756",
"0.64102983",
"0.6393289",
"0.63686943",
"0.6359416",
"0.63486886",
"0.62852556",
"0.62715083",
"0.626556",
"0.6256488",
"0.62463987",
"0.6244349",
"0.6197337",
"0.61967313",
"0.6195033",
"0.6189954",
"0.61698157",
"0.6137374",
"0.6132246",
"0.6128417",
"0.6114137",
"0.61065584",
"0.6101151",
"0.6100611",
"0.6090128",
"0.6084479",
"0.6069379",
"0.6063818",
"0.6057606",
"0.6056694",
"0.6054039",
"0.6047165",
"0.6026958",
"0.6024517",
"0.60183024",
"0.60178",
"0.60014606",
"0.5993674",
"0.59897953",
"0.5981266",
"0.597057",
"0.59497964",
"0.59447974",
"0.5932432",
"0.5921412",
"0.5907179",
"0.58970195",
"0.5884421",
"0.5868085",
"0.5862025",
"0.5859155",
"0.5847785",
"0.5840903",
"0.58392954",
"0.5837211",
"0.58190644",
"0.58157414",
"0.5801375",
"0.57962704",
"0.57949084",
"0.57930017",
"0.5790234",
"0.57663685",
"0.57663304",
"0.5764033",
"0.57574904",
"0.57495594",
"0.57477844",
"0.5747473",
"0.5744635",
"0.57410085",
"0.5739805",
"0.5735899",
"0.5734552",
"0.5725444",
"0.57232666",
"0.57216215",
"0.5718499",
"0.57154095",
"0.571016",
"0.5709009",
"0.5706865",
"0.57066524",
"0.570647",
"0.56995404",
"0.5696065",
"0.56952804",
"0.5695162",
"0.5694619",
"0.5691054"
] | 0.0 | -1 |
failed to obtain transaction | @Override
public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {
final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);
listener.onResponse(transaction, requestId, error);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void beginTransaction() throws Exception;",
"Transaction createTransaction();",
"public void checkForTransaction() throws SystemException;",
"Transaction getCurrentTransaction();",
"@Override\n public void rollbackTx() {\n \n }",
"Transaction beginTx();",
"void beginTransaction();",
"protected abstract Object getTransactionObject() throws TransactionInfrastructureException;",
"public void createTransaction(Transaction trans);",
"IDbTransaction beginTransaction();",
"public void rollbackTx()\n\n{\n\n}",
"@Override\n public void commitTx() {\n \n }",
"public int startTransaction();",
"void rollbackTransaction();",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void beginTransaction() {\n\r\n\t}",
"void startTransaction();",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"void commitTransaction();",
"@Override\n public void startTx() {\n \n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"public Transaction getTransaction() throws RuntimeException{\n\t\tif(tr == null)\n\t\t\tthrow new RuntimeException(\"The transaction has not been started\");\n\t\treturn tr;\n\t}",
"IDbTransaction beginTransaction(IsolationLevel il);",
"public EntityTransactionException() {\r\n\t\tsuper();\r\n\t}",
"void addTransaction(Transaction transaction) throws SQLException, BusinessException;",
"protected void reuseTxn(Txn txn) throws Exception {\r\n }",
"public long createTransaction(Credentials c, TransactionType tt) throws RelationException;",
"Transaction createTransaction(Settings settings);",
"void beginTransaction(ConnectionContext context) throws IOException;",
"public void authorizeTransaction() {}",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"void readOnlyTransaction();",
"public Object getTransactionId() throws StandardException;",
"@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"public void openTheTransaction() {\n openTransaction();\n }",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"protected abstract void rollbackIndividualTrx();",
"@Override\r\n\tpublic Transaction getTransaction() throws SystemException {\r\n\t\tif (threadTransaction.get()==null)\r\n\t\t\tsetNewTransaction();\r\n\t\treturn threadTransaction.get();\r\n\t}",
"void rollback(Transaction transaction);",
"protected abstract Transaction createAndAdd();",
"void commit(Transaction transaction);",
"public void commitTransaction() {\n\r\n\t}",
"public void forceCommitTx()\n{\n}",
"protected abstract boolean commitTxn(Txn txn) throws PersistException;",
"@Override\n public SimpleTransaction getTransaction() throws SystemException {\n SimpleTransaction txn = txns.get();\n if (txn == null) {\n txn = new SimpleTransaction();\n txn.setStatus(Status.STATUS_ACTIVE);\n txns.set(txn);\n }\n return txn;\n }",
"public void errorWhenCommitting();",
"private void testRollback001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback001\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"void confirmTrans(ITransaction trans);",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }",
"@Override\n\tpublic void onTransactionStart() {}",
"@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }",
"@Test\n\tpublic void testInvalidMerchantTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\tdatabase.addCustomer(customer);\n\t\t//database.addCustomer(merchant); Merchant not in database\n\t\tdatabase.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This merchant is not a DTUPay user\",verifyParticipants);\n\t}",
"Transaction get(String id) throws Exception;",
"void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;",
"public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}",
"public LocalTransactionException( String reason ) {\n super( reason );\n }",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"Transaction getTransctionByTxId(String txId);",
"public Transaction() {\n }",
"@Override\r\n\tpublic int addTran(Transaction transaction) throws Exception {\n\t\t\t\t\r\n\t\treturn tranDao.insertTran(transaction);\r\n\t}",
"public VerifyTransactionImpl() {\n super();\n }",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }",
"public void completeOrderTransaction(Transaction trans){\n }",
"public abstract void rollback() throws DetailException;",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tMasterBEnt masterBEnt = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tMasterBComp masterBComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAuZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> compDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wIiwicmF3S2V5VmFsdWVzIjpbIjEiLCIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciIsImphdmEubGFuZy5JbnRlZ2VyIl19\");\r\n\t\t\t\tMasterBCompComp masterBCompComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wLmRldGFpbEFFbnRDb2wiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tCollection<DetailAEnt> compCompDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp(), sameInstance(masterBComp)\", masterBEnt.getMasterBComp(), sameInstance(masterBComp));\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compDetailAEntCol))\", detailAEntCol, not(sameInstance(compDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compCompDetailAEntCol))\", detailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"compDetailAEntCol, not(sameInstance(compCompDetailAEntCol))\", compDetailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"protected abstract void abortTxn(Txn txn) throws PersistException;",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"private void testRollback002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_SHARED);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"TransactionContext setException(Exception exception);",
"public javax.resource.spi.LocalTransaction getLocalTransaction()\n throws ResourceException {\n throw new NotSupportedException(resource.getString(\"NO_TRANSACTION\"));\n }",
"@Test\n\tpublic void testInvalidCustomerTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\t\n\t\t//database.addCustomer(customer); not registered\n\t\tdatabase.addCustomer(merchant);\n\t\tdatabase.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This barcode does not belong to any of DTUPay users\",verifyParticipants);\n\t}",
"private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}",
"public static void assertTransactionValid(InvocationContext ctx)\n {\n Transaction tx = ctx.getTransaction();\n if (!isValid(tx))\n {\n try\n {\n throw new CacheException(\"Invalid transaction \" + tx + \", status = \" + (tx == null ? null : tx.getStatus()));\n }\n catch (SystemException e)\n {\n throw new CacheException(\"Exception trying to analyse status of transaction \" + tx, e);\n }\n }\n }",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Txn() {\n }",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"public int orderCountByUser(int userId)throws ApplicationEXContainer.ApplicationCanNotChangeException{\n int count;\n try(Connection connection = MySQLDAOFactory.getConnection();\n AutoRollback autoRollback = new AutoRollback(connection)){\n count = orderDao.orderCountByUser(connection,userId);\n autoRollback.commit();\n } catch (SQLException | NamingException | DBException throwables) {\n LOGGER.error(throwables.getMessage());\n throw new ApplicationEXContainer.ApplicationCanNotChangeException(throwables.getMessage(),throwables);\n }\n return count;\n}",
"private void doRollback() throws TransactionInfrastructureException {\n\t\t// DO WE WANT TO ROLL\n\t\t//\t\tif (isTransactionalMethod(m))\n\t\tObject txObject = getTransactionObject();\n\t\tif (txObject == null)\n\t\t\tthrow new TransactionInfrastructureException(\"Cannot rollback transaction: don't have a transaction\");\n\t\trollback(txObject);\n\t}",
"public Object doInTransaction(TransactionStatus status) {\n\t\t\t\tlog.debug(\"Start Transaction\");\n\t\t\t\tquery_insertStudent.update(param);\n\n\t\t\t\t/*\n\t\t\t\t * activate the following error line to create an Error which\n\t\t\t\t * terminates this method. One will see, that the complete\n\t\t\t\t * transaction is rolled back, hence the insert statement above\n\t\t\t\t * is not executed, alternatively the second rollback statement\n\t\t\t\t * can be activated with the same result which in that case is a\n\t\t\t\t * manual rollback of the transaction\n\t\t\t\t */\n\n\t\t\t\t// if (true) throw new Error(\"Test Exception\");\n\t\t\t\t// or\n\t\t\t\t// status.setRollbackOnly();\n\t\t\t\t/*\n\t\t\t\t * result from query is a list, actually containing only one row\n\t\t\t\t * and one column\n\t\t\t\t */\n\t\t\t\tList<?> results = query_getStudentId.execute();\n\t\t\t\tInteger id = (Integer) results.get(0);\n\t\t\t\tlog.debug(\"End Transaction\");\n\t\t\t\treturn id;\n\t\t\t\t/*\n\t\t\t\t * and the transaction ends here! if no error occurs the\n\t\t\t\t * transaction is committed by Spring otherwise it is rolled\n\t\t\t\t * back\n\t\t\t\t */\n\t\t\t}",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}",
"@Test\n\tpublic void testInvalidBarcodeTransaction() {\n\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\tdatabase.addCustomer(merchant); //Merchant not in database\n\t\t//database.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\t\t\n\t\tassertEquals(\"This barcode does not exist\",verifyParticipants);\n\t}",
"public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }",
"OBasicTransaction getMicroOrRegularTransaction();",
"public void testRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n\n SqlDbManager.safeRollbackAndClose(conn);\n conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n }",
"final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }",
"private void testRollback003() {\n DmtSession session = null;\n try {\n DefaultTestBundleControl.log(\"#testRollback003\");\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_ATOMIC);\n session.rollback();\n TestCase.assertEquals(\"Asserting that after a rollback(), the session is not closed.\", session.getState(), DmtSession.STATE_OPEN);\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }",
"@Override\n public Object transaction(DAOCommand command) {\n Object result = null;\n try {\n openConnection();\n startTransaction();\n result = command.execute(this);\n commitTransaction();\n } catch (DAOManagerException e) {\n LOGGER.error(e);\n rollbackTransaction();\n }\n return result;\n }",
"@Override\n public void onError(Throwable error, Transaction transaction) {\n transaction = transaction;\n if (error instanceof ExpiredAccessCodeException) {\n try {\n startAFreshCharge(false);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n chargeCard();\n return;\n }\n\n dismissDialog();\n\n if (transaction.getReference() != null) {\n Toast.makeText(getActivity(), transaction.getReference() + \" concluded with error: \" + error.getMessage(), Toast.LENGTH_LONG).show();\n //mTextError.setText(String.format(\"%s concluded with error: %s %s\", transaction.getReference(), error.getClass().getSimpleName(), error.getMessage()));\n\n } else {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n // mTextError.setText(String.format(\"Error: %s %s\", error.getClass().getSimpleName(), error.getMessage()));\n }\n\n }",
"protected abstract void commitIndividualTrx();",
"void commitTransaction(ConnectionContext context) throws IOException;",
"private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }"
] | [
"0.6979127",
"0.6841061",
"0.68118656",
"0.6796053",
"0.67918664",
"0.6739946",
"0.66428477",
"0.6631274",
"0.6607747",
"0.65854585",
"0.657963",
"0.6411649",
"0.6410055",
"0.6393188",
"0.63683355",
"0.6358874",
"0.6348122",
"0.62844914",
"0.6271201",
"0.6265087",
"0.62555534",
"0.6245707",
"0.62438685",
"0.6196848",
"0.61968386",
"0.61946195",
"0.6189711",
"0.61688584",
"0.61366767",
"0.61316043",
"0.6128085",
"0.61135864",
"0.61061907",
"0.6100541",
"0.61000305",
"0.60899633",
"0.6084306",
"0.60692114",
"0.60636246",
"0.60570383",
"0.60565996",
"0.60536027",
"0.60469025",
"0.60265523",
"0.6024141",
"0.601807",
"0.60177606",
"0.60015035",
"0.5993342",
"0.59906244",
"0.59812266",
"0.5969973",
"0.5949639",
"0.5944501",
"0.5931647",
"0.5921658",
"0.5907197",
"0.58961374",
"0.58842635",
"0.5867143",
"0.5861795",
"0.58587545",
"0.58462614",
"0.58405066",
"0.5839011",
"0.5836935",
"0.5818777",
"0.5815622",
"0.5800755",
"0.57962537",
"0.5794212",
"0.5792244",
"0.5789739",
"0.57669204",
"0.57662565",
"0.5764356",
"0.57583654",
"0.57490253",
"0.5747852",
"0.57462716",
"0.5744457",
"0.5740026",
"0.5739248",
"0.57352966",
"0.57345587",
"0.5725276",
"0.5723017",
"0.57210827",
"0.57182604",
"0.57154214",
"0.5709976",
"0.570828",
"0.5706806",
"0.5706565",
"0.5706446",
"0.5699177",
"0.569604",
"0.56949097",
"0.56947184",
"0.5694191",
"0.5690419"
] | 0.0 | -1 |
TODO need better error mapping | @Override
public void onFailure(final Throwable t) {
final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);
error.setThrowable(t);
try {
listener.onResponse(transaction, "", error);
} catch (final RemoteException e) {
Log.e(TAG, "Failed to respond", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"abstract void error(String error);",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public interface Error {\n String getError();\n\n String getIdentifier();\n}",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"java.util.List<WorldUps.UErr> \n getErrorList();",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"protected abstract void error(String err);",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"ValidationError getValidationError();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"java.lang.String getErr();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0) {\n\n\t}",
"public String error();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0) {\n\n\t}",
"WorldUps.UErr getError(int index);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\t\tpublic void loadError() {\n\t\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"public void error();",
"@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public void correctErrors();",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"protected interface ProvideError {\n Exception getError();\n }",
"@Override\n\tpublic void VisitErrorNode(LegacyErrorNode Node) {\n\n\t}",
"@Override\n @SuppressWarnings(\"all\")\n protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\n HttpHeaders headers, HttpStatus status,\n WebRequest request) {\n Map<String, Object> hashMap = new LinkedHashMap<>();\n Map<String, Set<String>> setMap = ex.getBindingResult()\n .getFieldErrors()\n .stream()\n .collect(Collectors.groupingBy(\n FieldError::getField,\n Collectors.mapping(FieldError::getDefaultMessage, Collectors.toSet())));\n hashMap.put(\"errors\", setMap);\n return new ResponseEntity<>(hashMap, headers, status);\n }",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"protodef.b_error.info getError();",
"protodef.b_error.info getError();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"abstract void errorLogError(String error);",
"@Override\n\tpublic void error(Marker marker, String message, Object... params) {\n\n\t}",
"String getInvalidMessage();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"private ModelValidationException constructFieldException (String fieldName, \n\t\tString key)\n\t{\n\t\treturn constructFieldException(ModelValidationException.ERROR, \n\t\t\tfieldName, key);\n\t}",
"private void error(String string) {\n\t\r\n}",
"@Override\n\tpublic void error(Marker marker, Object message, Throwable t) {\n\n\t}",
"String getErrorMessage();",
"String getErrorMessage();",
"public void inquiryError() {\n\t\t\n\t}",
"private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}",
"private String resolveLocalizedErrorMessage(ObjectError fieldError) {\n\t\tString[] fieldErrorCodes = fieldError.getCodes();\n\t\tString localizedErrorMessage = fieldErrorCodes[0];\n\n\t\treturn localizedErrorMessage;\n\t}",
"void notSupported(String errorcode);",
"String getErrorsString();",
"@Override\n\tpublic void error(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public abstract void\n fail(ValidationError error);",
"private void addError(String field, String error, Object value) {\n if (errors == null) {\n errors = new LinkedHashMap<String, FieldError>();\n }\n LOG.debug(\"Add field: '{}' error: '{}' value: '{}'\", field, error, value);\n errors.put(field, new FieldError(field, error, value));\n }",
"@Override\n public void onError() {\n\n }",
"@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public ERRORDto validateBus();",
"public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}",
"public Map getError() {\n return this.error;\n }",
"public WorldUps.UErr getError(int index) {\n return error_.get(index);\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }",
"@Override\n\tpublic void error(Marker marker, String message, Throwable t) {\n\n\t}",
"protected <M> M validationError(Class<M> type) {\n Option<Object> err = actual.getValidationError(0);\n if (err.isEmpty()) {\n throwAssertionError(new BasicErrorMessageFactory(\"Expected a Result with validation errors, but instead was %s\",\n actualToString()));\n }\n return type.cast(err.get());\n }",
"public abstract Error errorCheck(Model m, String command);",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"Object getFailonerror();",
"Object getFailonerror();"
] | [
"0.6703367",
"0.65186447",
"0.65186447",
"0.65186447",
"0.64600277",
"0.6432866",
"0.6415474",
"0.6371929",
"0.63717926",
"0.6329687",
"0.6297717",
"0.62760216",
"0.62574446",
"0.6256946",
"0.6247701",
"0.6215194",
"0.6211002",
"0.6206051",
"0.6199306",
"0.6197895",
"0.6161868",
"0.61514646",
"0.6149024",
"0.6146008",
"0.61366045",
"0.6122239",
"0.6119773",
"0.61171985",
"0.61028296",
"0.60971797",
"0.6096599",
"0.608518",
"0.6077476",
"0.60651135",
"0.6056991",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.60459435",
"0.6043924",
"0.60402054",
"0.60331833",
"0.601602",
"0.60128236",
"0.6011461",
"0.6006997",
"0.60039574",
"0.60019433",
"0.5997786",
"0.5997786",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59833276",
"0.5980027",
"0.5970503",
"0.59667915",
"0.59590745",
"0.5947293",
"0.5942677",
"0.5926826",
"0.59254885",
"0.5915411",
"0.5913032",
"0.5911358",
"0.5911358",
"0.59061116",
"0.59040916",
"0.5898863",
"0.58983094",
"0.58971286",
"0.5885852",
"0.5880153",
"0.58725536",
"0.5855191",
"0.5853197",
"0.5853009",
"0.58527035",
"0.5848247",
"0.5841551",
"0.58367336",
"0.5829193",
"0.5822774",
"0.5816908",
"0.5816498",
"0.5813609",
"0.58023256",
"0.579508",
"0.5788692",
"0.57863444",
"0.57863444"
] | 0.0 | -1 |
TODO need better error mapping | @Override
public void onFailure(final Throwable t) {
final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);
error.setThrowable(t);
try {
listener.onResponse(balanceInquiry, error);
} catch (final RemoteException e) {
Log.e(TAG, "Failed to respond", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"abstract void error(String error);",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public interface Error {\n String getError();\n\n String getIdentifier();\n}",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"java.util.List<WorldUps.UErr> \n getErrorList();",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"protected abstract void error(String err);",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"ValidationError getValidationError();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"java.lang.String getErr();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0) {\n\n\t}",
"public String error();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"@Override\n\tpublic void error(String message, Object p0) {\n\n\t}",
"WorldUps.UErr getError(int index);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\t\tpublic void loadError() {\n\t\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"public void error();",
"@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public void correctErrors();",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"protected interface ProvideError {\n Exception getError();\n }",
"@Override\n\tpublic void VisitErrorNode(LegacyErrorNode Node) {\n\n\t}",
"@Override\n @SuppressWarnings(\"all\")\n protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\n HttpHeaders headers, HttpStatus status,\n WebRequest request) {\n Map<String, Object> hashMap = new LinkedHashMap<>();\n Map<String, Set<String>> setMap = ex.getBindingResult()\n .getFieldErrors()\n .stream()\n .collect(Collectors.groupingBy(\n FieldError::getField,\n Collectors.mapping(FieldError::getDefaultMessage, Collectors.toSet())));\n hashMap.put(\"errors\", setMap);\n return new ResponseEntity<>(hashMap, headers, status);\n }",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"protodef.b_error.info getError();",
"protodef.b_error.info getError();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"abstract void errorLogError(String error);",
"@Override\n\tpublic void error(Marker marker, String message, Object... params) {\n\n\t}",
"String getInvalidMessage();",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"private ModelValidationException constructFieldException (String fieldName, \n\t\tString key)\n\t{\n\t\treturn constructFieldException(ModelValidationException.ERROR, \n\t\t\tfieldName, key);\n\t}",
"private void error(String string) {\n\t\r\n}",
"@Override\n\tpublic void error(Marker marker, Object message, Throwable t) {\n\n\t}",
"String getErrorMessage();",
"String getErrorMessage();",
"public void inquiryError() {\n\t\t\n\t}",
"private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}",
"private String resolveLocalizedErrorMessage(ObjectError fieldError) {\n\t\tString[] fieldErrorCodes = fieldError.getCodes();\n\t\tString localizedErrorMessage = fieldErrorCodes[0];\n\n\t\treturn localizedErrorMessage;\n\t}",
"void notSupported(String errorcode);",
"String getErrorsString();",
"@Override\n\tpublic void error(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public abstract void\n fail(ValidationError error);",
"private void addError(String field, String error, Object value) {\n if (errors == null) {\n errors = new LinkedHashMap<String, FieldError>();\n }\n LOG.debug(\"Add field: '{}' error: '{}' value: '{}'\", field, error, value);\n errors.put(field, new FieldError(field, error, value));\n }",
"@Override\n public void onError() {\n\n }",
"@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public ERRORDto validateBus();",
"public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}",
"public Map getError() {\n return this.error;\n }",
"public WorldUps.UErr getError(int index) {\n return error_.get(index);\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }",
"@Override\n\tpublic void error(Marker marker, String message, Throwable t) {\n\n\t}",
"protected <M> M validationError(Class<M> type) {\n Option<Object> err = actual.getValidationError(0);\n if (err.isEmpty()) {\n throwAssertionError(new BasicErrorMessageFactory(\"Expected a Result with validation errors, but instead was %s\",\n actualToString()));\n }\n return type.cast(err.get());\n }",
"public abstract Error errorCheck(Model m, String command);",
"@Override\n\tpublic void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"Object getFailonerror();",
"Object getFailonerror();"
] | [
"0.6703367",
"0.65186447",
"0.65186447",
"0.65186447",
"0.64600277",
"0.6432866",
"0.6415474",
"0.6371929",
"0.63717926",
"0.6329687",
"0.6297717",
"0.62760216",
"0.62574446",
"0.6256946",
"0.6247701",
"0.6215194",
"0.6211002",
"0.6206051",
"0.6199306",
"0.6197895",
"0.6161868",
"0.61514646",
"0.6149024",
"0.6146008",
"0.61366045",
"0.6122239",
"0.6119773",
"0.61171985",
"0.61028296",
"0.60971797",
"0.6096599",
"0.608518",
"0.6077476",
"0.60651135",
"0.6056991",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.6046054",
"0.60459435",
"0.6043924",
"0.60402054",
"0.60331833",
"0.601602",
"0.60128236",
"0.6011461",
"0.6006997",
"0.60039574",
"0.60019433",
"0.5997786",
"0.5997786",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59894943",
"0.59833276",
"0.5980027",
"0.5970503",
"0.59667915",
"0.59590745",
"0.5947293",
"0.5942677",
"0.5926826",
"0.59254885",
"0.5915411",
"0.5913032",
"0.5911358",
"0.5911358",
"0.59061116",
"0.59040916",
"0.5898863",
"0.58983094",
"0.58971286",
"0.5885852",
"0.5880153",
"0.58725536",
"0.5855191",
"0.5853197",
"0.5853009",
"0.58527035",
"0.5848247",
"0.5841551",
"0.58367336",
"0.5829193",
"0.5822774",
"0.5816908",
"0.5816498",
"0.5813609",
"0.58023256",
"0.579508",
"0.5788692",
"0.57863444",
"0.57863444"
] | 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//response.setContentType("text/html;charset=UTF-8");
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
Date today = new java.util.Date();
if (today.getDay() == 0 || today.getDay() == 7){
//its the weekend everything is closed
}
Date currentTime = new Time(today.getTime());
Session session = HibernateUtil.getSessionFactory().openSession();
Query q = session.createQuery("from Truck t where t.openingTime <=:time and t.closingTime >:time");
q.setParameter("time", currentTime);
List<Truck> results = q.list();
//List<Truck> results = Truck.getAllTrucks();
JsonArray jsonArray = new JsonArray();
for (Truck t: results) {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("name", t.getTruckName());
jsonObject.addProperty("lat", t.getLatitude());
jsonObject.addProperty("lng", t.getLongitude());
jsonObject.addProperty("id", t.getId());
jsonArray.add(jsonObject);
}
try (PrintWriter out = response.getWriter()) {
out.print(jsonArray);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }"
] | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.639271",
"0.63919044",
"0.63919044",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63887113",
"0.63887113",
"0.6380285",
"0.63783026",
"0.63781637",
"0.637677",
"0.63761306",
"0.6370491",
"0.63626",
"0.63626",
"0.63614637",
"0.6355308",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896"
] | 0.0 | -1 |
Download complete. Depending on your app, you could enable the ML feature, or switch from the local model to the remote model, etc. Toast.makeText(MainActivity2.this, dis+"Succsessful", Toast.LENGTH_SHORT).show(); | @Override
public void onSuccess(Void v) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }",
"@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}",
"@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }",
"@Override\n\t\t\tpublic void onDownloadSuccess(String result) {\n\t\t\t\tld.dismiss();\n\n\t\t\t\tif (getAppBrief(result)) {\n\n\t\t\t\t\tapp_advers.start(HomeActivity.this, mris, imageId, 3000,\n\t\t\t\t\t\t\tovalLayout, R.drawable.dot_focused,\n\t\t\t\t\t\t\tR.drawable.dot_normal);\n\t\t\t\t}\n\n\t\t\t\tappsAdapter.notifyDataSetChanged();\n\n\t\t\t}",
"private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }",
"public void download() {\n }",
"public void onDownloadComplete(boolean result){\n if(result) {\n barProgressDialog.setProgress(0);\n barProgressDialog.setTitle(\"Importazione\");\n barProgressDialog.setMessage(\"Sto Importando...\");\n\n AsyncImporter importer = new AsyncImporter(this);\n importer.execute();\n }\n else{\n barProgressDialog.dismiss();\n TextView finito = (TextView)findViewById(R.id.downloadend);\n finito.setText(\"Errore, controllare la connessione\");\n finito.setTextColor(Color.RED);\n finito.setVisibility(View.VISIBLE);\n findViewById(R.id.finito).setBackgroundResource(R.drawable.no);\n }\n\n }",
"public void download() {\n // Attempt to perform the download\n Log.d(TAG, \"download\");\n try {\n // Open a connection to the PHP server.\n // Get the response code\n // Open an input stream as well as a buffered input reader\n try {\n // if (responseCode == HttpURLConnection.HTTP_OK) {\n // Attempt to parse the data from the server\n\n /* Add the crumb objects, but only add the coordinates, the rating,\n * the name, and the number of visits to the local database structure.\n */\n\n // Perhaps add a post method to add the crumbs to the hashmap\n\n // Post: Notify the UI thread that the markers are ready to be loaded.\n\n } catch (Exception e) {\n\n } finally {\n // Close the input streams\n }\n } catch(Exception e) {\n\n }\n }",
"@Override\r\n\tpublic void download() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tToast.makeText(context, \"下载成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}",
"@Override\n protected void onPostExecute(String message) {\n this.progressDialog.dismiss();\n\n // Display File path after downloading\n Toast.makeText(context,\n message, Toast.LENGTH_LONG).show();\n }",
"@Override\n protected String doInBackground(String... f_url) {\n Thread.currentThread().setName(\"DownloadModel\");\n File destinationZip,initialPath,decompressedPath;\n final String fileName;\n try {\n // Output stream\n initialPath = getDir(MODEL_PATH, MODE_PRIVATE);\n fileName = new File(f_url[0]).getName();\n destinationZip = new File(initialPath, new File(f_url[0]).getName());\n decompressedPath = new File(initialPath, modelName);\n\n // see if it can load the model\n runOnUiThread(() -> pDialog.setMessage(\"Loading \"+modelName));\n try {\n setStatus(ImageClassificationActivity.Status.LOADING);\n Log.i(TAG,\"before load model \"+decompressedPath.getPath());\n classifier.loadModel(decompressedPath);\n Log.d(TAG,\"loaded model \"+modelName);\n setStatus(ImageClassificationActivity.Status.IDLE);\n return null;\n } catch( IOException e ) {\n Log.w(TAG,\"Failed to load model on first attempt. Downloading\");\n Log.w(TAG,\" message = \"+e.getMessage());\n }\n\n // download the file\n downloadModelFile(destinationZip, decompressedPath, f_url[0]);\n\n } catch (IOException e) {\n Log.e(\"Error: \", e.getMessage());\n setStatus(ImageClassificationActivity.Status.ERROR);\n return null;\n }\n\n if( stopRequested ) {\n Log.i(TAG, \"Download stop requested. Cleaning up. \");\n if (destinationZip.exists() && !destinationZip.delete()) {\n Log.e(\"Error: \", \"Failed to delete \" + destinationZip.getName());\n }\n setStatus(ImageClassificationActivity.Status.WAITING);\n } else {\n // Try loading the model now that it's downloaded\n try {\n runOnUiThread(() -> pDialog.setMessage(\"Decompressing \" + fileName));\n\n Log.i(TAG, \"Decompressing \" + decompressedPath.getPath());\n setStatus(ImageClassificationActivity.Status.DECOMPRESSING);\n\n deleteModelData(false); // clean up first\n\n ZipFile zipFile = new ZipFile(destinationZip);\n zipFile.extractAll(initialPath.getAbsolutePath());\n if (!destinationZip.delete()) {\n Log.e(\"Error: \", \"Failed to delete \" + destinationZip.getName());\n }\n\n runOnUiThread(() -> pDialog.setMessage(\"Loading \" + modelName));\n setStatus(ImageClassificationActivity.Status.LOADING);\n classifier.loadModel(decompressedPath);\n setStatus(ImageClassificationActivity.Status.IDLE);\n } catch (IOException e) {\n Log.w(TAG, \"Failed to load model on second attempt.\");\n e.printStackTrace();\n setStatus(ImageClassificationActivity.Status.ERROR);\n }\n }\n\n return null;\n }",
"protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}",
"private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }",
"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}",
"public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}",
"public void onDownloadFile2(View view) {\n String url = \"http://txt.99dushuzu.com/download-txt/3/21068.txt\";\n EasyHttp.downLoad(url)\n .savePath(Environment.getExternalStorageDirectory().getPath()+\"/test/QQ\")\n .saveName(FileUtils.getFileName(url))\n .execute(new DownloadProgressCallBack<String>() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n int progress = (int) (bytesRead * 100 / contentLength);\n HttpLog.e(progress + \"% \");\n dialog.setProgress(progress);\n if (done) {\n dialog.setMessage(\"下载完成\");\n }\n }\n\n @Override\n public void onStart() {\n dialog.show();\n }\n\n @Override\n public void onComplete(String path) {\n showToast(\"文件保存路径:\" + path);\n dialog.dismiss();\n }\n\n @Override\n public void onError(ApiException e) {\n showToast(e.getMessage());\n dialog.dismiss();\n }\n });\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n progressBar.setVisibility(View.GONE);\n Toast.makeText(getContext(), \"Your file is saved in \" + localFile.toString(), Toast.LENGTH_LONG).show();\n }",
"private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }",
"public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}",
"@Override\n public void onReceive(Context context, Intent intent) {\n if (mDownloadedFileID == -1)\n return;\n Toast.makeText(getApplicationContext(), getString(R.string.atom_ui_tip_download_success), //To notify the Client that the file is being downloaded\n Toast.LENGTH_LONG).show();\n QunarWebActvity.this.finish();\n }",
"@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n System.out.println(\"Starting download\");\r\n }",
"private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }",
"private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }",
"public void downloadFile() {\n String path = images.get(viewPager.getCurrentItem()).getFilePath();\n String uRl = \"https://image.tmdb.org/t/p/w500\" + path;\n String name = path.substring(1, 5);\n File direct = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Cinemato\");\n if (!direct.exists()) {\n direct.mkdirs();\n }\n DownloadManager mgr = (DownloadManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.DOWNLOAD_SERVICE);\n Uri downloadUri = Uri.parse(uRl);\n DownloadManager.Request request = new DownloadManager.Request(\n downloadUri);\n request.setAllowedNetworkTypes(\n DownloadManager.Request.NETWORK_WIFI\n | DownloadManager.Request.NETWORK_MOBILE)\n .setAllowedOverRoaming(false).setTitle(name)\n .setDescription(\"Saved images from Cinemato\")\n .setDestinationInExternalPublicDir(Environment.DIRECTORY_PICTURES + \"/Cinemato\", name + \".jpg\");\n assert mgr != null;\n mgr.enqueue(request);\n // Open Download Manager to view File progress\n Toast.makeText(getContext(), \"Downloading...\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));\n }",
"@Override\n protected void onPostExecute(String file_url) {\n Log.i(TAG,\"onPostExecute()\");\n download = null;\n // dismiss the dialog after the file was downloaded\n runOnUiThread(()->dismissDialog());\n }",
"void onDownloadComplete(EzDownloadRequest downloadRequest);",
"@Override\n public void run() {\n downloadInfo.state = STATE_DOWNLOADING;\n notifyStateChange(downloadInfo);\n\n //6.specific download, two kinds of education\n // re-download and resume downloads\n Request request;\n File file = new File(downloadInfo.path);\n if (!file.exists() || file.length() != downloadInfo.currentLength) {\n //file is not exists, or file size in downloadInfo saved inconsistent\n //the file is invalid\n file.delete();\n downloadInfo.currentLength = 0;\n\n //need to re-download\n String url = String.format(Url.APP_DOWNLOAD, downloadInfo.downloadUrl);\n request = new Request.Builder().url(url).build();\n } else {\n //need to resume download\n String url = String.format(Url.APP_BREAK_DOWNLOAD, downloadInfo.downloadUrl, downloadInfo.currentLength);\n request = new Request.Builder().url(url).build();\n }\n\n Response response = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n response = okHttpClient.newCall(request).execute();\n is = response.body().byteStream();\n\n if (response != null && is != null) {\n fos = new FileOutputStream(file, true);\n\n byte[] buffer = new byte[1024 * 8];\n int len = -1;\n while ((len = is.read(buffer)) != -1 && downloadInfo.state == STATE_DOWNLOADING) {\n fos.write(buffer, 0, len);\n fos.flush();\n\n downloadInfo.currentLength = downloadInfo.currentLength + len;\n notifyProgressChange(downloadInfo);\n }\n } else {\n //the server return an error\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //handle the case did not come here,there are has three situation\n //1.download finish 2.download error 3.download pause\n if (file.length() == downloadInfo.currentLength && downloadInfo.state == STATE_DOWNLOADING) {\n //说明下载完成\n downloadInfo.state = STATE_FINISH;\n notifyStateChange(downloadInfo);\n } else if (downloadInfo.state == STATE_PAUSE) {\n notifyStateChange(downloadInfo);\n } else {\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n //requires runnable is removed from the current from downloadTaskMap at the end of the task\n downloadTaskMap.remove(downloadInfo.id);\n }",
"private void handleDownloadFailure(){\n Toast.makeText(this,\n \"Could not establish connection to service.\\n\" +\n \"Please check your internet connection and \\n\" +\n \"make sure internet permissions are granted.\",\n Toast.LENGTH_LONG\n ).show();\n }",
"@Override\n protected void onPostExecute(String result) {\n mWakeLock.release();\n AudioActivity.sProgDialDownload.dismiss();\n UpdateTalesData.loadTalesData(mContext);\n AudioActivity.sBtn_taleDownload.setImageResource(R.drawable.btn_download_p);\n if (result != null)\n Toast.makeText(mContext,mContext.getResources().getString(R.string.download_error)+\n result, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(mContext,mContext.getResources().getString(R.string.download_success),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tToast.makeText(context, \"下载出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n switch (view.getId()) {\n case R.id.downloadPdf:\n if (isConnectingToInternet()){\n Toast.makeText(getApplicationContext(), \"it's me\", Toast.LENGTH_SHORT).show();\n new DownloadTask(MainActivity.this, downloadPdf, Utils.downloadPdfUrl);\n }\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadDoc:\n if(isStoragePermissionGranted()){\n\n }\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadDoc, Utils.downloadDocUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadZip:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadZip, Utils.downloadZipUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadVideo:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadVideo, Utils.downloadVideoUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadMp3:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadMp3, Utils.downloadMp3Url);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.openDownloadedFolder:\n openDownloadedFolder();\n break;\n case R.id.go_to_downlaod:\n Intent i = new Intent(MainActivity.this, DownloadActivity.class);\n startActivity(i);\n break;\n\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n normalDownload(finalBitmap,input.getText()+\"\");\n }",
"@Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n progressDialog.dismiss();\n Toast.makeText(context,\"下载完成!\",Toast.LENGTH_SHORT).show();\n }",
"public boolean isDownloading()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_DOWNLOADING;\r\n }",
"private void startMovieDownload() {\n String sortOrder = AppPrefs.getInstance(this).getLastSortOrder();\n if (null == sortOrder) {\n sortOrder = SortBy.getDefaultSortOrder();\n }\n downloadData(sortOrder);\n }",
"@Override\n public void run() {\n try {\n final String filename = Environment.getExternalStorageDirectory().toString() + \"/FeedEx_\"\n + System.currentTimeMillis() + \".opml\";\n\n // OPML.exportToFile(filename);\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), String.format(getString(R.string.message_exported_to), filename),\n Toast.LENGTH_LONG).show();\n }\n });\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_export, Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"@Override\n\t\tprotected void onPostExecute(final Boolean success)\n\n\t\t{\n\n\t\t\tif (this.dialog.isShowing())\n\n\t\t\t{\n\n\t\t\t\tthis.dialog.dismiss();\n\n\t\t\t}\n\n\t\t\tif (success)\n\n\t\t\t{\n\n\t\t\t\tToast.makeText(ctx, \"Export successful!\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\n\t\t\t\tfilename.setText(getString(R.string.saved_history)\n\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t+ SaveUtils\n\t\t\t\t\t\t\t\t.getLastExportedFileName(StatisticExportActivity.this));\n\t\t\t}\n\n\t\t\telse\n\n\t\t\t{\n\n\t\t\t\tToast.makeText(ctx, \"Export failed\", Toast.LENGTH_SHORT).show();\n\n\t\t\t}\n\n\t\t}",
"private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }",
"@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}",
"@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }",
"private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }",
"public void onDownloadSuccess(String fileInfo);",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tDialog.setMessage(\"Downloading Delivery Data..\");\n\t\t\tDialog.setCancelable(false);\n\t\t\tDialog.show();\n\t\t}",
"@Override\n\t\t\t\t\tprotected void onPostExecute(String file_url) {\n\t\t\t\t\t\t// Dismiss the dialog after the Music file was downloaded\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\tdismissDialog(progress_bar_type);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Download complete, Image saved at: \"+Environment.getExternalStorageDirectory().getPath()+\"/Space Monitor/\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t// Play the music\n\t\t\t\t\t//\tplayMusic();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t}catch (Exception d) {\n\t\t\t\t\t //Log.d(\"Exception\", e.getMessage());\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void downloadDialog(){\n AlertDialog ad = new AlertDialog.Builder(this).create();\n ad.setMessage(getString(R.string.download_message)+\" \"+\n \"\\\"\"+UpdateTalesData.sTaleName+\"\\\"\"+ \" ?\");\n ad.setButton(getString(R.string.download_btnPos),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startDownload();\n }\n });\n ad.setButton2(getResources().getString(R.string.download_btnNeg),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n ad.setCancelable(true);\n ad.show();\n }",
"private static void onDownloadFinished(String id, Context context) {\n switch (id) {\n case Constants.WORDNET:\n Intent intent = new Intent(context, UnzipService.class);\n intent.putExtra(UnzipService.INTENT_KEY_DICT_NAME, id);\n context.startService(intent);\n break;\n default:\n Timber.w(\"No relevant download found for \" + id + \" doing nothing on download complete\");\n break;\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n try{\n final DownloadManager downloadManager = DownloadManager.getInstance();\n String downloadUrl = jTextField1.getText();\n String qQString = \"http://dldir1.qq.com/qqfile/qq/QQ2013/QQ2013Beta2.exe\";\n String fileName = jTextField2.getText();\n final DownloadMission downloadMission;\n downloadMission = new DownloadMission(qQString, jFileChooser1.getCurrentDirectory().getName(), \"Sample\");\n downloadManager.addMission(downloadMission);\n \n jButton2 = new JButton();\n jButton2.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n downloadManager.start();\n }\n });\n add(jButton2);\n downloadManager.start();\n //initialise the progress bar with a counter\n int counter = 0;\n while(true){\n jProgressBar1.setMinimum(0);\n jProgressBar1.setMaximum(Integer.parseInt(downloadManager.getReadableDownloadSize()));\n \n jTextField3.setText(downloadManager.getReadableTotalSpeed());\n jTextField4.setText(downloadManager.getReadableDownloadSize());\n counter++;\n }\n \n \n } catch (IOException ex) {\n Logger.getLogger(DownloadInterface.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n int result;\n \n jFileChooser1 = new JFileChooser();\n jFileChooser1.setCurrentDirectory(new java.io.File(\" \"));\n jFileChooser1.setDialogTitle(chooserTitle);\n jFileChooser1.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n \n //disable all files option\n jFileChooser1.setAcceptAllFileFilterUsed(false);\n if (jFileChooser1.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { \n System.out.println(\"getCurrentDirectory(): \" \n + jFileChooser1.getCurrentDirectory());\n System.out.println(\"getSelectedFile() : \" \n + jFileChooser1.getSelectedFile());\n }\n else {\n System.out.println(\"No Selection \");\n }\n }",
"@Override\n public void onClick(View view) {\n if(!titleNameofFiles.contains(content.getFileName())) {\n // Download the content\n //Toast.makeText(getActivity(), \"::Download process begins:: with url:\" + content.getDownloadUrl(), Toast.LENGTH_SHORT).show();\n Log.i(\"url:\", content.getDownloadUrl());\n// new ContentDownloader(getActivity()).downloadFile(content.getDownloadUrl(),content.getTitle(),choosenSubject,choosenType);\n AnotherContentDownloader.getInstance(getActivity()).downloadFile(content.getDownloadUrl(), content.getFileName(), choosenSubject, choosenType);\n\n }else{\n Toast.makeText(getActivity(),\" You already have downloaded this file!\",Toast.LENGTH_SHORT).show();\n }\n DialogFragment dialog = (DialogFragment) getFragmentManager().findFragmentByTag(\"Download\");\n dialog.dismiss();\n }",
"public void autoDownloadTales(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n boolean adlStatus = mShp.getBoolean(getString(R.string.pref_download_key),false);\n if (adlStatus){\n startDownload();\n }\n }",
"@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}",
"private void onExportComplete(String message) {\n Toast.makeText(ExportActivity.this, message, Toast.LENGTH_SHORT).show();\n finish();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n downLoadApk();\n\n\n //new DownLoadNewVer().execute();\n //finish();\n }",
"@Override\n\t protected void onPostExecute(String error_message) {\n\t // dismiss the dialog after the file was downloaded\n\t \tif(progressBar.getProgress()<100){\n\t \t\tif(error_message!=null)\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please enter valid Url\", Toast.LENGTH_SHORT).show();\n\t\t \telse\n\t\t\t\tToast.makeText(getApplicationContext(), \"Download Failled\", Toast.LENGTH_SHORT).show();\n\t \t}\n\t \telse {\n\t\t\tshowPdf();\n\t \t}\n\t\t\turlView.setVisibility(View.VISIBLE);\n\t\t\tprogressLayout.setVisibility(View.GONE);\n\n\t }",
"private void btnDownloadActionPerformed(java.awt.event.ActionEvent evt) {\n path = JOptionPane.showInputDialog(\"Digite o local de destino do arquivo:\");\n System.out.println(\"Path\" + path);\n if (rbBpa.isSelected()) {\n site = \"ftp://arpoador.datasus.gov.br/siasus/BPA/\";\n } else {\n site = \"ftp://arpoador.datasus.gov.br/siasus/sia/\";\n }\n resposta = Download.terminou;\n System.out.println(\"Resposta \" + resposta);\n\n new Thread() {\n public void run() {\n progress.setValue(0);\n progress.setStringPainted(true);\n// Download.downloadArquivo(site, path);\n for (int i = 0; i < 101; i++) {\n progress.setValue(i);\n progress.setString(i + \"%\");\n try {\n Thread.sleep(100);\n } catch (InterruptedException err) {\n\n }\n if (i == 5) {\n lbMsg.setText(\"Baixando arquivo.\");\n }\n if (i > 5) {\n while (resposta != true) {\n Download.downloadArquivo(site, path);\n lbMsg.setText(\"Baixando arquivo....\");\n resposta = Download.terminou;\n }\n }\n if (i == 100) {\n lbMsg.setText(\"Arquivo baixado\");\n }\n }\n }\n }.start();\n\n }",
"public void onFileDownloadComplete(String filePath);",
"void fileDownloaded(String path);",
"private void downloadContent(){\n try {\n URL yahoo = new URL( \"http://api.letsleapahead.com/LeapAheadMultiFreindzy/index.php?action=getLang&langCode=EN&langId=1&appId=6\");\n BufferedReader in = new BufferedReader(\n new InputStreamReader(yahoo.openStream()));\n String inputLine;\n while ((inputLine = in.readLine()) != null)\n Log.e(\"TAG\" , inputLine);\n in.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmpProgress = ProgressDialog.show(mContext,\n\t\t\t\t\t\t\t\"Downloading data\",\n\t\t\t\t\t\t\t\"Please wait for a moment...\");\n\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // Do something after 5s = 5000ms\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n }\n }\n }, 10000);\n\n Toast.makeText(getActivity(), \"Starting download...\", Toast.LENGTH_SHORT).show();\n\n //handle the download....whoo hoo, bitches!!!\n Uri uri = Uri.parse(chat.getDownloadUrl().toString());\n DownloadManager.Request request = new DownloadManager.Request(uri);\n request.setMimeType(\"audio/mpeg\");\n request.setTitle(name);\n request.setDescription(\"Artist: \" + artist);\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n\n\n //request.addRequestHeader(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE);\n\n if(isExternalStorageWritable()){\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, outFile);\n //request.setDestinationInExternalFilesDir(MainActivity.this,\"mb_music\", name + \"_\" + artist + \".mp3\");\n myDownloadReference = downloadManager.enqueue(request);\n Log.d(\"myDownloadReference\", String.valueOf(myDownloadReference));\n }else{\n FlycoMenuDialog noWriteableStorageDialog = new FlycoMenuDialog(getActivity(),new ZoomInTopEnter(), new ZoomOutBottomExit(), getActivity().getResources().getString(R.string.no_writeable_storage_title),getActivity().getResources().getString(R.string.no_writeable_storage_content), \"Okay\");\n noWriteableStorageDialog.showMaterialDialog();\n }\n\n\n\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n listener.onDownlaoded(finalFile);\n }",
"@NonNull\n private File getDownloadLocation() {\n System.out.println(\"Hello. in download start\");\n File root = android.os.Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath() + \"/V2A\");\n if (!file.exists()) {\n file.mkdirs();\n }\n System.out.println(file.toString());\n System.out.println(\"Hello. in download end\");\n //Toast.makeText(this, \"Starting Download\", Toast.LENGTH_SHORT).show();\n\n return file;\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.music_download_activity);\n\t\ttv_result_songname = (TextView) findViewById(R.id.tv_result_songname);\n\t\ttv_result_artistname = (TextView) findViewById(R.id.tv_result_artistname);\n\t\ttv_result_albumName = (TextView) findViewById(R.id.tv_result_albumName);\n\t\ttv_result_songtime = (TextView) findViewById(R.id.tv_result_songtime);\n\t\ttv_result_songsize = (TextView) findViewById(R.id.tv_result_songsize);\n\t\tbtn_result_player = (Button) findViewById(R.id.btn_result_player);\n\t\tbtn_result_download = (Button) findViewById(R.id.btn_result_download);\n\t\tbtn_result_download.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.sendEmptyMessage(STARTDOWNLOAD);\n\t\t\t}\n\t\t});\n\t\tbtn_result_player.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Musicdownloadactivity.this, music_playeractivity.class);\n\t\t\t\tintent.setData(Uri.parse(sModel.getSongLink()));\n\t\t\t\tintent.putExtra(\"time\", sModel.getTime());\n\t\t\t\tintent.putExtra(\"songname\", sModel.getSongName());\n\t\t\t\tintent.putExtra(\"songartist\", sModel.getArtistName());\n\t\t\t\tintent.putExtra(\"lrclink\", sModel.getLrcLink());\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\tgetsongid();\n\t\ttry {\n\t\t\tgetsonginfo();\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}",
"@Override\n protected String doInBackground(String... url) {\n String data = \"\";\n try {\n // Gui request len\n data = downloadUrl(url[0]);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return data;\n }",
"public void downloadButtonPressed(View view)\n {\n Intent intent = new Intent(this, DownloadActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n \tIntent in = new Intent(getApplicationContext(), DownloadFile.class);\n in.putExtra(\"url\", url_get_file);\n startActivityForResult(in, 100);\n }",
"private String downloadURL(String url) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(url);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\te.printStackTrace();\n\t\t\treturn \"Error\";\n\t\t}\n\t}",
"private String downloadURL(String myurl) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(myurl);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\treturn \"Error\";\n\t\t}\n\t}",
"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}",
"@Override\n protected void onPostExecute(String file_url) {\n // dismiss the dialog after the file was downloaded\n //dismissDialog(progress_bar_type);\n dismissProgress();\n showToast(String.valueOf(\"Download File Success to \") + filename);\n if (filePath != null) {\n File file = new File( filePath );\n Intent intent = new Intent(Intent.ACTION_VIEW);\n Uri fileUri = FileProvider.getUriForFile(getContext(),\n \"com.insurance.easycover\",\n file);\n intent.setData(fileUri);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivity(intent);\n }\n }",
"public void downloadStarted();",
"private void setFinalNotification() {\n //finished downloading all files\n // update notification\n String note = getResources().getString(R.string.update_complete);\n mBuilder.setContentTitle(note)\n .setContentText(\"\")\n .setSmallIcon(R.drawable.ic_launcher_mp)\n .setTicker(note)\n .setProgress(0, 0, false);\n nm.notify(0, mBuilder.build());\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n Log.d(TAG, \"TAG - MainActivity - onCreate()\");\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n unbinder = ButterKnife.bind(this);\n\n DownloadTask downloadTask = new DownloadTask(getResources());\n String result;\n\n try {\n result = downloadTask.execute(\"https://www.ft-hd-kirchheim.de/\").get();\n Log.d(\"Result\", result); //TODO Nicht in einem Log anzeigen, sondern in der Activity (z.B. in einer Liste) beim drücken von Button\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n setListener();\n }",
"@Override\n public void onFailure(Call call, IOException e) {\n listener.onDownloadFailed(MyApplication.getContext().getString(R.string.failure_please_try_again));\n }",
"protected void onPostExecute(String file_url) \n\t\t{\n\t\t\t// dismiss the dialog after getting all products\n\t\t\tpDialog.dismiss();\n\t\t\tToast.makeText(getApplicationContext(), \"Status tweeted successfully\", Toast.LENGTH_SHORT).show();\n\t\t\tfinish();\n\t\t}",
"@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 protected void onPostExecute(UserDetails userDetails) {\n listener.onDownload(userDetails);\n }",
"public final synchronized void bfj() {\n C4990ab.m7416i(\"MicroMsg.MsgFileWorker_Base\", \"onDownloadStop\");\n if (this.ktU != null) {\n this.ktU.bff();\n this.ktU = null;\n }\n }",
"@Override\n protected void onPostExecute(String file_url) {\n mContext.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n MyApplication.getContext().stopProgress(mContext);\n MyApplication.getContext().showCustomProgress(mContext, R.drawable.complete, Constants.DOWNLOAD_COMPLETE);\n MyApplication.getContext().scheduleDismiss();\n mAdapter.notifyDataSetChanged();\n }\n });\n\n }",
"@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n try {\r\n String root = Environment.getExternalStorageDirectory().toString();\r\n\r\n System.out.println(\"Downloading\");\r\n URL url = new URL(f_url[0]);\r\n\r\n URLConnection conection = url.openConnection();\r\n conection.connect();\r\n // getting file length\r\n int lenghtOfFile = conection.getContentLength();\r\n\r\n // input stream to read file - with 8k buffer\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n\r\n // Output stream to write file\r\n\r\n OutputStream output = new FileOutputStream(root+\"/downloadedfile.jpg\");\r\n byte data[] = new byte[1024];\r\n\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n\r\n // writing data to file\r\n output.write(data, 0, count);\r\n\r\n }\r\n\r\n // flushing output\r\n output.flush();\r\n\r\n // closing streams\r\n output.close();\r\n input.close();\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n\r\n return null;\r\n }",
"@Override\n\tpublic void downCompleted(String uri, long count, long rcount,\n\t\t\tboolean isdown, File file) {\n\t\tif (file != null&&file.length()>0) {\n\t\t\tMessage msg = handler.obtainMessage();\n\t\t\tmsg.what = appdownloadsuc;\n\t\t\tmsg.obj = file;\n\t\t\thandler.sendMessage(msg);\n\n\t\t}else{\n\t\t\thandler.sendEmptyMessage(appdownloadfail);\n\t\t}\n\t}",
"public static void finalActivity(String fileName, String URL){\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"Connecting to URL...\");\n\t\t\t\n\t\t\tdoc = Jsoup.connect(URL)\n\t\t\t\t\t.userAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0\")\n\t\t\t\t\t.ignoreHttpErrors(true)\n\t\t\t\t\t.ignoreContentType(true)\n\t\t\t\t\t.maxBodySize(0)\n\t\t\t\t\t.timeout(100000)\n\t\t\t\t\t.get();\n\t\t\t\n\t\t\tSystem.out.println(\"Successfully connected!\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"ERROR: Unable to connect to website.\");\n\t\t}\n\t\t\n\t\t//boolean to see if download failed\n\t\tboolean success = false;\n\t\t\n\t\t//Will go through each element trying to download song.\n\t\tSystem.out.println(\"Organizing songs in best order...\");\n\t\tElements songs = FetchSong.fetchBestSongOrder(doc, fileName);\n\t\tSystem.out.println(\"Organized songs...\");\n\t\tfor(Element x : songs){\n\t\t\t\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Attempting to download from element: \" + FetchSong.specifySong(x));\n\t\t\t\tFetchSong.downloadSong(FetchSong.fetchSong(FetchSong.fetchSongURL(x)), fileName);\n\t\t\t\t\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\t} catch (UnknownHostException e){\n\t\t\t\tSystem.err.println(\"ERROR: Link is either expired or invalid. Trying another link...\");\n\t\t\t} catch (IOException e){\n\t\t\t\t//Empty because it will already be handled\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(success)\n\t\t\tSystem.out.println(\"SUCCESS: SONG DOWNLOADED - \" + fileName);\n\t\telse\n\t\t\tSystem.err.println(\"ERROR: None of the links for [\" + fileName + \"] were valid.\");\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }",
"public void handlerDownloadState(int status) {\n if (TvApplication.DEBUG_LOG) {\n JLog.d(TAG, \"deal download status in UpdateClient, status=\" + status);\n }\n if (status == STATUS_DOWNLOAD_SUCCESS) {\n // requestInstall();\n }\n }",
"@Override\n\tpublic void onImageDownloadFinish(Bitmap googleimagebitmap) {\n\n\t}",
"@Override\n protected void onPreExecute() {\n Dialog.setMessage(\"Downloading Stock Adjustment..\");\n Dialog.setCancelable(false);\n Dialog.show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestDownload();\r\n\t\t\t}",
"@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (dl != null) {\n\t\t\t\tdl.dismiss();\n\t\t\t}\n\t\t}",
"protected void onPreExecute() {\n super.onPreExecute();\n mProgressDialog = new ProgressDialog(PetaWisataActivity.this);\n mProgressDialog.setTitle(\"Download Data, Mohon Tunggu!\");\n mProgressDialog.setMessage(\"Loading...\");\n mProgressDialog.setIndeterminate(false);\n mProgressDialog.setCancelable(true);\n // Show progressdialog\n mProgressDialog.show();\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction() == DownloadManager.ACTION_DOWNLOAD_COMPLETE) {\n long id = intent\n .getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n if (tag_id == id) {\n downOK();\n }\n }\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n\n Log.d(TAG, \"onSuccess: Downloaded File\");\n pdfView.fromFile(localFile).load();\n\n }",
"public boolean downloadAndSaveBinaryFile(String theUrl, String saveAsFileName){\n \t\t //Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: \" + URL); \n\t \ttry {\n\t\t \n\t \tURL u = new URL(theUrl);\n\t URLConnection uc = u.openConnection();\n\t String contentType = uc.getContentType();\n\t int contentLength = uc.getContentLength();\n\t if (contentType.startsWith(\"text/\") || contentLength == -1) {\n\t return false; // not binary\n\t }\n\t InputStream raw = uc.getInputStream();\n\t InputStream in = new BufferedInputStream(raw);\n\t byte[] data = new byte[contentLength];\n\t int bytesRead = 0;\n\t int offset = 0;\n\t while (offset < contentLength) {\n\t bytesRead = in.read(data, offset, data.length - offset);\n\t if (bytesRead == -1)\n\t break;\n\t offset += bytesRead;\n\t }\n\t in.close();\n\t \t\t\t \t\n\t \t\t\t \n\t if (offset != contentLength) {\n\t\t return false; //problem reading stream?\n\t }\n\t \n\n\t //save file\n\t\t\t\t\tFileOutputStream fos = super.openFileOutput(saveAsFileName, MODE_WORLD_READABLE);\n\t\t\t\t\tfos.write(data);\n\t\t\t\t\tfos.flush();\n\t\t\t\t\tfos.close();\n\t \n\t return true;\n\t }catch (Exception je){\n\t\t\t Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: ERROR - 2: \" + je.getMessage()); \n\t \t return false;\n\t\t } \n\t }",
"public void run() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\n\t\tSystem.out.println(\"ftp download \" + sdf.format(new Date()) );\n\t\t\n\t\ttry {\n\t\t\t// 从FTP中下载对账文件 参数 (ftp对象,本地地址,文件名)\n\t\t\tFtpUtil fu = new FtpUtil() ;\n\t\t\tfu.startDown(f, downloadUrl, f.getPath());//下载ftp文件测试\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t}\n\t}",
"private void onFullyLoaded() {\n info(\"onFullyLoaded()\");\n cancelProgress();\n\n //Fully loaded, start detection.\n ZiapApplication.getInstance().startDetection();\n\n Intent intent = new Intent(LoadingActivity.this, MainActivity.class);\n if (getIntent().getStringExtra(\"testname\") != null)\n intent.putExtra(\"testname\", getIntent().getStringExtra(\"testname\"));\n startActivity(intent);\n finish();\n }",
"@Override\n public void processFinish(String result) {\n MyAsyncTask getGlobalModel = new MyAsyncTask(MainActivity.this, file, \"\",\"\",\"getModel\", new MyAsyncTask.AsyncResponse() {\n @Override\n public void processFinish(String result) {\n Log.i(\"Output: GetGlobalModel\", result);\n }\n });\n getGlobalModel.execute();\n Toast.makeText(MainActivity.this, \"Fetched Global Model Successfully\", Toast.LENGTH_SHORT).show();\n Log.i(\"Output: isModelUpdated\", \"Done\");\n\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot state) {\n useGlide(Uri.fromFile(animal_file1));\n\n }",
"@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n if (f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"null\" || f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"\") {\r\n try {\r\n URL url = new URL(f_url[0]);\r\n HttpURLConnection connection = (HttpURLConnection)url.openConnection();\r\n connection.connect();\r\n int lengthOfFile = connection.getContentLength();\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n fileName = f_url[0].substring(f_url[0].lastIndexOf('/') + 1);\r\n File directory = getExternalFilesDir(null);\r\n String folder = directory.getAbsolutePath();\r\n if (!directory.exists()) {\r\n directory.mkdirs();\r\n }\r\n OutputStream output = new FileOutputStream(folder + \"/\" + fileName);\r\n byte[] data = new byte[16384];\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n publishProgress(\"\" + (int) ((total * 100) / lengthOfFile));\r\n output.write(data, 0, count);\r\n }\r\n output.flush();\r\n output.close();\r\n input.close();\r\n return \"Downloaded at: \" + folder + fileName;\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n return \"CMV files is missing in the server.Please contact your Admin\";\r\n } else {\r\n return \"These is some issue in downloading the file.Please contact your Admin\";\r\n }\r\n }",
"@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tToast.makeText(context, \"下载失败。。。\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tdialog2.dismiss();\n\t\t\t}",
"@Override\n protected void onPreExecute() {\n Dialog.setMessage(\"Downloading Outlet Inventory..\");\n Dialog.setCancelable(false);\n Dialog.show();\n }"
] | [
"0.68711454",
"0.68526196",
"0.6555579",
"0.65233034",
"0.65218246",
"0.6469138",
"0.6420111",
"0.62886405",
"0.62629175",
"0.6219293",
"0.62081665",
"0.62051445",
"0.6171876",
"0.6152064",
"0.61392707",
"0.61314875",
"0.61233926",
"0.61043936",
"0.6103326",
"0.6080351",
"0.60743874",
"0.60742635",
"0.6048676",
"0.60435486",
"0.6017413",
"0.60068744",
"0.59391195",
"0.5928925",
"0.59199435",
"0.59101367",
"0.5885555",
"0.58801347",
"0.5849751",
"0.58457565",
"0.58375704",
"0.58368874",
"0.5833",
"0.5826108",
"0.5816601",
"0.5804672",
"0.57990474",
"0.5731081",
"0.5723977",
"0.570445",
"0.57036674",
"0.57028556",
"0.57018006",
"0.5682852",
"0.56812125",
"0.56754637",
"0.5672651",
"0.5664362",
"0.5659929",
"0.56459564",
"0.56437063",
"0.56263655",
"0.5619844",
"0.56061476",
"0.560199",
"0.5598548",
"0.5597725",
"0.55952334",
"0.5574789",
"0.55630076",
"0.55610967",
"0.55515873",
"0.5543798",
"0.55417675",
"0.5527253",
"0.552428",
"0.55228555",
"0.5516195",
"0.55113333",
"0.55084616",
"0.54935783",
"0.5488058",
"0.5479736",
"0.5471643",
"0.54691833",
"0.5457721",
"0.5450836",
"0.54460543",
"0.54424125",
"0.5439719",
"0.54269654",
"0.5423051",
"0.5420639",
"0.54183066",
"0.5410549",
"0.539911",
"0.5397992",
"0.53973496",
"0.53951603",
"0.5392691",
"0.5386363",
"0.5386227",
"0.53749037",
"0.53731436",
"0.5373102",
"0.5372568",
"0.5364233"
] | 0.0 | -1 |
Toast.makeText(this, "inside load", Toast.LENGTH_SHORT).show(); | public void loadModel(){
remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();
FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)
.addOnCompleteListener(new OnCompleteListener<File>() {
@Override
public void onComplete(@NonNull Task<File> task) {
File modelFile = task.getResult();
if (modelFile != null) {
interpreter = new Interpreter(modelFile);
// Toast.makeText(MainActivity2.this, "Hosted Model loaded.. Running interpreter..", Toast.LENGTH_SHORT).show();
runningInterpreter();
}
else{
try {
InputStream inputStream = getAssets().open(dis+".tflite");
byte[] model = new byte[inputStream.available()];
inputStream.read(model);
ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)
.order(ByteOrder.nativeOrder());
buffer.put(model);
//Toast.makeText(MainActivity2.this, dis+"Bundled Model loaded.. Running interpreter..", Toast.LENGTH_SHORT).show();
interpreter = new Interpreter(buffer);
runningInterpreter();
} catch (IOException e) {
// File not found?
Toast.makeText(MainActivity2.this, "No hosted or bundled model", Toast.LENGTH_SHORT).show();
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }",
"public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }",
"@Override\r\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\t\t\tactivityContext,\r\n\t\t\t\t\t\t\t\tR.string.unable_to_fetch_the_details,\r\n\t\t\t\t\t\t\t\t2000);\r\n\r\n\t\t\t\t\t\t }",
"private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getApplicationContext(), \"Success!\",\n Toast.LENGTH_LONG).show();\n }",
"protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}",
"@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onResponse(String s) {\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(MainActivity.this, s , Toast.LENGTH_LONG).show();\n }",
"private void displayToast() {\n if(getActivity() != null && toast != null) {\n Toast.makeText(getActivity(), toast, Toast.LENGTH_LONG).show();\n toast = null;\n }\n }",
"@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getContext(), \"המוצר נמחק בהצלחה!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\nprotected void onResume() {\n\tsuper.onResume();\n\t//Toast.makeText(getApplicationContext(), \"onResume\", 1).show();\n}",
"@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n talkAlert = (TextView) findViewById(R.id.talkAlert);\n talkAlert.setText(getResources().getString(R.string.loading));\n talkAlert.setVisibility(View.VISIBLE);\n }",
"@Override\n public void run() {\n Constant.showToast(getActivity().getResources().getString(R.string.internet), getActivity());\n }",
"@Override\n public void run() {\n Constant.showToast(getActivity().getResources().getString(R.string.internet), getActivity());\n }",
"private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }",
"private void showErrorOnToast(String msg) {\n mFailToLoadTextView.setVisibility(View.VISIBLE);\n mFailToLoadTextView.setText(R.string.error_msg_unable_to_load);\n Toast.makeText(MainActivity.this, msg, Toast.LENGTH_SHORT).show();\n }",
"@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}",
"private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }",
"public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartThread();\n\t\t\t Toast.makeText(getContext(), \"Êղسɹ¦\", 1).show();\n\t\t\t}",
"public void showLoading() {\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tToast.makeText(context, \"下载成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}",
"private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(RegisterActivity.this);\n pDialog.setMessage(\"Signing Up.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"private void mostrarToast () {\n Toast.makeText(this, \"Imagen guardada en la galería.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}",
"public void showProgressDialog() {\r\n progressDialog.setMessage(getResources().getString(R.string.text_loading));\r\n progressDialog.setCancelable(false);\r\n progressDialog.show();\r\n }",
"@Override\nprotected void onStart() {\n\tsuper.onStart();\n\t//Toast.makeText(getApplicationContext(), \"Start\", 1).show();\n}",
"private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}",
"@Override protected void onPreExecute() {\r\n // A toast provides simple feedback about an operation as popup. \r\n // It takes the application Context, the text message, and the duration for the toast as arguments\r\n //android.widget.Toast.makeText(mContext, \"Going for the network call..\", android.widget.Toast.LENGTH_LONG).show();\r\n }",
"public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n setToast(\"연결에 성공하였습니다.\");\n }",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"@Override\n public void onErrorResponse(VolleyError volleyError) {\n loading.dismiss();\n\n //Showing toast\n Toast.makeText(MainActivity.this, volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }",
"private void showProgressDialog(){\n progressDialog=ProgressDialog.show(context,\"\",\"Loading...Please wait...\");\n\n\n }",
"public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"private void showDialog(){\n progress = new ProgressDialog(this);\n progress.setTitle(getString(R.string.progress_dialog_loading));\n progress.setMessage(getString(R.string.progress_dialog_authenticating_with_firebase));\n progress.setCancelable(false);\n progress.show();\n }",
"@Override\n\t\tprotected void onPreExecute()\n\t\t{\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(MainActivity.this);\n\t\t\tpDialog.setMessage(\"Loading....\");\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}",
"void showToast(String message);",
"void showToast(String message);",
"private void showErrorToast() {\n }",
"public void run() {\n Toast.makeText(getBaseContext(), \"MalformedURLException\", Toast.LENGTH_SHORT).show();\n }",
"public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(context);\n dialog.setTitle(\"Loading Contents\");\n dialog.setMessage(\"Doing something interesting ...\");\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n dialog.show();\n }",
"public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void showloading(String message) {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(message);\n progressDialog.setIndeterminate(true);\n progressDialog.show();\n }",
"@Override\n public void run() {\n if (mToast == null) {\n mToast = Toast.makeText(getApplicationContext(), text,\n Toast.LENGTH_SHORT);\n } else {\n mToast.setText(text);\n }\n mToast.show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }",
"protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onThinking() {\n toast(\"Processing\");\n showDialog();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mProgressDialog = new ProgressDialog(getActivity());\n mProgressDialog.setMessage(getString(R.string.loading_text));\n mProgressDialog.setCancelable(false);\n }",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }",
"protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\nsetContentView(R.layout.tixian_appliction);\ninitview();\nString url1 = Url.user()+\"getContact/\";\nLoadData(url1\t,null,\"loading\");\n}",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tsuper.onStart();\n\t\t\t\tshowLoadingDialogNoCancle(getResources().getString(R.string.toast2));\n\t\t\t}",
"@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tsuper.onStart();\n\t\t\t\tshowLoadingDialogNoCancle(getResources().getString(R.string.toast2));\n\t\t\t}",
"public void run() {\n Toast.makeText(Pratisthan.this, \"MalformedURLException\",Toast.LENGTH_SHORT).show();\n }",
"private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tLog.d(\"info\",content);\n\t\t\t\t\tToast.makeText(getApplicationContext(), content, Toast.LENGTH_LONG).show();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tLog.d(\"info\",content);\n\t\t\t\t\tToast.makeText(getApplicationContext(), content, Toast.LENGTH_LONG).show();\n\t\t\t\t}",
"private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//has the mainactivity show the loading screen\n\t}",
"@Override\n protected void onPreExecute() {\n progressDialog= new ProgressDialog(getActivity());\n progressDialog.setMessage(\"loading..\");\n progressDialog.setIndeterminate(false);\n progressDialog.show();\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingAlert.show();\n\t\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t\tToast.makeText(getApplicationContext(), \"11\", 0);\r\n\t}",
"public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }",
"private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }",
"private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"protected void showLoader() {\n if (progressBar != null) {\n progressBar.setVisibility(View.VISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n }",
"public void showAlert(){\n Loguin.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Loguin.this);\n builder.setTitle(\"Login Error.\");\n builder.setMessage(\"User not Found.\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }",
"@Override\n public void run() {\n Toast.makeText(rootView.getContext(), mensaje,\n Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tToast.makeText(context, \"下载出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}",
"void onLoaderLoading();",
"public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}",
"protected void showLoading()\n {\n progressBar = new ProgressDialog(this);\n progressBar.setTitle(\"Loading\");\n progressBar.setMessage(\"Wait while loading...\");\n progressBar.setCancelable(false); // disable dismiss by tapping outside of the dialog\n progressBar.show();\n }",
"protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}",
"private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(TalkActivity.this);\n pDialog.setMessage(getResources().getString(R.string.loading));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Toast.makeText(getApplicationContext(),\"Failed to Load Data\",Toast.LENGTH_SHORT);\n }",
"@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }",
"@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }",
"public void showAlert(){\n MainActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"Login Error.\");\n builder.setMessage(\"User not Found.\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}",
"public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }"
] | [
"0.7822122",
"0.7138399",
"0.70191234",
"0.6828706",
"0.68089056",
"0.6760257",
"0.6736069",
"0.6733055",
"0.67199856",
"0.6707618",
"0.67017645",
"0.6643738",
"0.66405153",
"0.6627788",
"0.6627322",
"0.6627322",
"0.6596639",
"0.6582979",
"0.65667146",
"0.65507096",
"0.6540993",
"0.6536195",
"0.65316254",
"0.6519119",
"0.65053767",
"0.6486125",
"0.6467901",
"0.6464678",
"0.6464484",
"0.64636827",
"0.6427332",
"0.6425959",
"0.64031464",
"0.639539",
"0.6390029",
"0.63732404",
"0.6369204",
"0.63584435",
"0.63470966",
"0.63431853",
"0.6342895",
"0.6332289",
"0.6332269",
"0.63318795",
"0.63157445",
"0.63146293",
"0.6310244",
"0.6310244",
"0.6305354",
"0.62998235",
"0.6295477",
"0.62927765",
"0.6291151",
"0.6287046",
"0.62651986",
"0.6263586",
"0.6250434",
"0.6250434",
"0.62471986",
"0.6245394",
"0.6237732",
"0.6237235",
"0.6236899",
"0.62276125",
"0.6225693",
"0.62079793",
"0.619879",
"0.6189187",
"0.61867046",
"0.61867046",
"0.61865026",
"0.61853343",
"0.61852455",
"0.61852455",
"0.61791414",
"0.61696994",
"0.61667895",
"0.61658514",
"0.61651576",
"0.61607295",
"0.6159464",
"0.61572343",
"0.61498046",
"0.6146565",
"0.6142061",
"0.6138023",
"0.613274",
"0.61262536",
"0.6112641",
"0.6108678",
"0.6107655",
"0.61053586",
"0.6091281",
"0.60911053",
"0.60911053",
"0.6090343",
"0.60861695",
"0.6084074",
"0.6082005",
"0.60800135",
"0.6074774"
] | 0.0 | -1 |
Toast.makeText(this, "getting image input..", Toast.LENGTH_SHORT).show(); | public void gettingImageInput(){
Bitmap bm = getYourInputImage();
int z;
if(res==2) { z=50; }
else { z=224; }
Bitmap bitmap = Bitmap.createScaledBitmap(bm, z, z, true);
input = ByteBuffer.allocateDirect(z * z * 3 * 4).order(ByteOrder.nativeOrder());
for (int y = 0; y < z; y++) {
for (int x = 0; x < z; x++) {
int px = bitmap.getPixel(x, y);
// Get channel values from the pixel value.
int r = Color.red(px);
int g = Color.green(px);
int b = Color.blue(px);
// Normalize channel values to [-1.0, 1.0]. This requirement depends
// on the model. For example, some models might require values to be
// normalized to the range [0.0, 1.0] instead.
float rf = (r) / 255.0f;
float gf = (g) / 255.0f;
float bf = (b) / 255.0f;
input.putFloat(rf);
input.putFloat(gf);
input.putFloat(bf);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@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 onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n Toast.makeText(StudententryActivity.this, \"Image Not Set. Please Try Again....\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onSuccess (UploadTask.TaskSnapshot taskSnapshot){\n Toast.makeText(IncomeActivity.this, \"Image uploaded successfully\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n startActivity(new Intent(getApplicationContext(),ChatApp.class));\n\n Toast.makeText(Image.this, \"Image Uploaded Successfylly\", Toast.LENGTH_SHORT).show();\n }",
"public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestcode);\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Image uploaded\",Toast.LENGTH_SHORT).show();\n }",
"private void mostrarToast () {\n Toast.makeText(this, \"Imagen guardada en la galería.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(AddingPlace.this,\"image uploaded successfully\",Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(resultCode == RESULT_OK) {\n imgView.setImageURI(image_uri);\n// image_uri = data.getData();\n// try {\n// InputStream inputStream = getContentResolver().openInputStream(image_uri);\n// bitmap = BitmapFactory.decodeStream(inputStream);\n// imgView.setImageBitmap(bitmap);\n//// imgView.setVisibility(View.VISIBLE);\n//// btnUpload.setVisibility(View.VISIBLE);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// Toast.makeText(GambarActivity.this, \"o\", Toast.LENGTH_SHORT).show();\n }\n// super.onActivityResult(requestCode, resultCode, data);\n }",
"private void imagePic(){\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"),1);\n\n }",
"@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_camera)\n .setTitle(\"Take Picture\")\n .setMessage(\"Is this the location where you would like to take a picture?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n takePicture();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }",
"public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }",
"public void uploadPic(View view) {\n Intent si=new Intent();\n si.setType(\"image/*\");\n si.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(si,1);\n\n\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\n Toast.makeText(UserProfile.this, \"Error updating Image..\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View v) {\n String textContent = \"您好啊\";\n if (TextUtils.isEmpty(textContent)) {\n// Toast.makeText(ThreeActivity.this, \"您的输入为空!\", Toast.LENGTH_SHORT).show();\n return;\n }\n Bitmap image = CodeUtils.createImage(textContent, 400, 400, BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher_round));\n imageView.setImageBitmap(image);\n }",
"@Override\n public void onClick(View arg0) {\n if (arg0.getId() == R.id.fab) {\n takePicture();\n /* try {\n//use standard intent to capture an image\n Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n//we will handle the returned data in onActivityResult\n startActivityForResult(captureIntent, CAMERA_CAPTURE);\n } catch(ActivityNotFoundException anfe){\n//display an error message\n String errorMessage = \"Whoops - your device doesn't support capturing images!\";\n Toast toast = Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_SHORT);\n toast.show();\n }*/\n }\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(DetailsForm.this, \"Image Uploaded Successfully\", Toast.LENGTH_LONG).show();\n }",
"protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n try {\n\n if (requestCode == IMG_RESULT && resultCode == RESULT_OK\n && null != data) {\n\n\n imageeUri = data.getData();\n\n mInsertImage.setImageURI(imageeUri);\n }\n }\n catch (Exception e) {\n Toast.makeText(this, \"Please try again\", Toast.LENGTH_LONG)\n .show();\n }\n }",
"@Override\n public void onSuccess(Void aVoid) {\n progressDialog.dismiss();\n Toast.makeText(UserProfile.this, \"Image Updated..\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (requestCode == CAPTURE_IMAGE_REQUEST && resultCode == RESULT_OK) {\n Bitmap myBitmap = BitmapFactory.decodeFile(photoFile.getAbsolutePath());\n imgDisplay.setImageBitmap(myBitmap);\n textPath.setText(photoFile.getName());\n } else {\n displayMessage(getBaseContext(), \"Request cancelled or something went wrong.\");\n }\n\n }",
"private void select_image() {\n\n final CharSequence[] items = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(step4.this);\n builder.setTitle(\"Add Image\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface DialogInterface, int i) {\n if (items[i].equals(\"Camera\")) {\n\n Intent camera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n if (ActivityCompat.checkSelfPermission(step4.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Please grant permission to access Camera\", Toast.LENGTH_LONG).show();\n ActivityCompat.requestPermissions(step4.this, new String[]{Manifest.permission.CAMERA}, 1);\n startActivityForResult(camera,REQUEST_CAMERA);\n\n } else {\n startActivityForResult(camera,REQUEST_CAMERA);\n\n }\n\n\n\n } else if (items[i].equals(\"Gallery\")) {\n\n Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n gallery.setType(\"image/*\");\n startActivityForResult(gallery, select_file);\n\n\n } else if (items[i].equals(\"Cancel\")) {\n\n DialogInterface.dismiss();\n\n\n }\n }\n\n\n });\n builder.show();\n }",
"private void dispatchTakePictureIntent() {\n switch (REQUEST_TAKE_PHOTO_NUM){\n case REQUEST_TAKE_PHOTO_1:\n Toast toast=Toast.makeText(getApplicationContext(),\"ថតពីមុខ\",Toast.LENGTH_SHORT);\n //toast.setMargin(50,50);\n toast.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group = (ViewGroup) toast.getView();\n TextView messageTextView = (TextView) group.getChildAt(0);\n messageTextView.setTextSize(25);\n toast.show();\n break;\n case REQUEST_TAKE_PHOTO_2:\n Toast toast1=Toast.makeText(getApplicationContext(),\"ថតផ្នែកខាងស្ដាំ\",Toast.LENGTH_SHORT);\n toast1.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group1 = (ViewGroup) toast1.getView();\n TextView messageTextView1 = (TextView) group1.getChildAt(0);\n messageTextView1.setTextSize(25);\n toast1.show();\n break;\n case REQUEST_TAKE_PHOTO_3:\n Toast toast2=Toast.makeText(getApplicationContext(),\"ថតផ្នែកខាងឆ្វេង\",Toast.LENGTH_SHORT);\n toast2.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group2 = (ViewGroup) toast2.getView();\n TextView messageTextView2 = (TextView) group2.getChildAt(0);\n messageTextView2.setTextSize(25);\n toast2.show();\n break;\n case REQUEST_TAKE_PHOTO_4:\n Toast toast3= Toast.makeText(getApplicationContext(),\"ថតពីក្រោយ\",Toast.LENGTH_SHORT);\n toast3.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group3 = (ViewGroup) toast3.getView();\n TextView messageTextView3 = (TextView) group3.getChildAt(0);\n messageTextView3.setTextSize(25);\n toast3.show();\n break;\n// add 2 image by samang 26/08\n case REQUEST_TAKE_PHOTO_5:\n Toast toast4= Toast.makeText(getApplicationContext(),\"ផ្នែកផ្សេងទៀត\",Toast.LENGTH_SHORT);\n toast4.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group4 = (ViewGroup) toast4.getView();\n TextView messageTextView4 = (TextView) group4.getChildAt(0);\n messageTextView4.setTextSize(25);\n toast4.show();\n break;\n\n case REQUEST_TAKE_PHOTO_6:\n Toast toast5= Toast.makeText(getApplicationContext(),\"ផ្នែកផ្សេងទៀត\",Toast.LENGTH_SHORT);\n toast5.setGravity(Gravity.TOP, 100,80);\n //toast.show();\n ViewGroup group5 = (ViewGroup) toast5.getView();\n TextView messageTextView5 = (TextView) group5.getChildAt(0);\n messageTextView5.setTextSize(25);\n toast5.show();\n break;\n // end\n }\n\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n // Create the File where the photo should go\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n ex.printStackTrace();\n // Error occurred while creating the File\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(this,\n this.getPackageName() + \".provider\",\n photoFile);\n //BuildConfig.APPLICATION_ID\n mPhotoFile = photoFile;\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n //startActivityForResult(takePictureIntent, REQUEST_TAKE_PHOTO);\n startActivityForResult(takePictureIntent, REQUEST_TAKE_PHOTO_NUM);\n }\n }\n }",
"public void uploadImage() {\n if (imgPath != null && !imgPath.isEmpty()) {\n //prgDialog.setMessage(\"Converting Image to Binary Data\");\n //prgDialog.show();\n // Convert image to String using Base64\n new EncodeImageToStringTask().execute();\n // When Image is not selected from Gallery\n } else {\n //Toast.makeText(\n // getApplicationContext(),\n // \"You must select image from gallery before you try to upload\",\n // Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode == RESULT_OK){\n if(requestCode == REQUEST_CODE && data.getExtras().get(\"data\")!=null){\n Bitmap bp = (Bitmap) data.getExtras().get(\"data\");\n prescription.setVisibility(View.VISIBLE);\n userNameQO.setVisibility(View.GONE);\n phoneNo.setVisibility(View.GONE);\n captureButton.setText(getResources().getString(R.string.send_prescription));\n prescription.setImageBitmap(bp);\n }\n }\n }",
"public static String _imgpupas_click() throws Exception{\nreturn \"\";\n}",
"@Override\n public void onClick(View v) {\n\n if(checkbutts != 0) {\n if (imgPath != null && !imgPath.isEmpty()) {\n prgDialog = new ProgressDialog(TabLayout.this);\n prgDialog.setMessage(\"Uploading Image\");\n prgDialog.show();\n // Convert image to String using Base64\n encodeImagetoString();\n // When Image is not selected from Gallery\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"You must select image from gallery before you try to upload\",\n Toast.LENGTH_LONG).show();\n }\n }else{\n Toast.makeText(TabLayout.this, \"Photo must be cropped before uploading\", Toast.LENGTH_LONG)\n .show();\n }\n }",
"public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}",
"protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}",
"public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}",
"public void run() {\n Toast.makeText(Pratisthan.this, \"MalformedURLException\",Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onSuccess(\n UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\n Toast.makeText(ProfileActivity.this, \"Image Uploaded!!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Photo uploaded successfully!\",Toast.LENGTH_SHORT).show();\n }",
"public void run() {\n Toast.makeText(getBaseContext(), \"MalformedURLException\", Toast.LENGTH_SHORT).show();\n }",
"private void clickpic() {\n if (getApplicationContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA)) {\n // Open default camera\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n\n // start the image capture Intent\n startActivityForResult(intent, 100);\n\n\n } else {\n Toast.makeText(getApplication(), \"Camera not supported\", Toast.LENGTH_LONG).show();\n }\n }",
"private void showImageDetail() {\n }",
"private void loadCloudImageConfirm()\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setCancelable(true).setTitle(\"Load\").setMessage(\"Load image?\");\n\n builder.setPositiveButton(R.string.open_cloud, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n getImagesList();\n }\n });\n\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"private void selectImage() {\n final CharSequence[] items = {\"Take Photo\", \"Choose from Library\",\n \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Timetable.this);\n builder.setTitle(\"Add Photo!\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (items[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n } else if (items[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n SELECT_FILE);\n } else if (items[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"void onPictureCompleted();",
"public void uploadImage(View v) {\n // When Image is selected from Gallery\n if (imgPath != null && !imgPath.isEmpty()) {\n prgDialog.setMessage(\"Converting Image to Binary Data\");\n prgDialog.show();\n // Convert image to String using Base64\n encodeImagetoString();\n // When Image is not selected from Gallery\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"You must select image from gallery before you try to upload\",\n Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\n\n\t\t\tBitmap result = ImageService.getImage(ac,urlparams);\n\t\t\tLog.i(\"tan8\",\"url\"+urlparams);\n\t\t\tMessage ms = Message.obtain();\n\t\t\tms.what = what;\n\t\t\tms.obj = result;\n\t\t\tif (handler != null) {\n\t\t\t\thandler.sendMessage(ms);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n normalDownload(finalBitmap,input.getText()+\"\");\n }",
"private void showImagePickDialog() {\n String[] options = {\"Camera\", \"Gallery\"};\n //dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Pick Image\")\n .setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0) {\n //Camera Clicked\n if (checkCameraPermission()) {\n // cameraPermission allowed\n pickFromCamera();\n } else {\n // cameraPermission not allowed, request\n requestCameraPermission();\n }\n } else {\n //Gallery Clicked\n if (checkStoragePermission()) {\n // Storage Permission allowed\n pickFromGallery();\n } else {\n // Storage Permission not allowed, request\n requestStoragePermission();\n\n }\n\n }\n }\n }).show();\n }",
"private void ErreurImage() \n {\n JOptionPane.showMessageDialog(rootPane, \"Cette image n'est plus disponible\");\n }",
"private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }",
"private void showImagePickDialog() {\n String[] options = {\"Camera\",\"Gallery\"};\n //dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Pick Image\")\n .setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0){\n //camera clicked\n if (checkCameraPermission()){\n //camera permission allowed\n pickFromCamera();\n }\n else {\n //not allowed ,request\n requestCameraPermission();\n\n }\n }\n else {\n //gallery clicked\n if (checkStoragePermission()){\n //storage permission allowed\n pickFromGallery();\n\n }\n else {\n //not allowed,request\n requestStoragePermission();\n\n }\n }\n }\n })\n .show();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CAMERA_CAPTURE_IMAGE_REQUEST_CODE) {\n if (resultCode == RESULT_OK) {\n // successfully captured the image\n // display it in image view\n Utils.previewCapturedImage(this, realm, Integer.valueOf(station.getId()));\n //Toast.makeText(getApplicationContext(),intent.getStringExtra(\"id_station\"), Toast.LENGTH_SHORT).show();\n } else if (resultCode == RESULT_CANCELED) {\n // user cancelled Image capture\n Toast.makeText(getApplicationContext(),\n \"User cancelled image capture\", Toast.LENGTH_SHORT)\n .show();\n } else {\n // failed to capture image\n Toast.makeText(getApplicationContext(),\n \"Sorry! Failed to capture image\", Toast.LENGTH_SHORT)\n .show();\n }\n }\n }",
"void onPhotoError();",
"@Override\n public void onPositive(MaterialDialog materialDialog) {\n Intent intent = new Intent(ProductDetailImageActivity.this, CameraActivity.class);\n intent.putExtra(EXTRA_ZUOZHENG_IMAGE, isZuozhengImage);\n intent.putExtra(EXTRA_IMAGE_INDEX, index);\n startActivityForResult(intent, REQUEST_TAKE_PICTURE);\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n // picup =true;\n }",
"private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }",
"public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }",
"public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }",
"@Override\n public void onSuccess() {\n btn_addPhoto.setText(\"Change Photo\");\n }",
"@Override\n public void onClick(View v) {\n boolean hasPermission = checkAndRequestWritePermissions();\n if (currentStickerText == null || currentStickerText.length() == 0) {\n Toast.makeText(MainActivity.this, \"Please enter text\", Toast.LENGTH_LONG).show();\n return;\n }\n if (hasPermission) {\n new SaveGif().execute();\n }\n }",
"@Override\n public void run() {\n try {\n Drawable drawable = Drawable.createFromStream(new URL(image_path).openStream(), \"\");\n\n Message message = Message.obtain();\n message.obj = drawable;\n handler.sendMessage(message);\n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"public void onPickImage(View view) {\n ImagePicker.pickImage(this, \"Select your image:\");\r\n }",
"public void showImageChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"image/*\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n //jika image picker membawa sebuah data berupa foto maka\r\n if (ImagePicker.shouldHandle(requestCode, resultCode, data)) {\r\n //ambil data foto yang dipilih\r\n Image image = ImagePicker.getFirstImageOrNull(data);\r\n //ambil path/lokasi dari foto/gambar yang dipilih\r\n File imgFile = new File(image.getPath());\r\n if (imgFile.exists()) {\r\n //convert path ke bitmap dan tampilkan pada imageview\r\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\r\n imgTranscript.setImageBitmap(myBitmap);\r\n\r\n //set variabel change true karena gambar telah diupdate\r\n isPicChange = true;\r\n }\r\n }\r\n\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == IMAGE_REQUEST && resultCode == RESULT_OK\n && data != null && data.getData() != null) {\n //shows us address of image gotten from phone\n imageUri = data.getData();\n\n //if uploadTask is in progress display toast to notify\n if(uploadTask != null && uploadTask.isInProgress()) {\n Toast.makeText(getApplicationContext(), \"Upload in progress\", Toast.LENGTH_SHORT).show();\n }\n //if not then uploadImage() is called to start the uploading process\n else {\n uploadImage();\n }\n }\n }",
"private void uploadImage() {\n if(checkPermissions()){ // if permission is granted we move on with the code\n Intent gallery = new Intent();\n gallery.setType(\"image/\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(gallery,\"Select Image With: \"),CHOOSE_IMAGE_FROM_GALLERY);\n }else{\n requestPermissionFromUser(); // if permission is not granted we go and request a permission from the user\n }\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"@Override\n public void onClick(View arg0) {\n try {\n mPreview.captureImage();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"String getImage();",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n try {\n\n if (requestCode == RESULT_LOAD_ARTIST_IMAGE && resultCode == RESULT_OK && null != data) {\n\n selectedImage = data.getData();\n imageToUpload.setImageURI(selectedImage);\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);\n\n isPicture = true;\n } else {\n Toast.makeText(this, R.string.noImagePicked, Toast.LENGTH_LONG).show();\n }\n }catch (Exception e ){\n Log.e(\"error\", e.toString());\n Toast.makeText(this, R.string.stgWentWrong, Toast.LENGTH_LONG).show();\n }\n\n }",
"private void onPhotoError() {\n ToastModifications.createToast(this, getString(R.string.error_saving_photo), Toast.LENGTH_LONG);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(RegisterActivity.this, items[which],\n Toast.LENGTH_SHORT).show();\n\n Log.e(\"-------------\", \"onClick: \"+new Date() );\n\n\n //拍照\n if (which==0){\n // 激活相机\n Intent intent = new Intent(\"android.media.action.IMAGE_CAPTURE\");\n // 判断存储卡是否可以用,可用进行存储\n if (isSdCardExist()) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\", Locale.CHINA);\n //根据当前时间生成图片的名称\n timestamp = formatter.format(new Date())+\".jpeg\";\n tempFile = new File(Environment.getExternalStorageDirectory(),\n timestamp);\n // 从文件中创建uri\n Uri uri = Uri.fromFile(tempFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\n }\n // 开启一个带有返回值的Activity,请求码为PHOTO_REQUEST_CAREMA\n startActivityForResult(intent, PHOTO_REQUEST_CAREMA);\n\n }\n\n //从相册中选取\n if (which==1){\n // 激活系统图库,选择一张图片\n Intent intent = new Intent(Intent.ACTION_PICK);\n intent.setType(\"image/*\");\n // 开启一个带有返回值的Activity,请求码为PHOTO_REQUEST_GALLERY\n startActivityForResult(intent, PHOTO_REQUEST_GALLERY);\n }\n\n alertDialog.dismiss();\n\n\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 234 && data != null && data.getData() != null) {\n filePath = data.getData();\n Uri uri = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n ImageView imageView = findViewById(R.id.displayPicture);\n imageView.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tnew AlertDialog.Builder(TianJia.this).setTitle(\"获得美食\")\n\t\t\t\t\t\t.setNegativeButton(\"取存货\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tif (mIsKitKat) {\n\t\t\t\t\t\t\t\t\tselectImageUriAfterKikat();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcropImageUri();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).setPositiveButton(\"现烹饪\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tIntent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT,\n\t\t\t\t\t\t\t\t\t\tUri.fromFile(new File(IMGPATH, IMAGE_FILE_NAME)));\n\t\t\t\t\t\t\t\tstartActivityForResult(intent, TAKE_A_PICTURE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).show();\n\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(i , RESULT_LOAD_IMAGE);\n\n\n }",
"@OnClick(R.id.hinhanh_dangtin)\n void ChooseImage(View v) {\n onPickPhoto(v);\n }",
"public void cargarimagen(){\n Intent intent= new Intent(Intent.ACTION_GET_CONTENT, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent.createChooser(intent,\"Seleccione la imagen\"),69);\n }",
"public void takePictureFromCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_CODE);\n\n }",
"@Override\r\n public void onClick(View arg0) {\n ImageSaveAsyncTask imgSaveTask = new ImageSaveAsyncTask();\r\n imgSaveTask.execute();\r\n String txt = \"save to XIUIMAGE!\";\r\n Toast.makeText(BeautyfaceActivity.this, txt, Toast.LENGTH_SHORT).show();\r\n finish();\r\n IntentToStartView();\r\n }",
"void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }",
"public void showUpload(){\n\n }",
"public void imageClicked(int imageView){\n //get text from all buttons\n String name=etName.getText().toString().trim();\n String phoneNum=etPhoneNumber.getText().toString().trim();\n String website=etWebsite.getText().toString().trim();\n String address=etLocation.getText().toString().trim();\n\n //check if strings are empty, otherwise close this activity and send intent\n if(name.isEmpty()||phoneNum.isEmpty()||website.isEmpty()||address.isEmpty()){\n Toast.makeText(this, \"Enter all fields\", Toast.LENGTH_SHORT).show();\n }else{\n Intent intent= new Intent();\n intent.putExtra(\"name\", name);\n intent.putExtra(\"phone number\",phoneNum);\n intent.putExtra(\"website\",website);\n intent.putExtra(\"address\", address);\n intent.putExtra(\"image\",imageView);\n setResult(RESULT_OK,intent);\n Activity2.this.finish();\n }\n\n }",
"public void openImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n LayoutInflater layoutInflater = LayoutInflater.from(context);\n View alertDialogView = layoutInflater.inflate(R.layout.alertdialog_photo, null);\n ImageView imageView = alertDialogView.findViewById(R.id.controlImage);\n byte[] decode = Base64.decode(\n arrayList.get(getAdapterPosition()).getUrl(),\n Base64.DEFAULT\n );\n Bitmap bitmap = BitmapFactory.decodeByteArray(decode,0,decode.length);\n imageView.setImageBitmap(bitmap);\n alertDialog.setView(alertDialogView).show();\n }",
"public void toTakeAPicture(View view) {\n requestCameraPermissions();\n Intent launchCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(launchCamera, Constants.CAM_REQUEST);\n\n\n\n }",
"@Override\r\n public void onClick(View v) {\n Intent pictureIntent = new Intent(\r\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\r\n startActivityForResult(pictureIntent, TAKE_AVATAR_CAMERA_REQUEST);\r\n UtilSettings.this\r\n .removeDialog(AVATAR_DIALOG_ID);\r\n\r\n\r\n }",
"public void displayImageToConsole();",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n\n // compare the resultCode with the\n // SELECT_PICTURE constant\n if (requestCode == SELECT_PICTURE) {\n Uri selectedImageURI = data.getData();\n// File imageFile = new File(getRealPathFromURI(selectedImageURI));\n Uri selectedImageUri = data.getData( );\n String picturePath = getPath( getApplicationContext( ), selectedImageUri );\n Log.d(\"Picture Path\", picturePath);\n\n // Get the url of the image from data\n selectedImageUri = data.getData();\n if (null != selectedImageUri) {\n bitmap = null;\n // update the preview image in the layout\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImageUri);\n } catch (IOException e) {\n e.printStackTrace();\n }\n// IVPreviewImage.setImageURI(selectedImageUri);\n// runTextRecognition(bitmap);\n IVPreviewImage.setImageBitmap(bitmap);\n\n }\n }\n\n if (requestCode == 123) {\n\n\n Bitmap photo = (Bitmap) data.getExtras()\n .get(\"data\");\n\n // Set the image in imageview for display\n IVPreviewImage.setImageBitmap(photo);\n runTextRecognition(photo);\n\n }\n\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n //everything processed successfully\n if (requestCode == Image_Gallery_Request) {\n //image gallery correctly responds\n Uri imageUri = data.getData(); //address of image on SD Card\n InputStream inputStream; //declaring stream to read data from SD card\n try {\n inputStream = getContentResolver().openInputStream(imageUri);\n Bitmap imagebtmp = BitmapFactory.decodeStream(inputStream); //Puts stream data into bitmap format\n Profile_Picture.setImageBitmap(imagebtmp); //Loads Image to ImageView\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n //error message if image is unavailable\n Toast.makeText(this, \"Unable to open image\", Toast.LENGTH_LONG).show();\n }\n }\n }\n }",
"public taskimage(ImageView t134){\n t34=t134;\n\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Log.d(TAG, \"Image upload done\");\n\n Intent intent = new Intent(Signup2.this, Signup3.class);\n intent.putExtra(\"facialID\", facialID.toString());\n /* pass the facial id to the next activity*/\n findViewById(R.id.loadingPanel).setVisibility(View.GONE);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n chooseImage();\n }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n Bitmap b=(Bitmap)data.getExtras().get(\"data\");\r\n i1.setImageBitmap(b);\r\n\r\n }",
"public void takePicture()\n {\n\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n startActivityForResult(cameraIntent, TAKE_PHOTO_CODE);\n }",
"private void requestImageSource(){\n\n //Checks if device has a camera\n if (mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\n DialogClickListener clickListener = new DialogClickListener(this);\n String[] options = new String[]{\"Galerie\", \"Kamera\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);\n builder.setTitle(\"Bildquelle auswählen\");\n builder.setIcon(R.drawable.ic_add_a_photo_darkgrey_24dp);\n builder.setItems(options, clickListener);\n builder.show();\n }\n else\n importImageFromGallery();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }",
"@Override\r\n public void onResponse(String response) {\n loadImageInGUI(response);\r\n Utility.writeOnPreferences(activity, \"image\", response);\r\n Utility.reloadActivity(activity);\r\n\r\n }",
"private void takePicture() {\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n Uri imageUri = data.getData();\n\n try {\n //Attempt for the application to save the picture the user wants to use\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), imageUri);\n // Log.d(TAG, String.valueOf(bitmap));\n //Reference the ImageView\n ImageView imageView = (ImageView) findViewById(R.id.image_input);\n imageView.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n\tpublic void requestImageReceived(CatchoomImage image)\n\t{\n\t\t\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t\n\t\tBitmap bitmap = image.toBitmap();\n\t\t\n\t\tBitmap bitmapone = getBitmapFromAsset(\"accendo_logo.png\");\n\t\t\n\t\t/*if (bitmap.getWidth() == bitmapone.getWidth() && bitmap.getHeight() == bitmapone.getHeight())\n\t\t{*/\n\t int[] pixels1 = new int[bitmap.getWidth() * bitmap.getHeight()];\n\t int[] pixels2 = new int[bitmapone.getWidth() * bitmapone.getHeight()];\n\t bitmap.getPixels(pixels1, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\t bitmapone.getPixels(pixels2, 0, bitmapone.getWidth(), 0, 0, bitmapone.getWidth(), bitmapone.getHeight());\n\t if (!Arrays.equals(pixels1, pixels2)) \n\t {\n\t resultUrl=\"http://www.accendotechnologies.com/\";\n\t startActivity(new Intent(RecognitionOnlyActivity.this, VideoActivity.class));\n\t }\n\t else \n\t {\n\t \tresultUrl=\"\";\n\t }\n//\t } else\n//\t {\n//\t \tresultUrl=\"\";\n//\t }\n//\t\t\n\t\t\n\t\n\t\t\n//\t\tString imageName = image.toString();\n//\t\tString[] splitName = imageName.split(\"@\", imageName.length());\n//\t\tToast.makeText(getApplicationContext(), \"Image Name is \"+splitName[1], Toast.LENGTH_LONG).show();\n//\t\tf = new File(Environment.getExternalStorageDirectory()+\"/\"+splitName[1]+\".jpg\");\n//\t\ttry\n//\t\t{\n//\t\t\tFileOutputStream fout = new FileOutputStream(f);\n//\t\t\tbitmap.compress(Bitmap.CompressFormat.JPEG, 100, fout); \n//\t\t\tfout.flush();\n//\t\t\tfout.close();\n//\t\t}catch(Exception e)\n//\t\t{\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\t\n//\t\tImageAsync imasc = new ImageAsync();\n//\t\timasc.execute(f.toString());\n//\t\t\n//\t\tbitmap.recycle();\n//\t\t\n\t\t\n\t\t\n\n\t\t\n//\t\tmCloudRecognition.searchWithImage(COLLECTION_TOKEN,image);\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t/**\n\t\t * chary\n\t\t * Need to write service code to send image.\n\t\t */\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"You Clicked \"+imageId[position], Toast.LENGTH_LONG).show();\n\t\t\t}"
] | [
"0.7179849",
"0.6547097",
"0.65217197",
"0.6456409",
"0.6385701",
"0.63625586",
"0.6332812",
"0.626245",
"0.62458223",
"0.6201865",
"0.6194275",
"0.6191993",
"0.6177223",
"0.6175157",
"0.617195",
"0.61646765",
"0.6161543",
"0.61412567",
"0.61391824",
"0.6129627",
"0.61253643",
"0.61151487",
"0.60915285",
"0.6083657",
"0.60652024",
"0.6059621",
"0.605636",
"0.6039087",
"0.602786",
"0.6008639",
"0.600155",
"0.59948725",
"0.59794253",
"0.59784085",
"0.5972631",
"0.59543014",
"0.59527224",
"0.5947032",
"0.5935858",
"0.5935479",
"0.5918129",
"0.5912449",
"0.5908816",
"0.5907828",
"0.5891578",
"0.5885321",
"0.5879984",
"0.58767366",
"0.58662456",
"0.58529985",
"0.5848333",
"0.58467567",
"0.5846643",
"0.58453256",
"0.5826717",
"0.5813106",
"0.58125454",
"0.58116627",
"0.58109164",
"0.580868",
"0.5807314",
"0.58061403",
"0.5801256",
"0.5801218",
"0.58005995",
"0.5798245",
"0.57973063",
"0.5796586",
"0.57931966",
"0.57920635",
"0.57733697",
"0.57708865",
"0.5764542",
"0.57610226",
"0.5757407",
"0.5754397",
"0.5753235",
"0.5750386",
"0.5746012",
"0.5742791",
"0.5740027",
"0.5733238",
"0.5731485",
"0.5728092",
"0.572715",
"0.5723922",
"0.5710626",
"0.57039934",
"0.56992453",
"0.56951785",
"0.5691017",
"0.5685999",
"0.56845826",
"0.5684571",
"0.56844157",
"0.56799954",
"0.56785774",
"0.5677706",
"0.567694",
"0.56676257"
] | 0.56880933 | 91 |
if on run at set speed, off turn off the motor | @Override
public void run(boolean on, Telemetry telemetry) {
if (on) {
dcMotor.setTargetPosition(onLocation);
dcMotor.setPower(maxSpeed);
} else {
dcMotor.setTargetPosition(offLocation);
dcMotor.setPower(maxSpeed);
}
telemetry.addData("Target position", dcMotor.getTargetPosition());
telemetry.addData("Encoder", dcMotor.getCurrentPosition());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }",
"public void down() {\n\t\tmotor1.set( -Constants.CLAW_MOTOR_SPEED );\n\t\t}",
"@Override\n public final void stopMotor() {\n stop();\n }",
"public void turn_off () {\n this.on = false;\n }",
"public void stop() {\n m_servo.setSpeed(0.0);\n }",
"void disablePWM();",
"public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}",
"void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}",
"public void stop(){\n started = false;\n for (DcMotor motor :this.motors) {\n motor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor.setPower(0);\n }\n this.reset();\n }",
"public void stopWheel()\n {\n setVectorTarget(Vector2D.ZERO);\n\n turnMotor.setPosition(0.5);\n\n if (driveMotor != null)\n driveMotor.setVelocity(0);\n }",
"public void setSpeedStrumMotor(int speed) {\r\n\t\tif (speed == 0)\r\n\t\t\tstrumMotor.stop();\r\n\t\telse\r\n\t\t\tstrumMotor.rotate(speed);\r\n\t}",
"public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }",
"public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}",
"public void servoOff() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 0, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}",
"public void stop() {\n\t\tmotor1.set( Constants.CLAW_MOTOR_STOPPED );\n\t\t}",
"void adelante(int speed){\n\t\tMotorA.setSpeed(speed);\n\t\tMotorB.setSpeed(speed);\n\t\tMotorC.setSpeed(speed);\n\t\t\n\t\tMotorA.backward();\n\t\tMotorB.forward();\n\t\tMotorC.forward();\n\t}",
"public void turnOff() {\n\t\tisOn = false;\n\t}",
"public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }",
"public void setControlPanelMotor(double speed) {\n controlPanelMotor.set(ControlMode.PercentOutput, speed);\n }",
"public void stop() {\n climberMotors.stopMotor();\n }",
"public void setEngineOff();",
"public void turnOff() {\n update(0,0,0);\n this.status = false;\n }",
"private void stopMotors() {\n pidDrive.disable();\n pidRotate.disable();\n robot.rightDrive.setPower(0);\n robot.leftDrive.setPower(0);\n }",
"public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}",
"public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }",
"public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }",
"public void setSensorOff() {\n\n }",
"@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}",
"@SimpleFunction(description = \"Stop the drive motors of the robot.\")\n public void Stop() {\n String functionName = \"Stop\";\n if (!checkBluetooth(functionName)) {\n return;\n }\n\n for (NxtMotorPort port : driveMotorPorts) {\n setOutputState(functionName, port, 0,\n NxtMotorMode.Brake, NxtRegulationMode.Disabled, 0, NxtRunState.Disabled, 0);\n }\n }",
"public void arm_down() {\n arm_analog(-RobotMap.Arm.arm_speed);\n }",
"public void rdrive(double speed){\n right1.set(ControlMode.PercentOutput, -speedRamp(speed));\n right2.set(ControlMode.PercentOutput, -speedRamp(speed));\n }",
"public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }",
"public void stopEngine(){\n currentSpeed = 0;\n }",
"public void stopEngine(){\n currentSpeed = 0;\n }",
"public void switchOff();",
"@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}",
"boolean stop()\n {\n boolean success = true; // Tells whether attempt to stop lift is successful or not\n\n try\n {\n _motor.setPower(0);\n }\n catch(Exception e)\n {\n Log.e(\"Error\" , \"Cannot stop lift, check your mapping\");\n success = false;\n }\n\n return success;\n }",
"public void stopRobot(){\n LAM.setPower(0);\n RAM.setPower(0);\n ILM.setPower(0);\n IRM.setPower(0);\n BLM.setPower(0);\n BRM.setPower(0);\n FLM.setPower(0);\n FRM.setPower(0);\n }",
"public void set(double speed) {\n if ((getRawAngle() < Constants.Hood.MIN_RAW_ANGLE && speed > 0)\n || (getRawAngle() > Constants.Hood.MAX_RAW_ANGLE && speed < 0)) {\n stop();\n } else {\n m_servo.setSpeed(speed);\n }\n }",
"public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }",
"public void off() {\n\t\tSystem.out.println(\"Tuner is off\");\n\t}",
"@Override\n\tpublic void turnOff() {\n\n\t}",
"public void liftDrive(double speed,\n double timeoutS) {\n if (opModeIsActive()) {\n\n if(robot.touchSensor.isPressed() && speed>0)\n return;\n // reset the timeout time and start motion.\n runtime.reset();\n robot.liftDrive.setPower(speed); // start the motor\n while (opModeIsActive()\n && (runtime.seconds() < timeoutS)\n ){\n if(robot.touchSensor.isPressed() && speed>0) break;\n }\n // Stop all motion;\n robot.liftDrive.setPower(0);\n\n }\n }",
"public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }",
"public void stopFeeding() {\n motor.set(0);\n }",
"public void setDriveSpeed(double speed) {\n\t\tdriveMotor.set(speed);\n\t}",
"public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}",
"public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }",
"public void setMotor(double speed) {\n //set the master motor directly\n m_masterMotor.set(ControlMode.PercentOutput, speed);\n\n //set all other motors to follow\n m_closeSlaveMotor.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor1.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor2.follow(m_masterMotor, FollowerType.PercentOutput);\n }",
"public void stop()\n {\n mLeftMaster.stopMotor();\n mRightMaster.stopMotor();\n }",
"public void set(double speed) {\n\t\tcurrentSpeed = speed;\n\t\tmotor.set(speed);\n\t}",
"void setShutterLEDState(boolean on);",
"public void stopDrive() {\n\t\tdifferentialDrive.stopMotor();\n\t}",
"public void stop() {\n\t\tif (getMainMotor() != null) {\n\t\t\tgetMainMotor().stop(0);\n\t\t}\n\t}",
"public void off() {\n this.relay.set(Relay.Value.kOff);\n }",
"public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }",
"private void speedToggle(ActionEvent e) {\n String text = setSpeed.getText();\n if (text.equals(\"\")) {\n throw new IllegalArgumentException(\"Not an integer\");\n } else {\n int val = Integer.parseInt(text);\n if (val > 0) {\n this.speed = Integer.parseInt(text);\n this.delay = 1000 / this.speed;\n render();\n }\n }\n }",
"void setMotorsMode(DcMotor.RunMode runMode);",
"@Override\n\tpublic void testPeriodic() {\n\t\tif (testJoystick.getRawButton(3)) {\n\t\t\tsparkMotor1.set(1.0);\n\t\t\tsparkMotor0.set(1.0);\n\t\t\ttestTalon.set(1.0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, 1.0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, 1.0);\n\t\t}\n\t\telse if (testJoystick.getRawButton(2)) {\n\t\t\tsparkMotor0.set(-1.0);\n\t\t\tsparkMotor1.set(-1.0);\n\t\t\ttestTalon.set(-1.0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, -1.0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, -1.0);\n\t\t}\n\t\telse {\n//\t\t\tsparkMotor0.set(0);\n\t\t\tsparkMotor1.set(0);\n\t\t\ttestTalon.set(0);\n\t\t\t\n\t\t\ttalonMotor10.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor11.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor12.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor13.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor14.set(ControlMode.PercentOutput, 0);\n\t\t\ttalonMotor15.set(ControlMode.PercentOutput, 0);\n\t\t\t\n\t\t\ttestSel.set(Value.kForward);\n\t\t}\n\t\t\n\t\tif (testJoystick.getRawButton(7)) {\n\t\t\ttestSel.set(Value.kForward);\n\t\t\tSystem.out.println(compressor.getCompressorCurrent());\n\t\t}\n\t}",
"public void ldrive(double speed){\n left1.set(ControlMode.PercentOutput, speedRamp(speed));\n left2.set(ControlMode.PercentOutput, speedRamp(speed));\n }",
"public static void setSpeed(int speed) {\n leftMotor.setSpeed(speed);\n rightMotor.setSpeed(speed);\n }",
"public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }",
"@Override\n public void turnOff() {\n System.out.println(\"this wont happen\");\n }",
"public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}",
"void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }",
"public void driveRaw (double speed) {\n leftBackMotor.set(speed);\n leftMiddleMotor.set(speed);\n leftFrontMotor.set(speed);\n rightBackMotor.set(speed);\n rightMiddleMotor.set(speed);\n rightFrontMotor.set(speed);\n }",
"protected void setRightMotorSpeed(int speed) {\n if (speed < 10 && speed > -10) {\n rightSpeed = speed;\n }\n }",
"@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}",
"@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }",
"public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}",
"public void setLeftMotors(double speed){\n motorLeft1.set(speed);\n // motorLeft2.set(-speed);\n }",
"public void noteOff()\n\t{\n\t\ttimeFromOff = 0f;\n\t\tisTurnedOff = true;\n\t}",
"public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }",
"public final void setLed(boolean on_off){\n LIBRARY.CLEyeCameraLED(camera_, on_off ? 1 :0);\n }",
"public void stop()\n\t{\n\t\tupdateState( MotorPort.STOP);\n\t}",
"public void strafe(double speed, boolean angle, double inches, double timeout){\n int newLeftTarget;\n int newRightTarget;\n int newLeftBottomTarget;\n int newRightBottomTarget;\n if (opModeIsActive()) {\n if (angle) {\n //strafe right\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n } else if (!angle) {\n //strafe left\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftFrontMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n newLeftBottomTarget = robot.leftBackMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightTarget = robot.rightFrontMotor.getCurrentPosition() + (int)(Math.abs(inches) * COUNTS_PER_INCH);\n newRightBottomTarget = robot.rightBackMotor.getCurrentPosition() + (int)(-Math.abs(inches) * COUNTS_PER_INCH);\n robot.leftFrontMotor.setTargetPosition(newLeftTarget);\n robot.leftBackMotor.setTargetPosition(newLeftBottomTarget);\n robot.rightFrontMotor.setTargetPosition(newRightTarget);\n robot.rightBackMotor.setTargetPosition(newRightBottomTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftFrontMotor.setPower(Math.abs(speed));\n robot.rightFrontMotor.setPower(Math.abs(speed));\n robot.leftBackMotor.setPower(Math.abs(speed));\n robot.rightBackMotor.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n\n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (robot.leftFrontMotor.isBusy() && robot.rightFrontMotor.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftFrontMotor.getCurrentPosition(),\n robot.rightFrontMotor.getCurrentPosition(), robot.leftBackMotor.getCurrentPosition(), robot.rightBackMotor.getCurrentPosition());\n telemetry.update();\n }\n // Stop all motion;\n robot.rightFrontMotor.setPower(0);\n robot.rightBackMotor.setPower(0);\n robot.leftFrontMotor.setPower(0);\n robot.leftBackMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.rightFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftFrontMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.leftBackMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }\n }",
"void enablePWM(double initialDutyCycle);",
"@Override\n public void runOpMode(){\n motors[0][0] = hardwareMap.dcMotor.get(\"frontLeft\");\n motors[0][1] = hardwareMap.dcMotor.get(\"frontRight\");\n motors[1][0] = hardwareMap.dcMotor.get(\"backLeft\");\n motors[1][1] = hardwareMap.dcMotor.get(\"backRight\");\n // The motors on the left side of the robot need to be in reverse mode\n for(DcMotor[] motor : motors){\n motor[0].setDirection(DcMotor.Direction.REVERSE);\n }\n // Being explicit never hurt anyone, right?\n for(DcMotor[] motor : motors){\n motor[1].setDirection(DcMotor.Direction.FORWARD);\n }\n\n waitForStart();\n\n //Kill ten seconds\n runtime.reset();\n while(runtime.seconds()<10); runtime.reset();\n\n while(runtime.milliseconds()<700){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(100);\n // Set right motor power\n motor[1].setPower(100);\n }\n }\n\n while(runtime.milliseconds()<200){\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(-100);\n // Set right motor power\n motor[1].setPower(-100);\n }\n }\n\n runtime.reset();\n // Loop through front and back motors\n for(DcMotor[] motor : motors){\n // Set left motor power\n motor[0].setPower(0);\n // Set right motor power\n motor[1].setPower(0);\n }\n }",
"public Boolean waitMovingOff(Double timeout)\r\n\t{\r\n\t\treturn eventHandlers.waitCondition(TuxAPIConst.ST_NAME_FLIPPERS_MOTOR_ON, timeout,\r\n\t\t\t\t\"False\", null);\r\n\t}",
"void turnOff() {\n System.out.println(\"Turning off the TV\");\n }",
"public void moveDown(double speed){\n speed *= ARM_SPEED_MULT;\n arm.setPower(-speed);\n if (arm.getCurrentPosition() <= ARM_LOWER_BOUND) {\n arm.setPower(0);\n }\n }",
"public void setBoulderLockOff(){\r\n\t\tservoTarget = Constants.BALL_HOLDER_RETRACTED;\r\n\t}",
"public void steady(){\n if(steady){\n if(!bellySwitch.get()) {\n leftMotor.set(-.3);\n rightMotor.set(-.3);\n }else {\n leftMotor.set(0);\n rightMotor.set(0);\n } \n }\n }",
"public void setManualTension(double speed) {\n if(CommandBase.oi.Button_ManualTensionMode.get()){\n setTension(speed);\n }\n }",
"public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }",
"public void pull() {\r\n\t\tif(!SpeedCord.getCurrentSpeed().equals(\"Off\")) {\r\n\t\t/* Update the current speed of fan after pulling cord to fit in range of [Off, speed1, speed2] */\r\n\t\tcurrentDirection = direction.get((((List<String>) direction).indexOf(currentDirection)+1)%2);\r\n\t\tSystem.out.println(\"Direction of fan changed to: \" + currentDirection);\r\n\t\t}\r\n\t\t\r\n\t\t/* Direction of fan cannot be changed if fan is Off*/\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Fan is Off, so direction can't be changed!\");\r\n\t\t}\r\n\t}",
"public void clearSpeed ()\n {\n ((Agent)_actor).setSpeed(((ActorConfig.Agent)_config).speed);\n }",
"@Override\n\tpublic void action() {\n\t\tsuppressed = false;\n\t\t//if (Settings.motorAAngle == -90) Settings.motorAAngle = -95;\n\n\t\tMotor.A.rotateTo(Settings.motorAAngle, true);\n\n\t\twhile (Motor.A.isMoving() && !Motor.A.isStalled() && !suppressed);\t\t\t\n\t\t\n\t\tMotor.A.stop();\n\t}",
"protected void setLeftMotorSpeed(int speed) {\n if (speed < 10 && speed > -10) {\n leftSpeed = speed;\n }\n }",
"public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }",
"public static void moveArm(double speed) {\n\t\tSmartDashboard.putNumber(\"Arm Max value\",maxPos);\n\t\tSmartDashboard.putNumber(\"Arm Min value\",minPos);\n\t\tActuators.getArmAngleMotor().changeControlMode(TalonControlMode.PercentVbus);\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Percent of Arm Angle\", unMapPosition(Actuators.getArmAngleMotor().getPosition()));\t//CHECK THIS SCOTT\n\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\tSmartDashboard.putNumber(\"THeoreticalPID position\", mapPosition(unMapPosition(Actuators.getArmAngleMotor().getPosition())));\n\t\tif (Gamepad.secondary.getBack()) {\n\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t} else {\n\t\t\tif ((Actuators.getArmAngleMotor().getPosition() < MAX_ARM_POSITION && Sensors.getArmMinLimitSwitch().get())\n\t\t\t\t\t&& speed > 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed / 2);\n\t\t\t} else if ((Actuators.getArmAngleMotor().getPosition() > MIN_ARM_POSITION\n\t\t\t\t\t&& Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t}\n\t\t\telse {\n\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t}\n\n\t\t\t// speed = -speed;\n\t\t\tSmartDashboard.putNumber(\"Arm Position\", Actuators.getArmAngleMotor().getPosition());\n\t\t\tif (Gamepad.secondary.getBack()) {\n\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t} else {\n\t\t\t\tif ((Sensors.getArmMaxLimitSwitch().get()) && speed < 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if ((Sensors.getArmMinLimitSwitch().get()) && speed > 0) {\n\t\t\t\t\tActuators.getArmAngleMotor().set(speed);\n\t\t\t\t} else if (!Sensors.getArmMaxLimitSwitch().get()){\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tmaxPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else if (!Sensors.getArmMinLimitSwitch().get()){\t\t\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\t\t\t\t//CHECK THIS SCOTT\n\t\t\t\t\tminPos = Actuators.getArmAngleMotor().getPosition();\t\t//CHECK THIS SCOTT\n\t\t\t\t} else {\n\t\t\t\t\tActuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() >\n\t\t\t\t// * MAX_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMaxLimitSwitch().get()) && speed > 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else if (!(/*\n\t\t\t\t// * Actuators.getArmAngleMotor().getPosition() <\n\t\t\t\t// * MIN_ARM_POSITION &&\n\t\t\t\t// */\n\t\t\t\t// Sensors.getArmMinLimitSwitch().get()) && speed < 0) {\n\t\t\t\t// Actuators.getArmAngleMotor().set(speed);\n\t\t\t\t// } else {\n\t\t\t\t// Actuators.getArmAngleMotor().set(Actuators.STOP_MOTOR);\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void turnOff() {\r\n isOn = false;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_OFF);\r\n if (this.engaged()) {\r\n disengageLoads();\r\n }\r\n }",
"void setSpeed(RobotSpeedValue newSpeed);",
"private void halt() {\n robot.leftFront.setPower(0);\n robot.leftBack.setPower(0);\n robot.rightFront.setPower(0);\n robot.rightBack.setPower(0);\n }",
"public void turnTo(double angle, boolean stop) {\n \t\t\n \t\tdouble error = angle - this.myOdometer.getAng();\n \n \t\twhile (Math.abs(error) > DEG_ERR) {\n \n \t\t\terror = angle - this.myOdometer.getAng();\n \n \t\t\tif (error < -180.0) {\n \t\t\t\tthis.setSpeeds(-SLOW, SLOW);\n \t\t\t} else if (error < 0.0) {\n \t\t\t\tthis.setSpeeds(SLOW, -SLOW);\n \t\t\t} else if (error > 180.0) {\n \t\t\t\tthis.setSpeeds(SLOW, -SLOW);\n \t\t\t} else {\n \t\t\t\tthis.setSpeeds(-SLOW, SLOW);\n \t\t\t}\n \t\t}\n \n \t\tif (stop) {\n \t\t\tthis.setSpeeds(0, 0);\n \t\t}\n \t}",
"public static void stopAllMotors() {\r\n\t\tleftMotorReg.stop(true);\r\n\t\trightMotorReg.stop(true);\r\n\t\tarmMotor1Reg.stop(true);\r\n\t\tarmMotor2Reg.stop(true);\r\n\t}",
"public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }",
"public void setSpeed(float val) {speed = val;}",
"public void off() {\n // Sets the LED pin state to (low)\n ledPin.low();\n }",
"public void engineOff(){\n engine = false;\n }"
] | [
"0.7554906",
"0.73337215",
"0.7240736",
"0.72302943",
"0.710668",
"0.7088708",
"0.7043313",
"0.70321316",
"0.6945368",
"0.6935459",
"0.6922704",
"0.6917581",
"0.6908051",
"0.6890453",
"0.6842115",
"0.68285525",
"0.6819049",
"0.67931914",
"0.6778786",
"0.67774343",
"0.6776608",
"0.6759047",
"0.67537427",
"0.66885054",
"0.6687745",
"0.66665924",
"0.66523594",
"0.66426504",
"0.6634392",
"0.6626584",
"0.65979075",
"0.65936023",
"0.6588408",
"0.6588408",
"0.6587814",
"0.656466",
"0.6558773",
"0.65524995",
"0.6546638",
"0.6494261",
"0.64895123",
"0.6481691",
"0.648098",
"0.64805603",
"0.6474617",
"0.6474168",
"0.64589477",
"0.6439078",
"0.6430467",
"0.6402535",
"0.63895476",
"0.63637745",
"0.6355643",
"0.6354829",
"0.6351119",
"0.6345943",
"0.6324032",
"0.63229215",
"0.63104534",
"0.63047844",
"0.63021564",
"0.6291718",
"0.62797946",
"0.6269731",
"0.6264968",
"0.6257781",
"0.6255285",
"0.6255195",
"0.6243081",
"0.62406296",
"0.6232657",
"0.6228812",
"0.6212268",
"0.6210708",
"0.6207799",
"0.62033033",
"0.6182627",
"0.6182409",
"0.6177629",
"0.6175101",
"0.617232",
"0.6172236",
"0.6162616",
"0.61415094",
"0.61381286",
"0.6137706",
"0.61363584",
"0.61338127",
"0.6130607",
"0.6127827",
"0.61266416",
"0.6115682",
"0.60987854",
"0.6097893",
"0.6095856",
"0.6095101",
"0.6084978",
"0.6075148",
"0.60739374",
"0.60638773"
] | 0.64977545 | 39 |
/ Implementation of INewsDataService interface | @Override
public int getNumberOfCategories() {
Cursor query = this.writableDatabase.rawQuery("SELECT COUNT(*) FROM " + TABLE_CATEGORIES, null);
query.moveToFirst();
int count = query.getInt(0);
query.close();
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DataDictionaryService {\n}",
"public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}",
"public interface INewsInfoRepository {\n}",
"public interface DataService extends Serializable {\n\n Collection<Application> getAllApplications();\n void saveApplication(Application a);\n void deleteApplication(long applicationId);\n Application getApplicationById(long applicationId);\n \n Collection<Domain> getAllDomains();\n void saveDomain(Domain r);\n void deleteDomain(long domainId);\n Domain getDomainById(long domainId);\n\n Collection<CodeType> getAllCodeTypes();\n void saveCodeType(CodeType ct);\n void deleteCodeType(long codeTypeId);\n CodeType getCodeTypeById(long codeTypeId);\n\n\n Collection<CodeValue> getAllCodeValues(CodeType codeType);\n void saveCodeValue(CodeValue codeValue);\n void deleteCodeValue(long type,long value);\n CodeValue getCodeValue(long type, long value);\n\n Collection<TextData> getAllTexts();\n void saveText(TextData textData);\n void deleteText(long id);\n TextData getTextById(long id);\n\n Collection<CodeText> getAllCodeTexts();\n void saveCodeText(CodeText codeText);\n void deleteCodeText(long type, long value);\n CodeText getCodeTextByIds(long type, long value);\n\n\n static DataService get() {\n return RestDataService.getInstance();\n }\n\n}",
"public interface IDataIslem {\n <T> void addOrUpdate(T data, String serviceUrl,\n EnumUtil.SendingDataType dataType, Context ctx);\n\n <T> List<T> get(String serviceUrl, Class clazz, Context ctx);\n\n <T> void updateDeleteCreateProcess(EnumUtil.SendingDataType sendingDataType, String message, Context context,\n T data, String serviceUrl);\n}",
"public interface ExchangeService extends ICrudService<Exchange, String, ExchangeSearchCriteria, ExchangeSort> {\n\n boolean isNameUnique(String name, String excludeId);\n\n void cleanupDocumentFiles();\n}",
"DataStore getDataStore ();",
"public DataService getDataService()\r\n\t{\r\n\t\treturn dataService;\r\n\t}",
"ServiceDataResource createServiceDataResource();",
"public interface RiceDataDictionaryServiceInfc {\n\n /**\n * Get the RICE data object for the specified entry key\n * \n * @param entryKey\n * @return null if entry key not found\n */\n public DataObjectEntry getDataObjectEntry(String entryKey);\n}",
"public interface IDocumentaryService {\n\n public List<Documentary> getByOffset(int offset);\n\n public int getCount();\n\n public Documentary getById(String id);\n\n public int insert(Documentary doc);\n\n public int update(Documentary doc);\n\n public List<Documentary> search(String key);\n}",
"public interface WebService {\n public void authenticate(User u) throws BaseException;\n\n public Institute getInstituteById(Long id) throws BaseException;\n public List<Institute> getInstitutes() throws BaseException;\n public void addInstitute(Institute i) throws BaseException;\n\n public User register(User u) throws BaseException;\n public User getUserByName(String name);\n public String getNameById(long id) throws BaseException;\n public long getIdByName(User u) throws BaseException;\n public long getInstituteIdByName(User u) throws BaseException;\n\n public List<Subject> getSubjectsByInstitute(Institute i) throws BaseException;\n public Subject getSubjectByName(String name) throws BaseException;\n public void addSubject(Subject s) throws BaseException;\n\n public List<Comment> getCommentsBySubject(Subject s) throws BaseException;\n public void addComment(Comment c) throws BaseException;\n\n\n}",
"public interface WatchService {\n @DataSource(DataSourceType.WRITE)\n public int addWatchForm(WatchForm watchForm);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryLastWatchFormByName(String name);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryWatchFormByOpenId(String openId);\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameWeek(String name);\n\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameMonth(String name);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByNameDay(String name,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdMonth(String openId);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByOpenIdDay(String openId,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdMonth(String openId);\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdMonth();\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdWeek();\n}",
"public interface AcUspsInternationalMarketAwardServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(Integer id);\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(AcUspsInternationalMarketAwardPkIF pk);\n boolean uspsInternationalMarketAwardExists(Integer id);\n boolean uspsInternationalMarketAwardExists(AcUspsInternationalMarketAwardPkIF pk);\n AcUspsInternationalMarketAward getUspsInternationalMarketAwardByWebKey(String webKey);\n JwList<AcUspsInternationalMarketAward> getAll();\n JwList<AcUspsInternationalMarketAward> getAllAvailable();\n JwList<AcUspsInternationalMarketAward> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalMarketAward> getAllByContractedOriginDestination(String contractedCarrierCode, String originAirportCode, String destinationAirportCode);\n Integer insert(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void update(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void delete(Integer id);\n JwList<AcUspsInternationalMarketAwardVo> getAllVos();\n AcUspsInternationalMarketAwardVo getVo(int uspsInternationalMarketAwardId);\n void insertAll(JwList<AcUspsInternationalMarketAwardVo> v);\n void deleteAll();\n}",
"public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}",
"public abstract void dataFromEOJ(Service service);",
"net.webservicex.www.WeatherForecasts addNewWeatherForecasts();",
"public interface SKUsService {\r\n\r\n /**\r\n * 添加SKU\r\n * \r\n * @param credential\r\n * @param skuInfoEntity\r\n */\r\n Integer add(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 根据skuID删除SKU\r\n * \r\n * @param appId\r\n * @param skuId\r\n */\r\n void delete(String appId, String skuId) throws Exception;\r\n \r\n /**\r\n * 根据skuID 查询SKU\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUInfoEntity findById(CredentialEntity credential, String skuId) throws Exception;\r\n\r\n /**\r\n * 更新SKU\r\n * \r\n * @param appId\r\n * @param skuInfoEntity\r\n */\r\n void update(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 查询SKU库存所有信息\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUAllWarehouseInfoEntity findSKUALLWarehouseInfosById(CredentialEntity credential, String skuId) throws Exception;\r\n \r\n}",
"public ExternalServicesDto getExternalServiceData();",
"public interface INewsContentModel extends IBaseModel {\n\n void loadData(String channelID, String channelName, String page);\n\n}",
"public interface JournalizeCrawlService extends UpdateService<JournalizeCrawl> {\n}",
"protected org.apache.ant.common.service.DataService getDataService() {\n return dataService;\n }",
"public interface WorkPlaceService {\n void saveWorkPlace(WorkPlace workPlace);\n void deleteWorkPlace(Integer id);\n void updateIsCurrent(WorkBook workbook);\n void test();\n\n WorkPlace getWorkPlaceById(Integer id);\n void updateWorkPlace(Set<WorkPlace> workPlaces, WorkPlace workPlace);\n}",
"public interface DataSource extends DataSourceBase {\n /***\n * @param authenticationInfo A HashMap of any authentication information that came through in the request headers from the mobile client\n * @param params a HashMap of the URL parameters included in the request.\n * @return The data source response that contains the list of data set items you want to return\n */\n DataSet getDataSet(AuthenticationInfo authenticationInfo, Parameters params);\n\n /***\n *\n * @param id The ID of the item to fetch\n * @param authenticationInfo a HashMap of any authentication information that came through in the request headers from the mobile client\n * @param parameters a HashMap of the URL parameters included in the request\n * @return The data source response that contains the data set item with the requested ID\n */\n\n DataSetItem getRecord(String id, AuthenticationInfo authenticationInfo, Parameters parameters);\n\n\n /**\n * @param queryDataItem The data set item containing the values to be searched on\n * @param authenticationInfo a HashMap of any authentication parameters that came through in the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the list of data set items which meet the search criteria\n */\n default DataSet queryDataSet(DataSetItem queryDataItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Search is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be created\n * @param authenticationInfo a Hashmap of any authentication parameters that came through the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the newly created data set item\n */\n default RecordActionResponse createRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Create is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be updated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the updated item.\n */\n\n default RecordActionResponse updateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Update is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be validated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the validated item.\n */\n\n default RecordActionResponse validateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Validation is not supported on this web service\");\n }\n\n /**\n * @param dataSetItemID the data set item ID that the event is related to\n * @param event the ATEvent object\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request\n * @param params a Parameters object of any URL parameters from the request\n */\n default Response updateEventForDataSetItem(String dataSetItemID, Event event, AuthenticationInfo authenticationInfo, Parameters params) {\n return Response.success();\n }\n\n /**\n * This will update a list of data set items according to the given data set item\n *\n * @param primaryKeys a list of data set item IDs to update\n * @param dataSetItem the data set item values used to update. IMPORTANT: Only the attributes that are getting bulk updated will be included.\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return an DataSourceResponse\n */\n default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }\n\n /**\n * @param dataSetItemID the ID of the data set item to delete\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return\n */\n default RecordActionResponse deleteRecord(String dataSetItemID, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Delete is not supported on this web service\");\n }\n\n\n\n}",
"public interface DataAcquisitionService extends Service<DataAcquisition> {\n\n //首页查询问卷使用信息\n List<DataAcquisition> questionnaireUseInfoListByPage();\n //根据日期查询来访者使用的问卷\n List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition);\n //查询活动的填报人数\n Integer findCountByActivityId(String activityId);\n List<DataAcquisition> findMyQuestionnaireListByPage(Map<String,Object> map);\n //查询来访者填写问卷的总数\n int getDataAcquisitionTotal(String userId);\n //填写问卷类别总数\n List<DataAcquisition> getQuestionnaireTypeTotal(String userId);\n //查询来访者的填写结果\n List<DataAcquisition> findDataAcquistionForVisitor(DataAcquisition dataAcquisition);\n //来访者的问卷统计分析\n Result getDataAcquisitionForVisitingCount(String userId);\n\n}",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"@RemoteServiceRelativePath(\"data\")\npublic interface DataService extends RemoteService {\n\n\tUserInfo loginFromSession();\n\n\tvoid logout();\n\n\tIBasic save(IBasic iBasic);\n\n\tList<IBasic> saves(List<IBasic> iBasics);\n\n\tvoid delete(IBasic iBasic);\n\n\tvoid deletes(List<IBasic> iBasics);\n\n\tList<Product> getAllProducts();\n\n\tList<ActivityInfo> getActivities();\n\n\tList<ActionInfo> getActions();\n}",
"public interface PosWithdrawService extends GenericService<PosWithdrawRecord,String> {\n\n List<PosWithdrawRecord> selectByExampleAndPage(DataTablesPage<PosWithdrawRecord> page, BaseExample baseExample);\n\n PosWithdrawRecord getPosWithdrawRecordById(int id);\n\n void updateResult(PosWithdrawRecord posWithdrawRecord,\n String money,\n String orderLogNo,\n String lklMerchantCode,\n String lklTerminalCode);\n\n void deleteSend(int pid);\n\n void inserBatchPosWithdraw(List<PosWithdrawRecord> posWithdrawRecord);\n\n PosWithdrawRecord getCountWithdraw();\n\n List<PosWithdrawRecord> searchSendRecordList(PosWithdrawRecord posWithdrawRecord);\n\n}",
"public interface IMarketDataService {\n\n\t/**\n\t * Method used to retrieve market data.\n\t * @param symbol The symbol to query on\n\t * @return List of market data performance values\n\t */\n\tList<MarketPerformanceData> retrieveMarketData(String[] symbol);\n\n\t/**\n\t * Method used to retrieve symbol related news.\n\t * @param symbol The symbol to query on\n\t * @return String The rss xml\n\t */\n\tString retrieveSymbolNewsItems(String symbol);\n\n}",
"public interface IEnterpriseService {\n\n int create(Enterprise enterprise) throws ServiceException;\n\n int delete(long id) throws ServiceException;\n\n int update(Enterprise enterprise) throws ServiceException;\n\n List<Enterprise> getAll() throws ServiceException;\n\n Enterprise getEnterprise(long id) throws ServiceException;\n\n}",
"public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}",
"public interface DataStoreIntegrityService {\n\t\n\t/**\n\t * The function expects 3 hashmaps to be available in RequestScope and a map of defaultValues for create/merge\n\t * Map<ModelNode,QName> -> 3 such maps for Create/Delete/Merge list of nodes. \n\t * Map<SchemaPath,String> -> a map of defaultValues. \n\t */\n\tpublic List<EditConfigRequest> createInternalEditRequests(EditConfigRequest sourceRequest, NetconfClientInfo clientInfo, DSValidationContext validationContext) throws GetAttributeException;\n}",
"public interface TuduListsWebService {\r\n\r\n /**\r\n * Find all the todo lists for the current user.\r\n */\r\n WsTodoList[] getAllTodoLists();\r\n \r\n /**\r\n * Find all todos from a todo list.\r\n */\r\n WsTodo[] getTodosByTodoList(String listId);\r\n \r\n}",
"public interface DataShowService {\n\n List<Map<String,Object>> getCitySessionSummary(Map<String,Object> params);\n\n List<Map<String, Object>> getCitys();\n\n List<Integer> getCitySessions(Integer city_id);\n\n List<String> getCitySrcs(Integer city_id);\n\n List<Map<String, Object>> getSrcdatabySessions(Map<String,Object> params);\n}",
"public interface IFsFarmStudyService {\n\n List<FsFarmStudy> getAllFarmStudy();\n\n FsFarmStudy getFarmStudyById(Integer farmstudyId);\n\n List<FsFarmStudy> getFsFarmnewsByName(String farmstudyName);\n\n int insertSelective(FsFarmStudy record);\n\n int updateByPrimaryKeySelective(FsFarmStudy record);\n\n}",
"public interface VolunteerworkService {\n Iterable<Volunteerwork> listAllVolunteerworks();\n\n Volunteerwork getVolunteerworkById(Integer id);\n\n Volunteerwork saveVolunteerwork(Volunteerwork volunteerwork);\n}",
"public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}",
"public interface SalesRepresentativeService {\n void addEmployee(Context context, SalesRepresentative employee);\n void updateEmployee(Context context, SalesRepresentative employee);\n}",
"public interface EssayService extends DomainCRUDService<ComEssay, Integer> {\n\n /**\n * 添加文章和标签和作者\n * param ComEssay essay, List<Integer> lab_num, Integer user_id\n * return 0 or 1\n */\n public void addEssay(ComEssay essay) throws NotFoundException;\n\n /**\n * 删除文章\n * param Integer essay_id\n * return 0 or 1\n */\n public int deleteEssay(Integer essay_id, Timestamp delete_time) throws NotFoundException;\n\n /**\n * 更新文章\n * 更新文章和文章作者对应关系\n * 更新文章标签\n * param ComEssay essay, Integer user_id\n * return 1\n */\n public int updateEssay(ComEssay essay) throws NotFoundException;\n\n /**\n * 根据文章id获取文章\n * param Integer essay_id\n * return ComEssay\n */\n public ComEssay getEssay(Integer essay_id) throws NotFoundException;\n\n /**\n * 根据文章List<id>获取文章List\n * param Integer essay_id\n * return ComEssay\n */\n public List<ComEssay> getEssay(List<Integer> essayId) throws NotFoundException;\n\n /**\n * 获取最新10个文章\n * param\n * return List<ComEssay>\n */\n public List<ComEssay> getEssayLatest();\n\n /**\n * 根据用户id 获取他的所有文章\n * param Integer user_id\n * return List<ComEssay>\n */\n public List<ComEssay> getAllEssayByUserId(Integer user_id);\n}",
"public interface SensorDataService{\n Temperature saveTemperature(Temperature temperature);\n Humidity saveHumidity(Humidity humidity);\n AirPressure saveAirPressure(AirPressure airPressure);\n}",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"public IData getStoreddata();",
"public interface StockTigerListService extends IService<StockTigerList> {\n\n Page<StockTigerList_VO> getStockTigerList(Integer page , Integer size , String stockCode , String stockName , String startDay , String endDay);\n}",
"public interface AmputationService {\r\n\r\n public void insertAmputationDetails(DataSource ds, AmputationDto ampdto, HttpServletRequest request) throws SADAREMDBException, SQLException;\r\n\r\n public int insertAmputationDetailsAU(DataSource ds, AmputationDto ampdto, HttpServletRequest request) throws SADAREMDBException, SQLException;\r\n\r\n public AmputationDto getAmputationDetails(String personcode, DataSource ds) throws SADAREMDBException, SQLException;\r\n\r\n public void updateAmputationDetails(DataSource ds, AmputationDto amputationdto, HttpServletRequest rquest) throws SADAREMDBException, SQLException;\r\n\r\n public boolean checkPersoncode(String personcode, DataSource ds) throws SADAREMDBException, SQLException;\r\n\r\n public void deleteAmputaionUpdateRecord(DataSource ds, String personcode) throws SADAREMDBException, SQLException;\r\n}",
"public interface ZqhDiaryService {\n int insert(ZqhDiary zqhDiary);\n\n int save(ZqhDiary zqhDiary);\n\n List<ZqhDiary> selectAll();\n\n String getToken(String appId);\n}",
"public interface TTuplecountService extends BaseService<TTuplecount> {\n public List<Timestamp> getTimeLineInfo();\n\n public List<TTuplecount> getTupleCountByTimeinfo(Timestamp time);\n\n public Long getSumTupleCountByTimeinfo(Timestamp time);\n\n public List<Long> getSumListTupleCountByTimeInfo();\n\n public void deleteAll();\n\n public String queryTuplecountBypage(int page, int size);\n\n}",
"public abstract void saveChanges() throws SOAPException;",
"public interface AcUspsInternationalCgrReplyOfferServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(Integer id);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(AcUspsInternationalCgrReplyOfferPkIF pk);\n boolean uspsInternationalCgrReplyOfferExists(Integer id);\n boolean uspsInternationalCgrReplyOfferExists(AcUspsInternationalCgrReplyOfferPkIF pk);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOfferByWebKey(String webKey);\n JwList<AcUspsInternationalCgrReplyOffer> getAll();\n JwList<AcUspsInternationalCgrReplyOffer> getAllAvailable();\n JwList<AcUspsInternationalCgrReplyOffer> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionId(Integer uspsInternationalCgrSubmissionId);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionIdStatus(Integer uspsInternationalCgrSubmissionId, AcUspsInternationalCgrReplyOfferStatusEnum status);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionOfferId(Integer uspsInternationalCgrSubmissionOfferId);\n Integer insert(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void update(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void delete(Integer id);\n Integer getErrorCountByLatestSubmissionInBlock(Integer globalUspsInternationalSubmissionBlockId);\n}",
"public interface IStatisticsService {\r\n /**\r\n * 统计分析查询\r\n */\r\n public List<StatisticsEntity> qryStatisticsData(StatisticsEntity statisticsEntity);\r\n\r\n public List<StatisticsReportEntity> qryStatisticsReportData(StatisticsReportEntity statisticsReportEntity);\r\n\r\n}",
"public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}",
"public DataDictionaryService getDataDictionaryService() {\r\n return dataDictionaryService;\r\n }",
"@Service\npublic interface UnKnowWordService {\n PageModel dataGrid(VUnKnowWord vUnKnowWord, PageModel ph) throws Exception;\n\n void save(VUnKnowWord vUnKnowWord) throws Exception;\n\n VUnKnowWord getVUnKnowWord(Long id) throws Exception;\n\n void edit(VUnKnowWord vUnKnowWord) throws Exception;\n\n void delete(Long id) throws Exception;\n}",
"public interface NewsDetailDataStore {\n\n void getNewsDetail(int newsId, OnResultListener<NewsDetailBean> listener);\n\n void getNewExtra(int newsId, OnResultListener<NewsExtraBean> listener);\n}",
"public interface BACSSettlementDataService extends BaseDataService<BACSSettlement, BACSSettlementDTO> {\r\n\r\n List<BACSSettlementDTO> findByStatus(String status);\r\n\r\n BACSSettlementDTO findBySettlementNumber(Long settlementNumber);\r\n \r\n BACSSettlementDTO findByFinancialServicesReference(Long financialServicesReferenceNumber); \r\n \r\n List<BACSSettlementDTO> findByOrderNumber(Long orderNumber);\r\n \r\n}",
"public interface GrabTicketQueryService {\n\n\n /**\n * 抢票查询\n * @param method\n * @param train_date\n * @param from_station\n * @param to_station\n * @return\n */\n JSONObject grabTicketQuery(String uid, String partnerid, String method, String from_station, String to_station, String from_station_name, String to_station_name, String train_date, String purpose_codes);\n// JSONObject grabTicketQuery(String partnerid, String method, String from_station, String to_station, String train_date, String purpose_codes);\n}",
"public interface EntityService {\n String SERVICE_ENDPOINT = \"http://172.25.14.138:3100/\";\n\n @GET(\"tables\")\n Observable<List<Entity>> getEntities();\n\n @POST(\"add\")\n Observable<Entity> addEntity(@Body Entity e);\n\n @DELETE(\"presence/{id}\")\n Observable<Entity> deleteEntity(@Path(\"id\") int entityId);\n\n @POST(\"presence\")\n Observable<Entity> updateEntity(@Body Entity entity);\n\n// @FormUrlEncoded\n// @PUT(\"updateEntity2\")\n// Observable<Entity> updateEntity2(@Field(\"id\") int entityId, @Field(\"field1\") String field1,@Field(\"field2\") String field2,@Field(\"field3\") String field3);\n\n\n\n}",
"public interface WarehousesHistoryService extends BaseService<WarehousesHistory, Integer> {\n}",
"public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user, String password) {\n return new ServiceImpl(hostIp, user, password);\n }\n\n\n /**\n * Retrieve historical data points for a given symbol.\n *\n * @param symbol Symbol we want history data for.\n * @param startTime Start time (inclusive)\n * @param endTime End time (inclusive)\n * @param numberOfPoints Approximate number of points to be returned\n * @return The stream of filtered data points of the given symbol and time interval\n */\n Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);\n\n /**\n * @param symbol the symbol for which to get data\n * @return the most recent data point for the given symbol\n */\n Optional<DataPoint> getMostRecentDataPoint(Symbol symbol);\n\n /**\n * @return the stream of all symbols of the database\n */\n Stream<Symbol> getSymbols();\n\n /**\n * Select whether to use Speedment in memory acceleration when looking up data\n *\n * @param accelerate true for using Speedment in memory acceleration, false for direct SQL\n */\n Service withAcceleration(boolean accelerate);\n}",
"public interface LanguageDictService {\n\n List<LanguageDict> getDataList(Map<String, Object> map);\n\n Integer setData(Map<String, Object> map);\n\n Integer removeData(Map<String, Object> map);\n\n Integer addData(Map<String, Object> map);\n}",
"public interface KnowMoreService {\n\n /**\n * 网贷知多点列表\n * @param knowMore\n * @param bound\n * @param startTime\n * @param endTime\n * @return\n */\n List<KnowMore> getKnowMoreList(KnowMore knowMore, RowBounds bound, String startTime, String endTime);\n\n /**\n * 保存或者更新网贷知多点\n * @param knowMore\n */\n void editKnowMore(KnowMore knowMore);\n\n /**\n * 删除网贷知多点\n * @param idList\n */\n void deleteKnowMore(String[] idList);\n\n\n /**\n * 根据多个id获取风险早知道列表\n * @param idList\n * @return\n */\n List<KnowMore> getKnowEarlyListByIds(String[] idList);\n\n void updateAllPicUploade(KnowMore knowMore);\n}",
"public interface INewsDataSource {\r\n\r\n\r\n void getHandyLifeData( LoadNewsDataCallback loadNewsDataCallback) ;\r\n\r\n\r\n /**\r\n * the callback of getHandyLifeData\r\n */\r\n interface LoadNewsDataCallback {\r\n void onHandyLifeDataSuccess(ArticlesResult handyLifeResultBeans);\r\n void onHandyLifeDataFailed(int code, String message);\r\n }\r\n\r\n}",
"public interface SalesDateLocationDetailService extends BaseService<SalesDateLocationDetailHolder>,\r\n DBActionService<SalesDateLocationDetailHolder>\r\n{\r\n public List<SalesDateLocationDetailHolder> selectSalesLocationDetailByKey(BigDecimal salesOid) throws Exception;\r\n}",
"public interface LoadDataService {\npublic void execute();\n}",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}",
"@WebService\npublic interface MetadataMonitorService {\n /**\n * Provides the names of the publishers in the database.\n *\n * @return a {@code List<String>} with the publisher names.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<String> getPublisherNames() throws LockssWebServicesFault;\n\n /**\n * Provides the DOI prefixes for the publishers in the database with multiple DOI prefixes.\n *\n * @return a {@code List<KeyValueListPair>} with the DOI prefixes keyed by the publisher name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getPublishersWithMultipleDoiPrefixes() throws LockssWebServicesFault;\n\n /**\n * Provides the publisher names linked to DOI prefixes in the database that are linked to multiple\n * publishers.\n *\n * @return a {@code List<KeyValueListPair>} with the publisher names keyed by the DOI prefixes to\n * which they are linked.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getDoiPrefixesWithMultiplePublishers() throws LockssWebServicesFault;\n\n /**\n * Provides the DOI prefixes for the Archival Units in the database with multiple DOI prefixes.\n *\n * @return a {@code List<KeyValueListPair>} with the DOI prefixes keyed by the Archival Unit\n * identifier.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getAuIdsWithMultipleDoiPrefixes() throws LockssWebServicesFault;\n\n /**\n * Provides the DOI prefixes for the Archival Units in the database with multiple DOI prefixes.\n *\n * @return a {@code List<KeyValueListPair>} with the DOI prefixes keyed by the Archival Unit name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getAuNamesWithMultipleDoiPrefixes() throws LockssWebServicesFault;\n\n /**\n * Provides the ISBNs for the publications in the database with more than two ISBNS.\n *\n * @return a {@code List<KeyIdNamePairListPair>} with the ISBNs keyed by the publication name. The\n * IdNamePair objects contain the ISBN as the identifier and the ISBN type as the name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyIdNamePairListPair> getPublicationsWithMoreThan2Isbns() throws LockssWebServicesFault;\n\n /**\n * Provides the ISSNs for the publications in the database with more than two ISSNS.\n *\n * @return a {@code List<KeyIdNamePairListPair>} with the ISSNs keyed by the publication name. The\n * IdNamePair objects contain the ISSN as the identifier and the ISSN type as the name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyIdNamePairListPair> getPublicationsWithMoreThan2Issns() throws LockssWebServicesFault;\n\n /**\n * Provides the ISSNs for the publications in the database with more than two ISSNS.\n *\n * @return a {@code List<PkNamePairIdNamePairListPair>} with the ISSNs keyed by the publication\n * PK/name pair. The IdNamePair objects contain the ISSN as the identifier and the ISSN type\n * as the name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<PkNamePairIdNamePairListPair> getIdPublicationsWithMoreThan2Issns()\n throws LockssWebServicesFault;\n\n /**\n * Provides the publication names linked to ISBNs in the database that are linked to multiple\n * publications.\n *\n * @return a {@code List<KeyValueListPair>} with the publication names keyed by the ISBNs to which\n * they are linked.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getIsbnsWithMultiplePublications() throws LockssWebServicesFault;\n\n /**\n * Provides the publication names linked to ISSNs in the database that are linked to multiple\n * publications.\n *\n * @return a {@code List<KeyValueListPair>} with the publication names keyed by the ISSNs to which\n * they are linked.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getIssnsWithMultiplePublications() throws LockssWebServicesFault;\n\n /**\n * Provides the ISSNs for books in the database.\n *\n * @return a {@code List<KeyValueListPair>} with the ISSNs keyed by the publication name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getBooksWithIssns() throws LockssWebServicesFault;\n\n /**\n * Provides the ISBNs for periodicals in the database.\n *\n * @return a {@code List<KeyValueListPair>} with the ISBNs keyed by the publication name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getPeriodicalsWithIsbns() throws LockssWebServicesFault;\n\n /**\n * Provides the Archival Units in the database with an unknown provider.\n *\n * @return a {@code List<String>} with the sorted Archival Unit identifiers.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<String> getUnknownProviderAuIds() throws LockssWebServicesFault;\n\n /**\n * Provides the journal articles in the database whose parent is not a journal.\n *\n * @return a {@code List<MismatchedChildWsResult>} with the mismatched journal articles sorted by\n * Archival Unit, parent name and child name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<MismatchedMetadataChildWsResult> getMismatchedParentJournalArticles()\n throws LockssWebServicesFault;\n\n /**\n * Provides the book chapters in the database whose parent is not a book or a book series.\n *\n * @return a {@code List<MismatchedChildWsResult>} with the mismatched book chapters sorted by\n * Archival Unit, parent name and child name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<MismatchedMetadataChildWsResult> getMismatchedParentBookChapters()\n throws LockssWebServicesFault;\n\n /**\n * Provides the book volumes in the database whose parent is not a book or a book series.\n *\n * @return a {@code List<MismatchedChildWsResult>} with the mismatched book volumes sorted by\n * Archival Unit, parent name and child name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<MismatchedMetadataChildWsResult> getMismatchedParentBookVolumes()\n throws LockssWebServicesFault;\n\n /**\n * Provides the publishers for the Archival Units in the database with multiple publishers.\n *\n * @return a {@code List<KeyValueListPair>} with the publishers keyed by the Archival Unit\n * identifier.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getAuIdsWithMultiplePublishers() throws LockssWebServicesFault;\n\n /**\n * Provides the publishers for the Archival Units in the database with multiple publishers.\n *\n * @return a {@code List<KeyValueListPair>} with the publishers keyed by the Archival Unit name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getAuNamesWithMultiplePublishers() throws LockssWebServicesFault;\n\n /**\n * Provides the metadata items in the database that do not have a name.\n *\n * @return a {@code List<UnnamedItemWsResult>} with the unnamed metadata items sorted by\n * publisher, Archival Unit, parent type, parent name and item type.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<UnnamedItemWsResult> getUnnamedItems() throws LockssWebServicesFault;\n\n /**\n * Provides the proprietary identifiers for the publications in the database with multiple\n * proprietary identifiers.\n *\n * @return a {@code List<KeyValueListPair>} with the proprietary identifiers keyed by the\n * publication name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<KeyValueListPair> getPublicationsWithMultiplePids() throws LockssWebServicesFault;\n\n /**\n * Provides the non-parent metadata items in the database that have no DOI.\n *\n * @return a {@code List<MetadataItemWsResult>} with the non-parent metadata items that have no\n * DOI sorted by publisher, Archival Unit, parent type, parent name, item type and item name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<MetadataItemWsResult> getNoDoiItems() throws LockssWebServicesFault;\n\n /**\n * Provides the non-parent metadata items in the database that have no Access URL.\n *\n * @return a {@code List<MetadataItemWsResult>} with the non-parent metadata items that have no\n * Access URL sorted by publisher, Archival Unit, parent type, parent name, item type and item\n * name.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<MetadataItemWsResult> getNoAccessUrlItems() throws LockssWebServicesFault;\n\n /**\n * Provides the Archival Units in the database with no metadata items.\n *\n * @return a {@code List<String>} with the sorted Archival Unit identifiers.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<String> getNoItemsAuIds() throws LockssWebServicesFault;\n\n /**\n * Provides the metadata information of an archival unit in the system.\n *\n * @param auId A String with the identifier of the archival unit.\n * @return an AuMetadataWsResult with the metadata information of the archival unit.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n AuMetadataWsResult getAuMetadata(String auId) throws LockssWebServicesFault;\n\n /**\n * Provides the Archival Units that exist in the database but that have been deleted from the\n * daemon.\n *\n * @return a {@code List<AuMetadataWsResult>} with the Archival unit data.\n * @throws LockssWebServicesFault if there are problems.\n */\n @WebMethod\n List<AuMetadataWsResult> getDbArchivalUnitsDeletedFromDaemon() throws LockssWebServicesFault;\n}",
"public interface WeatherForecastService {\n /**\n * query the weather forecast report by cityId\n * @param cityId inner city id\n * @return report\n */\n GeneralWeatherReport queryWeatherReport(String cityId);\n\n}",
"public interface MutableDataService<U> extends RetrievalService<U> {\n\n /**\n * Create a resource in the server.\n *\n * @implSpec the default implementation of this method is to proxy create requests to the {@link #replace} method.\n * @param metadata metadata for the new resource\n * @param dataset the dataset to be persisted\n * @return a new completion stage that, when the stage completes normally, indicates that the supplied data were\n * successfully created in the corresponding persistence layer. In the case of an unsuccessful write operation,\n * the {@link CompletionStage} will complete exceptionally and can be handled with\n * {@link CompletionStage#handle}, {@link CompletionStage#exceptionally} or similar methods.\n */\n default CompletionStage<Void> create(Metadata metadata, Dataset dataset) {\n return replace(metadata, dataset);\n }\n\n /**\n * Replace a resource in the server.\n *\n * @param metadata metadata for the resource\n * @param dataset the dataset to be persisted\n * @return a new completion stage that, when the stage completes normally, indicates that the supplied data\n * were successfully stored in the corresponding persistence layer. In the case of an unsuccessful write operation,\n * the {@link CompletionStage} will complete exceptionally and can be handled with\n * {@link CompletionStage#handle}, {@link CompletionStage#exceptionally} or similar methods.\n */\n CompletionStage<Void> replace(Metadata metadata, Dataset dataset);\n\n /**\n * Delete a resource from the server.\n *\n * @param metadata metadata for the resource\n * @return a new completion stage that, when the stage completes normally, indicates that the resource\n * was successfully deleted from the corresponding persistence layer. In the case of an unsuccessful delete\n * operation, the {@link CompletionStage} will complete exceptionally and can be handled with\n * {@link CompletionStage#handle}, {@link CompletionStage#exceptionally} or similar methods.\n */\n CompletionStage<Void> delete(Metadata metadata);\n\n}",
"public interface IWarnHistoryService {\n}",
"public interface CoffeeProcessorDbService {\n void loadData();\n}",
"public ParcoursDataService() {\n this.repository = new JeeRepository();\n }",
"public void accessWebService() {\n\r\n dataList.clear();\r\n\r\n GetCampaignSuppliersInventories getCampaignSuppliersInventories = new GetCampaignSuppliersInventories(getContext(), this);\r\n Log.d(TAG, \"Making api call\");\r\n getCampaignSuppliersInventories.execute(Constants.LIST_CAMPAIGN_SUPPLIERS_URL);\r\n\r\n }",
"public interface ITimeRecordService extends IBaseService<TimeRecord, Long> {\n List<TimeRecord> getLatestRecord() throws Exception;\n}",
"public interface VitaeService {\n boolean addVitae(Vitae vitae);\n boolean deleteVitae(Vitae vitae);\n boolean updateVitae(Vitae vitae);\n List<Vitae> getByUidVitae(Vitae vitae);\n Vitae getByIdVC(Vitae vitae);\n List<Vitae> getPage(Map<String,Object> data);\n}",
"public interface UpdateData {\n\n UpdateData UpdateAttributes(String data);\n}",
"ServiceEntity getService();",
"public interface SolrService {\n\n /**\n * Save index start.\n *\n * @param userId the user id\n */\n @Transactional\n void saveIndexStart(Long userId);\n\n /**\n * Queue index.\n *\n * @param personTotaraId the person totara id\n */\n @Transactional\n void queueIndex(Long personTotaraId);\n\n /**\n * Reindex search database future.\n *\n * @return the future\n */\n @Timed\n @Async\n Future<Integer> reindexSearchDatabase();\n\n /**\n * Find last index data index data.\n *\n * @return the index data\n */\n @Transactional(readOnly = true)\n IndexData findLastIndexData();\n\n /**\n * Fin last queued data index data.\n *\n * @return the index data\n */\n IndexData finLastQueuedData();\n\n /**\n * Update index.\n *\n * @param indexData the index data\n */\n @Transactional\n void updateIndex(IndexData indexData);\n}",
"public interface ITempSeatScheduleService extends IService<TssTempSeatSchedule> {\n\n boolean resetTepIdAndSeatNumInTemp(List<String> readyDelIds);\n\n boolean copyToMainTableByTeId(String mainExId);\n\n boolean removeByTeId(String mainExId);\n}",
"public interface PerformancesService {\n void create();\n List<Performances> findAll();\n}",
"public interface DocStoreUpdateContext extends DocUpdateContext {\n\n}",
"public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}",
"public interface ISysPostService extends IBaseService<SysPost> {\n /**\n * Description: 根据部门ID查询该部门下所有的岗位信息\n * Name:finaPostByDiv\n * Author:dyenigma\n * Time:2016/4/27 8:36\n * param:[id]\n * return:java.util.List<com.dyenigma.entity.Post>\n */\n List<SysPost> finaPostByDiv(String id);\n\n /**\n * Description: 新增或修改岗位信息\n * Name:persistencePost\n * Author:dyenigma\n * Time:2016/4/27 9:17\n * param:[post]\n * return:java.lang.Boolean\n */\n Boolean persistencePost(SysPost post);\n\n /**\n * Description: 获取所有可添加岗位的公司和部门\n * Name:getCoDivList\n * Author:dyenigma\n * Time:2016/4/27 10:02\n * param:[]\n * return:java.util.List<com.dyenigma.model.TreeModel>\n */\n List<TreeModel> getCoDivList();\n\n boolean delPostById(String postId);\n\n\n /**\n * Description: 设置某个记录无效\n * Name:invalidByPrimaryKey\n * Author:dyenigma\n * Time:2016/4/27 9:02\n * param:[id]\n * return:int\n */\n int invalidByPrimaryKey(String id);\n}",
"public interface INormalCookDetailModel {\n void getData(String addressUrl, OnGetCookDetailListener getdatelistener);\n}",
"public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}",
"public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}",
"public interface ItemService {\n\n Item getItemById(Long itemId);\n\n EasyUIDataGridResult getItemList(int page, int row);\n\n E3Result addItem(Item item, String desc);\n}",
"public interface OrdRefundSaleRecordService {\r\n public int insert(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public OrdRefundSaleRecord selectByPrimaryKey(Long ordRefundSaleRecordId);\r\n\r\n public int updateByPrimaryKeySelective(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public int updateByOrderItemIdSelective(OrdRefundSaleRecord ordRefundSaleRecord);\r\n\r\n public List<OrdRefundSaleRecord> findOrdRefundSaleRecordList(Map<String,Object> params);\r\n\r\n /**\r\n * 根据订单初始化记录\r\n * @param ordOrder\r\n */\r\n public void init(OrdOrder ordOrder, Date applyTime);\r\n\r\n public List<OrdRefundSaleRecord> getOrdRefundSaleRecordByOrder(OrdOrder ordOrder, Date applyTime);\r\n}",
"public interface UmsatzService extends Service\n{\n\n public static final String KEY_ID = \"id\";\n public static final String KEY_KONTO_ID = \"konto_id\";\n public static final String KEY_GEGENKONTO_NAME = \"empfaenger_name\";\n public static final String KEY_GEGENKONTO_NUMMER = \"empfaenger_konto\";\n public static final String KEY_GEGENKONTO_BLZ = \"empfaenger_blz\";\n public static final String KEY_ART = \"art\";\n public static final String KEY_BETRAG = \"betrag\";\n public static final String KEY_VALUTA = \"valuta\";\n public static final String KEY_DATUM = \"datum\";\n public static final String KEY_ZWECK = \"zweck\";\n public static final String KEY_ZWECK_RAW = \"zweck_raw\";\n public static final String KEY_SALDO = \"saldo\";\n public static final String KEY_PRIMANOTA = \"primanota\";\n public static final String KEY_CUSTOMER_REF = \"customer_ref\";\n public static final String KEY_UMSATZ_TYP = \"umsatz_typ\";\n public static final String KEY_KOMMENTAR = \"kommentar\";\n public static final String KEY_GVCODE = \"gvcode\";\n\n\n /**\n * Liefert eine Liste der Umsaetze.\n * Jede Zeile entspricht einem Umsatz. Die einzelnen Werte sind durch Doppelpunkt getrennt.\n * @param text Suchbegriff.\n * @param von Datum im Format dd.mm.yyyy.\n * @param bis Datum im Format dd.mm.yyyy.\n * @return Liste der Konten.\n * @throws RemoteException\n */\n public String[] list(String text, String von, String bis) throws RemoteException;\n\n /**\n * Liefert eine Liste der Umsaetze.\n * ueber dem Hash koennen die folgenden Filter gesetzt werden:\n *\n * konto_id\n * art\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * id\n * id:min\n * id:max\n * saldo\n * saldo:min\n * saldo:max\n * valuta\n * valuta:min\n * valuta:max\n * datum\n * datum:min\n * datum:max\n * betrag\n * betrag:min\n * betrag:max\n * primanota\n * customer_ref\n * umsatz_typ (Name oder ID der Umsatz-Kategorie)\n * zweck\n *\n * Die Funktion liefer eine Liste mit den Umsaetzen zurueck\n * jeder Umsatz liegt als Map vor und enthält die folgenden\n * Elemente:\n *\n * id\n * konto_id\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * saldo\n * valuta\n * datum\n * betrag\n * primanota\n * customer_ref\n * umsatz_typ\n * zweck\n * kommentar\n * \n * @param options Map mit den Filter-Parametern.\n * @return Liste der Umsaetze.\n * @throws RemoteException\n */\n public List<Map<String,Object>> list(HashMap<String,Object> options) throws RemoteException;\n}",
"public interface EavropDocumentService {\n\t\n\n\t/**\n\t * Adds to the eavrop an externally received document, will potentially affect the start date of the eavrop assessment period \n\t *\n\t * @param aCommand\n\t */\n\tpublic boolean addReceivedExternalDocument(AddReceivedExternalDocumentsCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop an internally received document \n\t *\n\t * @param aCommand\n\t */\n\tpublic void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop a requested document\n\t * @param aCommand\n\t */\n\tpublic RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);\n\n}",
"public interface AiravataClientAPIService {\n /**\n * Get all workflows available in the apache airavata server\n * @return workflow list\n * @throws PortalException\n */\n public List<Workflow> getAllWorkflows() throws PortalException;\n\n /**\n * Get workflow by workflow id\n * @param identifier unique id for the workflow\n * @return workflow associate with the given workflow id\n * @throws PortalException\n */\n public Workflow getWorkflow(String identifier) throws PortalException;\n\n /**\n * Execute a available workflow in airavata\n * @param inputs inputs of airavata workflow\n * @param workflowId if of the workflow need to be implemented\n * @return\n * @throws Exception\n */\n public Map<String,Object> executeWorkflow(Map<String,Object> inputs,String workflowId) throws Exception;\n\n /**\n * Query previous data associated with experiments performed in airavata\n * @return experiments data list\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;\n\n /**\n * Get the data of nodes in a experiment performed in the airavata\n * @param experimentData\n * @return node execution data list will be returned\n * @throws ExperimentLazyLoadedException\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<NodeExecutionData> getNodeData(ExperimentData experimentData) throws ExperimentLazyLoadedException, PortalException, AiravataAPIInvocationException;\n\n /**\n * Get workflow experiment data\n * @return\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n * @throws ExperimentLazyLoadedException\n */\n public List<NodeExecutionData> getWorkflowExperimentData(String experimentId) throws PortalException, AiravataAPIInvocationException, ExperimentLazyLoadedException;\n\n public String executeExperiment(Object[] inputs, String workflowId) throws Exception;\n\n public List<MonitorMessage> getEvents();\n\n public void monitorWorkflow(String experimentId) throws PortalException, IOException, AiravataAPIInvocationException, URISyntaxException;\n}",
"public interface ISummaryService {\n int saveSummary(Summary summary);\n Summary getUserSummaryByDate(User user,Date date);\n}",
"public interface DataImportService {\n /**\n * 导入数据\n * @param templateId\n * @param userId\n * @param isSys\n */\n void dataImport(Long templateId, String userId, Integer isSys);\n}",
"@Override\n\tpublic <K extends BasePojo> List<K> getDataList() throws ServiceException {\n\t\treturn null;\n\t}",
"public interface DataManager {\n void saveData(String key, String data);\n String getData(String key);\n}",
"public interface EnterpriseService extends GenericManager<Enterprise> {\n\n public Result saveEnterprise(Enterprise enterprise);\n\n}",
"public interface InterfaceService {\n int countByExample(InterfaceengineExample example);\n\n int deleteByExample(InterfaceengineExample example);\n\n int deleteByPrimaryKey(Long id);\n\n int deleteByPrimaryKey1(Long id);\n\n int insert(Interfaceengine record);\n\n int insertSelective(Interfaceengine record);\n\n List<Interfaceengine> selectByExample(InterfaceengineExample example);\n\n List<Interfaceengine> selectAllListBySite(HashMap<String,Object> map);\n\n int countInterface(HashMap<String,Object> map);\n\n Interfaceengine selectByPrimaryKey(Long id);\n\n int updateByExampleSelective(@Param(\"record\") Interfaceengine record, @Param(\"example\") InterfaceengineExample example);\n\n int updateByExample(@Param(\"record\") Interfaceengine record, @Param(\"example\") InterfaceengineExample example);\n\n int updateByPrimaryKeySelective(Interfaceengine record);\n\n int updateByPrimaryKey(Interfaceengine record);\n}",
"public interface IWilayaDatasource {\n\n Flowable<Wilaya> getWilayaById(int wilayaID);\n\n Flowable<List<Wilaya>> getAllWilaya();\n\n void insertWilaya(Wilaya... wilayas);\n\n void updateWilaya(Wilaya... wilayas);\n\n void deleteWilaya(Wilaya wilaya);\n\n void deleteAllWilaya();\n}",
"public interface DataAnalyseService {\n JSONArray getDataOperateTimesInDay(String dataName,String month,String year);\n JSONArray getDataOperateTimesInMonth(String dataName,String year);\n JSONArray getDataOperateTimesInYear(String dataName);\n JSONArray getDataOperateTimesByType(String dataName);\n\n JSONObject getHotData();\n JSONObject getLikeData(String dataName);\n\n JSONObject getUserRecommendData(String userName);\n}",
"public interface AppAsetA02Service extends BaseService<AppAsetA02,String> {\n\n String ATTS_PATH = File.separator+\"aset\"+ File.separator+\"a02\"+File.separator;\n\n int saveFromYw(DataSource dataSource)throws Exception;\n int saveFromZdwx(DataSource dataSource)throws Exception;\n String toSqliteInsertSql(AppAsetA02 entity);\n}",
"net.webservicex.www.WeatherForecasts getWeatherForecasts();",
"public interface IShowCoinAttributesService\n{\n Collection<ShowCoinAttributes> findAll();\n\n ShowCoinAttributes create(ShowCoinAttributes showCoinAttributes);\n\n ShowCoinAttributes update(ShowCoinAttributes showCoinAttributes);\n\n boolean remove(ShowCoinAttributes showCoinAttributes);\n}"
] | [
"0.6230748",
"0.61377823",
"0.5980652",
"0.5923754",
"0.5903091",
"0.58659744",
"0.58534306",
"0.58380497",
"0.58334666",
"0.579394",
"0.57921815",
"0.5745892",
"0.57419026",
"0.5724302",
"0.5709051",
"0.5703914",
"0.56759167",
"0.56613207",
"0.565962",
"0.56571877",
"0.5628635",
"0.5625278",
"0.5622549",
"0.55948615",
"0.5579149",
"0.55703896",
"0.5568145",
"0.55560064",
"0.5555476",
"0.5552392",
"0.5533344",
"0.5527952",
"0.55276746",
"0.5524362",
"0.5522666",
"0.55089384",
"0.54923886",
"0.5479357",
"0.54765224",
"0.54723537",
"0.5469286",
"0.5466748",
"0.5456308",
"0.5427811",
"0.54267615",
"0.5423289",
"0.5422113",
"0.54219407",
"0.5421184",
"0.5404339",
"0.5403526",
"0.5396457",
"0.5396244",
"0.5391706",
"0.53888047",
"0.53767544",
"0.5368465",
"0.536697",
"0.53661263",
"0.5363551",
"0.5358697",
"0.53546786",
"0.53536564",
"0.5347302",
"0.5341373",
"0.53367627",
"0.5330447",
"0.5328263",
"0.5323112",
"0.5320141",
"0.5318695",
"0.531522",
"0.5313902",
"0.53133786",
"0.5310558",
"0.530448",
"0.52995956",
"0.5296606",
"0.5279422",
"0.52765214",
"0.5276466",
"0.52750236",
"0.52721703",
"0.5271734",
"0.5269669",
"0.5268102",
"0.52674896",
"0.52572656",
"0.5256693",
"0.5255206",
"0.52418774",
"0.5239929",
"0.52391094",
"0.5239079",
"0.5238547",
"0.52327174",
"0.5230394",
"0.522896",
"0.5228884",
"0.52288145",
"0.52278876"
] | 0.0 | -1 |
get all lastUpdate times | @Override
public List<NewsFeed> getAllOutdatedFeeds(IConfigurationManager configurationManager) {
Cursor catQuery = this.writableDatabase.query(TABLE_CATEGORIES, new String[] { CATEGORIES_ID,
CATEGORIES_LASTUPDATE, CATEGORIES_INTERVAL }, null, null, null, null, null);
Map<Long, Boolean> outdatedCategories = new HashMap<Long, Boolean>();
while (catQuery.moveToNext()) {
long lastUpdate = catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_LASTUPDATE));
Log.d(TAG,
"categoryId: "
+ catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID))
+ " | "
+ (System.currentTimeMillis() - lastUpdate)
+ " ms difference | Needed: "
+ (configurationManager.getConfiguration().getTimeForUpdateInterval(UpdateInterval.values()[catQuery
.getInt(catQuery.getColumnIndex(CATEGORIES_INTERVAL))])));
boolean outdated = ((System.currentTimeMillis() - lastUpdate) > (configurationManager.getConfiguration()
.getTimeForUpdateInterval(UpdateInterval.values()[catQuery.getInt(catQuery
.getColumnIndex(CATEGORIES_INTERVAL))])));
outdatedCategories.put(catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID)), outdated);
}
catQuery.close();
// get news feeds
List<NewsFeed> newsFeeds = new ArrayList<NewsFeed>();
Cursor query = this.writableDatabase.query(TABLE_FEEDS, null, null, null, null, null, null);
while (query.moveToNext()) {
if (outdatedCategories.get(query.getLong(query.getColumnIndex(FEEDS_CID)))) {
NewsFeed newsFeed = new NewsFeed();
newsFeed.setFeedId(query.getInt(query.getColumnIndex(FEEDS_ID)));
newsFeed.setParentCategoryId(query.getLong(query.getColumnIndex(FEEDS_CID)));
newsFeed.setName(query.getString(query.getColumnIndex(FEEDS_NAME)));
newsFeed.setUrl(query.getString(query.getColumnIndex(FEEDS_URL)));
newsFeed.setIsActivated(query.getInt(query.getColumnIndex(FEEDS_ACTIVATED)) == 1);
newsFeeds.add(newsFeed);
}
}
query.close();
return newsFeeds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getTimeOfLastValuesChanged();",
"public long getLastUpdateTs() {\n return lastUpdateTs;\n }",
"long getTsUpdate();",
"long getLastUpdatedTime();",
"@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();",
"@Override\n\tpublic List getTime() {\n\t\treturn timeInitDao.getTime();\n\t}",
"public Date getLastUpdateTime() {\r\n return lastUpdateTime;\r\n }",
"public Date getLastUpdateTime() {\n return lastUpdateTime;\n }",
"public Date getLastUpdateTime() {\n return lastUpdateTime;\n }",
"public long getLastUpdateTime() {\n return lastUpdateTime;\n }",
"public Date getUpdateTimeDb() {\r\n\t\treturn updateTimeDb;\r\n\t}",
"public long getTsUpdate() {\n return tsUpdate_;\n }",
"public long getTsUpdate() {\n return tsUpdate_;\n }",
"public String getAllEditTime() {\n StringBuilder sb = new StringBuilder();\n for (String date: editedTimeList) {\n sb.append(date + \", \\n\");\n }\n return sb.toString();\n }",
"@Override\n\tpublic List<TimeInit> getAllTimeInit() {\n\t\treturn timeInitDao.getAllTimeInit();\n\t}",
"public String lastModifiedAll() {\n\t\tNSTimestamp lastMod = null;\n\t\tNSTimestamp\ttoday = new NSTimestamp();\n\n\t\tEnumeration enumer = allChildren().objectEnumerator();\n\t\twhile(enumer.hasMoreElements()) {\n\t\t\tItem anItem = (Item)enumer.nextElement();\n\t\t\tif(lastMod == null) {\n\t\t\t\tlastMod = anItem.lastdiffed();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(lastMod.compare(anItem.lastdiffed()) < 0) {\n\t\t\t\t\tlastMod = anItem.lastdiffed();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn elapsedTimeSimple(lastMod, today);\n\t}",
"public ArrayList<Long>\n getTimeStamps() \n {\n return pTimeStamps; \n }",
"public int getLastTimetable() {\n return lastTimetable;\n }",
"public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }",
"public List<LocalDateTime> getAllTimes() {\n\t\tList<LocalDateTime> allTimes = new ArrayList<LocalDateTime>();\n\t\tallTimes.add(shiftStartTime);\n\t\tallTimes.add(bedtime);\n\t\tallTimes.add(shiftEndTime);\n\t\treturn allTimes;\n\t}",
"public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }",
"public DateTime getUpdateTime() {\n return updated;\n }",
"int getUpdateTriggerTime();",
"public Date getTimeUpdate() {\n return timeUpdate;\n }",
"public Timestamp getLastUpdated() {\n return lastUpdated;\n }",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Date getUpdateTime()\n {\n return data.updateTime;\n }",
"public Timestamp getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }",
"public Long getLastOnsetTime() {\n if (timeInfos.isEmpty()) {\n return null;\n } else {\n int size = timeInfos.size();\n return timeInfos.get(size - 1).getOnsetTime();\n }\n }",
"public Date getUpdatetime() {\r\n return updatetime;\r\n }",
"Date getLastServerUpdate();",
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public OffsetDateTime lastUpdateTime() {\n return this.lastUpdateTime;\n }",
"public ArrayList<Time> getTimes() {\n\t\treturn times;\n\t}",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"Date getLastTime();",
"Date getForLastUpdate();",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"@java.lang.Override\n public java.util.List<java.lang.Long>\n getSinceTimeMsList() {\n return sinceTimeMs_;\n }",
"Date getUpdateTime();",
"public Instant getLastUpdate() {\n return lastUpdate;\n }",
"java.util.List<java.lang.Long> getUpdateCountsList();",
"public java.lang.Long getTsUpdate() {\n return ts_update;\n }",
"public Integer getUpdateTime() {\n return updateTime;\n }",
"void setLastUpdatedTime();",
"public java.lang.Long getTsUpdate() {\n return ts_update;\n }",
"public Date getFlastupdatetime() {\n return flastupdatetime;\n }",
"public List<Info> getLastInfo() {\n\t\treturn dao.getLastInfo();\n\t}",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public String getLastEditTime() {\n return editedTimeList.get(editedTimeList.size() - 1);\n }",
"public Instant getLastUpdateTimestamp() {\n return lastUpdateTimestamp;\n }",
"public Date getUpdateTime() {\n return this.updateTime;\n }",
"public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByUpdateTime(Timestamp... values) {\n return fetch(ProfileWorkexp.PROFILE_WORKEXP.UPDATE_TIME, values);\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public String getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }"
] | [
"0.7098193",
"0.7032531",
"0.7028551",
"0.6731628",
"0.66985387",
"0.6530208",
"0.64955604",
"0.6457298",
"0.6457298",
"0.6449613",
"0.6383485",
"0.638007",
"0.63656276",
"0.6353991",
"0.63430053",
"0.63333327",
"0.63132143",
"0.63018376",
"0.6300467",
"0.6296257",
"0.6295604",
"0.6274189",
"0.6260418",
"0.62581587",
"0.6243631",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6243224",
"0.6236885",
"0.6226996",
"0.62226474",
"0.6220546",
"0.6213423",
"0.6212648",
"0.6210313",
"0.6210313",
"0.6210313",
"0.620791",
"0.620791",
"0.62013686",
"0.62013686",
"0.6201362",
"0.6198188",
"0.61912566",
"0.61912566",
"0.6184894",
"0.6176427",
"0.61297303",
"0.612411",
"0.612207",
"0.6120969",
"0.6106411",
"0.6104676",
"0.61040676",
"0.61002165",
"0.6099262",
"0.60964954",
"0.6090596",
"0.6066867",
"0.6066867",
"0.6066867",
"0.6066867",
"0.60617965",
"0.6060829",
"0.60587883",
"0.6049604",
"0.6044825",
"0.6044825",
"0.6031194",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555",
"0.6027555"
] | 0.0 | -1 |
/ Implementation of the IRssStorageService interface | @Override
public void storeFeed(int feedId, String feedName) {
synchronized (synchronizer) {
ContentValues feedValues = new ContentValues(1);
feedValues.put(FEEDS_NAME, feedName);
this.writableDatabase.update(TABLE_FEEDS, feedValues, FEEDS_ID + "=" + feedId, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface StorageService {\n\t\n\t/**\n\t * Storage.\n\t *\n\t * @param storage the storage\n\t * @return the storage state\n\t */\n\tpublic StorageState storage(ArrayList<StorageVO> storage);\n\t\n}",
"public interface StorageService {\n\n /**\n * Return the ReplicatSet configuration (list of services able to pin a file)\n * @return ReplicaSet List of PinningService\n */\n Set<PinningService> getReplicaSet();\n \n /**\n * Write content on the storage layer\n * @param content InputStream\n * @param noPin Disable persistence, require to pin/persist asynchrounsly (can improve the writing performance)\n * @return Content ID (hash, CID)\n */\n String write(InputStream content, boolean noPin);\n\n /**\n * Write content on the storage layer\n * @param content Byte array\n * @param noPin Disable persistence, require to pin/persist asynchrounsly (can improve the writing performance)\n * @return Content ID (hash, CID)\n */\n String write(byte[] content, boolean noPin);\n\n /**\n * Read content from the storage layer and write it in a ByteArrayOutputStream\n * @param id Content ID (hash, CID\n * @return content\n */\n OutputStream read(String id);\n \n /**\n * Read content from the storage layer and write it the OutputStream provided\n * @param id Content ID (hash, CID\n * @param output OutputStream to write content to\n * @return Outputstream passed as argument\n */\n OutputStream read(String id, OutputStream output);\n}",
"public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}",
"public interface IStorageService {\n List<Storage> findStorageList();\n}",
"public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}",
"interface Storage {\n String getStorageSize() ;\n}",
"public interface IStorageManager {\n public IStorageBook getValue(String key);\n\n public void addStorageBook(String key, IStorageBook book);\n\n public void clear();\n\n public boolean isEmpty();\n\n public void remove(String key);\n}",
"public interface StorageModel {\n}",
"OStorage getStorage();",
"public interface Storage {\n\n String getId();\n}",
"public interface IStorage extends Serializable {\n\n /**\n * Removes all stored values.\n */\n void clear();\n\n /**\n * Removes the value stored under the given key (if one exists).\n *\n * @return {@code true} if a successful.\n */\n StoragePrimitive remove(String key);\n\n /**\n * Adds all mappings in {@code val} to this storage object, overwriting any existing values.\n *\n * @see #addAll(String, IStorage)\n */\n void addAll(IStorage val);\n\n /**\n * Adds all mappings in {@code val} to this storage object, where all keys are prefixed with\n * {@code prefix}. Any existing values are overwritten.\n */\n void addAll(String prefix, IStorage val);\n\n /**\n * @return All stored keys.\n * @see #getKeys(String)\n */\n Collection<String> getKeys();\n\n /**\n * @return A collection of all stored keys matching the given prefix, or all stored keys if the prefix is\n * {@code null}.\n */\n Collection<String> getKeys(@Nullable String prefix);\n\n /**\n * @return {@code true} if this storage object contains a mapping for the given key.\n */\n boolean contains(String key);\n\n /**\n * Returns raw value stored under the given key.\n */\n StoragePrimitive get(String key);\n\n /**\n * Returns value stored under the given key converted to a boolean.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n boolean getBoolean(String key, boolean defaultValue);\n\n /**\n * Convenience method for retrieving a 32-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to int.\n *\n * @see #getDouble(String, double)\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Convenience method for retrieving a 64-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to long.\n *\n * @see #getDouble(String, double)\n */\n long getLong(String keyTotal, long defaultValue);\n\n /**\n * Returns value stored under the given key converted to a double.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n double getDouble(String key, double defaultValue);\n\n /**\n * Returns value stored under the given key converted to a string.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Stores a value under the given key. If {@code null}, removes any existing mapping for the given key\n * instead.\n */\n void set(String key, @Nullable StoragePrimitive val);\n\n /**\n * Stores a boolean value under the given key.\n *\n * @see #setString(String, String)\n */\n void setBoolean(String key, boolean val);\n\n /**\n * Convenience method for storing an integer. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setInt(String key, int val);\n\n /**\n * Convenience method for storing a long. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setLong(String key, long val);\n\n /**\n * Stores a double-precision floating point value under the given key.\n *\n * @see #setString(String, String)\n */\n void setDouble(String key, double val);\n\n /**\n * Stores a string value under the given key.\n *\n * @param val The value to store. If {@code null}, removes any existing mapping for the given key instead.\n */\n void setString(String key, String val);\n\n}",
"public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}",
"public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}",
"public interface BlockStorageManagementController extends StorageController {\n\n /**\n * Add Storage system to SMIS Provider\n * \n * @param storage : URI of the storage system to add to the providers\n * @param providers : array of URIs where this system must be added\n * @param primaryProvider : indicate if the first provider in the list must\n * be treated as the active provider\n * @throws InternalException\n */\n public void addStorageSystem(URI storage, URI[] providers, boolean primaryProvider, String opId) throws InternalException;\n\n /**\n * Validate storage provider connection.\n * \n * @param ipAddress the ip address\n * @param portNumber the port number\n * @param interfaceType\n * @return true, if successful\n */\n public boolean validateStorageProviderConnection(String ipAddress, Integer portNumber, String interfaceType);\n}",
"public interface StorageTakeRecService {\n\n\n /**\n * 根据库位查询两天之内的盘点单信息\n * @return\n */\n StorageTakeRec getStorageTakeRecByStorLocaCode(StorageLocation storageLocation);\n /**\n * 更新盘点单信息\n * @return\n */\n StorageTakeRec addStorageTakeRec(StorageTakeRec storageTakeRec);\n\n /**\n * 清空库位此种扫描状态下的单据扫描信息\n * @param storageTakeRec\n * @return\n */\n boolean clearByStorageTakeRec(StorageTakeRec storageTakeRec);\n}",
"public interface Storage extends ClientListStorage, UserPrefsStorage, PolicyListStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;\n\n @Override\n Path getClientListFilePath();\n\n @Override\n Optional<ReadOnlyClientList> readClientList() throws DataConversionException, IOException;\n\n @Override\n void saveClientList(ReadOnlyClientList clientList) throws IOException;\n\n @Override\n Path getPolicyListFilePath();\n\n @Override\n Optional<PolicyList> readPolicyList() throws DataConversionException, IOException;\n\n @Override\n void savePolicyList(PolicyList policyList) throws IOException;\n}",
"protected abstract RegistryStorage storage();",
"@Override\n @Path(\"/storages/{sid}\")\n public IStorageResource findStorage(@PathParam(\"sid\") int storageId) {\n return new StorageResource(provider.getProviderId(), cluster.getClusterId(), storageId);\n }",
"public interface SerializableStorage {\n\n /**\n * Method to save the binary data\n *\n * @param uuid identifier for the data\n * @param context binary data to save\n * @throws FailedToStoreDataInStorage in case when storage has failed to save the data\n */\n void store(UUID uuid, byte[] context) throws FailedToStoreDataInStorage;\n\n /**\n * Method to retrieve stored data\n *\n * @param uuid identifier for the data\n * @return binary data\n * @throws FailedToRetrieveStorageData in case when storage has faile to retrieve the data\n * @throws DataNotFoundInStorage in case when data has not been found\n */\n byte[] retrieve(UUID uuid) throws FailedToRetrieveStorageData, DataNotFoundInStorage;\n\n /**\n * Method to delete stored data from storage\n *\n * @param uuid identifier for the data\n * @throws DataNotFoundInStorage in case when data has not been found\n * @throws FailedToDeleteDataInStorage in case when storage has failed to delete the data\n */\n void delete(UUID uuid) throws DataNotFoundInStorage, FailedToDeleteDataInStorage;\n\n /**\n * Method to retrieve an occupied data size. Lets suppose it measured in bytes\n * @return occupied place size in bytes\n */\n long getOccupiedSize();\n}",
"StorageEntity getStorageById(Integer id);",
"@Override\n\tpublic void setStorage() {\n\t\tcom.setStorage(\"256g SSD\");\n\t}",
"public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}",
"public StorageUnit beStorageUnit();",
"public Storage getStorage() {\n return this.storage;\n }",
"public DataStorage getDataStorage();",
"void saveStorage(StorageEntity storage);",
"private InternalStorage() {}",
"public interface StorageInRecStateService {\n /**\n * 获取订单状态\n */\n int getStorageInRecState(String recNumber);\n\n /**\n * 添加入库单状态信息\n * @param recNumber\n * @param recState\n * @return\n */\n boolean addStorageInRecState(String recNumber,int recState);\n /**\n * 更新入库单状态信息\n * @param recNumber\n * @param recState\n * @return\n */\n boolean updateStorageInRecState(String recNumber,int recState);\n\n /**\n * 获取分拣未入仓单据\n * @return\n */\n StorageInRec getFjNoRCRec();\n}",
"public void setStorage(Storage storage) {\n this.storage = storage;\n }",
"@Override\r\n\tpublic void addStorageUnit() {\r\n\t}",
"public void setStorageSize(Integer storageSize) {\n\t this.storageSize = storageSize;\n\t}",
"protected void setStorage(IStorage aStorage)\n\t{\n\n\t\tthis.storage = aStorage;\n\t}",
"public interface Storage {\n boolean StoreResultImages(String query, JsonNode results, int pageNum);\n\n}",
"public Storage(String s){\n this.path=s;\n }",
"int getItemStorage();",
"public interface NamedStorage extends Iterable<String>, AutoCloseable {\n\n /**\n * Gets data stored by specified key and puts it to the provided stream.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to process data\n * @return true if data was found, false otherwise\n */\n boolean getInto(String key, OutputStream stream);\n\n /**\n * Saves data from stream using provided key. If there was data for this key it will be overwritten with new data.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to get data from\n */\n void saveFrom(String key, InputStream stream);\n\n /**\n * Checks that there is data stored for provided key\n * @param key data key\n * @return true if there is data for this key, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Deletes key and associated data from storage. Does nothing if there is no such key in storage\n * @param key\n */\n void delete(String key);\n\n /**\n *\n * @return iterator for all keys. Order of keys is unknown.\n */\n Iterator<String> iterator();\n\n /**\n * Closes storage and flushes all changes on disk.\n */\n void close();\n\n /**\n * Copies all data to the specified storage\n * @param storage\n */\n void cloneTo(NamedStorage storage);\n}",
"public interface ExternalBlobIO {\n /**\n * Write data to blob store\n * @param in: InputStream containing data to be written\n * @param actualSize: size of data in stream, or -1 if size is unknown. To be used by implementor for optimization where possible\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return locator string for the stored blob, unique identifier created by storage protocol\n * @throws IOException\n * @throws ServiceException\n */\n String writeStreamToStore(InputStream in, long actualSize, Mailbox mbox) throws IOException, ServiceException;\n\n /**\n * Create an input stream for reading data from blob store\n * @param locator: identifier string for the blob as returned from write operation\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return InputStream containing the data\n * @throws IOException\n */\n InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;\n\n /**\n * Delete a blob from the store\n * @param locator: identifier string for the blob\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return true on success false on failure\n * @throws IOException\n */\n boolean deleteFromStore(String locator, Mailbox mbox) throws IOException;\n}",
"public interface IWritableStorage extends IStorage {\n\n\tpublic void setContents(InputStream source, IProgressMonitor monitor) throws CoreException;\n\t\n\tpublic IStatus validateEdit(Object context);\n}",
"@Override\n public boolean isStorageConnected() {\n return true;\n }",
"public Storage() {\n\n }",
"public interface Storage {\n\n public boolean store(Message message) throws JMSException;\n\n}",
"public Integer getStorageSize() {\n\t return this.storageSize;\n\t}",
"public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\n}",
"public DefaultStorage() {\n }",
"public interface Storage {\n String SPLITTER = \" &&& \";\n\n /**\n * Gets the list of tasks held by the storage.\n * @return the list of tasks\n */\n TaskList getList();\n\n /**\n * Writes the task to the storage file.\n * @param task the task that is to be written in the task\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void addToList(Task task) throws InvalidCommandException;\n\n /**\n * Re-writes the storage file because of deletion or marking-as-done executed.\n * @param list the new task list used for updating the storage file\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void reWrite(TaskList list) throws InvalidCommandException;\n}",
"public interface OssFileService {\n Result putFile(String fileName, InputStream inputStream, String key, String token);\n}",
"ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;",
"public String getStoragePath() {\n return this.storagePath;\n }",
"public IntegerStorage getiStorage() {\n\t\treturn iStorage;\n\t}",
"public IntegerStorage getiStorage() {\n\t\treturn iStorage;\n\t}",
"void editStorage(StorageEntity storage);",
"public StorageResource() {\n }",
"public List<VPlexStorageSystemInfo> getStorageSystemInfo() throws VPlexApiException {\n s_logger.info(\"Request for storage system info for VPlex at {}\", _baseURI);\n return _discoveryMgr.getStorageSystemInfo();\n }",
"private void uploadFromDataStorage() {\n }",
"public IStorage getStorage(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tif (svnRemResource != null) {\n \t\t\t\t\t\treturn svnRemResource.getStorage(monitor);\n \t\t\t\t\t}\n \n \t\t\t\t\tLong revisionNum = Long.decode(getId());\n \t\t\t\t\treturn resolveStorage(monitor, revisionNum, repository.getLocation(), getPath());\n \t\t\t\t}",
"public interface InternalStorageInterface {\n\n boolean isUserLogged();\n\n void saveToken(String token);\n\n void saveUser(User user);\n\n User getUser();\n\n String getToken();\n\n void onLogOut();\n\n void saveProductId (Integer id);\n\n int getProductId();\n\n}",
"public interface CheckStorageService {\n Date latestVersion();\n}",
"public interface BlobStore {\n\n /**\n * Validation pattern for namespace.\n */\n public static Pattern VALID_NAMESPACE_PATTERN = Pattern.compile(\"[A-Za-z0-9_-]+\");\n\n\n /**\n * Validation pattern for id.\n */\n public static Pattern VALID_ID_PATTERN = Pattern.compile(\"[A-Za-z0-9_.:-]+\");\n\n /**\n * Store a new object inside the blob store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @param content The actual content.\n * @throws StageException\n */\n public void store(String namespace, String id, long version, String content) throws StageException;\n\n /**\n * Return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Latest version (usual integer comparison)\n * @throws StageException\n */\n public long latestVersion(String namespace, String id) throws StageException;\n\n /**\n * Validates if given object exists on at least one version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return If given object in given namespace exists\n */\n public boolean exists(String namespace, String id);\n\n /**\n * Validates if given object exists on given version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return If given object on given in given namespace exists\n */\n public boolean exists(String namespace, String id, long version);\n\n /**\n * Return all versions associated with given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Set of all stored versions.\n * @throws StageException\n */\n public Set<Long> allVersions(String namespace, String id);\n\n /**\n * Retrieve given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return Object itself\n * @throws StageException\n */\n public String retrieve(String namespace, String id, long version) throws StageException;\n\n /**\n * Sub-interface to encapsulate tuple of content with it's version.\n */\n public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }\n\n /**\n * Convenience method to return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Object itself\n * @throws StageException\n */\n public VersionedContent retrieveLatest(String namespace, String id) throws StageException;\n\n /**\n * Delete given object from the store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @throws StageException\n */\n public void delete(String namespace, String id, long version) throws StageException;\n\n /**\n * Delete all versions of given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @throws StageException\n */\n public void deleteAllVersions(String namespace, String id) throws StageException;\n}",
"public interface CameraStorage {\n\n /**\n * Lists all of support storage's type\n */\n public static enum STORAGE_TYPE {\n LOCAL_DEFAULT,\n REMOTE_DEFAULT //not implemented\n }\n\n /**\n * Sets the root path which can be a file description, uri, url for storage accessing\n *\n * @param root\n */\n public void setRoot(String root);\n\n /**\n * Gets the root path which is a file path, uri, url etc.\n *\n * @return\n */\n public String getRoot();\n\n /**\n * Saves a record to storage\n *\n * @param record\n * @return\n */\n public boolean save(CameraRecord record);\n\n /**\n * Gets a list of thumbnails which are used to represent the record that accessing from storage\n *\n * @return\n */\n public List<CameraRecord> loadThumbnail();\n\n /**\n * Loads a resource of record which can be a image or video\n *\n * @param record\n * @return\n */\n public Object loadResource(CameraRecord record);\n\n}",
"public IStorage getStorage() throws CoreException\n\t{\n\n\t\treturn this.storage;\n\t}",
"public interface DBStorage {\n \n /**\n * Get the name of the storage vendor (DB vendor name)\n *\n * @return name of the storage vendor (DB vendor name)\n */\n String getStorageVendor();\n \n /**\n * Can this storage handle the requested database?\n *\n * @param dbm database meta data\n * @return if storage can handle the requested database\n */\n boolean canHandle(DatabaseMetaData dbm);\n \n /**\n * Get the ContentStorage singleton instance\n *\n * @param mode used storage mode\n * @return ContentStorage singleton instance\n * @throws FxNotFoundException if no implementation was found\n */\n ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;\n \n /**\n * Get the EnvironmentLoader singleton instance\n *\n * @return EnvironmentLoader singleton instance\n */\n EnvironmentLoader getEnvironmentLoader();\n \n /**\n * Get the SequencerStorage singleton instance\n *\n * @return SequencerStorage singleton instance\n */\n SequencerStorage getSequencerStorage();\n \n /**\n * Get the TreeStorage singleton instance\n *\n * @return TreeStorage singleton instance\n */\n TreeStorage getTreeStorage();\n \n /**\n * Get the LockStorage singleton instance\n *\n * @return LockStorage singleton instance\n */\n LockStorage getLockStorage();\n \n /**\n * Get a data selector for a sql search\n *\n * @param search current SqlSearch to operate on\n * @return data selector\n * @throws FxSqlSearchException on errors\n */\n DataSelector getDataSelector(SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get a data filter for a sql search\n *\n * @param con an open and valid connection\n * @param search current SqlSearch to operate on\n * @return DataFilter\n * @throws FxSqlSearchException on errors\n */\n DataFilter getDataFilter(Connection con, SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get the CMIS SQL Dialect implementation\n *\n * @param environment environment\n * @param contentEngine content engine in use\n * @param query query\n * @param returnPrimitives return primitives?\n * @return CMIS SQL Dialect implementation\n */\n SqlDialect getCmisSqlDialect(FxEnvironment environment, ContentEngine contentEngine, CmisSqlQuery query, boolean returnPrimitives);\n \n /**\n * Get the database vendor specific Boolean expression\n *\n * @param flag the flag to get the expression for\n * @return database vendor specific Boolean expression for <code>flag</code>\n */\n String getBooleanExpression(boolean flag);\n \n /**\n * Get the boolean <code>true</code> expression string for the database vendor\n *\n * @return the boolean <code>true</code> expression string for the database vendor\n */\n String getBooleanTrueExpression();\n \n /**\n * Get the boolean <code>false</code> expression string for the database vendor\n *\n * @return the boolean <code>false</code> expression string for the database vendor\n */\n String getBooleanFalseExpression();\n \n /**\n * Escape reserved words properly if needed\n *\n * @param query the query to escape\n * @return escaped query\n */\n String escapeReservedWords(String query);\n \n /**\n * Get a database vendor specific \"IF\" function\n *\n * @param condition the condition to check\n * @param exprtrue expression if condition is true\n * @param exprfalse expression if condition is false\n * @return database vendor specific \"IF\" function\n */\n String getIfFunction(String condition, String exprtrue, String exprfalse);\n \n /**\n * Get the database vendor specific operator to query regular expressions\n *\n * @param column column to match\n * @param regexp regexp to match the column against\n * @return database vendor specific operator to query regular expressions\n */\n String getRegExpLikeOperator(String column, String regexp);\n \n /**\n * Get the database vendor specific statement to enable or disable referential integrity checks.\n * When in a transaction, be sure to check {@link #isDisableIntegrityTransactional()}\n * since not all databases support this in a transactional context.\n *\n * @param enable enable or disable checks?\n * @return database vendor specific statement to enable or disable referential integrity checks\n */\n String getReferentialIntegrityChecksStatement(boolean enable);\n \n /**\n * Return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context.\n *\n * @return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context\n */\n boolean isDisableIntegrityTransactional();\n \n /**\n * Get the sql code of the statement to fix referential integrity when removing selectlist items\n *\n * @return sql code of the statement to fix referential integrity when removing selectlist items\n */\n String getSelectListItemReferenceFixStatement();\n \n /**\n * Get a database vendor specific timestamp of the current time in milliseconds as Long\n *\n * @return database vendor specific timestamp of the current time in milliseconds as Long\n */\n String getTimestampFunction();\n \n /**\n * Get a database vendor specific concat statement\n *\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat(String... text);\n \n /**\n * Get a database vendor specific concat_ws statement\n *\n * @param delimiter the delimiter to use\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat_ws(String delimiter, String... text);\n \n /**\n * If a database needs a \" ... from dual\" to generate valid queries, it is returned here\n *\n * @return from dual (or equivalent) if needed\n */\n String getFromDual();\n \n /**\n * Get databas evendor specific limit statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @return limit statement\n */\n String getLimit(boolean hasWhereClause, long limit);\n \n /**\n * Get database vendor specific limit/offset statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffset(boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get database vendor specific limit/offset statement using the specified variable name\n *\n * @param var name of the variable to use\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get the statement to get the last content change timestamp\n *\n * @param live live version included?\n * @return statement to get the last content change timestamp\n */\n String getLastContentChangeStatement(boolean live);\n \n /**\n * Format a date to be used in a query condition (properly escaped)\n *\n * @param date the date to format\n * @return formatted date\n */\n String formatDateCondition(Date date);\n \n /**\n * Correctly escape a flat storage column if needed\n *\n * @param column name of the column\n * @return escaped column (if needed)\n */\n String escapeFlatStorageColumn(String column);\n \n /**\n * Returns true if the SqlError is a foreign key violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a foreign key violation\n */\n boolean isForeignKeyViolation(Exception exc);\n \n /**\n * Returns true if the given exception was caused by a query timeout.\n *\n * @param e the exception to be examined\n * @return true if the given exception was caused by a query timeout\n * @since 3.1\n */\n boolean isQueryTimeout(Exception e);\n \n /**\n * Does the database rollback a connection if it encounters a constraint violation? (eg Postgres does...)\n *\n * @return database rollbacks a connection if it encounters a constraint violation\n */\n boolean isRollbackOnConstraintViolation();\n \n /**\n * Returns true if the SqlError is a unique constraint violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a unique constraint violation\n */\n boolean isUniqueConstraintViolation(Exception exc);\n \n /**\n * Returns true if the given SqlException indicates a deadlock.\n *\n * @param exc the exception\n * @return true if the given SqlException indicates a deadlock.\n * @since 3.1\n */\n boolean isDeadlock(Exception exc);\n \n /**\n * When accessing the global configuration - does the config table has to be prefixed with the schema?\n * (eg in postgres no schemas are supported for JDBC URL's hence it is not required)\n *\n * @return access to configuration tables require the configuration schema to be prepended\n */\n boolean requiresConfigSchema();\n \n /**\n * Get a connection to the database using provided parameters and (re)create the database and/or schema\n *\n * @param database name of the database\n * @param schema name of the schema\n * @param jdbcURL JDBC connect URL\n * @param jdbcURLParameters optional JDBC URL parameters\n * @param user name of the db user\n * @param password password\n * @param createDB create the database?\n * @param createSchema create the schema?\n * @param dropDBIfExist drop the database if it exists?\n * @return an open connection to the database with the schema set as default\n * @throws Exception on errors\n */\n Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;\n \n /**\n * Initialize a configuration schema\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Initialize a division\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initDivision(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Export all data of a division to an OutputStream as ZIP\n *\n * @param con an open and valid connection to the database to be exported\n * @param out OutputStream that will be used to create the zip file\n * @throws Exception on errors\n */\n void exportDivision(Connection con, OutputStream out) throws Exception;\n \n /**\n * Import a complete division from a zip stream\n *\n * @param con an open and valid connection\n * @param zip zip archive that contains an exported divison\n * @throws Exception on errors\n */\n void importDivision(Connection con, ZipFile zip) throws Exception;\n }",
"public void setStorage(com.hps.july.persistence.StoragePlaceAccessBean newStorage) {\n\tstorage = newStorage;\n}",
"public interface IDocumentStorage<L> {\n\t/**\n\t * Returns the current location (of the current document).\n\t * @return the current location\n\t */\n\tpublic L getDocumentLocation();\n\n\t/**\n\t * Sets the current location (of the current document), can be used by a save-as action.\n\t * @param documentLocation\n\t */\n\tpublic void setDocumentLocation(L documentLocation);\n\n\t/**\n\t * Adds an IDocumentStorageListener that will be notified when the current location changes.\n\t * @param documentStorageListener\n\t */\n\n\tpublic void addDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\t/**\n\t * Removes an IDocumentStorageListener.\n\t * @param documentStorageListener\n\t */\n\tpublic void removeDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\n\t/**\n\t * Creates a new documents and sets it as the current one, can be used by a new action.\n\t */\n\tpublic void newDocument();\n\n\t/**\n\t * Loads a documents from the provided location and sets it as the current one, can be used by an open action.\n\t */\n\tpublic void openDocument(L documentLocation) throws IOException;\n\n\t/**\n\t * Saves the current document (to the current location), can be used by a save action.\n\t */\n\tpublic void saveDocument() throws IOException;\n\n\t/**\n\t * Returns the set of IDocumentImporters, can be used by an import action.\n\t * @return\n\t */\n\tpublic Collection<IDocumentImporter> getDocumentImporters();\n}",
"@Override\n public void executeStorage(TaskList items, Ui ui, Storage storage) {\n }",
"@Override\n public void executeStorage(TaskList items, Ui ui, Storage storage) {\n }",
"public StorageDTO getStorage(Long storage_id) {\n EntityManager em = getEntityManager();\n Storage storageDTO = em.find(Storage.class, storage_id);\n return new StorageDTO(storageDTO);\n }",
"void replaceStorage(OStorage iNewStorage);",
"public interface AfterSaleService extends BaseService<AfterSale> {\r\n\r\n\r\n void uplaodPicture(Long orderid, MultipartFile[] myavatar) throws IOException;\r\n\r\n List<AfterSale> afterSales(Long orderid);\r\n\r\n}",
"public interface StorageListener {\n\n /***\n * <p>Event listener for all starge node changes.</p>\n *\n * @param event the type of event causing the call\n * @param oldNode the old node content\n * @param newNode the new node content\n */\n void gotStorageChange(EventType event, Node oldNode, Node newNode);\n\n}",
"public interface FileService {\n//todo\n\n}",
"public PersistenceServiceXStream() {\n storageServiceClassName = ConfigurationProperties.getConfiguredStorageService();\n }",
"public interface UserStorage {\n\tpublic void add(User user); \n\tpublic void put(User user);\n\tpublic User get(String username); \n\tpublic void remove(String username); \n\tpublic List<User> list(); \n\tpublic List<User> list(int pageNo, int pageSize);\n}",
"protected abstract void updateStorage(MasterMetaStorage storage) throws JSONException;",
"LockStorage getLockStorage();",
"public long getTotalStorage() {\n return totalStorage;\n }",
"public interface FileService extends IService<FileEntity> {\n}",
"public interface StorageCallbacks {\n void onNewTrip(Trip trip);\n void onUpdatedTrip(Trip updatedTrip);\n void onDeletedTrip(String deletedTripId);\n void onFullRefresh();\n}",
"void requestStoragePermission();",
"public interface IFileService {\n\n\tpublic List<String> load(String fileName);\n}",
"public interface IStore<T> {\t\n\t\n\tpublic final static int default_capacity = 999;\t\n\t\n\tpublic int getSize(); //Return the number of objects stored\n\t//public void setSizer(IStoreSizer storeSizer); //Allows for size to be determined by an external party. \n\tpublic T get(int index); // Return the object stored at the corresponding index value\n\tpublic int getCapacity(); //Return the maximum number of IRegisteredParcel objects that can be stored by this Store\n\tpublic T put(int index, T t); //Place input Object at the specified index and return existing object\n\tpublic void clear(); //return oldStore and set new . used for Clearing the store.\n\tpublic IStore<T> clone(); //Return a clone of the current store that is an image frozen at invocation time.\n}",
"public interface FileService extends PublicService {\n\n /**\n * Retrieves reference to a file by fileName\n */\n FileReference getFile(String fileName);\n \n /**\n * Creates a reference for a new file.\n * Use FileReference.getOutputStream() to set content for the file.\n * Requires user to be a member of a contributer or full roles.\n * @param fileName\n * @param toolId - optional parameter\n * @return\n */\n FileReference createFile(String fileName, String toolId);\n \n /**\n * Deletes the file.\n * Requires user to be a member of a contributer or full roles.\n * @param fileReferece\n */\n void deleteFile(FileReference fileReferece);\n \n /**\n * Returns a url to the file\n * Property WebSecurityUtil.DBMASTER_URL (dbmaster.url) is used as a prefix\n */\n URL toURL(FileReference fileReferece);\n}",
"@Override\n @GET\n @Path(\"/storages\")\n @Produces(\"application/json\")\n public Response getStorages() {\n String json = String.format(\"Provider %d cluster %d storages.\", provider.getProviderId(), cluster.getClusterId());\n return Response.ok(json).build();\n }",
"@Override\n @POST\n @Path(\"/storages\")\n public Response createStorage() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }",
"long storageSize();",
"public Storage(String filePath) {\n this.filePath = filePath;\n }",
"public Storage(String filePath) {\n this.filePath = filePath;\n }",
"public ChassisStashStorage() {\n super();\n }",
"public void setStorageLocation(String storageLocation) {\n this.storageLocation = storageLocation;\n }",
"public abstract FlowNodeStorage instantiateStorage(MockFlowExecution exec, File storageDirectory);",
"public interface IEmailStorageProvider extends IXMLSerializable\r\n{\r\n /**\r\n * Holds the name of the attribute which holds the parameter name.\r\n */\r\n String ATTRIBUTE_NAME = \"name\";\r\n /**\r\n * Holds the name of the attribute type.\r\n */\r\n String ATTRIBUTE_TYPE = \"type\";\r\n /**\r\n * Holds the name of the tag 'container'.\r\n */\r\n String ELEMENT_CONTAINER = \"container\";\r\n /**\r\n * Holds the name of the tag 'email'.\r\n */\r\n String ELEMENT_EMAIL = \"email\";\r\n /**\r\n * Holds the name of the tag 'emails'.\r\n */\r\n String ELEMENT_EMAILS = \"emails\";\r\n /**\r\n * Holds the name of the tag 'id'.\r\n */\r\n String ELEMENT_ID = \"id\";\r\n /**\r\n * Holds the name of the tag that identifies a parameter.\r\n */\r\n String ELEMENT_PARAMETER = \"parameter\";\r\n /**\r\n * Holds the name of the tag params which wraps the parameters.\r\n */\r\n String ELEMENT_PARAMETERS = \"parameters\";\r\n\r\n /**\r\n * This method will persist the contents of the Rule Context container. This allows crash\r\n * recovery. Based on the content of the rule context and the actual trigger definition the\r\n * processing could be restarted.\r\n *\r\n * <p>The storage provider must use the rccContext.setStorageID to inform the container of it's\r\n * storage ID.</p>\r\n *\r\n * <p>When the container is persisted it will also add the SYS_XML_STORAGE_DETAILS variable to\r\n * the rule context.</p>\r\n *\r\n * @param rccContext The context of the rule.\r\n * @param tTrigger The definition of the trigger when this context is processed.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void addRuleContext(RuleContextContainer rccContext, ITrigger tTrigger)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * Adds a trigger to the store.\r\n *\r\n * <p>This method is used for storing trigger definitions in the store. If the implementation\r\n * provides persistent trigger storage, the trigger should be persisted immediately. No\r\n * notification will be sent to the store in order to trigger explicit data storing as the\r\n * persistence of the triggers must be guaranteed immediately after their insertion, regardless\r\n * of external circumstances as power failures or system crashes.</p>\r\n *\r\n * <p>Only triggers that are defined in the global configuration of a mailbox should be stored\r\n * as volatile triggers, i.e. with the isPersistent argument set to <code>false</code>.</p>\r\n *\r\n * @param tTrigger The trigger to be stored.\r\n * @param bIsPersistent <code>True</code> if the trigger should be stored persistently,\r\n * <code>false</code> for volatile triggers.\r\n *\r\n * @throws StorageProviderException if something goes wrong while storing the trigger.\r\n */\r\n void addTrigger(ITrigger tTrigger, boolean bIsPersistent)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * Checks if the trigger with the given name is contained in the store.\r\n *\r\n * @param sTriggerName The name of the trigger.\r\n *\r\n * @return <code>True</code> if a trigger with that name exists, <code>false</code> otherwise.\r\n */\r\n boolean containsTrigger(String sTriggerName);\r\n\r\n /**\r\n * This method gets the XML structure containing the information about the given container.\r\n *\r\n * <p>The XML structure is defined in the configuration.xsd</p>\r\n *\r\n * @param storageID The ID of the storage.\r\n *\r\n * @return The created container XML.\r\n *\r\n * @throws StorageProviderException In case of any exceptions\r\n */\r\n int getContainerDetailXML(String storageID)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * This method gets the DN of the SOAP processor in which this storage provider is running.\r\n *\r\n * @return The DN of the SOAP processor in which this storage provider is running.\r\n */\r\n String getSoapProcessorDN();\r\n\r\n /**\r\n * Returns the trigger instance with the given name.\r\n *\r\n * @param sTriggerName The name of the trigger to return.\r\n *\r\n * @return The trigger with the given name or <code>null</code> if no such trigger exists.\r\n */\r\n ITrigger getTrigger(String sTriggerName);\r\n\r\n /**\r\n * Returns a collection containing all triggers in this store.\r\n *\r\n * <p>The collection that is returned by this method should never be modified by the caller. In\r\n * fact it is strongly advised to implement this method in a way that creates an unmodifiable\r\n * collection.</p>\r\n *\r\n * <p>If no triggers are contained in the store, an empty collection is returned. The return\r\n * value will never be <code>null</code>.</p>\r\n *\r\n * @return All triggers in the store.\r\n */\r\n Collection<ITrigger> getTriggers();\r\n\r\n /**\r\n * Returns a collection containing all triggers in this store that apply to a specific folder.\r\n *\r\n * <p>The collection that is returned by this method should never be modified by the caller. In\r\n * fact it is strongly advised to implement this method in a way that creates an unmodifiable\r\n * collection.</p>\r\n *\r\n * <p>If no appropriate triggers are contained in the store, an empty collection is returned.\r\n * The return value will never be <code>null</code>.</p>\r\n *\r\n * <p>The trigger list obeys the priority set for a certain trigger. The lower the number, the\r\n * higher the trigger will be in the list. If 2 triggers have the same priority the order is NOT\r\n * guaranteed.</p>\r\n *\r\n * @param sFolderName The name if the folder for which the triggers should be fetched.\r\n *\r\n * @return All triggers in the store that apply to a specific folder.\r\n */\r\n Collection<ITrigger> getTriggers(String sFolderName);\r\n\r\n /**\r\n * This method is called to initialize the the storage provider. Typically you have database\r\n * details or folder details in the configuration.\r\n *\r\n * <p>Extracts the parameters and makes them easily available.</p>\r\n *\r\n * <p>This method extracts the parameters from the XML configuration and puts them in a map in\r\n * order to make them more easily available for derived classes.</p>\r\n *\r\n * @param ebEmailBox The email box the message originated from.\r\n * @param iConfigurationNode The XML containing the configuration.\r\n * @param xmi The XPath meta info to use. The prefix ns should be mapped to\r\n * the proper namespace.\r\n * @param sSoapProcessorDN The DN of the SOAP processor in which the storage provider is\r\n * running.\r\n * @param mcParent The parent managed component.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void initialize(IEmailBox ebEmailBox, int iConfigurationNode, XPathMetaInfo xmi,\r\n String sSoapProcessorDN, IManagedComponent mcParent)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * Returns the persistence status of a named trigger.\r\n *\r\n * <p>This method will return <code>true</code> only if the specified trigger is actually\r\n * contained in persistent storage. Note that this method may return <code>false</code> even if\r\n * persistence was requested when adding the trigger - if a store implementation doesn't support\r\n * persistence, the flag will be ignored during insertion.</p>\r\n *\r\n * <p>If no trigger exists with the given name, <code>false</code> is returned.</p>\r\n *\r\n * @param sTriggerName The name of the trigger.\r\n *\r\n * @return <code>True</code> if the trigger is stored persistently, <code>false</code>\r\n * otherwise.\r\n */\r\n boolean isTriggerPersistent(String sTriggerName);\r\n\r\n /**\r\n * Removes the named trigger from the store.\r\n *\r\n * <p>This method should not be used for non-persistent triggers as the results may be\r\n * unexpected. If a non-persistent trigger that was created from the mailbox config is removed,\r\n * it will automatically be re-created when the connector is restartet. This will not be\r\n * expected or desired in most cases, so only dynamic triggers should be removed.</p>\r\n *\r\n * <p>If no trigger with the given name exists in this store, the call will be ignored.</p>\r\n *\r\n * @param sTriggerName The name of the trigger to be removed.\r\n *\r\n * @throws StorageProviderException If the trigger couldn't be removed from storage.\r\n */\r\n void removeTrigger(String sTriggerName)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * This method sets the status of all messages to error. This means that either the actions\r\n * failed or that the actual trigger message failed.\r\n *\r\n * @param rccContext The rule context container containing all messages.\r\n * @param sStatusInfo The exception details for this error.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void setContainerStatusActionError(RuleContextContainer rccContext, String sStatusInfo)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * This method sets the status of the given container to completed. This means that the messages\r\n * were delivered properly.\r\n *\r\n * @param rccContext The rule context container containing all messages.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void setContainerStatusCompleted(RuleContextContainer rccContext)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * This method sets the status of all messages to error. This means that either the actions\r\n * failed or that the actual trigger message failed.\r\n *\r\n * @param rccContext The rule context container containing all messages.\r\n * @param sStatusInfo The exception details for this error.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void setContainerStatusError(RuleContextContainer rccContext, String sStatusInfo)\r\n throws StorageProviderException;\r\n\r\n /**\r\n * This method will update the status in the storage provider to 'in progress' This means that\r\n * the InboundEmailConnector is in the process of sending the messages to Cordys. If the process\r\n * crashed during this state we will not be able to restart automatically since we cannot be\r\n * sure that the SOAP call was processed yes or no. So from a UI the end user will have to\r\n * manually decide whether or not the SOAP call can be sent again.\r\n *\r\n * @param rccContext The rule context container containing all messages.\r\n *\r\n * @throws StorageProviderException In case of any exceptions.\r\n */\r\n void setContainerStatusInProgress(RuleContextContainer rccContext)\r\n throws StorageProviderException;\r\n}",
"public HashMap<String, T> getStorage();",
"public interface ProvisioningService {\n\n StorageEntity registerStorage(String name, List<String> tags, Map<String, String> details);\n\n ZoneEntity registerZone(String zoneUuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n PodEntity registerPod(String podUuid, String name, String owner, String zoneUuid, List<String> tags, Map<String, String> details);\n\n ClusterEntity registerCluster(String clusterUuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n HostEntity registerHost(String uuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n void deregisterStorage(String uuid);\n\n void deregisterZone(String uuid);\n\n void deregisterPod(String uuid);\n\n void deregisterCluster(String uuid);\n\n void deregisterHost(String uuid);\n\n void changeState(String type, String entity, Status state);\n\n List<Host> listHosts();\n\n List<PodEntity> listPods();\n\n List<ZoneEntity> listZones();\n\n List<StoragePool> listStorage();\n\n ZoneEntity getZone(String id);\n}",
"public interface IQueueShardingService {\n\n void putShard(String queue, Subscription subscription);\n\n Subscription removeShard(String queue, Subscription subscription);\n\n int size(String queue);\n}",
"public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }",
"byte[] retrieve(UUID uuid) throws FailedToRetrieveStorageData, DataNotFoundInStorage;",
"public interface StorageDao {\n\n /**\n * Connects to database and returns {@link Storage} object by id of dessert.\n *\n * @param dessertId is dessert's id value.\n * @return {@link Storage} if storage data found, null if not.\n * @throws DaoException when problems with database connection occurs.\n */\n Storage findByDessertId(Integer dessertId) throws DaoException;\n\n /**\n * Connects to database and update storage data.\n *\n * @param storage is {@link Storage} object that contains all info about storage for update.\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and add new storage.\n *\n * @param storage is {@link Storage} object that contains all info about storage.\n * @throws DaoException when problems with database connection occurs.\n */\n void insertStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and set count to the storage by dessert ID.\n *\n * @param dessertId is dessert ID value.\n * @param count is count of dessert in storage\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorageByDessert(Integer dessertId, Integer count) throws DaoException;\n}",
"@Override\n public void process(Path path, FileStorage storage) {\n }",
"public Storage(int storageSize) {\n\t\tstorageSpace = new Block[storageSize];\n\t}",
"boolean needsStoragePermission();",
"public java.lang.Integer getStorageCard() throws java.rmi.RemoteException;",
"public int getStorageplace() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"storageplace\")).intValue());\n }"
] | [
"0.74224365",
"0.7356732",
"0.7318203",
"0.72917455",
"0.7267412",
"0.7207811",
"0.71176416",
"0.71111923",
"0.7042514",
"0.69068307",
"0.68654525",
"0.68590057",
"0.67888945",
"0.67848855",
"0.669503",
"0.668053",
"0.66785055",
"0.6665016",
"0.66646385",
"0.6594588",
"0.6579072",
"0.6564679",
"0.6456449",
"0.64436775",
"0.64058506",
"0.6399265",
"0.6398802",
"0.6380799",
"0.63687164",
"0.6354312",
"0.62710136",
"0.62695444",
"0.6264939",
"0.62488836",
"0.6238734",
"0.6223504",
"0.6202345",
"0.61960864",
"0.61294466",
"0.61174214",
"0.6103965",
"0.6097122",
"0.60831153",
"0.60705274",
"0.6061388",
"0.60539013",
"0.6036625",
"0.602843",
"0.6010974",
"0.6010974",
"0.60062325",
"0.5988944",
"0.5986645",
"0.5977073",
"0.59542084",
"0.59487",
"0.59460753",
"0.594199",
"0.5909848",
"0.59004956",
"0.58874726",
"0.5882086",
"0.5876994",
"0.58698034",
"0.58698034",
"0.58629155",
"0.5860853",
"0.5827047",
"0.5817978",
"0.58045",
"0.5802712",
"0.5802309",
"0.57943815",
"0.5785784",
"0.5776163",
"0.57707787",
"0.57659096",
"0.5763493",
"0.5757035",
"0.5752961",
"0.573597",
"0.5735937",
"0.57221276",
"0.5711667",
"0.5707467",
"0.5707467",
"0.5694755",
"0.5693087",
"0.5688499",
"0.5687551",
"0.5683823",
"0.56830734",
"0.56768537",
"0.56680095",
"0.56614935",
"0.5658966",
"0.5658007",
"0.56506634",
"0.56326634",
"0.56326085",
"0.5628757"
] | 0.0 | -1 |
/ Private helper methods Private method to check if a existing news changed by checking the dates | private boolean newsDateHasChanged(String guid, Date newDate) {
String[] whereArgs = { guid };
Cursor query = this.writableDatabase.query(TABLE_NEWS, new String[] { NEWS_DATE }, NEWS_GUID + "=?", whereArgs,
null, null, null);
if (query.getCount() > 0) {
query.moveToFirst();
Date oldDate = new Date(Long.valueOf(query.getString(query.getColumnIndex(NEWS_DATE))));
query.close();
if (newDate.getTime() > oldDate.getTime())
Log.w(TAG, newDate.toLocaleString() + " - " + oldDate.toLocaleString());
return newDate.getTime() > oldDate.getTime();
}
query.close();
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isSeedsInfoUpdated(String tDate){\n \treturn mSharedPref.getBoolean(tDate,false); \t\n }",
"public static boolean isRevdate(java.sql.Date date1,int CUST_ID,int MOVIE_ID) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(CUST_ID, MOVIE_ID);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff > 7 || diff <= 0)\n return false;\n else\n return true;\n }",
"protected boolean areContentsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameContents(news);\n }",
"boolean hasDate();",
"public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }",
"private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }",
"public final boolean hasChangeDateTime() {\n \treturn m_changeDate != 0L ? true : false;\n }",
"boolean isSetFoundingDate();",
"private boolean checkTimeStamp(File file) {\n // uses sharedpreferences\n return (lastUpdate < file.getModifiedDate().getValue());\n }",
"protected boolean areItemsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameItems(news);\n }",
"public boolean isChangeDate(Connection con) throws SQLException {\n String SQL = \"select itm_id from aeItem where itm_type = 'CLASSROOM' and itm_run_ind = 0 and itm_id in \"\n + \"(select cos_itm_id from course where cos_res_id in \"\n + \"(select rcn_res_id from resourcecontent where rcn_res_id_content = ?))\";\n boolean changeDate = true;\n PreparedStatement stmt = null;\n try {\n stmt = con.prepareStatement(SQL);\n stmt.setLong(1, mod_res_id);\n ResultSet rs = stmt.executeQuery();\n if (rs.next()) {\n changeDate = false;\n }\n } finally {\n if (stmt != null) {\n stmt.close();\n }\n }\n return changeDate;\n }",
"String isOoseChangeDateAllowed(Record inputRecord);",
"@Override\n public List<NewsFeed> getAllOutdatedFeeds(IConfigurationManager configurationManager) {\n Cursor catQuery = this.writableDatabase.query(TABLE_CATEGORIES, new String[] { CATEGORIES_ID,\n CATEGORIES_LASTUPDATE, CATEGORIES_INTERVAL }, null, null, null, null, null);\n Map<Long, Boolean> outdatedCategories = new HashMap<Long, Boolean>();\n while (catQuery.moveToNext()) {\n long lastUpdate = catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_LASTUPDATE));\n Log.d(TAG,\n \"categoryId: \"\n + catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID))\n + \" | \"\n + (System.currentTimeMillis() - lastUpdate)\n + \" ms difference | Needed: \"\n + (configurationManager.getConfiguration().getTimeForUpdateInterval(UpdateInterval.values()[catQuery\n .getInt(catQuery.getColumnIndex(CATEGORIES_INTERVAL))])));\n boolean outdated = ((System.currentTimeMillis() - lastUpdate) > (configurationManager.getConfiguration()\n .getTimeForUpdateInterval(UpdateInterval.values()[catQuery.getInt(catQuery\n .getColumnIndex(CATEGORIES_INTERVAL))])));\n outdatedCategories.put(catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID)), outdated);\n }\n\n catQuery.close();\n\n // get news feeds\n List<NewsFeed> newsFeeds = new ArrayList<NewsFeed>();\n\n Cursor query = this.writableDatabase.query(TABLE_FEEDS, null, null, null, null, null, null);\n\n while (query.moveToNext()) {\n if (outdatedCategories.get(query.getLong(query.getColumnIndex(FEEDS_CID)))) {\n NewsFeed newsFeed = new NewsFeed();\n newsFeed.setFeedId(query.getInt(query.getColumnIndex(FEEDS_ID)));\n newsFeed.setParentCategoryId(query.getLong(query.getColumnIndex(FEEDS_CID)));\n newsFeed.setName(query.getString(query.getColumnIndex(FEEDS_NAME)));\n newsFeed.setUrl(query.getString(query.getColumnIndex(FEEDS_URL)));\n newsFeed.setIsActivated(query.getInt(query.getColumnIndex(FEEDS_ACTIVATED)) == 1);\n newsFeeds.add(newsFeed);\n }\n }\n query.close();\n\n return newsFeeds;\n\n }",
"@Override\n public boolean isUpToDate(String s, @Nullable Long oldValue) {\n return true;\n }",
"private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}",
"boolean hasDeliveryDateBefore();",
"public boolean getADateChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aDate, aDateDataSourceValue);\r\n }",
"@Test\n public void testValidateUpdateLifeTimeWithGoodDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(20000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(25000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService).addError(eq(RuleProperty.END_DATE), anyString()); \n }",
"boolean hasTradeDate();",
"boolean hasChangeStatus();",
"boolean hasStatusChanged();",
"Date getDateUpdated();",
"private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}",
"private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }",
"public static boolean compareNotices(Notice upDatedNotice) throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n String textToUpdate = upDatedNotice.getText();\n Notice notice = get(upDatedNotice.getAncestorID());\n int textHash = 0;\n if(notice.getText() != null) {\n textHash = notice.getText().hashCode();\n }\n int updateTextHash = textToUpdate.hashCode();\n if (textHash == updateTextHash) {\n return false;\n }\n session.save(upDatedNotice);\n return true;\n }",
"private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }",
"public boolean verifyDataOfDatePicker(boolean isNewToDoPage) {\n try {\n Calendar cal = Calendar.getInstance();\n int currentDay = cal.get(Calendar.DAY_OF_MONTH);\n int currentMonth = cal.get(Calendar.MONTH);\n int currentYear = cal.get(Calendar.YEAR);\n int focusDay = 0;\n int focusMonth = 0;\n int focusYear = 0;\n // If isNewToDoPage = true, verify in add new to-do page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"click to eleIdDueDate\");\n waitForClickableOfElement(eleXpathChooseDate, \"Date picker\");\n waitForVisibleElement(eleDataPickerToDate, \"Date picker to date\");\n waitForVisibleElement(eleDataPickerToDay, \"Date picker to day\");\n\n focusDay = Integer.parseInt(eleDataPickerToDay.getAttribute(\"text\").trim());\n focusMonth = Integer.parseInt(eleDataPickerToDate.getAttribute(\"data-month\").trim());\n focusYear = Integer.parseInt(eleDataPickerToDate.getAttribute(\"data-year\").trim());\n getLogger().info(\"Day : \" + eleDataPickerToDay.getAttribute(\"text\") + \"Month :\" + eleDataPickerToDate\n .getAttribute(\"data-month\") + \" Year :\" + eleDataPickerToDate.getAttribute(\"data-year\"));\n\n }\n // Compare focus day, month, year with current day, month, year\n if (focusDay != currentDay || focusMonth != currentMonth || focusYear != currentYear) {\n NXGReports.addStep(\"TestScript Failed: Verify data in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Verify data in date picker\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify data in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return true;\n }",
"@Override\n\tpublic boolean update(Dates obj) {\n\t\treturn false;\n\t}",
"public boolean isNew() {\n return this.lastUpdateTime == NOT_YET;\n }",
"private boolean isChangedOdoReading(MaintenanceRequest po){\n\t\tboolean isDiff = false;\n\t\tOdometerReading odoReading = null;\n\t\t\n\t\tif(!MALUtilities.isEmpty(po.getCurrentOdo())){\n\t\t\todoReading = odometerService.getOdometerReading(po);\t\t\t\n\t\t\tif(MALUtilities.isEmpty(odoReading)){\n\t\t\t\tisDiff = true;\n\t\t\t} else {\n\t\t\t\tif(po.getCurrentOdo() != odoReading.getReading() || !po.getActualStartDate().equals(odoReading.getReadingDate())){\n\t\t\t\t\tisDiff = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isDiff;\n\t}",
"public boolean filtersChanged(){\n if(startDateChanged || endDateChanged || stationIdChanged || languageChanged){\n return true;\n }\n return false;\n }",
"boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }",
"private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}",
"private boolean isNewDay(Calendar calDate) {\n\t\tif (days.size() == 0)\r\n\t\t\treturn true;\r\n\r\n\t\t// get the last day entry\r\n\t\tDay day = days.get(days.size() - 1);\r\n\r\n\t\t// we have a new day if\r\n\t\t// 1a. the previous day was different OR\r\n\t\t// 1b. the previous day last entry was before the day begins AND\r\n\t\t// 2. if the time is after a certain hour (i.e. 4 a.m.) AND\r\n\t\t// 3. more then X number of hours have passed since anything changed\r\n\t\tif (calDate.get(Calendar.HOUR_OF_DAY) > Day.BEGINING_HOUR_OF_DAY\r\n\t\t\t\t&& (day.lastTime.get(Calendar.DAY_OF_YEAR) < calDate.get(Calendar.DAY_OF_YEAR) || day.lastTime\r\n\t\t\t\t\t\t.get(Calendar.HOUR_OF_DAY) < Day.BEGINING_HOUR_OF_DAY)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"boolean hasStartDate();",
"public boolean isCollected(News news){\n SQLiteDatabase db = getWritableDatabase();\n return isExist(db, TABLE_FAV_NAME, news, MODE_NO_OP);\n }",
"private boolean checkProjectTaskDates(Project pr)\n\t{\n\t\tfor(Task ts:taskManager.get(\"toInsert\"))\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t}\n\t\tfor(Task ts:taskManager.get(\"toEdit\"))\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\t continue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\tArrayList<Task> tasks=null;\n\t\ttry \n\t\t{\n\t\t\ttasks=db.selectTaskforProjID(project.getProjectID());\n\t\t}\n\t\tcatch (SQLException e) \n\t\t{\n\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\tUI.getCurrent().addWindow(wind);\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor(Task ts:tasks)\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\t continue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t }",
"boolean hasFromDay();",
"@Test\n public void testYesterdayOrBetterComparision() {\n Calendar quietAllowedForFeature = Calendar.getInstance(TimeZone.getTimeZone(\"America/Chicago\"));\n quietAllowedForFeature.setTimeInMillis(DateHelper.MILLIS_PER_DAY * 2);\n // midnight 'now' user local time\n quietAllowedForFeature = DateHelper.asDay(quietAllowedForFeature);\n // midnight day before user local time\n quietAllowedForFeature.add(Calendar.DATE, -1); //1 days quiet ok; add this as per feature setting?\n // last rec'd as user local time\n Date userLastMessageReceived = new Date(DateHelper.MILLIS_PER_DAY * 3);\n // if any messages from module after midnight yesterday (any messages yesterday or newer)\n //System.out.println(quietAllowedForFeature);\n //System.out.println(userLastMessageReceived);\n assertTrue(userLastMessageReceived.after(quietAllowedForFeature.getTime()));\n }",
"public boolean hasChanges();",
"public boolean isCreateDateModified() {\n return createDate_is_modified; \n }",
"public int isHistoryExist() {\n\n int count = 0;\n String selectCount = \"SELECT COUNT * FROM\" + DATA_TABLE\n + \"WHERE\" + Columns.DATE + \" < DATE('NOW','LOCALTIME','START OF DAY')\";\n Cursor c = getReadableDatabase().rawQuery(selectCount, null);\n if (c.getCount() > 0) {\n c.moveToFirst();\n count = c.getColumnIndex(Columns.DATE);\n }\n c.close();\n return count;\n }",
"public boolean checkEpochIsStale(final WorkContainer<K, V> workContainer) {\n return pm.checkEpochIsStale(workContainer);\n }",
"public boolean isUpToDate(int id) {\n\t\tSystem.out.print(\"Checking if ID \" + id + \" is up to date\");\n\t\tboolean upToDate = upToDateIds.contains(id);\n\t\tSystem.out.println(\" \\tUp To Date: \" + upToDate);\n\t\treturn upToDate;\n\t}",
"private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }",
"public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}",
"public void checkIfFilesHaveChanged(NSNotification n) {\n int checkPeriod = checkFilesPeriod();\n \n if (!developmentMode && (checkPeriod == 0 || System.currentTimeMillis() - lastCheckMillis < 1000 * checkPeriod)) {\n return;\n }\n \n lastCheckMillis = System.currentTimeMillis();\n \n log.debug(\"Checking if files have changed\");\n for (Enumeration e = _lastModifiedByFilePath.keyEnumerator(); e.hasMoreElements();) {\n File file = new File((String)e.nextElement());\n if (file.exists() && hasFileChanged(file)) {\n fileHasChanged(file);\n }\n }\n }",
"boolean hasTsUpdate();",
"private Boolean isLiveModifiedFromProxies(DocumentModel liveDoc) {\n Boolean isModified = Boolean.TRUE;\n\n PublisherService publisherService = Framework.getService(PublisherService.class);\n Map<String, String> availablePublicationTrees = publisherService.getAvailablePublicationTrees();\n\n if (MapUtils.isNotEmpty(availablePublicationTrees)) {\n for (Entry<String, String> treeInfo : availablePublicationTrees.entrySet()) {\n String treeName = treeInfo.getKey();\n\n PublicationTree tree = publisherService.getPublicationTree(treeName, this.session, null);\n List<PublishedDocument> publishedDocuments = tree.getExistingPublishedDocument(new DocumentLocationImpl(this.document));\n\n for (PublishedDocument publishedDoc : publishedDocuments) {\n DocumentModel proxy = ((SimpleCorePublishedDocument) publishedDoc).getProxy();\n if (liveDoc.getVersionLabel().equals(proxy.getVersionLabel())) {\n isModified &= Boolean.FALSE;\n }\n }\n\n }\n }\n\n return isModified;\n }",
"public boolean isStatusdateModified() {\n return statusdate_is_modified; \n }",
"public boolean isUpToDate() {\n return false;\n }",
"boolean isOssModified();",
"boolean isFilterByDate();",
"boolean hasOrderDate();",
"private boolean checkForUpdates(List oldList, List newList) {\n\t\tProfile.begin(\"PersonIdServiceBean.checkForUpdates\");\n\t\tboolean hasUpdates = false;\n\n\t\tif ((oldList == null || oldList.size() == 0) && newList != null\n\t\t\t\t&& newList.size() > 0)\n\t\t\treturn true;\n\n\t\tif (oldList != null && oldList.size() > 0 && newList != null\n\t\t\t\t&& newList.size() > 0) {\n\n\t\t\tint count = 0; /* counter for available aliases in the DB */\n\n\t\t\tfor (int j = 0; j < newList.size(); j++) {\n\t\t\t\tcount = 0;\n\t\t\t\tfor (int i = 0; i < oldList.size(); i++) {\n\t\t\t\t\tif (newList.get(j).equals(oldList.get(i))) {\n\t\t\t\t\t\tbreak; /* have the alias in the DB, look no further */\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* have we checked agianst all the aliases in the DB? */\n\t\t\t\tif (count == oldList.size()) {\n\t\t\t\t\thasUpdates = true;\n\t\t\t\t\tbreak; /*\n\t\t\t\t\t\t\t * assuming that the incoming record has one and\n\t\t\t\t\t\t\t * only alias\n\t\t\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tProfile.end(\"PersonIdServiceBean.checkForUpdates\");\n\t\treturn hasUpdates;\n\t}",
"boolean hasUpdatedAt();",
"private synchronized boolean ProvjeriNoviDatum(Timestamp datum) {\n boolean doKraja = false;\n String datumKraj = konf.getKonfig().dajPostavku(\"preuzimanje.kraj\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n Date datumProvjere = new Date(datum.getTime());\n try {\n Date date = formatter.parse(datumKraj);\n if (date.equals(datumProvjere)) {\n doKraja = true;\n }\n } catch (ParseException ex) {\n\n }\n return doKraja;\n }",
"public boolean isLogdateModified() {\n return logdate_is_modified; \n }",
"void lookForUnreadMessages(String stringCurrentDate);",
"public void testIsNewer() throws Exception {\n TestableAndroidNativeDevice testDevice = new TestableAndroidNativeDevice() {\n @Override\n public String getProperty(String name) throws DeviceNotAvailableException {\n return \"Asia/Seoul\";\n }\n @Override\n protected long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException {\n return 0;\n }\n };\n File localFile = FileUtil.createTempFile(\"timezonetest\", \".txt\");\n try {\n localFile.setLastModified(1470906000000l); // Thu Aug 11 09:00:00 GMT 2016\n IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class);\n EasyMock.expect(remoteFile.getDate()).andReturn(\"2016-08-11\");\n EasyMock.expect(remoteFile.getTime()).andReturn(\"18:00\");\n EasyMock.replay(remoteFile);\n assertTrue(testDevice.isNewer(localFile, remoteFile));\n EasyMock.verify(remoteFile);\n } finally {\n FileUtil.deleteFile(localFile);\n }\n }",
"boolean hasUpdateTime();",
"boolean hasUpdateTime();",
"boolean hasUpdateTime();",
"@Override\n\tpublic int update(News news) throws Exception {\n\t\treturn 0;\n\t}",
"public boolean hasChangeSetComputed() {\n File changelogFile = new File(getRootDir(), \"changelog.xml\");\n return changelogFile.exists();\n }",
"boolean hasEndDate();",
"@Override\n\tpublic boolean modify(News news) {\n\t\ttry\n\t\t{\n\t\t\topenCurrentSessionWithTransaction();\n\t\t\tgetCurrentSession().update(news);\n\t\t\tcloseCurrentSessionWithTransaction();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void testIsNewer_fails() throws Exception {\n TestableAndroidNativeDevice testDevice = new TestableAndroidNativeDevice() {\n @Override\n public String getProperty(String name) throws DeviceNotAvailableException {\n return \"Asia/Seoul\";\n }\n @Override\n protected long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException {\n return 0;\n }\n };\n File localFile = FileUtil.createTempFile(\"timezonetest\", \".txt\");\n try {\n localFile.setLastModified(1470906000000l); // Thu, 11 Aug 2016 09:00:00 GMT\n IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class);\n EasyMock.expect(remoteFile.getDate()).andReturn(\"2016-08-11\");\n EasyMock.expect(remoteFile.getTime()).andReturn(\"18:10\");\n EasyMock.replay(remoteFile);\n assertFalse(testDevice.isNewer(localFile, remoteFile));\n EasyMock.verify(remoteFile);\n } finally {\n FileUtil.deleteFile(localFile);\n }\n }",
"public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }",
"void hasNewData(CheckPoint checkPoint);",
"@Test\n public void testGetOrdersByDate() {\n\n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderListByDate = service.getOrdersByDate(ld);\n List<Order> filteredList = new ArrayList<>();\n\n for (Order currentOrder : orderListByDate) {\n if (currentOrder.getOrderDate().contains(\"06232017\")) {\n filteredList.add(currentOrder);\n }\n }\n\n assertEquals(2, filteredList.size());\n }",
"@Test\n\tpublic void differenceBetweenDates() throws Exception {\n\t\tAssert.assertTrue(DateDifferentHelper.differenceBeteweenDates(ACTUAL_DATE));\n\t}",
"private boolean reportWithCurrentDateExists() {\n boolean exists = false;\n String sqlDateString = android.text.format.DateFormat.format(\"yyyy-MM-dd\", mCalendar).toString();\n Cursor reportCursor = mDbHelper.getReportPeer().fetchReportByTaskIdAndDate(mTaskId, sqlDateString);\n startManagingCursor(reportCursor);\n if (reportCursor != null && reportCursor.getCount() > 0) {\n long rowId = reportCursor.getLong(reportCursor.getColumnIndexOrThrow(ReportPeer.KEY_ID));\n if (mRowId == null || mRowId != rowId) {\n exists = true;\n }\n }\n if (reportCursor != null) {\n reportCursor.close();\n }\n return exists;\n }",
"public boolean isNewborn(Object anObj) { return ListUtils.indexOfId(_newBorns, anObj)>=0; }",
"private boolean server_fresh(Runner runner) throws IOException, BadPathnameException {\n int last_edit_time = get_server_edit_time(runner);\n if (Constants.DEBUG) System.out.println(\"(log) Checking server: our last known edit time is \" + last_known_edit_time +\n \" and the server's last edit time is \" + last_edit_time);\n if (last_known_edit_time == last_edit_time) {\n if (Constants.DEBUG) System.out.println(\"(log) -> fresh at server\");\n return true;\n }\n else{\n if (Constants.DEBUG) System.out.println(\"(log) -> not fresh at server\");\n last_known_edit_time = last_edit_time;\n content = new HashMap<>();\n final_block = -1;\n return false;\n }\n }",
"boolean hasCreateTime();",
"boolean hasCreateTime();",
"boolean hasCreateTime();",
"boolean hasCreateTime();",
"boolean hasCreateTime();",
"boolean hasCreateTime();",
"public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }",
"private boolean isUpToDate(HttpServletRequest req, String path)\n {\n if (ignoreLastModified)\n {\n return false;\n }\n \n long modifiedSince = req.getDateHeader(HttpConstants.HEADER_IF_MODIFIED);\n if (modifiedSince != -1)\n {\n // Browsers are only accurate to the second\n modifiedSince -= modifiedSince % 1000;\n }\n String givenEtag = req.getHeader(HttpConstants.HEADER_IF_NONE);\n \n // Deal with missing etags\n if (givenEtag == null)\n {\n // There is no ETag, just go with If-Modified-Since\n if (modifiedSince > servletContainerStartTime)\n {\n if (log.isDebugEnabled())\n {\n log.debug(\"Sending 304 for \" + path + \" If-Modified-Since=\" + modifiedSince + \", Last-Modified=\" + servletContainerStartTime); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n }\n return true;\n }\n \n // There are no modified setttings, carry on\n return false;\n }\n \n // Deal with missing If-Modified-Since\n if (modifiedSince == -1)\n {\n if (!etag.equals(givenEtag))\n {\n // There is an ETag, but no If-Modified-Since\n if (log.isDebugEnabled())\n {\n log.debug(\"Sending 304 for \" + path + \" Old ETag=\" + givenEtag + \", New ETag=\" + etag); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n }\n return true;\n }\n \n // There are no modified setttings, carry on\n return false;\n }\n \n // Do both values indicate that we are in-date?\n if (etag.equals(givenEtag) && modifiedSince <= servletContainerStartTime)\n {\n if (log.isDebugEnabled())\n {\n log.debug(\"Sending 304 for \" + path); //$NON-NLS-1$\n }\n return true;\n }\n \n return false;\n }",
"boolean isSetDate();",
"boolean hasAcquireDate();",
"public boolean checkDateByClickingButtonsToday(String[] args) throws ParseException\n\t{\n\t\t// click ing on the value for the tab \n\t\tutils.clickAnelemnt(this.tabMbrCompositeInteraction, \"Member Composite\", \"Interaction tab\");\n\t\tif(utils.clickAnelemnt(this.tabMbrCompositeInteraction, \"Member Composite\", \"Interaction tab\"))\n\t\t{\t\t\t\n\t\t\tif(this.clickServcRequestContractToday())\n\t\t\t{\n\t\t\t\tif(this.checkSearchForServiceRequestsForContractsTable(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\t\n\n\n\t}",
"boolean hasToDay();",
"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 }",
"private boolean isNotValidRss(final String url) throws FeedException, IOException {\n final SyndFeed feed = FeedHandler.getFeed(url);\n final List<SyndEntry> items = feed.getEntries();\n if (items.isEmpty()) {\n return true;\n }\n for (SyndEntry item : items) {\n if (item.getPublishedDate() == null) {\n return true;\n }\n }\n return false;\n }",
"@Test\n public void testValidateUpdateLifeTimeWithBadDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(25000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(20000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService, never()).addError(eq(RuleProperty.END_DATE), anyString()); \n }",
"private boolean isPresent(List changes, SwoopChange check) {\r\n\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (swc.getAuthor().equals(check.getAuthor()) &&\r\n\t\t\t\tswc.getDescription().equals(check.getDescription()) && \r\n//\t\t\t\tswc.getChange().equals(check.getChange()) &&\r\n\t\t\t\tswc.getTimeStamp().equals(check.getTimeStamp()))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public String showNewsAndEvents() throws POLLINGBusinessException\n\t{\n\t\tString flag = CommonConstants.FAILURE_ERROR; \n\t\tthis.populateMenu();\n\t\ttry {\n\t\t\tSystem.out.println(\"Enter in showNewsAndEvents action\");\n\t\t\t\n\t\t\tnewsAndEventsDtoList = new ArrayList<NewsAndEventsDto>();\n\t\t\tnewsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\tSystem.out.println(newsAndEventsDtoList.size());\n\t\t\tflag = CommonConstants.SUCCESS_FLAG;\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"helloooooooooo\");\n\t\treturn flag;\t\t\n\t}",
"public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }",
"public void testGetMovieChanges() throws Exception {\r\n LOG.info(\"getMovieChanges\");\r\n \r\n String startDate = \"\";\r\n String endDate = null;\r\n List<MovieChanges> results = Collections.EMPTY_LIST;\r\n \r\n // Get some popular movies\r\n List<MovieDb> movieList = tmdb.getPopularMovieList(LANGUAGE_DEFAULT, 0);\r\n for (MovieDb movie : movieList) {\r\n results = tmdb.getMovieChanges(movie.getId(), startDate, endDate);\r\n LOG.log(Level.INFO, \"{0} has {1} changes.\", new Object[]{movie.getTitle(), results.size()});\r\n }\r\n \r\n assertNotNull(\"No results found\", results);\r\n assertTrue(\"No results found\", results.size() > 0);\r\n }",
"public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }",
"boolean hasDateTime();",
"boolean hasGetLatestReading();",
"@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }",
"public boolean refresh()\r\n\t{\r\n\t\tboolean result = true;\r\n\t\tDocument oldxml = xml;\r\n\t\ttry {\r\n\t\t\tURL url = new URL(feedURL);\r\n\t\t\tURLConnection conn = url.openConnection();\r\n\t\t\t// setting these timeouts ensures the client does not deadlock indefinitely\r\n\t\t\t// when the server has problems.\r\n\t\t\tconn.setConnectTimeout(atomFeedTimeout);\r\n\t\t\tconn.setReadTimeout(atomFeedTimeout);\r\n\t xml = documentbuilder.parse(conn.getInputStream());\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tlogger.error(\"Error [MalformedURLException]: \" + e);\r\n\t\t\txml = oldxml;\r\n\t\t\tresult = false;\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Error [IOException]: \" + e);\r\n\t\t\txml = oldxml;\r\n\t\t\tresult = false;\r\n\t\t} catch (SAXException e) {\r\n\t\t\tlogger.error(\"Error [SAXException]: \" + e);\r\n\t\t\txml = oldxml;\r\n\t\t\tresult = false;\r\n\t\t}\r\n\t\treturn result;\r\n\t}"
] | [
"0.621475",
"0.6096189",
"0.6012235",
"0.6008941",
"0.6002464",
"0.5988424",
"0.5873475",
"0.5872387",
"0.58715063",
"0.5866134",
"0.577534",
"0.56960446",
"0.568611",
"0.56718504",
"0.56589705",
"0.5646388",
"0.56140137",
"0.5587275",
"0.5586432",
"0.5580081",
"0.5568274",
"0.556768",
"0.5562576",
"0.55621976",
"0.5558883",
"0.55568457",
"0.55114496",
"0.5494108",
"0.54892725",
"0.5487155",
"0.5479878",
"0.5479512",
"0.5476358",
"0.5460346",
"0.5434184",
"0.5427909",
"0.5425533",
"0.54251546",
"0.5422859",
"0.5421742",
"0.5403671",
"0.53786594",
"0.5378405",
"0.53778136",
"0.53736293",
"0.53733337",
"0.537325",
"0.5362972",
"0.5360296",
"0.5360024",
"0.5347584",
"0.5341485",
"0.53390324",
"0.5338048",
"0.5310837",
"0.53061163",
"0.52860266",
"0.5279304",
"0.52757585",
"0.52703",
"0.52694434",
"0.52570105",
"0.52570105",
"0.52570105",
"0.52565557",
"0.5250231",
"0.5248775",
"0.52424836",
"0.5231334",
"0.5226906",
"0.52228177",
"0.52180153",
"0.52175176",
"0.52158517",
"0.52039367",
"0.5203464",
"0.51878417",
"0.51878417",
"0.51878417",
"0.51878417",
"0.51878417",
"0.51878417",
"0.5187491",
"0.51800424",
"0.51799905",
"0.51775444",
"0.51635766",
"0.5159866",
"0.51567614",
"0.51561195",
"0.5146199",
"0.5145469",
"0.5145134",
"0.5133633",
"0.5125717",
"0.51236665",
"0.512153",
"0.5119498",
"0.5118206",
"0.5114746"
] | 0.77184135 | 0 |
A helper method to keep track of the last news item's date of an category defined by the limit | private void storeLastCategoryItemDate() {
Cursor categories = this.writableDatabase.query(TABLE_CATEGORIES, new String[] { CATEGORIES_ID }, null, null,
null, null, null);
int count = ApplicationConstants.NEWSCATEGORY_LIMIT;
if (categories.getCount() > 0) {
while (categories.moveToNext()) {
long categoryId = categories.getLong(0);
String where = "feeds." + FEEDS_CID + "=" + categoryId + " AND " + "feeds." + FEEDS_ID + "=" + "news."
+ NEWS_FID + " AND " + TABLE_FEEDS + "." + FEEDS_ACTIVATED + "=1";
Cursor query = this.writableDatabase.query(TABLE_FEEDS + " feeds, " + TABLE_NEWS + " news",
new String[] { NEWS_DATE, NEWS_TITLE }, where, null, null, null, NEWS_DATE + " DESC",
String.valueOf(count));
long lastDate = 0;
if (query.getCount() > 0 && !(query.getCount() < 50)) {
query.moveToLast();
lastDate = query.getLong(0);
}
this.lastCategoryItemDate.put(categoryId, lastDate);
query.close();
}
}
categories.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Comment> getLastCommentsByCategory(String category);",
"public static List<Category> getRecentlyUsedCategories(Context context, int maxCategories) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n String query = String.format(\"SELECT %s, %s FROM %s JOIN %s ON %s.%s = %s.%s WHERE %s = 0 GROUP BY %s ORDER BY %s DESC LIMIT %d\",\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME, BudgetEntryTable.COLUMN_NAME_CATEGORY_ID, BudgetEntryTable.TABLE_NAME,\r\n CategoryTable.TABLE_NAME, BudgetEntryTable.TABLE_NAME, BudgetEntryTable.COLUMN_NAME_CATEGORY_ID, CategoryTable.TABLE_NAME,\r\n CategoryTable._ID, CategoryTable.COLUMN_NAME_IS_DELETED, CategoryTable.COLUMN_NAME_CATEGORY_NAME,\r\n BudgetEntryTable.COLUMN_NAME_DATE, maxCategories);\r\n\r\n Cursor cursor = db.rawQuery(query, new String[]{});\r\n\r\n List<Category> categories = new ArrayList<>();\r\n\r\n while(cursor.moveToNext()) {\r\n Category category = new Category();\r\n category.category = cursor.getString(cursor.getColumnIndexOrThrow(CategoryTable.COLUMN_NAME_CATEGORY_NAME));\r\n category._id = cursor.getInt(cursor.getColumnIndexOrThrow(BudgetEntryTable.COLUMN_NAME_CATEGORY_ID));\r\n categories.add(category);\r\n }\r\n cursor.close();\r\n db.close();\r\n\r\n return categories;\r\n }",
"int getLastItemOnPage();",
"private int lastCategoryIndex() {\n/* 158 */ if (this.maximumCategoryCount == 0) {\n/* 159 */ return -1;\n/* */ }\n/* 161 */ return Math.min(this.firstCategoryIndex + this.maximumCategoryCount, this.underlying\n/* 162 */ .getColumnCount()) - 1;\n/* */ }",
"public static int getLatestCategoryId() {\n\n int categoryId = 0;\n try {\n List<Category> list = Category.listAll(Category.class);\n int size = list.size();\n Category category = list.get(size - 1);\n categoryId = category.getCategoryId();\n\n } catch (Exception e) {\n\n }\n return categoryId;\n\n }",
"public Date getLastPublished() {\n return lastPublished;\n }",
"public java.util.Date getNextMedicalCategorisationDue () {\n\t\treturn nextMedicalCategorisationDue;\n\t}",
"public void searchByAfterDate(long date, final int limit) throws IOException {\n final IndexSearcher indexSearcher = new IndexSearcher(reader);\n\n long now = System.currentTimeMillis() / 1000L;\n\n Query q = NumericRangeQuery.newLongRange(\"creationDate\", date, now, true, true);\n System.out.println(\"Type of query: \" + q.getClass().getSimpleName());\n\n final TopDocs search = indexSearcher.search(q, limit);\n final ScoreDoc[] hits = search.scoreDocs;\n showHits(hits);\n }",
"public static Date getMaxDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(2036, 12, 28, 23, 59, 59);\n return cal.getTime();\n }",
"@Override\n public List<NewsFeed> getAllOutdatedFeeds(IConfigurationManager configurationManager) {\n Cursor catQuery = this.writableDatabase.query(TABLE_CATEGORIES, new String[] { CATEGORIES_ID,\n CATEGORIES_LASTUPDATE, CATEGORIES_INTERVAL }, null, null, null, null, null);\n Map<Long, Boolean> outdatedCategories = new HashMap<Long, Boolean>();\n while (catQuery.moveToNext()) {\n long lastUpdate = catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_LASTUPDATE));\n Log.d(TAG,\n \"categoryId: \"\n + catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID))\n + \" | \"\n + (System.currentTimeMillis() - lastUpdate)\n + \" ms difference | Needed: \"\n + (configurationManager.getConfiguration().getTimeForUpdateInterval(UpdateInterval.values()[catQuery\n .getInt(catQuery.getColumnIndex(CATEGORIES_INTERVAL))])));\n boolean outdated = ((System.currentTimeMillis() - lastUpdate) > (configurationManager.getConfiguration()\n .getTimeForUpdateInterval(UpdateInterval.values()[catQuery.getInt(catQuery\n .getColumnIndex(CATEGORIES_INTERVAL))])));\n outdatedCategories.put(catQuery.getLong(catQuery.getColumnIndex(CATEGORIES_ID)), outdated);\n }\n\n catQuery.close();\n\n // get news feeds\n List<NewsFeed> newsFeeds = new ArrayList<NewsFeed>();\n\n Cursor query = this.writableDatabase.query(TABLE_FEEDS, null, null, null, null, null, null);\n\n while (query.moveToNext()) {\n if (outdatedCategories.get(query.getLong(query.getColumnIndex(FEEDS_CID)))) {\n NewsFeed newsFeed = new NewsFeed();\n newsFeed.setFeedId(query.getInt(query.getColumnIndex(FEEDS_ID)));\n newsFeed.setParentCategoryId(query.getLong(query.getColumnIndex(FEEDS_CID)));\n newsFeed.setName(query.getString(query.getColumnIndex(FEEDS_NAME)));\n newsFeed.setUrl(query.getString(query.getColumnIndex(FEEDS_URL)));\n newsFeed.setIsActivated(query.getInt(query.getColumnIndex(FEEDS_ACTIVATED)) == 1);\n newsFeeds.add(newsFeed);\n }\n }\n query.close();\n\n return newsFeeds;\n\n }",
"private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}",
"public List<Document> findByDateDescending(int limit) {\n\n // XXX HW 3.2, Work Here\n // Return a list of DBObjects, each one a post from the posts collection\n\n // Want to get ALL the documents, so don't really need a filter. Add a sort to get the posts in order\n List<Document> posts = new LinkedList<Document>();;\n Document theSort=new Document(\"date\",-1);\n// Document theFltr=new Document(\"author\",\"bob\");\n\n // Empty filter and sort to get the first relevant post (and we can then step through the list using iterator)\n MongoCursor<Document> cursor=postsCollection.find().sort(theSort).limit(limit).iterator();\n\n // Step through and to our list (makes little odds if it's array or linked list)\n while(cursor.hasNext()) {\n posts.add(cursor.next());\n }\n\n // pass list back\n return posts;\n }",
"long getLastBonusTicketDate();",
"public int getMaximumCategoryCount() { return this.maximumCategoryCount; }",
"public Date calculateHighestVisibleTickValue(DateTickUnit unit) { return previousStandardDate(getMaximumDate(), unit); }",
"<T> Collection<T> getMostRecent(Class<T> t, int max);",
"List<MonthlyExpenses> lastMonthExpenses();",
"public Urls getLastMonthUrls() {\n\t\tDate date = new Date();\n\t\tEasyDate easyDate = new EasyDate(date);\n\t\treturn getRecentlyCreatedUrls(easyDate.getPreviousMonthDate());\n\t}",
"Article findLatestArticle();",
"public Date getMaximumDate() {\n/* */ Date result;\n/* 689 */ Range range = getRange();\n/* 690 */ if (range instanceof DateRange) {\n/* 691 */ DateRange r = (DateRange)range;\n/* 692 */ result = r.getUpperDate();\n/* */ } else {\n/* */ \n/* 695 */ result = new Date((long)range.getUpperBound());\n/* */ } \n/* 697 */ return result;\n/* */ }",
"int getMessageCounterHistoryDayLimit();",
"public List<NewsNotifications> getNewsFeed(int limit);",
"LocalDate getCollectionEndDate();",
"public String getLastItem();",
"public Date getLatestDate() {\r\n\t\tCriteriaBuilder cb = em.getCriteriaBuilder();\r\n\t\tCriteriaQuery<TestLinkMetricMeasurement> query = cb.createQuery(TestLinkMetricMeasurement.class);\r\n\t\tRoot<TestLinkMetricMeasurement> root = query.from(TestLinkMetricMeasurement.class);\r\n\t\tquery.select(root);\r\n\t\tquery.orderBy(cb.desc(root.get(TestLinkMetricMeasurement_.timeStamp)));\r\n\t\tDate latest;\r\n\t\ttry {\r\n\t\t\tTestLinkMetricMeasurement m = em.createQuery(query).setMaxResults(1).getSingleResult();\r\n\t\t\tlatest = m.getTimeStamp();\t\t\t\r\n\t\t} catch (NoResultException nre) {\r\n\t\t\tlatest = null;\r\n\t\t}\r\n\t\treturn latest;\r\n\t}",
"public List<Books> publishedLastFourDays(){\n String sql=\"select * from Book order by book_publish_date desc limit 4\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n List<Books> books=resultSetToBook(baseDao);\n ConnectionUtil.close(baseDao.connection,baseDao.preparedStatement,baseDao.resultSet);\n return books;\n }",
"public DateTime lastPublishedDateTime() {\n return this.lastPublishedDateTime;\n }",
"List<Expenses> latestExpenses();",
"private Date getLastReviewForApp(String appName) {\n\t\tQuery<Review> query = this.datastore.createQuery(Review.class);\n\t\tquery.criteria(\"appName\").equal(appName);\n\t\tquery.order(\"-reviewDate\").get();\n\t\tList<Review> reviews = query.asList();\n\t\tif (reviews.isEmpty() || reviews == null)\n\t\t\treturn null;\n\t\tReview lastReview = reviews.get(0);\n\t\treturn lastReview.getReviewDate();\n\t}",
"public Long timeMostRecentWallPost (PublicKey key) {\n Logger.write(\"VERBOSE\", \"DB\", \"timeMostRecentWallPost(...)\");\n try {\n ResultSet mostRecent = query(DBStrings.mostRecentWallPost.replace(\"__KEY__\", Crypto.encodeKey(key)));\n if (mostRecent.next())\n return Long.parseLong(mostRecent.getString(\"maxtime\"));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n return 0L;\n }",
"public Date getLastActivityDate() {\n return lastActivityDate;\n }",
"public LimitDayAndMonthByCpn() {\r\n\t\tthis.mydb = new DBForMT();\r\n\t}",
"public Date getLastSelectionDate()\n/* */ {\n/* 193 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.last();\n/* */ }",
"public LocalDate getMaxDate() {\r\n return maxDate;\r\n }",
"public Item getLast();",
"void selectLastAccessedItem(String itemId);",
"public List<Category> getMostUserCate() {\n\t\tString sql = \"SELECT c.id,c.name FROM MINHDUC.posts p, MINHDUC.categories c where p.categories_id = c.id\";\n\t\tList<Category> listCate = jdbcTemplateObject.query(sql,new CategoriesMostUsedMapper());\n\t\treturn listCate;\n\t}",
"public Calendar getLastVisibleDay() {\n return viewState.getLastVisibleDay();\n }",
"public List<Goods> selectByCatelogOrderByDate(@Param(\"catelogId\")Integer catelogId,@Param(\"limit\")Integer limit);",
"public Limit get(String username, String category);",
"public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }",
"private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }",
"public static void setLastAction () {\n String sqlRetrieveDateTime = \"SELECT now() as date_time\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n try (Connection conn = Database.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sqlRetrieveDateTime)) {\n \n while (rs.next()) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n lastAction = LocalDateTime.parse(rs.getString(\"date_time\"), formatter); \n }\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (DateTimeParseException | NullPointerException dtpe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n }",
"public long getCategory() {\r\n\t\treturn this.category;\r\n\t}",
"public Date getDateLimite() {\r\n return dateLimite;\r\n }",
"public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);",
"public List<Goods> selectOrderByDate(@Param(\"limit\")Integer limit);",
"public List<Tupel<Artist, Integer>> getLastReleaseDateOfEachArtist();",
"private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}",
"@Query(value = \"SELECT * FROM Champignon_Logboeken ORDER BY nummer DESC LIMIT ?1\", nativeQuery = true)\n\tpublic List<Champignonlogboek> findLastTen(int limit);",
"public Date getNextPublished() {\n return nextPublished;\n }",
"public static String searchExpireFromCategory(HttpServletRequest request, HttpServletResponse response) {\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\n String productCategoryId = request.getParameter(\"SE_SEARCH_CATEGORY_ID\");\n String thruDateStr = request.getParameter(\"thruDate\");\n String errMsg = null;\n\n Timestamp thruDate;\n try {\n thruDate = Timestamp.valueOf(thruDateStr);\n } catch (RuntimeException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errDateFormat\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.thruDate_not_formatted_properly\", messageMap,\n UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n try {\n boolean beganTransaction = TransactionUtil.begin(DEFAULT_TX_TIMEOUT);\n try (EntityListIterator eli = getProductSearchResults(request)) {\n if (eli == null) {\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.no_results_found_probably_error_constraints\",\n UtilHttp.getLocale(request));\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n GenericValue searchResultView = null;\n int numExpired = 0;\n while ((searchResultView = eli.next()) != null) {\n String productId = searchResultView.getString(\"mainProductId\");\n //get all tuples that match product and category\n List<GenericValue> pcmList = EntityQuery.use(delegator).from(\"ProductCategoryMember\").where(\"productCategoryId\",\n productCategoryId, \"productId\", productId).queryList();\n\n //set those thrudate to that specificed maybe remove then add new one\n for (GenericValue pcm : pcmList) {\n if (pcm.get(\"thruDate\") == null) {\n pcm.set(\"thruDate\", thruDate);\n pcm.store();\n numExpired++;\n }\n }\n }\n Map<String, String> messageMap = UtilMisc.toMap(\"numExpired\", Integer.toString(numExpired));\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.expired_x_items\", messageMap, UtilHttp.getLocale(request));\n request.setAttribute(\"_EVENT_MESSAGE_\", errMsg);\n } catch (GenericEntityException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap,\n UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n TransactionUtil.rollback(beganTransaction, errMsg, e);\n return \"error\";\n } finally {\n TransactionUtil.commit(beganTransaction);\n }\n } catch (GenericTransactionException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap, UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n return \"success\";\n }",
"@Override\n\t\t\tpublic void onLastItemVisible() {\n\t\t\t\t\n\t\t\t}",
"Limit createLimit();",
"@Test\n public void testGetMaxEndDate() {\n ApplicationInfo.info(\n DatabaseHelperTest.class, ApplicationInfo.TEST, ApplicationInfo.UNIT_TEST, \"testBeginsWithEmpty\");\n // Date expResult = null;\n Date result = DatabaseHelper.getMaxEndDate();\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+1\"));\n cal.setTime(result);\n assertEquals(3000, cal.get(Calendar.YEAR));\n assertEquals(Calendar.DECEMBER, cal.get(Calendar.MONTH));\n assertEquals(31, cal.get(Calendar.DATE));\n }",
"public LocalDateTime CalcLastDay()\n {\n if (!Repeats) {\n // then use the end of the period\n return CalcFirstPeriodEndDay();\n }\n\n //else its forever or if its set\n return LastDay == null ? LocalDateTime.MAX : LastDay;\n }",
"public List<Category> getCategoriesForDate(final Day day) {\n List<Category> categories = new ArrayList<>();\n\n Category dayCategory = new Category();\n dayCategory.setName(DateUtil.formatDate(context, day.getDate(), DateUtil.DateFormat.DAY));\n List<Option> options = new ArrayList<>();\n Option deadline = new Option();\n\n deadline.setName(context.getString(R.string.deadline_bottom_sheet_title));\n deadline.setIcon(UtilCompat.getDrawable(context, R.drawable.ic_whatshot_black_24px));\n deadline.setListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createNewNote(day.getDate(), Note.NoteType.DEADLINE);\n BottomSheetMenu.this.dismiss();\n }\n });\n\n options.add(deadline);\n\n Option exam = new Option();\n\n exam.setName(context.getString(R.string.exam_bottom_sheet_title));\n exam.setIcon(UtilCompat.getDrawable(context, R.drawable.ic_school_black_24px));\n exam.setListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createNewNote(day.getDate(), Note.NoteType.EXAM);\n BottomSheetMenu.this.dismiss();\n }\n });\n\n options.add(exam);\n\n Option event = new Option();\n\n event.setName(context.getString(R.string.event_bottom_sheet_title));\n event.setIcon(UtilCompat.getDrawable(context, R.drawable.ic_event_available_black_24px));\n event.setListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createNewNote(day.getDate(), Note.NoteType.EVENT);\n BottomSheetMenu.this.dismiss();\n }\n });\n\n options.add(event);\n\n Option note = new Option();\n\n note.setName(context.getString(R.string.note_bottom_sheet_title));\n note.setIcon(UtilCompat.getDrawable(context, R.drawable.ic_toc_black_24px));\n note.setListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createNewNote(day.getDate(), Note.NoteType.NOTE);\n BottomSheetMenu.this.dismiss();\n }\n });\n\n options.add(note);\n\n dayCategory.setOptions(options);\n\n categories.add(dayCategory);\n\n return categories;\n }",
"public DateAdp Modified_latest() {return modified_latest;}",
"public java.util.Date getPreviousMedicalCategorisationDate () {\n\t\treturn previousMedicalCategorisationDate;\n\t}",
"@Override\n\tpublic java.util.Date getExpiration_Date() {\n\t\treturn _news_Blogs.getExpiration_Date();\n\t}",
"long getFetchedDate();",
"public void setMaximumCategoryCount(int max) {\n/* 145 */ if (max < 0) {\n/* 146 */ throw new IllegalArgumentException(\"Requires 'max' >= 0.\");\n/* */ }\n/* 148 */ this.maximumCategoryCount = max;\n/* 149 */ fireDatasetChanged();\n/* */ }",
"public Integer getLimitEnd() {\r\n return limitEnd;\r\n }",
"public int getLimitEnd() {\n return limitEnd;\n }",
"public int getLimitEnd() {\n return limitEnd;\n }",
"public List<ExoSocialActivity> getOlderOnActivityFeed(\n Identity ownerIdentity, ExoSocialActivity baseActivity, int limit);",
"public List<Goods> selectByDate(int page,int maxResults);",
"int maxReturnEventsForQuery();",
"Optional<Feed> findFirstByChannel_linkOrderByLastBuildDateDesc(String channelLink);",
"public List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit);",
"public Date getMessageLastPost() {\n return messageLastPost;\n }",
"public synchronized Post getLastPost() {\n try {\n this.connect();\n // the line below is commented because it returns the null value for summary\n // return linkedInTemplate.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return getGroupPostsWithMoreInfo(1,0).get(0);\n } catch (Exception e) {\n log.debug(\"An exception occured when reading the last inserted post from group: \" + groupId);\n }\n return null;\n }",
"@Transactional\n public void downloadProductsByCategoryId( Category category, int limit )\n {\n\n }",
"public void setCategory(String category) {\n this.category = category;\n this.updated = new Date();\n }",
"protected int get_max_age()\n {\n return max_age;\n }",
"public LocalDate getLastDatePerformed(Soloist soloist, Composition composition){\n\t\tArrayList<PerformedConcert> performedConcerts = getPerformedConcerts();\n\t\tArrayList<LocalDate> dates = new ArrayList<>();\n\t\tif(performedConcerts.isEmpty())return null;\n\t\tfor(PerformedConcert pc: performedConcerts){\n\t\t\tLocalDate date = pc.getDate();\n\t\t\tArrayList<Composition> compositions = pc.getCompositions();\n\t\t\tfor(Composition c: compositions){\n\t\t\t\tif(!c.hasSoloist())continue;//if this is a composition without a soloist, search next\n\t\t\t\tif(c.getCompositionID().equals(composition.getCompositionID())){\n\t\t\t\t\tArrayList<Soloist> soloists = ((Composition_Soloist)c).getSoloists();\n\t\t\t\t\tif(soloists.contains(soloist)){\n\t\t\t\t\t\tdates.add(date);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(dates.isEmpty())return null;\n\t\tCollections.sort(dates);// sort the dates, the last one is the latest date\n\t\treturn dates.get(dates.size()-1);\n\t}",
"public static ArrayList<Category> ParseCategories(JSONObject jsonTotalObject)\n {\n ArrayList<Category> categoryArrayList = new ArrayList<>();\n try\n {\n JSONArray categories = jsonTotalObject.getJSONArray(\"categories\");\n\n // The recent categories\n Category recent = new Category();\n recent.setName(\"Recent\");\n recent.setId(0);\n categoryArrayList.add(recent);\n\n for(int i = 0;i<categories.length();i++)\n {\n JSONObject jsonObject = categories.getJSONObject(i);\n Category category = new Category();\n category.setName(jsonObject.getString(\"title\"));\n category.setId(jsonObject.getInt(\"id\"));\n category.setSlugName(jsonObject.getString(\"slug\"));\n categoryArrayList.add(category);\n }\n return categoryArrayList;\n } catch (JSONException e)\n {\n Log.e(TAG,\"JSONException when loading categories\",e);\n e.printStackTrace();\n return null;\n }\n }",
"public void filterByMyMostRece() {\n // for each mood event in the list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n // get the mood's date\n dateOfMood = moodListBeforeFilterMy.getMoodEvent(i).getDateOfRecord();\n // if it within the range, then add it to the new list\n if (dateOfMood.compareTo(lowerBoundDATE) >= 0 && dateOfMood.compareTo(currentDATE) <= 0) {\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }\n }",
"public Builder setLastBonusTicketDate(long value) {\n \n lastBonusTicketDate_ = value;\n onChanged();\n return this;\n }",
"Book getLatestBook();",
"List<Article> findTop3ByOrderByPostTimeDesc();",
"public void calculateMaxDateForReport() {\r\n\t\ttry {\r\n\t\t\tthis.maxDateReport = ControladorFechas.sumarMeses(\r\n\t\t\t\t\tthis.startDateReport, Constantes.NUMBER_MONTHS_REPORT);\r\n\t\t\tif (this.endDateReport != null\r\n\t\t\t\t\t&& (this.endDateReport.before(this.startDateReport) || this.endDateReport\r\n\t\t\t\t\t\t\t.after(this.maxDateReport))) {\r\n\t\t\t\tthis.endDateReport = null;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"Date getForLastUpdate();",
"Date getLastAccessDate();",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public void setLimitEnd(Integer limitEnd) {\r\n this.limitEnd=limitEnd;\r\n }",
"public List<PerfBenchmarkSummary> getRecentSummaryList(int limit, String env, TestCategoryEnum category);",
"public int getMaxDays() {\n return maxDays;\n }",
"public String getLastDateHistory( String code) {\n String query = \"SELECT * FROM \"+ code +\"R where time > '2015-06-01T00:00:00Z'\";\n QueryResult list = InfluxDaoConnector.getPoints(query,dbName);\n\n if (!checker(list))\n return null;\n\n int size = list.getResults().get(0).getSeries().get(0).getValues().size();\n\n\n return (String) list.getResults().get(0).getSeries().get(0).getValues().get(size-1).get(0);\n\n }",
"long getSince();",
"public static LocalDateTime getLastAction() {\n return lastAction;\n }",
"public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public Date getLastImportDate(TransportClient client, SimpleDateFormat formatter) {\n SearchResponse response = client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n .setQuery(QueryBuilders.matchAllQuery()) // Query\n .addSort(SortBuilders.fieldSort(\"insertDate\").order(SortOrder.DESC))\n .setFrom(0).setSize(1).setExplain(true)\n .get();\n try {\n return formatter.parse(response.getHits().getAt(0).getSource().get(\"insertDate\").toString());\n } catch (ParseException ex) {\n Logger.getLogger(Services.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"public Long getLimit() {\n return this.Limit;\n }",
"public Long getLimit() {\n return this.Limit;\n }",
"private void last30DaysReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n//\t\tString[] dates = controler.getLast30DaysTransactionsDates();\n\t\tString[] dates = getLast30Dates();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\t\n\t\tdollarEarning = getLast30DaysData();\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}",
"public java.util.Collection getTimeLimit();",
"@Override\n public void success(List<Category> category, Response response) {\n\n List<Category> ep = category;\n /*Example[] array = ep.toArray(new Example[ep.size()]);\n List<Example> listsample = ep.getSaleDate();*/\n listCategory.setAdapter(new CategoryListAdapter(ep));\n\n }",
"private void saveItems(List<ItemNews> itemList) {\n Optional<ItemNews> firstByOrderByDateTimeDesc = itemRepository.findFirstByOrderByDateTimeDesc();\n if (firstByOrderByDateTimeDesc.isPresent()) {\n itemRepository.saveAll(itemList.stream()\n .filter(o -> o.getDateTime().isAfter(firstByOrderByDateTimeDesc.get().getDateTime()))\n .collect(Collectors.toList()));\n } else {\n itemRepository.saveAll(itemList);\n }\n }",
"private int lastDay(int[] A, int K, int M) {\n\t\t\n\t\tList<int[]> list = new ArrayList<int[]>();\n\t\tint N = A.length;\n\t\tint[] lastDay = new int[] {1, N, N};\n\t\tlist.add(lastDay);\n\t\tpq = new PriorityQueue<int[]>(new Comparator<int[]>() {\n\t\t\tpublic int compare(int[] a, int[] b) { return a[2] - b[2]; }\n\t\t});\n\t\tpq.add(lastDay);\n\t\t\n\t\t// showListInts(list);\n\t\tif(list.size() == M && pq.peek()[2] >= K) return N;\n\t\t\n\t\tfor(int i = N-1; i >= 0; i--) {\n\t\t\tif(list.size() == 0) break;\n\t\t\tbinarySplit(list, A[i], K);\n\t\t\t// System.out.println(\"A[i] = \"+ A[i]);\n\t\t\t// showListInts(list);\n\t\t\tif(list.size() == M && pq.peek()[2] >= K) return i;\n\t\t}\n\t\treturn -1;\n\t}"
] | [
"0.5612641",
"0.55895734",
"0.5496818",
"0.5441798",
"0.5331427",
"0.523904",
"0.5206968",
"0.51192373",
"0.50951076",
"0.5090349",
"0.5068684",
"0.50654685",
"0.50646764",
"0.5054403",
"0.50484204",
"0.5035141",
"0.5016318",
"0.49403936",
"0.4886774",
"0.4866876",
"0.48647514",
"0.47975484",
"0.47917935",
"0.47886455",
"0.47640476",
"0.4755916",
"0.47413018",
"0.47404125",
"0.47294217",
"0.4710147",
"0.46921277",
"0.4686629",
"0.46639666",
"0.4661513",
"0.46542346",
"0.46322203",
"0.4615961",
"0.46018347",
"0.4581242",
"0.4569941",
"0.45654106",
"0.4551717",
"0.45440075",
"0.4536676",
"0.4535206",
"0.4534976",
"0.4526644",
"0.45264643",
"0.45236367",
"0.45048133",
"0.4476914",
"0.446608",
"0.44601628",
"0.4457559",
"0.4444392",
"0.4438414",
"0.44364905",
"0.44262177",
"0.4426199",
"0.44258562",
"0.44220418",
"0.44159907",
"0.44156784",
"0.44130248",
"0.44130248",
"0.4411475",
"0.44041938",
"0.43919986",
"0.43886036",
"0.4387851",
"0.43862423",
"0.4383984",
"0.43805122",
"0.43803725",
"0.43749642",
"0.43693453",
"0.43631417",
"0.43509996",
"0.43456483",
"0.43448672",
"0.43392286",
"0.43342498",
"0.433129",
"0.4323642",
"0.4322072",
"0.43215755",
"0.43214062",
"0.4321332",
"0.4320321",
"0.4317097",
"0.4307532",
"0.4301468",
"0.42979142",
"0.42905208",
"0.42905208",
"0.4286626",
"0.42862803",
"0.42854118",
"0.42852843",
"0.42831367"
] | 0.7837206 | 0 |
Creates a new helper instance with a given application context | public NewsDBHelper(Context applicationContext, IConfigurationManager configurationManager) {
super(applicationContext, configurationManager.getConfiguration().getNewsDatabaseName(), null,
configurationManager.getConfiguration().getNewsDatabaseVersion());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static HelperCommon getInstance(final Context context) {\n if (sHelper == null) {\n // Always pass in the Application Context\n sHelper = new HelperCommon(context.getApplicationContext());\n }\n return sHelper;\n }",
"Context createContext();",
"Context createContext();",
"DatabaseController(Context context){\n helper=new MyHelper(context);\n }",
"Context context();",
"Context context();",
"public static TracingHelper create() {\n return new TracingHelper(TracingHelper::classMethodName);\n }",
"public DBAngkot(Context context)\n {\n helperAngkot = new HelperAngkot(context);\n }",
"public static Builder with(Context context) {\n return new Builder(context);\n }",
"private AppContext()\n {\n }",
"public static synchronized Util getInstance(Context context) {\n if (_instance == null) {\n _instance = new Util(context);\n }\n return _instance;\n }",
"public abstract void makeContext();",
"private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }",
"private ReservationsContextHelper() {\r\n }",
"public Object createContext(ApplicationRequest request,\n ApplicationResponse response);",
"public static Builder builder(Context context){\n return new Builder(context);\n }",
"public synchronized static DatabaseHelper getInstance(Context context) {\n if(DATABASE_HELPER == null) {\n DATABASE_HELPER = new DatabaseHelper(context.getApplicationContext());\n }\n return DATABASE_HELPER;\n }",
"public DBTrack(Context context)\n {\n helper = new HelperTrack(context);\n }",
"public static Context getContext(){\n return appContext;\n }",
"public static synchronized DBOpenHelper getInstance(Context context){\n\t\tif(dbHelper == null)\n\t\t\tdbHelper = new DBOpenHelper(context);\t\t\n\t\treturn dbHelper;\n\t\t\n\t}",
"public static synchronized TodoDatabaseHelper getInstance(Context context) {\n if (todoDatabaseHelper == null) {\n todoDatabaseHelper = new TodoDatabaseHelper(context.getApplicationContext());\n }\n return todoDatabaseHelper;\n }",
"public static PreferenceHelper getInstance(Context context){\n if(mSpHelper == null){\n synchronized (PreferenceHelper.class){\n if(mSpHelper == null){\n mSpHelper = new PreferenceHelper(context);\n }\n }\n }\n return mSpHelper;\n }",
"public static ExerciseDatabaseHelper getInstance(Context context) {\n if (instance != null) {\n return instance;\n }\n else {\n instance = new ExerciseDatabaseHelper(context, \"exercises\" ,null, 1);\n return instance;\n }\n }",
"public static TracingHelper create(Function<ContainerRequestContext, String> nameFunction) {\n return new TracingHelper(nameFunction);\n }",
"public static String buildHelperContext (\tVelocityPortlet portlet,\n\t\t\t\t\t\t\t\t\t\tContext context,\n\t\t\t\t\t\t\t\t\t\tRunData data,\n\t\t\t\t\t\t\t\t\t\tSessionState state)\n\t{\n\t\tif(state.getAttribute(STATE_INITIALIZED) == null)\n\t\t{\n\t\t\tinitStateAttributes(state, portlet);\n\t\t\tif(state.getAttribute(ResourcesAction.STATE_HELPER_CANCELED_BY_USER) != null)\n\t\t\t{\n\t\t\t\tstate.removeAttribute(ResourcesAction.STATE_HELPER_CANCELED_BY_USER);\n\t\t\t}\n\t\t}\n\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\tif(state.getAttribute(STATE_MODE_RESOURCES) == null && MODE_HELPER.equals(mode))\n\t\t{\n\t\t\tstate.setAttribute(ResourcesAction.STATE_MODE_RESOURCES, ResourcesAction.MODE_HELPER);\n\t\t}\n\n\t\tSet selectedItems = (Set) state.getAttribute(STATE_LIST_SELECTIONS);\n\t\tif(selectedItems == null)\n\t\t{\n\t\t\tselectedItems = new TreeSet();\n\t\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedItems);\n\t\t}\n\t\tcontext.put(\"selectedItems\", selectedItems);\n\n\t\tString helper_mode = (String) state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\tboolean need_to_push = false;\n\n\t\tif(MODE_ATTACHMENT_SELECT.equals(helper_mode))\n\t\t{\n\t\t\tneed_to_push = true;\n\t\t\thelper_mode = MODE_ATTACHMENT_SELECT_INIT;\n\t\t}\n\t\telse if(MODE_ATTACHMENT_CREATE.equals(helper_mode))\n\t\t{\n\t\t\tneed_to_push = true;\n\t\t\thelper_mode = MODE_ATTACHMENT_CREATE_INIT;\n\t\t}\n\t\telse if(MODE_ATTACHMENT_NEW_ITEM.equals(helper_mode))\n\t\t{\n\t\t\tneed_to_push = true;\n\t\t\thelper_mode = MODE_ATTACHMENT_NEW_ITEM_INIT;\n\t\t}\n\t\telse if(MODE_ATTACHMENT_EDIT_ITEM.equals(helper_mode))\n\t\t{\n\t\t\tneed_to_push = true;\n\t\t\thelper_mode = MODE_ATTACHMENT_EDIT_ITEM_INIT;\n\t\t}\n\n\t\tMap current_stack_frame = null;\n\n\t\tif(need_to_push)\n\t\t{\n\t\t\tcurrent_stack_frame = pushOnStack(state);\n\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_INTENT, INTENT_REVISE_FILE);\n\n\t\t\tstate.setAttribute(VelocityPortletPaneledAction.STATE_HELPER, ResourcesAction.class.getName());\n\t\t\tstate.setAttribute(STATE_RESOURCES_HELPER_MODE, helper_mode);\n\n\t\t\tif(MODE_ATTACHMENT_EDIT_ITEM_INIT.equals(helper_mode))\n\t\t\t{\n\t\t\t\tString attachmentId = (String) state.getAttribute(STATE_EDIT_ID);\n\t\t\t\tif(attachmentId != null)\n\t\t\t\t{\n\t\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ID, attachmentId);\n\t\t\t\t\tString collectionId = ContentHostingService.getContainingCollectionId(attachmentId);\n\t\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_COLLECTION_ID, collectionId);\n\n\t\t\t\t\tEditItem item = getEditItem(attachmentId, collectionId, data);\n\n\t\t\t\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// got resource and sucessfully populated item with values\n\t\t\t\t\t\tstate.setAttribute(STATE_EDIT_ALERTS, new HashSet());\n\t\t\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ITEM, item);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tList attachments = (List) state.getAttribute(STATE_ATTACHMENTS);\n\t\t\t\tif(attachments == null)\n\t\t\t\t{\n\t\t\t\t\tattachments = EntityManager.newReferenceList();\n\t\t\t\t}\n\n\t\t\t\tList attached = new Vector();\n\n\t\t\t\tIterator it = attachments.iterator();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tReference ref = (Reference) it.next();\n\t\t\t\t\t\tString itemId = ref.getId();\n\t\t\t\t\t\tResourceProperties properties = ref.getProperties();\n\t\t\t\t\t\tString displayName = properties.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString containerId = ref.getContainer();\n\t\t\t\t\t\tString accessUrl = ContentHostingService.getUrl(itemId);\n\t\t\t\t\t\tString contentType = properties.getProperty(ResourceProperties.PROP_CONTENT_TYPE);\n\n\t\t\t\t\t\tAttachItem item = new AttachItem(itemId, displayName, containerId, accessUrl);\n\t\t\t\t\t\titem.setContentType(contentType);\n\t\t\t\t\t\tattached.add(item);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ignore) {}\n\t\t\t\t}\n\t\t\t\tcurrent_stack_frame.put(STATE_HELPER_NEW_ITEMS, attached);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent_stack_frame = peekAtStack(state);\n\t\t\tif(current_stack_frame.get(STATE_STACK_EDIT_INTENT) == null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_INTENT, INTENT_REVISE_FILE);\n\t\t\t}\n\t\t}\n\t\tif(helper_mode == null)\n\t\t{\n\t\t\thelper_mode = (String) current_stack_frame.get(STATE_RESOURCES_HELPER_MODE);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, helper_mode);\n\t\t}\n\n\t\tString helper_title = (String) current_stack_frame.get(STATE_ATTACH_TITLE);\n\t\tif(helper_title == null)\n\t\t{\n\t\t\thelper_title = (String) state.getAttribute(STATE_ATTACH_TITLE);\n\t\t\tif(helper_title != null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame.put(STATE_ATTACH_TITLE, helper_title);\n\t\t\t}\n\t\t}\n\t\tif(helper_title != null)\n\t\t{\n\t\t\tcontext.put(\"helper_title\", helper_title);\n\t\t}\n\n\t\tString helper_instruction = (String) current_stack_frame.get(STATE_ATTACH_INSTRUCTION);\n\t\tif(helper_instruction == null)\n\t\t{\n\t\t\thelper_instruction = (String) state.getAttribute(STATE_ATTACH_INSTRUCTION);\n\t\t\tif(helper_instruction != null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame.put(STATE_ATTACH_INSTRUCTION, helper_instruction);\n\t\t\t}\n\t\t}\n\t\tif(helper_instruction != null)\n\t\t{\n\t\t\tcontext.put(\"helper_instruction\", helper_instruction);\n\t\t}\n\n\t\tString title = (String) current_stack_frame.get(STATE_STACK_EDIT_ITEM_TITLE);\n\t\tif(title == null)\n\t\t{\n\t\t\ttitle = (String) state.getAttribute(STATE_ATTACH_TEXT);\n\t\t\tif(title != null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ITEM_TITLE, title);\n\t\t\t}\n\t\t}\n\t\tif(title != null && title.trim().length() > 0)\n\t\t{\n\t\t\tcontext.put(\"helper_subtitle\", title);\n\t\t}\n\n\t\tString template = null;\n\t\tif(MODE_ATTACHMENT_SELECT_INIT.equals(helper_mode))\n\t\t{\n\t\t\ttemplate = buildSelectAttachmentContext(portlet, context, data, state);\n\t\t}\n\t\telse if(MODE_ATTACHMENT_CREATE_INIT.equals(helper_mode))\n\t\t{\n\t\t\ttemplate = buildCreateContext(portlet, context, data, state);\n\t\t}\n\t\telse if(MODE_ATTACHMENT_NEW_ITEM_INIT.equals(helper_mode))\n\t\t{\n\t\t\ttemplate = buildItemTypeContext(portlet, context, data, state);\n\t\t}\n\t\telse if(MODE_ATTACHMENT_EDIT_ITEM_INIT.equals(helper_mode))\n\t\t{\n\t\t\ttemplate = buildEditContext(portlet, context, data, state);\n\t\t}\n\t\treturn template;\n\t}",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"public static synchronized DatabaseHelper getInstance (Context context){\n\n if(mHelper == null) {\n mHelper = new DatabaseHelper(context.getApplicationContext());\n }\n return mHelper;\n }",
"public static synchronized VaultDatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new VaultDatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"public static CalendarDBhelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new CalendarDBhelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"private static SQLiteOpenHelper getSQLiteOpenHelper(Context context){\n if(InsertDataToDB.dbHelper == null){\n InsertDataToDB.dbHelper = new ValaisStudyDBHelper(context);\n }\n return InsertDataToDB.dbHelper;\n }",
"public static void initializeApp(Context context) {\n }",
"private void createSharedSingletons(Context applicationContext) {\n\t\t// Create Active User\n\t\tActiveUserModel.createInstance(applicationContext);\n\n\t\t// Create Favorites List\n\t\tFavoriteTopicModelList.createInstance(applicationContext);\n\t\tFavoriteCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Read Later list\n\t\tReadLaterTopicModelList.createInstance(applicationContext);\n\t\tReadLaterCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Location Provider\n\t\tLocationProvider.getInstance(applicationContext);\n\t}",
"public PreferencesHelper(Context context) {\n\t\tthis.sharedPreferences = context.getSharedPreferences\n\t\t\t\t(APP_SHARED_PREFS, Activity.MODE_PRIVATE);\n\t\tthis.editor = sharedPreferences.edit();\n\t}",
"public static CharacterAttacksDatabaseHelper getInstance(Context context){\n\n if(dbHelper == null){\n\n synchronized (CharacterAttacksDatabaseHelper.class){\n\n if(dbHelper == null){\n\n dbHelper = new CharacterAttacksDatabaseHelper(context);\n }\n }\n }\n\n return dbHelper;\n }",
"protected abstract Context getMockContext(Context context);",
"private void setupContext() throws PackageManager.NameNotFoundException {\n when(context.getPackageName()).thenReturn(\"com.owlr.test\");\n when(context.getPackageManager()).thenReturn(packageManager);\n when(packageManager.getApplicationInfo(\"com.owlr.test\",\n PackageManager.GET_META_DATA)).thenReturn(applicationInfo);\n applicationInfo.metaData = bundle;\n }",
"public static synchronized DatabaseUserHelper getInstance(Context context) {\n if (sInstance == null) {\n mContext = context.getApplicationContext();\n sInstance = new DatabaseUserHelper(mContext);\n }\n return sInstance;\n }",
"@Provides\n @NonNull\n // Safe here as it is a module provider\n @SuppressWarnings(\"unused\")\n static PreferencesUtils providePreferencesUtils(@NonNull ChilindoWeatherApplication context) {\n return new PreferencesUtils(context);\n }",
"public static synchronized LayerHelper getInstance(Context context) {\n if (mLayerHelper == null) {\n mLayerHelper = new LayerHelper(context);\n }\n return mLayerHelper;\n }",
"private Builder(Context context){ this.context=context;}",
"public static synchronized CustomerDbHelper getInstance(Context _context) {\n if (sInstance == null) {\n sInstance = new CustomerDbHelper(_context.getApplicationContext());\n }\n return sInstance;\n }",
"private ApplicationContext()\n\t{\n\t}",
"protected void setup(Context context) {}",
"public static void init(@NonNull final Context context) {\n BlankjUtils.sApplication = (Application) context.getApplicationContext();\n }",
"public abstract Context context();",
"public PrefabContextHelper(ContextStore contextStore) {\n this.contextStore = contextStore;\n }",
"public static BaseDbHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new BaseDbHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"private DatabaseAccess(Context context) {\n this.openHelper = new MyDatabase(context);\n }",
"public static DbHelper getInstance(Context context) {\n if(instance == null) {\n Log.d(TAG, \"getInstance: creating new instance\");\n instance = new DbHelper(context);\n }\n\n return instance;\n }",
"static synchronized DownloadDatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DownloadDatabaseHelper(context);\n }\n return sInstance;\n }",
"AndroidAppInterface(Context context) {\n this.mContext = context;\n }",
"public static DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"public static DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"public static synchronized DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"Lab create(Context context);",
"private TemplateManagerHelper() {\n\n }",
"public static DBHelper getDBHelper(Context context) {\n if (dbh == null) {\n dbh = new DBHelper(context.getApplicationContext());\n Log.i(TAG, \"getDBHelper, dbh == null\");\n }\n Log.i(TAG, \"getDBHelper()\");\n return dbh;\n }",
"public ActorHelper(Context context) {\n\t\tsuper();\n\t\tthis.context = context;\n\t\tactorDbAdapter = new ActorsDbAdapter(this.context);\n\t}",
"public abstract T mo36028b(Context context);",
"protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);",
"ContextVariable createContextVariable();",
"public ApplicationStub(final Context context) {\n super(context);\n }",
"public abstract ApplicationLoader.Context context();",
"public static Datamining getInstance (Context context) {\r\n if (datamining == null) {\r\n datamining = new Datamining(context);\r\n }\r\n return datamining;\r\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"private DBHelper(Context context){\n this.context= context;\n tablesClass = new TablesClass(context, Constants.DATABASE_NAME,null,Constants.DB_VERSION);\n\n }",
"public void init(MailetContext context);",
"public static DatabaseHelper getInstance(Context context) {\n if (mInstance == null) {\n mInstance = new DatabaseHelper(context);\n }\n return mInstance;\n }",
"public static void initialize(@Nullable Context context) {\n if (sInstance == null) {\n sInstance = new AndroidContext(context);\n }\n }",
"private SpringBoHelper() {\n\n\t}",
"private CustomerDatabaseHelper(Context context){\n _openHelper = new DatabaseOpenHelper(context);\n }",
"public DataBaseHelper(Context context) {\n \n \tsuper(context, DB_NAME, null, 1);\n this.myContext = context;\n }",
"void init(@NotNull ExecutionContext context);",
"public DataBaseHelper(Context context) {\n\n super(context, DB_NAME, null, 1);\n this.myContext = context;\n }",
"public TemplateAvailabilityProviders(ApplicationContext applicationContext)\n/* */ {\n/* 79 */ this(applicationContext == null ? null : applicationContext.getClassLoader());\n/* */ }",
"void mo25261a(Context context);",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"private static OPFPushHelper createHelperWithMockSenderPushProvider() {\n final Configuration.Builder builder = new Configuration.Builder()\n .addProviders(new MockSenderPushProvider())\n .setEventListener(new TestEventListener());\n\n final OPFPushHelper helper = OPFPushHelper.newInstance(Robolectric.application);\n helper.init(builder.build());\n return helper;\n }",
"public static DiagnosticFormatter instance(Context context) {\n\tDiagnosticFormatter instance = context.get(formatterKey);\n\tif (instance == null)\n\t instance = new DiagnosticFormatter(context);\n\treturn instance;\n }",
"public static EglBase create(Context sharedContext) {\n return create(sharedContext, CONFIG_PLAIN);\n }",
"private DatabaseAccess(Context context) {\n this.openHelper = new RecipesDatabase(context);\n }",
"public static EndlessScrollApplication getInstance(Context context) {\n return (EndlessScrollApplication) context.getApplicationContext();\n }",
"public static synchronized DatabaseHelper getInstance(Context context) { \n\t\t // Use the application context, which will ensure that you \n\t\t // don't accidentally leak an Activity's context.\n\t\t // See this article for more information: http://bit.ly/6LRzfx\n\t\t if (sInstance == null) {\n\t\t sInstance = new DatabaseHelper(context.getApplicationContext());\n\t\t }\n\t\t return sInstance;\n\t\t}",
"public DbHelper(Context context) {\n super(context, DBNAME, null, 1);\n }",
"public static MyFileContext create() {\n\t\treturn new MyContextImpl();\n\t}",
"public IPrivateTestCompView.IContextElement createAndAddContextElement() {\r\n return (IPrivateTestCompView.IContextElement)createAndAddElement();\r\n }",
"public Context getApplicationContext();",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"Object doWithContext(final Context context) throws ExceptionBase;",
"public static Controller getInstance(Context _context) {\r\n if (sInstance == null) {\r\n sInstance = new Controller(_context);\r\n } else {\r\n \tsInstance.mContext = _context;\r\n }\r\n return sInstance;\r\n }",
"public static MySQLiteHelper getInstance(Context ctx) {\n if (mInstance == null) {\r\n mInstance = new MySQLiteHelper(ctx.getApplicationContext());\r\n }\r\n return mInstance;\r\n }",
"public static synchronized DatabaseHelper getInstance(Context context) {\n /* Use the application context, which will ensure that you don't accidentally leak an\n * Activity's context. See this article for more information: http://bit.ly/6LRzfx*/\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }",
"synchronized public static RecipeRepo getInstance(Context applicationContext){\n if(sInstance == null){\n sInstance = new RecipeRepo(applicationContext.getApplicationContext());\n }\n return sInstance;\n }",
"WebAppInterface(Context c) {\r\n\t mContext = c;\r\n\t }",
"public static CustomerDatabaseHelper getInstance(Context context){\n if(_instance == null){\n _instance = new CustomerDatabaseHelper(context);\n }\n return _instance;\n }",
"public MyApp() {\n sContext = this;\n }",
"public AbstractBuilder(Context context)\n\t{\n\t\tthis.context = context;\n\t}",
"public Builder(Activity context) {\n this.context = new WeakReference<>(context);\n this.imageConfig = new ImageConfig();\n }"
] | [
"0.6557713",
"0.65169466",
"0.65169466",
"0.6489608",
"0.6203809",
"0.6203809",
"0.60992265",
"0.5974324",
"0.5972427",
"0.58484054",
"0.5831768",
"0.581384",
"0.57938844",
"0.57885826",
"0.57706237",
"0.5768545",
"0.5759409",
"0.56711066",
"0.56598115",
"0.56565243",
"0.56490517",
"0.5622672",
"0.56211114",
"0.56150794",
"0.5611144",
"0.5586666",
"0.5586186",
"0.55396885",
"0.5533604",
"0.54958606",
"0.54890645",
"0.54888225",
"0.54794633",
"0.5478842",
"0.5470785",
"0.5464969",
"0.5453542",
"0.54511476",
"0.544447",
"0.5433812",
"0.54321414",
"0.5428926",
"0.5426668",
"0.5421212",
"0.54166186",
"0.54089963",
"0.53977185",
"0.53892183",
"0.5388974",
"0.53833103",
"0.537494",
"0.53719807",
"0.53719807",
"0.536837",
"0.5367412",
"0.53642386",
"0.53502405",
"0.53287125",
"0.5328142",
"0.53211963",
"0.5312271",
"0.53064317",
"0.53051627",
"0.5293344",
"0.52732265",
"0.52732265",
"0.5272591",
"0.52723557",
"0.52607507",
"0.52583313",
"0.52454",
"0.5234717",
"0.522028",
"0.5213088",
"0.52050656",
"0.5202893",
"0.5201099",
"0.5199793",
"0.5199793",
"0.5199793",
"0.5198901",
"0.51978064",
"0.5197663",
"0.51763",
"0.51759684",
"0.51716065",
"0.5168822",
"0.51663905",
"0.51651394",
"0.516109",
"0.5160107",
"0.5144713",
"0.5141764",
"0.5140793",
"0.5139428",
"0.51354486",
"0.5121603",
"0.5118101",
"0.5116121",
"0.5099117",
"0.5090998"
] | 0.0 | -1 |
TODO: This is only valid for the first version! We have to implement "real" update mechanisms | @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\r\n\tpublic void update() {\r\n\t}",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"public void update() {}",
"@Override\n public void update() {\n \n }",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\n\t\tpublic void update() throws IOException {\n\t\t}",
"@Override\n public void update() {\n }",
"@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t}",
"@Override\n public void update() {\n }",
"Update createUpdate();",
"long getUpdated();",
"public void update() {\n\t\t\n\t}",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"@Override\n public void update() {\n\n }",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\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}",
"@Override\n public void update()\n {\n\n }",
"public void update(){}",
"public void update(){}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"private void updateFiles() {\n\t}",
"public void update() {\n \t\tthrow new UnsupportedOperationException(\"Not implemented at this level\");\n \t}",
"public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}",
"public void update() {\r\n\t\t\r\n\t}",
"protected abstract void update();",
"protected abstract void update();",
"@Override\n\tpublic void uppdate() {\n\t\t\n\t}",
"@Override\n\tpublic void uppdate() {\n\t\t\n\t}",
"Snapshot.Update update();",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"@Override\n\tpublic boolean supportsUpdate() {\n\t\treturn false;\n\t}",
"String getUpdated();",
"public void update(){\n \t//NOOP\n }",
"public void update() {\n }",
"void updateIfNeeded()\n throws Exception;",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}",
"public void updateData() {}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"protected abstract boolean supportsForUpdate();",
"void updateInformation();",
"@Override\n\tpublic void preUpdate() {\n\n\t}",
"public void update() ;",
"@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}",
"@Override\n public void update() {\n updateBuffs();\n }",
"public void receivedUpdateFromServer();",
"public void updateInfo() {\n\t}",
"protected abstract void update();",
"public void attemptToUpdate();",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"@Override\n protected void updateProperties() {\n }",
"public void update() {\n\n }"
] | [
"0.7378769",
"0.7378769",
"0.7378769",
"0.70894057",
"0.70894057",
"0.70684385",
"0.70684385",
"0.69725186",
"0.69652486",
"0.69652486",
"0.69652486",
"0.69652486",
"0.69652486",
"0.69365865",
"0.6932922",
"0.6932922",
"0.6932922",
"0.6932922",
"0.6932922",
"0.6932922",
"0.6916247",
"0.6907312",
"0.68710774",
"0.6861877",
"0.6821557",
"0.6821557",
"0.6750466",
"0.6750466",
"0.6750466",
"0.67501086",
"0.67225814",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6718291",
"0.6711408",
"0.6702861",
"0.6702861",
"0.66611713",
"0.66523784",
"0.6640175",
"0.66105425",
"0.6605041",
"0.65780854",
"0.6545343",
"0.65442187",
"0.6530404",
"0.6530404",
"0.65154386",
"0.6504218",
"0.64913833",
"0.64913833",
"0.64913833",
"0.6489936",
"0.64586854",
"0.64586854",
"0.6437309",
"0.6437309",
"0.6437309",
"0.6437309",
"0.6398528",
"0.6327372",
"0.63205343",
"0.631603",
"0.63141936",
"0.63141936",
"0.63113683",
"0.63113683",
"0.6308516",
"0.62520945",
"0.62365854",
"0.6226319",
"0.6218984",
"0.62003624",
"0.61926645",
"0.6183739",
"0.6183739",
"0.61648977",
"0.61628956",
"0.6157079",
"0.6143827",
"0.61185455",
"0.6111353",
"0.60965896",
"0.609505",
"0.6087778",
"0.60847974",
"0.6082893",
"0.60757214",
"0.60753953",
"0.6066893",
"0.6047851",
"0.60473657",
"0.60395205",
"0.60388476"
] | 0.0 | -1 |
Clears the database: Recreates all tables | public void clearDatabase(SQLiteDatabase db) {
dropTables(db);
createTables(db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}",
"public void clearDatabase();",
"public void clearTables()\n\t{\n\t\ttry {\n\t\t\tclearStatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"@Override\n public void clearDB() throws Exception {\n hBaseOperation.deleteTable(this.dataTableNameString);\n hBaseOperation.createTable(this.dataTableNameString, this.columnFamily, numRegion);\n }",
"public void clearTheDB(boolean logout) {\n\n // NOTE : I didn't use \"TableUtils.clearTable\" as the ORMLite library author advising not to use it\n // and use Drop & Create instead for some auto-increment issues he is not sure of\n try {\n // first drop all of the tables\n TableUtils.dropTable(connectionSource, Cards.class, true);\n\n // then create all of them again\n TableUtils.createTable(connectionSource, Cards.class);\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}",
"public void clearTables() {\n\t _database.delete(XREF_TABLE, null, null);\n\t _database.delete(ORDER_RECORDS_TABLE, null, null); \n\t}",
"public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}",
"public void resetTables() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_LOGIN, null, null);\n db.close();\n }",
"@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"public void emptyDb() {\n\t\tgetReadableDatabase().execSQL(\"DELETE FROM \" + TABLE_ABSTRACT_DETAILS);\n\t}",
"@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}",
"public void clear() throws DBException\n {\n String sqlString = \"DELETE FROM user\";\n try(Statement statement = conn.createStatement())\n {\n statement.executeUpdate(sqlString);\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Error while clearing user table\");\n }\n\n\n }",
"public void resetDB()\n\t{\n\t\tshutdown();\n\t\t\n\t\tif(Files.exists(m_databaseFile))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t\t\n\t\tloadDatabase();\n\t\tupdateCommitNumber();\n\t\tupdateDatabase();\n\t}",
"public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }",
"public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }",
"public void resetTables(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(User.TABLE_USER_NAME, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }",
"public void wipeDB() {\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tdb.delete(EventDataSQLHelper.TABLE, null, null);\n\t\tdb.close();\n }",
"public void clear() {\n\t\tLog.i(TAG, \"clear table \" + TABLE_USER);\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tdb.delete(TABLE_USER, null, null);\n\t}",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"public static void deleteDatabase() {\n\n deleteDatabaseHelper(Paths.get(DATA_DIR));\n\n }",
"public void resetDB(SQLiteDatabase db) {\n db.execSQL(SQL_DELETE_ENTRIES);\n onCreate(db);\n }",
"public void cleanTable() throws ClassicDatabaseException;",
"public void deleteDB(){\n \t\tSQLiteDatabase db = this.getWritableDatabase();\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS user\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS poll\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS time\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS status\");\n \t\tonCreate(db);\n \t}",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"public void dropAllCreateAgain() {\n\t\tSQLiteDatabase db = getWritableDatabase() ;\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AUTHORS_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AUTHOR_POSITION_AFFILIATION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AFFILIATION_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AFFILIATION_ID_POSITION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_REFERENCES);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_FIGURES);\n\t\tonCreate(db);\n\t\t}",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"public void flushAllTables() {\n\t}",
"static void emptyTable () {\n Session session = null;\n Transaction transaction = null;\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n Query query = session.createQuery(\"DELETE from ReservationsEntity \");\n query.executeUpdate();\n Query query2 = session.createQuery(\"DELETE from OrdersEntity \");\n query2.executeUpdate();\n\n Query query3 = session.createQuery(\"DELETE from TablesEntity \");\n query3.executeUpdate();\n transaction.commit();\n }\n catch (Exception e)\n {\n if (transaction != null) {\n transaction.rollback();\n }\n throw e;\n } finally {\n if (session != null) {\n session.close();\n }\n }\n }",
"public void clearTable(String tableName) throws Exception {\n DefaultDataSet dataset = new DefaultDataSet();\n dataset.addTable(new DefaultTable(tableName));\n DatabaseOperation.DELETE_ALL.execute(conn, dataset);\n }",
"public void clear() {\n tableCache.invalidateAll();\n }",
"@BeforeEach\n @AfterEach\n public void clearDatabase() {\n \taddressRepository.deleteAll();\n \tcartRepository.deleteAll();\n \tuserRepository.deleteAll();\n }",
"@Override\r\n\tpublic void deleteDatabase() {\r\n\t\tlog.info(\"Enter deleteDatabase\");\r\n\r\n\t\t\r\n\t\tConnection connection = null;\t\t\r\n\t\ttry {\r\n\t\t\tconnection = jndi.getConnection(\"jdbc/libraryDB\");\t\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"Drop Table Users_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cams_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table User_Cam_Mapping_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cam_Images_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Datenbank wurde erfolgreich zurueckgesetzt!\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Fehler: \"+e.getMessage());\r\n\t\t\tlog.error(\"Error: \"+e.getMessage());\r\n\t\t} finally {\r\n\t\t\tcloseConnection(connection);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void dropAndCreate(SQLiteDatabase db) {\n\t\tfor (TableHelper th : getTableHelpers()) {\n\t\t\tth.dropAndCreate(db);\n\t\t}\n\t}",
"public void clear() throws DBException\n {\n String sqlString = \"DELETE FROM authToken\";\n try(Statement statement = conn.createStatement())\n {\n statement.executeUpdate(sqlString);\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Error while clearing authToken table\");\n }\n }",
"public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }",
"public synchronized void removeAll(SQLiteDatabase db) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n }",
"public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}",
"public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }",
"public void clearUserTable() {\n\t\tSQLDelete deleteStatament = new SQLDelete();\n\t\tdeleteStatament.clearUserTable();\n\t}",
"@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }",
"public void deleteAll() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME , null , null);\n }",
"private void clearTable(String tableName) throws SQLException {\n Connection conn = getConnection();\n String setStatement = \"DELETE FROM \" + tableName;\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }",
"public void deleteAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"delete from \" + TABLE_NAME);\n }",
"@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}",
"public void wipeDatabaseData() {\n\t\tdbHelper.onUpgrade(database, 0, 1);\n\t}",
"private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence_profile\");\n }",
"void dropDatabase();",
"public void upgrade() {\n\t\t\tLog.w(\"\" + this, \"Upgrading database \"+ db.getPath() + \" from version \" + db.getVersion() + \" to \"\n\t + DATABASE_VERSION + \", which will destroy all old data\");\n\t db.execSQL(\"DROP TABLE IF EXISTS agencies\");\n\t db.execSQL(\"DROP TABLE IF EXISTS stops\");\n\t create();\n\t\t}",
"public void dropAllTables(SQLiteDatabase db){\n dropTable(db, TABLE_SUBSCRIPTIONS);\r\n }",
"public void DropTables() {\n\t\ttry {\n\t\t\tDesinstall_DBMS_MetaData();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void truncateTable() throws SQLException {\n trace(\"truncateTable\");\n String command = \"TRUNCATE TABLE \" + _tableName;\n Statement stmt = _connection.createStatement();\n stmt.executeUpdate(command);\n stmt.close();\n }",
"public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n SbjectDao.dropTable(db, ifExists);\n SourceDao.dropTable(db, ifExists);\n }",
"void deleteTheDatabase() {\n mContext.deleteDatabase(MovieDBHelper.DATABASE_NAME);\n }",
"public void deleteAllData() {\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(TABLE_HISTORY, null, null);\n db.delete(TABLE_LASTSCAN, null, null);\n db.delete(TABLE_SENSOR, null, null);\n db.delete(TABLE_SCANS, null, null);\n\n db.setTransactionSuccessful();\n } catch (Exception e) {\n\n } finally {\n db.endTransaction();\n }\n }",
"@Override\n public void deleteAll() {\n String deleteAllQuery = \"DELETE FROM \" + getTableName();\n getJdbcTemplate().execute(deleteAllQuery);\n }",
"public static final void clear() {\n DATABASE.getUsers().clear();\n DATABASE.getTokens().clear();\n DATABASE.getTokenUserMap().clear();\n DATABASE.getUsers().add(new User(\"Max\", \"password\"));\n }",
"void dropAllTablesForAllConnections();",
"public void clearLifeloggingTables() throws SQLException, ClassNotFoundException {\n\t\tString sqlCommand1 = \"DELETE TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DELETE TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.close();\n\t}",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n TopCategoriesDao.dropTable(db, ifExists);\n CategoriesDao.dropTable(db, ifExists);\n BrandsDao.dropTable(db, ifExists);\n StoreDao.dropTable(db, ifExists);\n PostDao.dropTable(db, ifExists);\n ProductDao.dropTable(db, ifExists);\n BrandUpdatesDao.dropTable(db, ifExists);\n TipsDao.dropTable(db, ifExists);\n RelatedProductsDao.dropTable(db, ifExists);\n PostCollectionDao.dropTable(db, ifExists);\n }",
"@After\n public void clearup() {\n try {\n pm.close();\n DriverManager.getConnection(\"jdbc:derby:memory:test_db;drop=true\");\n } catch (SQLException se) {\n if (!se.getSQLState().equals(\"08006\")) {\n // SQLState 08006 indicates a success\n se.printStackTrace();\n }\n }\n }",
"void dropAllTables();",
"public void closeAndDeleteDB() {\n\t\tboolean gotSQLExc = false;\n\t\ttry {\n\t\t\tthis.deleteAllTable();\n\t\t\tconn.close();\n //DriverManager.getConnection(\"jdbc:derby:;shutdown=true\"); \n \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tif (e.getSQLState().equals(\"XJ015\") ) {\t\t\n\t gotSQLExc = true;\n\t } else e.printStackTrace();\n\t\t}\n//\t\t\n//\t\tif (!gotSQLExc) {\n//\t \t System.out.println(\"Database did not shut down normally\");\n//\t } else {\n//\t System.out.println(\"Database shut down normally\");\t\n//\t }\n\t\t\n\t}",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n\t\tProvinceDao.dropTable(db, ifExists);\n\t\tCityDao.dropTable(db, ifExists);\n\t\tCityAreaDao.dropTable(db, ifExists);\n\t}",
"public void resetContactsTable(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(Contacts.TABLE_CONTACTS, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }",
"public void Clear() throws DataAccessException {\n try (Statement stmt = conn.createStatement()){\n String sql = \"DELETE FROM Event\";\n stmt.executeUpdate(sql);\n } catch (SQLException e) {\n throw new DataAccessException(\"SQL Error encountered while clearing tables\");\n }\n }",
"@After\n public void destroyDatabase() {\n dbService.closeCurrentSession();\n dbService.getDdlInitializer()\n .cleanDB();\n }",
"private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }",
"public void deleteDB() {\n File dbFile = new File(dbPath + dbName);\n if (dbFile.exists()) {\n dbFile.delete();\n }\n }",
"public void deleteDatabase() {\n synchronized (mLock) {\n Log.d(\"Deleting database.\");\n File path = mContext.getDatabasePath(DatabaseOpenHelper.NAME);\n FileUtils.deleteQuietly(path);\n mOpenHelper = null;\n }\n }",
"@Override\n public void deleteAll(final Connection _con) throws SQLException {\n\n final Statement stmtSel = _con.createStatement();\n final Statement stmtExec = _con.createStatement();\n\n try {\n // remove all foreign keys\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Foreign Keys\");\n }\n ResultSet rs = stmtSel.executeQuery(SELECT_ALL_KEYS);\n while (rs.next()) {\n final String tableName = rs.getString(1);\n final String constrName = rs.getString(2);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - Table '\" + tableName + \"' Constraint '\" + constrName + \"'\");\n }\n stmtExec.execute(\"alter table \" + tableName + \" drop constraint \" + constrName);\n }\n rs.close();\n\n // remove all views\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Views\");\n }\n rs = stmtSel.executeQuery(SELECT_ALL_VIEWS);\n while (rs.next()) {\n final String viewName = rs.getString(1);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - View '\" + viewName + \"'\");\n }\n stmtExec.execute(\"drop view \" + viewName);\n }\n rs.close();\n\n // remove all tables\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Tables\");\n }\n rs = stmtSel.executeQuery(SELECT_ALL_TABLES);\n while (rs.next()) {\n final String tableName = rs.getString(1);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - Table '\" + tableName + \"'\");\n }\n stmtExec.execute(\"drop table \" + tableName);\n }\n rs.close();\n } finally {\n stmtSel.close();\n stmtExec.close();\n }\n }",
"private void deleteDatabase() {\n mOpenHelper.close();\r\n Context context = getContext();\r\n NoteDatabase.deleteDatabase(context);\r\n mOpenHelper = new NoteDatabase(getContext());\r\n }",
"@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }",
"public void clearAllUsers() {\n\n realm.beginTransaction();\n realm.delete(User.class);\n realm.commitTransaction();\n }",
"public void deleteAll() throws SQLException {\n\t\tfinal String sql = \"DELETE FROM \" + table_name;\n\t\tPreparedStatement statement = null;\n\n\t\ttry {\n\t\t\tfinal Connection connection = _database.getConnection();\n\t\t\tstatement = connection.prepareStatement(sql);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tfinal int rowcount = update(statement);\n\t\t} finally {\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\t\t}\n\t}",
"public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().remove(i);\r\n\t\t\t\tDatabaseUniverse.setDatabaseNumber(-1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}",
"void deleteTheDatabase() {\n mContext.deleteDatabase(MoviesDbHelper.DATABASE_NAME);\n }",
"private static void dropTablesFromDatabase (Statement statement) throws SQLException {\n //Удаление таблиц из БД\n statement.execute(\"DROP TABLE IF EXISTS payment;\");\n statement.execute(\"DROP TABLE IF EXISTS account;\");\n statement.execute(\"DROP TABLE IF EXISTS users;\");\n statement.execute(\"DROP TABLE IF EXISTS role;\");\n }",
"public void clear() {\n\t\tjobInstanceDao.clear();\n\t\tjobExecutionDao.clear();\n\t\tstepExecutionDao.clear();\n\t\texecutionContextDao.clear();\n\t}",
"public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"private void dropTables(SQLiteDatabase db) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NEWS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEEDS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CATEGORIES);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_IMAGES);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n db.execSQL(DROP_MONTH_TABLE);\n db.execSQL(DROP_EXPECTED_TABLE);\n db.execSQL(DROP_PERIOD_TABLE);\n db.execSQL(DROP_TRANSACT_TABLE);\n db.execSQL(DROP_TYPE_TABLE);\n db.execSQL(DROP_CATEGORY_TABLE);\n // Create tables again\n onCreate(db);\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"public void clearDB(){\n \t\tbuilderDelete = new AlertDialog.Builder(this);\n \n \t\t// set title\n \t\tbuilderDelete.setTitle(\"Delete Your Checkbook?\");\n \n \t\tbuilderDelete.setMessage(\n \t\t\t\t\"Do you want to completely delete the database?\\n\\nTHIS IS PERMANENT.\")\n \t\t\t\t.setCancelable(false)\n \t\t\t\t.setPositiveButton(\"Yes\",\n \t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n \t\t\t\t\tpublic void onClick(DialogInterface arg0,\n \t\t\t\t\t\t\tint arg1) {\n \t\t\t\t\t\tdestroyDatabase();\n \t\t\t\t\t}\n \t\t\t\t})\n \t\t\t\t.setNegativeButton(\"No\",\n \t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n \t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n \t\t\t\t\t\t// no action taken\n \t\t\t\t\t}\n \t\t\t\t}).show();\n \n \t}",
"void deleteTheDatabase() {\n mContext.deleteDatabase(MediaDbHelper.DATABASE_NAME);\n }",
"public static void dropAllTables(Database db, boolean ifExists) {\n DiaryReviewDao.dropTable(db, ifExists);\n EncourageSentenceDao.dropTable(db, ifExists);\n ImportDateDao.dropTable(db, ifExists);\n ScheduleTodoDao.dropTable(db, ifExists);\n TargetDao.dropTable(db, ifExists);\n TomatoTodoDao.dropTable(db, ifExists);\n UpTempletDao.dropTable(db, ifExists);\n UserDao.dropTable(db, ifExists);\n }",
"public void destroyDatabase(){\n \n \t\t//Make sure database exist so you don't attempt to delete nothing\n \t\tmyDB = openOrCreateDatabase(dbFinance, MODE_PRIVATE, null);\n \n \t\t//Make sure database is closed before deleting; not sure if necessary\n \t\tif (myDB != null){\n \t\t\tmyDB.close();\n \t\t}\n \n \t\ttry{\n \t\t\tthis.deleteDatabase(dbFinance);\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tToast.makeText(this, \"Error Deleting Database!!!\\n\\n\" + e, Toast.LENGTH_LONG).show();\n \t\t}\n \n \t\t//Navigate User back to dashboard\n \t\tIntent intentDashboard = new Intent(Options.this, Main.class);\n \t\tintentDashboard.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n \t\tstartActivity(intentDashboard);\n \n \t}",
"void flushDB();",
"public void delete(){\n // clear the table\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(SportPartnerDBContract.LoginDB.TABLE_NAME, null, null);\n }",
"private boolean clearH2Database() {\n \tboolean result = false;\n\t\tCnfDao cnfDao = new CnfDao();\n\t\tcnfDao.setDbConnection(H2DatabaseAccess.getDbConnection());\n\n\t\ttry {\n\t\t\tresult = cnfDao.clearCnfTables();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR, failed clear CNF tables in H2 database\");\n\t\t}\n\n\t\treturn result;\n\t}",
"public void adm1() {\n\t\ttry { // Delete all table contents\n\t\t\tstatement = connection.createStatement();\n\t\t\tstatement.executeQuery(\"delete from PLANE\");\n\t\t\tstatement.executeQuery(\"delete from FLIGHT\");\n\t\t\tstatement.executeQuery(\"delete from PRICE\");\n\t\t\tstatement.executeQuery(\"delete from CUSTOMER\");\n\t\t\tstatement.executeQuery(\"delete from RESERVATION\");\n\t\t\tstatement.executeQuery(\"delete from DETAIL\");\n\t\t\tstatement.executeQuery(\"delete from OUR_DATE\");\n\t\t\tstatement.executeQuery(\"delete from AIRLINE\");\n\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\tSystem.out.println(\"DATABASE ERASED\");\n\t}",
"public void clearTable() {\n reportTable.getColumns().clear();\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n TipsDao.dropTable(db, ifExists);\n }"
] | [
"0.79079014",
"0.78851026",
"0.78176945",
"0.7785335",
"0.776057",
"0.77201885",
"0.7701448",
"0.7585905",
"0.75295883",
"0.7438932",
"0.7412938",
"0.7391783",
"0.738241",
"0.72920376",
"0.7266497",
"0.7257492",
"0.7252354",
"0.7212497",
"0.7191711",
"0.714248",
"0.7135935",
"0.69950527",
"0.6968726",
"0.68229",
"0.6787043",
"0.67702854",
"0.67652935",
"0.67404604",
"0.67254055",
"0.669637",
"0.6685088",
"0.66555667",
"0.66152996",
"0.66056794",
"0.6605191",
"0.65906405",
"0.6559287",
"0.65464103",
"0.65168184",
"0.6510232",
"0.65029097",
"0.650238",
"0.64807373",
"0.6472785",
"0.6472675",
"0.64502144",
"0.64324516",
"0.6412055",
"0.6411808",
"0.6410274",
"0.6390646",
"0.63901085",
"0.63886815",
"0.63607603",
"0.63588166",
"0.63585985",
"0.6357431",
"0.63429743",
"0.6332807",
"0.632792",
"0.6320215",
"0.6319538",
"0.6302323",
"0.62771946",
"0.62724584",
"0.62581503",
"0.6244869",
"0.6236548",
"0.62333554",
"0.62309647",
"0.6200223",
"0.61917347",
"0.616457",
"0.61602515",
"0.6152779",
"0.61426365",
"0.6133278",
"0.6127075",
"0.61164135",
"0.61054736",
"0.60935396",
"0.60856307",
"0.6080185",
"0.60773253",
"0.60742635",
"0.6065948",
"0.6064791",
"0.6061681",
"0.60465217",
"0.60465217",
"0.6046386",
"0.6040331",
"0.60355663",
"0.6031027",
"0.6012818",
"0.6006473",
"0.60059494",
"0.60044456",
"0.6004294",
"0.59960943"
] | 0.7970668 | 0 |
Create and fill the needed tables for the news module | private void createTables(SQLiteDatabase db) {
db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_CATEGORIES + " (" + CATEGORIES_ID
+ " integer primary key autoincrement, " + CATEGORIES_NAME + " text not null, " + CATEGORIES_ICON
+ " blob, " + CATEGORIES_INTERVAL + " integer not null, " + CATEGORIES_LASTUPDATE + " date);");
db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_FEEDS + " (" + FEEDS_ID
+ " integer primary key autoincrement, " + FEEDS_NAME + " text, " + FEEDS_URL + " text not null, "
+ FEEDS_ACTIVATED + " integer default 1, " + FEEDS_CID + " integer, " + "FOREIGN KEY (" + FEEDS_CID
+ ") REFERENCES " + TABLE_CATEGORIES + " (" + CATEGORIES_ID + ") ON DELETE CASCADE);");
db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NEWS + " (" + NEWS_ID
+ " integer primary key autoincrement, " + NEWS_READ + " integer default 0, " + NEWS_TITLE
+ " text, " + NEWS_SUMMARY + " text, " + NEWS_DATE + " date, " + NEWS_CONTENT + " text, "
+ NEWS_GUID + " text not null unique, " + NEWS_URL + " text not null unique, " + NEWS_IMAGE
+ " text, " + NEWS_FID + " integer, " + "FOREIGN KEY (" + NEWS_FID + ") REFERENCES " + TABLE_FEEDS
+ " (" + FEEDS_ID + ") ON DELETE CASCADE);");
db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_IMAGES + " (" + IMAGES_ID
+ " integer primary key autoincrement, " + IMAGES_URL + " text not null unique, " + IMAGES_CONTENT
+ " blob, " + IMAGES_DATE + " date default (datetime('now')));");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}",
"private void buildTables(){\r\n\t\tarticleTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\tarticleTable.setPageLength(5);\r\n\t\tlabel = new Label(\"No article found\");\r\n\t\tlabel2 = new Label(\"No image found\");\r\n\t\timageTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\timageTable.setPageLength(5);\r\n\t}",
"private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }",
"tbls createtbls();",
"private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}",
"private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"void prepareTables();",
"private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }",
"public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }",
"public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }",
"public void createAll() {\n SQLFormater SQLFormaterMoods = new SQLFormater(MOODS_TABLE_NAME, ID_FIELD); // objects help to form sql strings for creating tables\n SQLFormater SQLFormaterAnswers = new SQLFormater(ANSWERS_TABLE_NAME, ID_FIELD);\n\n String[] answersTableFields = {ANSWERS_FIELD, ID_MOODS_FIELD}; // ordered fields\n String[] moodsTableFields = {MOODS_FIELD, HI_FIELD, BYBY_FIELD};\n\n SQLFormaterMoods.setNewField(MOODS_FIELD, STRING_TYPE, \"NOT NULL\"); // creating tables\n SQLFormaterMoods.setNewField(HI_FIELD, STRING_TYPE, null);\n SQLFormaterMoods.setNewField(BYBY_FIELD, STRING_TYPE, null);\n dbConnection.execute(SQLFormaterMoods.getStringToCreateDB(null));\n\n SQLFormaterAnswers.setNewField(ANSWERS_FIELD, STRING_TYPE, \"NOT NULL\");\n SQLFormaterAnswers.setNewField(ID_MOODS_FIELD, INTEGER_TYPE, null);\n String reference = \"FOREIGN KEY (\" + ID_MOODS_FIELD + \")\" +\n \" REFERENCES \" + MOODS_TABLE_NAME +\n \"(\" + ID_FIELD + \")\";\n dbConnection.execute(SQLFormaterAnswers.getStringToCreateDB(reference)); // create table with reference\n\n insertTableValues(SQLFormaterMoods, moodsTableFields, getMoodsTableValues()); // inserting ordered values into tables\n insertTableValues(SQLFormaterAnswers, answersTableFields, getAnswersTableValues());\n }",
"protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString sql = \"create table tb_newsItem( _id integer primary key autoincrement, title text, link text, date text, imgLink text, content text, newstype integer );\";\n\t\tdb.execSQL(sql);\n\t}",
"public void createTable() {\r\n\t\tclient.createTable();\r\n\t}",
"public void createTables() throws Exception{\n\t\tcreate_table(\"tab_global\", \"param\", 1);\n\t\t\n\t\tPut put = new Put(Bytes.toBytes(\"row_userid\"));\n\t\tlong id = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"userid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tHTable ht = new HTable(conf, \"tab_global\");\n\t\tht.put(put);\n\t\t\n\t\tcreate_table(\"tab_user2id\", \"info\", 1);\n\t\tcreate_table(\"tab_id2user\", \"info\", 1);\n\t\t\n\t\t//table_follow\t{userid}\tname:{userid}\n\t\tcreate_table(\"tab_follow\", \"name\", 1);\n\t\t\n\t\t//table_followed\trowkey:{userid}_{userid} CF:userid\n\t\tcreate_table(\"tab_followed\", \"userid\", 1);\n\t\t\n\t\t//tab_post\trowkey:postid\tCF:post:username post:content post:ts\n\t\tcreate_table(\"tab_post\", \"post\", 1);\n\t\tput = new Put(Bytes.toBytes(\"row_postid\"));\n\t\tid = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"postid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tht.put(put);\n\t\t\n\t\t//tab_inbox\t\trowkey:userid+postid\tCF:postid\n\t\tcreate_table(\"tab_inbox\", \"postid\", 1);\n\t\tht.close();\n\t}",
"protected abstract void initialiseTable();",
"private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}",
"@Override\n\tpublic void createTable() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\ttry {\n\t\t\tTableUtils.createTable(connectionSource, UserEntity.class);\n\t\t\tTableUtils.createTable(connectionSource, Downloads.class);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\t\t}\n\t}",
"public void createdb(SQLiteDatabase db) {\n\t\t//\r\n\t\t// String create_table_group = \"CREATE TABLE\" + \" \" + TABLE_GROUP + \"(\"\r\n\t\t// + GROUP_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + GROUP_GID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + GROUP_NAME + \" \" + TYPE_TEXT + \")\";\r\n\t\t//\r\n\t\t// String create_table_communication = \"CREATE TABLE\" + \" \" + TABLE_MSG\r\n\t\t// + \"(\" + MSG_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + MSG_WEBID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + MSG_PIC + \" \" + TYPE_TEXT + \",\"\r\n\t\t// + MSG_REMARK + \" \" + TYPE_TEXT + \",\" + MSG_TIME + \" \"\r\n\t\t// + TYPE_TEXT + \")\";\r\n\r\n\t\tString create_table_news = \"CREATE TABLE\" + \" \" + TABLE_NEWS + \"(\"\r\n\t\t\t\t+ NEWS_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + NEWS_TITLE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_SOURCE + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_AUTHOR + \" \" + TYPE_TEXT + \",\" + NEWS_PICTURE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_CONTENT + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_CREATETIME + \" \" + TYPE_TEXT + \",\" + NEWS_TYPE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_WEBID + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_THUMBNAIL + \" \" + TYPE_TEXT + \")\";\r\n\r\n\t\t// db.execSQL(create_table_favor);\r\n\t\t// db.execSQL(create_table_group);\r\n\t\t// db.execSQL(create_table_communication);\r\n\t\tdb.execSQL(create_table_news);\r\n\t}",
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"private void createTable() {\n\t\tfreqTable = new TableView<>();\n\n\t\tTableColumn<WordFrequency, Integer> column1 = new TableColumn<WordFrequency, Integer>(\"No.\");\n\t\tcolumn1.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"serialNumber\"));\n\n\t\tTableColumn<WordFrequency, String> column2 = new TableColumn<WordFrequency, String>(\"Word\");\n\t\tcolumn2.setCellValueFactory(new PropertyValueFactory<WordFrequency, String>(\"word\"));\n\n\t\tTableColumn<WordFrequency, Integer> column3 = new TableColumn<WordFrequency, Integer>(\"Count\");\n\t\tcolumn3.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"count\"));\n\n\t\tList<TableColumn<WordFrequency, ?>> list = new ArrayList<TableColumn<WordFrequency, ?>>();\n\t\tlist.add(column1);\n\t\tlist.add(column2);\n\t\tlist.add(column3);\n\n\t\tfreqTable.getColumns().addAll(list);\n\t}",
"public void initialProductTable() {\r\n\t\tString sqlCommand = \"CREATE TABLE IF NOT EXISTS ProductTable (\\n\" + \"Barcode integer PRIMARY KEY,\\n\"\r\n\t\t\t\t+ \"Product_Name VARCHAR(30) NOT Null,\\n\" + \"Delivery_Time integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Quantity_In_Store integer NOT NULL,\\n\" + \"Quantity_In_storeroom integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Supplier_Name VARCHAR(30) NOT NUll,\\n\" + \"Average_Sales_Per_Day integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Location_In_Store VARCHAR(30) NOT NULL,\\n\" + \"Location_In_Storeroom VARCHAR(30) NOT NULL,\\n\"\r\n\t\t\t\t+ \"Faulty_Product_In_Store integer DEFAULT 0,\\n\" + \"Faulty_Product_In_Storeroom integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Category integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \" FOREIGN KEY (Category) REFERENCES CategoryTable(CategoryID) ON UPDATE CASCADE ON DELETE CASCADE\"\r\n\t\t\t\t+ \");\";// create the fields of the table\r\n\t\ttry (Connection conn = DriverManager.getConnection(dataBase); Statement stmt = conn.createStatement()) {\r\n\t\t\tstmt.execute(sqlCommand);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"initialProductTable: \"+ e.getMessage());\r\n\t\t}\r\n\t}",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"private void createTempDatabase() {\n\t\thandler = new ERXmlDocumentHandler(doc);\n\t\tList<String> filter = initFilter(subjectId);\n\t\tparseEntitys(filter);\n\t}",
"private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }",
"private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }",
"private void setNewTable() {\n\n for (List<Entity> list:\n masterList) {\n for (Entity entity :\n list) {\n entity.removeFromWorld();\n }\n list.clear();\n }\n\n gameFacade.setGameTable(gameFacade.newFullPlayableTable(\"asd\",\n 6, 0.5, 2, 2));\n for (Bumper bumper :\n gameFacade.getBumpers()) {\n Entity bumperEntity = factory.newBumperEntity(bumper);\n targets.add(bumperEntity);\n getGameWorld().addEntity(bumperEntity);\n }\n\n for (Target target :\n gameFacade.getTargets()) {\n Entity targetEntity = factory.newTargetEntity(target);\n targets.add(targetEntity);\n getGameWorld().addEntity(targetEntity);\n }\n }",
"private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}",
"public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"NEWS\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY ,\" + // 0: _id\n \"\\\"IMGURL\\\" TEXT,\" + // 1: imgurl\n \"\\\"HAS_CONTENT\\\" TEXT,\" + // 2: has_content\n \"\\\"DOCURL\\\" TEXT,\" + // 3: docurl\n \"\\\"TIME\\\" TEXT,\" + // 4: time\n \"\\\"TITLE\\\" TEXT,\" + // 5: title\n \"\\\"CHANNELNAME\\\" TEXT,\" + // 6: channelname\n \"\\\"ID\\\" INTEGER NOT NULL );\"); // 7: id\n }",
"private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}",
"private void createUIComponents() {\n table = new ShareTraderTable();\n }",
"private void initDatas(){\r\n \t\r\n \tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(discountService.getAllDiscountInfo(),\"Discount\"));\r\n }",
"private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void initTable();",
"public void createLifeloggingTables() throws SQLException, ClassNotFoundException {\n\n\t\tString sqlCreateTblMinute = \"CREATE TABLE IF NOT EXISTS minute (\"\n\t + \" id INT NOT NULL,\"\n\t + \" date VARCHAR(50) NOT NULL,\"\n\t + \" location VARCHAR(100),\"\n\t + \" activity VARCHAR(100),\"\n\t + \" `image-path` VARCHAR(100),\"\n\t + \"\t INDEX `image-path` (`image-path`),\"\n\t + \"\t PRIMARY KEY (id, date))\";\n\t\t\n\t\t\n\t\tString sqlCreateTblImage = \"CREATE TABLE IF NOT EXISTS image (\"\n\t + \" seq INT AUTO_INCREMENT,\"\n\t + \" id INT NOT NULL,\"\n\t + \" `image-path` VARCHAR(100),\"\n\t + \" PRIMARY KEY (seq),\"\n\t + \" FOREIGN KEY (id)\"\n\t + \"\t REFERENCES minute(id)\"\n\t + \"\t ON DELETE CASCADE) ENGINE=INNODB\";\n\t\t\n\t\t Statement stmt = this.connection.createStatement();\n\t\t stmt.execute(sqlCreateTblMinute);\n\t\t stmt.execute(sqlCreateTblImage);\n\t\t stmt.close();\n\t}",
"public void createTables()\n {\n String[] sqlStrings = createTablesStatementStrings();\n String sqlString;\n Statement statement;\n\n System.out.println(\"Creating table(s):\" +\n Arrays.toString(tableNames));\n for (int i=0; i<sqlStrings.length; i++)\n try\n {\n statement = connect.createStatement();\n\n sqlString = sqlStrings[i];\n\n System.out.println(\"SQL: \" + sqlString);\n\n statement.executeUpdate(sqlString);\n }\n catch (SQLException ex)\n {\n System.out.println(\"Error creating table: \" + ex);\n Logger.getLogger(DatabaseManagementDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"void initTable();",
"public void createDataFeeds(){\n\n\t\tfinal MyDbHelper helper = new MyDbHelper(this);\n\t\tfinal SQLiteDatabase db = helper.getWritableDatabase();\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\t\n\t\tDummyFeed.createFeeds(db, values);\t\t\n\t\t\n\t\tdb.close();\n\t\t\n\t}",
"private void initDatabase() {\n\n String sql = \"CREATE TABLE IF NOT EXISTS books (\\n\"\n + \"\tISBN integer PRIMARY KEY,\\n\"\n + \"\tBookName text NOT NULL,\\n\"\n + \" AuthorName text NOT NULL, \\n\"\n + \"\tPrice integer\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(urlPath);\n Statement stmt = conn.createStatement()) {\n System.out.println(\"Database connected\");\n stmt.execute(sql);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }",
"private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }",
"public void createTables() {\n\t\t// A try catch is needed in case the sql statement is invalid\n\t\ttry {\n\t\t\t// Create connection and statement\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t\t// Create tables if they do not exist already\n\t\t\tString user_sql = \"CREATE TABLE IF NOT EXISTS \" + user_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" username VARCHAR(10) UNIQUE NOT NULL,\" + \" password VARCHAR(15) NOT NULL,\"\n\t\t\t\t\t+ \" name VARCHAR(20) NOT NULL,\" + \" lastname VARCHAR(20) NOT NULL,\"\n\t\t\t\t\t+ \" email VARCHAR(40) UNIQUE NOT NULL,\" + \" isAdmin BOOLEAN NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString player_sql = \"CREATE TABLE IF NOT EXISTS \" + player_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idTeam INTEGER NOT NULL,\" + \" name VARCHAR(20) NOT NULL,\" + \" lastname VARCHAR(20) NOT NULL,\"\n\t\t\t\t\t+ \" dateOfBirth DATE NOT NULL,\" + \" height INTEGER NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString team_sql = \"CREATE TABLE IF NOT EXISTS \" + team_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" name VARCHAR(20) UNIQUE NOT NULL,\" + \" coach VARCHAR(20) UNIQUE NOT NULL,\"\n\t\t\t\t\t+ \" city VARCHAR(20) NOT NULL,\" + \" dateFoundation DATE NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString match_sql = \"CREATE TABLE IF NOT EXISTS \" + match_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idHome INTEGER NOT NULL,\" + \" idAway INTEGER NOT NULL,\" + \" matchDate DATE NOT NULL,\"\n\t\t\t\t\t+ \" referee VARCHAR(20) NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString stats_sql = \"CREATE TABLE IF NOT EXISTS \" + stats_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idMatch INTEGER NOT NULL,\" + \" goalsHome INTEGER NOT NULL,\" + \" goalsAway INTEGER NOT NULL,\"\n\t\t\t\t\t+ \" numberOfCorners INTEGER NOT NULL,\" + \" numberOfFouls INTEGER NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\t// Inform the user that the table has been created just the first\n\t\t\t// time\n\t\t\tif (statement.executeUpdate(user_sql) > 0) {\n\t\t\t\tSystem.out.println(\"User table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(player_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Player table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(team_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Team table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(match_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Match table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(stats_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Stats table succesfully created\");\n\t\t\t}\n\t\t\t// Closing the connection\n\t\t\tstatement.close();\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }",
"protected abstract void addTables();",
"public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}",
"public static void createItemTable() {\n\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\t// Drop table if already exists and as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_DROP_ITEM_TABLE));\n\t\t\t// Create new items table as per SQL query available in\n\t\t\t// Query.xml\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_CREATE_ITEM_TABLE));\n\t\t\t// Insert records into item table in the beginning as per SQL query available in\n\t\t\t// Query.xml\t\t\t\n\t\t\tstatement.executeUpdate(QueryUtil.queryByID(CommonConstants.QUERY_ID_INSERT_BEGIN_ITEM_TABLE));\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t}\n\t}",
"private void fillTable(TableLayout table, LayoutParams genericRowParams) {\n\t\ttry {\n\t\t\tArrayList<Lecture> lectures = XMLManager.getLectures(this);\n\t\t\tLog.v(CLASS_NAME, \"Lectures gotten. Count: \" + lectures.size());\n\t\t\tint semester = PreferencesManager.getSemester(this);\n\n\t\t\t// The table contains a semester row, followed by a series of rows\n\t\t\t// built by parsing the lectures\n\t\t\ttable.addView(buildSemestRow(genericRowParams, semester));\n\t\t\tparseLectures(table, lectures, semester, genericRowParams);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (XmlPullParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createTableMain() {\n db.execSQL(\"create table if not exists \" + MAIN_TABLE_NAME + \" (\"\n + KEY_ROWID_MAIN + \" integer primary key autoincrement, \"\n + KEY_TABLE_NAME_MAIN + \" string not null, \"\n + KEY_MAIN_LANGUAGE_1 + \" integer not null, \"\n + KEY_MAIN_LANGUAGE_2 + \" integer not null);\");\n }",
"private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }",
"private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}",
"public void onCreate() {\r\n\t\tcreatorClass.onCreate(table);\r\n\t}",
"private void populateTables(ArrayList<MenuItem> food, ArrayList<MenuItem> bev) throws SQLException\r\n {\r\n populateTableMenuItems(food, bev);\r\n }",
"public ShoppingCartController() {\n us.createUserTable(); //Create Users Table\n is.createItemTable(); //Create Item Table\n os.createOrdersTable(); //Create Orders Table\n ods.createOrderDetailsTable(); //Create OrderDetails Table\n ucs.createUserContactTable(); //Create UserContact Table\n }",
"public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}",
"public static void SetupDB() {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS User(email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS FriendList(ID INTEGER PRIMARY KEY, email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS Category(ID INTEGER PRIMARY KEY,name TEXT);\");\n\t}",
"private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}",
"private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}",
"private void inicializarComponentes() \n\t{\n\t\tthis.table=new JTable(); \n\t\ttablas.setBackground(Color.white);\n\t\tscroll =new JScrollPane(table); // Scroll controla la tabla\n\t\tthis.add(scroll,BorderLayout.CENTER);\n\t\tthis.add(tablas,BorderLayout.NORTH);\n\t\t\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(SQL_CREATE_ENTRIES);\n\t\tLog.i(\"into\",\"oncreate\");\n\t\t\t \n\t\tfor(int i=0; i<5; i++) {\n\t\t\tLog.i(\"into\",\"intialising tables\");\n\t\t\tContentValues values= new ContentValues();\n\t\t\tvalues.put(COLUMN_NAME_ID, i+1);\n\t\t\tvalues.put(COLUMN_NAME_PERIOD1, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD4, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD3, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD2, \"nil\");\n\t\t\tdb.insert(TABLE_NAME_TIMETABLE, null, values);\n\t\t}\t\t\n\t}",
"protected void fillTable() {\r\n\t\ttabDate.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"transactionDate\"));\r\n\t\ttabSenderNumber.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"senderNumber\"));\r\n\t\ttabReceiverNumber\r\n\t\t\t\t.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"receiverNumber\"));\r\n\t\ttabAmount.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, BigDecimal>(\"amount\"));\r\n\t\ttabReference.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"reference\"));\r\n\r\n\t\tList<TableRowAllTransactions> tableRows = new ArrayList<TableRowAllTransactions>();\r\n\r\n\t\tfor (Transaction transaction : transactionList) {\r\n\t\t\tTableRowAllTransactions tableRow = new TableRowAllTransactions();\r\n\t\t\ttableRow.setTransactionDate(\r\n\t\t\t\t\tnew SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\").format(transaction.getTransactionDate()));\r\n\t\t\ttableRow.setSenderNumber(transaction.getSender().getNumber());\r\n\t\t\ttableRow.setReceiverNumber(transaction.getReceiver().getNumber());\r\n\t\t\ttableRow.setAmount(transaction.getAmount());\r\n\t\t\ttableRow.setReferenceString(transaction.getReference());\r\n\t\t\ttableRows.add(tableRow);\r\n\r\n\t\t}\r\n\r\n\t\tObservableList<TableRowAllTransactions> data = FXCollections.observableList(tableRows);\r\n\t\ttabTransaction.setItems(data);\r\n\t}",
"private static void insertListsInDataBase () throws SQLException {\n //Create object ActionsWithRole for working with table role\n ActionsCRUD<Role,Integer> actionsWithRole = new ActionsWithRole();\n for (Role role : roles) {\n actionsWithRole.create(role);\n }\n //Create object ActionsWithUsers for working with table users\n ActionsCRUD<User,Integer> actionsWithUsers = new ActionsWithUsers();\n for (User user : users) {\n actionsWithUsers.create(user);\n }\n //Create object ActionsWithAccount for working with table account\n ActionsCRUD<Account,Integer> actionsWithAccount = new ActionsWithAccount();\n for (Account account : accounts) {\n actionsWithAccount.create(account);\n }\n //Create object ActionsWithPayment for working with table payment\n ActionsCRUD<Payment,Integer> actionsWithPayment = new ActionsWithPayment();\n for (Payment payment : payments) {\n actionsWithPayment.create(payment);\n }\n }",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"public abstract void configureTables();",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"private void initTableView() {\n try {\n NonEditableDefaultTableModel dtm = new NonEditableDefaultTableModel();\n dtm.setColumnIdentifiers(new String[]{\"Id\", \"Code\", \"From\", \"To\", \"Prepared\", \"Status\"});\n\n for (PayrollPeriod p : ppDao.getPayrollPeriods()) {\n\n try {\n Object[] o = new Object[]{p.getId(), p,\n sdf.format(p.getDateFrom()), sdf.format(p.getDateTo()),\n sdf.format(p.getDatePrepared()), p.getStatus()};\n dtm.addRow(o);\n } catch (Exception ex) {\n }\n\n }\n tablePayrollPeriod.setModel(dtm);\n } catch (Exception ex) {\n Logger.getLogger(PayrollPeriodInformation.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }",
"private void buildTable() {\n\t\tObservableList<Record> data;\r\n\t\tdata = FXCollections.observableArrayList();\r\n\r\n\t\t// get records from the database\r\n\t\tArrayList<Record> list = new ArrayList<Record>();\r\n\t\tlist = getItemsToAdd();\r\n\r\n\t\t// add records to the table\r\n\t\tfor (Record i : list) {\r\n\t\t\tSystem.out.println(\"Add row: \" + i);\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\ttableView.setItems(data);\r\n\t}",
"@Override\n public void createTable() {\n String[] TABLE_COLUMNS_ATLAS = {\n TableColumn.ChecklistTable.CID + \" INTEGER PRIMARY KEY AUTOINCREMENT\",\n TableColumn.ChecklistTable.PID + \" INTEGER NOT NULL\",\n TableColumn.ChecklistTable.REAL + \" INTEGER DEFAULT 0\",\n TableColumn.ChecklistTable.UNIT_ID + \" INTEGER\",\n TableColumn.ChecklistTable.WAREHOUSE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.QUEUE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.CATEGORIES_ID + \" INTEGER\",\n TableColumn.ChecklistTable.DATE + \" DATE\",\n TableColumn.ChecklistTable.RECORDTIME + \" DATE\",\n TableColumn.ChecklistTable.CONFIRM + \" INTEGER DEFAULT 0\"\n };\n\n //TODO: create table\n database.execSQL(makeSQLCreateTable(TABLE_NAME, TABLE_COLUMNS_ATLAS));\n\n addColumn(TableColumn.ChecklistTable.CONFIRM, \" INTEGER DEFAULT 0\");\n\n //TODO: show table\n XCursor cursor = selectTable();\n printData(TABLE_NAME, cursor);\n cursor.close();\n }",
"private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }",
"public void tableViewSetup() {\n nameColumn.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n productTable.getColumns().add(nameColumn);\n\n manuColumn.setCellValueFactory(new PropertyValueFactory<>(\"Manufacturer\"));\n productTable.getColumns().add(manuColumn);\n\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"Type\"));\n productTable.getColumns().add(typeColumn);\n }",
"private void createTables() {\n\t\tStatement s = null;\n\t\ttry {\n\t\t\ts = conn.createStatement();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString createString = \"CREATE TABLE targeteprs (\" +\n\t\t\t\t\t \"targetepr varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"uniqueID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created targetepr table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcreateString = \"CREATE TABLE workflow (\" +\n\t\t\t\t\t \"uniqueID varchar(100) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created workflow table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"Table createTable();",
"private void install()\n {\n Statement stmt;\n \n try {\n stmt = this.dbh.createStatement();\n stmt.setQueryTimeout(30);\n } catch (SQLException e) {\n Logger.getRootLogger().error(\"Unable to create Sqlite-statement\", e);\n System.exit(1);\n return; // not necessary\n }\n \n Logger.getRootLogger().info(\"Installing tables\");\n \n try {\n // create `channels` table\n stmt.executeUpdate(\"\" +\n \t\t\"CREATE TABLE IF NOT EXISTS `channels` (\" +\n \t\t \"`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\" +\n \t\t \"`name` VARCHAR(100) NOT NULL UNIQUE,\" +\n \t\t \"`owner` VARCHAR(100) NOT NULL\" +\n \t\t\")\"\n );\n\n // create `plugins` table\n stmt.executeUpdate(\"\" +\n \t\t\"CREATE TABLE IF NOT EXISTS `plugins` (\" +\n \t\t \"`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\" +\n \t\t \"`type` INTEGER NOT NULL DEFAULT 1,\" +\n \t\t \"`package` VARCHAR(100) NOT NULL UNIQUE,\" +\n \t\t \"`version` VARCHAR(10) NOT NULL DEFAULT '1',\" +\n \t\t \"`author` VARCHAR(50) NOT NULL DEFAULT 'anonymus'\" +\n \t\t\")\"\n );\n \n // create `plugins_to_channels` table\n stmt.executeUpdate(\"\" +\n \t\t\"CREATE TABLE IF NOT EXISTS `plugins_to_channels` (\" +\n \t\t \"`channel_id` INTEGER NOT NULL,\" +\n \t\t \"`plugin_id` INTEGER NOT NULL,\" +\n \t\t \"PRIMARY KEY(`channel_id` DESC, `plugin_id` DESC)\" +\n \t\t\")\"\n );\n } catch (SQLException e) {\n Logger.getRootLogger().fatal(\"Unable to install required Database-tables\", e);\n System.exit(1);\n }\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tcreateDataTable(db);\r\n\t\tcreateTableNote(db);\r\n\t}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttableEClass = createEClass(TABLE);\n\t\tcreateEReference(tableEClass, TABLE__DATABASE);\n\t\tcreateEReference(tableEClass, TABLE__COLUMNS);\n\t\tcreateEReference(tableEClass, TABLE__CONSTRAINTS);\n\n\t\ttableConstraintEClass = createEClass(TABLE_CONSTRAINT);\n\t\tcreateEAttribute(tableConstraintEClass, TABLE_CONSTRAINT__NAME);\n\t\tcreateEReference(tableConstraintEClass, TABLE_CONSTRAINT__TABLE);\n\n\t\tprimaryKeyTableConstraintEClass = createEClass(PRIMARY_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(primaryKeyTableConstraintEClass, PRIMARY_KEY_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tuniqueTableConstraintEClass = createEClass(UNIQUE_TABLE_CONSTRAINT);\n\t\tcreateEReference(uniqueTableConstraintEClass, UNIQUE_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tcheckTableConstraintEClass = createEClass(CHECK_TABLE_CONSTRAINT);\n\t\tcreateEReference(checkTableConstraintEClass, CHECK_TABLE_CONSTRAINT__EXPRESSION);\n\n\t\tforeignKeyTableConstraintEClass = createEClass(FOREIGN_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__COLUMNS);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_TABLE);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_COLUMNS);\n\t}",
"public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }",
"public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"public void initializeExpense() {\n try {\n\n Connection connection = connect();\n\n PreparedStatement createExpenseTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS expense (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"user_username varchar,\"\n + \"category_name varchar,\"\n + \"amount float,\"\n + \"time varchar,\"\n + \"FOREIGN KEY (user_username) REFERENCES user(username),\"\n + \"FOREIGN KEY(category_name) REFERENCES category(name)\"\n + \");\"\n );\n createExpenseTable.execute();\n createExpenseTable.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n\n }",
"private void criaJTable() {\n tabela = new JTable(modelo);\n modelo.addColumn(\"Codigo:\");\n modelo.addColumn(\"Data inicio:\");\n modelo.addColumn(\"Data Fim:\");\n modelo.addColumn(\"Valor produto:\");\n modelo.addColumn(\"Quantidade:\");\n\n preencherJTable();\n }",
"public void initialize() {\n for (TableInSchema tableInSchema : initialTables()) {\n addTable(tableInSchema);\n }\n }",
"public void setup() {\n statsTable();\n spawnsTable();\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource source) {\n\n\t\ttry {\n\t\t\tTableUtils.createTable(source, Priority.class);\n\t\t\tTableUtils.createTable(source, Category.class);\n\t\t\tTableUtils.createTable(source, Task.class);\n\t\t} catch (SQLException ex) {\n\t\t\tLog.e(LOG, \"error creating tables\", ex);\n\t\t}\n\n\t}",
"private void getAllNewsFromDatabase() {\n new GetAllNewsAsyncTask(newsDao).execute(newsList);\n }",
"private void initTablesViews()\n {\n // Tokens\n tc_token_id.setCellValueFactory(new PropertyValueFactory<>(\"token\"));\n tc_tipo_token_id.setCellValueFactory(new PropertyValueFactory<>(\"tipoToken\"));\n tc_linea_token_id.setCellValueFactory(new PropertyValueFactory<>(\"linea\"));\n tv_tokens_encontrados_id.setItems(info_tabla_tokens);\n\n // Errores\n tc_error_id.setCellValueFactory(new PropertyValueFactory<>(\"error\"));\n tc_tipo_error_id.setCellValueFactory(new PropertyValueFactory<>(\"tipoError\"));\n tc_linea_error_id.setCellValueFactory(new PropertyValueFactory<>(\"linea_error\"));\n tv_errores_lexicos_id.setItems(info_tabla_errores);\n }",
"private void fillTable(){\n tblModel.setRowCount(0);// xoa cac hang trong bang\n \n for(Student st: list){\n tblModel.addRow(new String[]{st.getStudentId(), st.getName(), st.getMajor(),\"\"\n + st.getMark(), st.getCapacity(), \"\" + st.isBonnus()});\n // them (\"\" + )de chuyen doi kieu float va boolean sang string\n \n }\n tblModel.fireTableDataChanged();\n }",
"private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}",
"@Override\n\tprotected void setupV2Tables(Connection connection) throws SQLException {\n\n\t\tStatement create = connection.createStatement();\n\n\t\t// Prefix tables to mh_\n\t\ttry {\n\t\t\tResultSet rs = create.executeQuery(\"SELECT * from Daily LIMIT 0\");\n\t\t\trs.close();\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Players TO mh_Players\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Daily TO mh_Daily\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Weekly TO mh_Weekly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Monthly TO mh_Monthly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Yearly TO mh_Yearly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE AllTime TO mh_AllTime\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Achievements TO mh_Achievements\");\n\n\t\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS DailyInsert\");\n\t\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS DailyUpdate\");\n\n\t\t} catch (SQLException e) {\n\t\t}\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Players (UUID CHAR(40) PRIMARY KEY, NAME CHAR(20), PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT, \"\n\t\t\t\t\t\t+ \"KEY PLAYER_ID (PLAYER_ID), LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm\n\t\t\t\t\t\t+ \", MUTE_MODE INTEGER NOT NULL DEFAULT 0)\");\n\t\tString dataString = \"\";\n\t\tfor (StatType type : StatType.values())\n\t\t\tdataString += \", \" + type.getDBColumn() + \" INTEGER NOT NULL DEFAULT 0\";\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Daily (ID CHAR(7) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Weekly (ID CHAR(6) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Monthly (ID CHAR(6) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Yearly (ID CHAR(4) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_AllTime (PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(PLAYER_ID))\");\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \"\n\t\t\t\t+ \"(PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"ACHIEVEMENT VARCHAR(64) NOT NULL, DATE DATETIME NOT NULL, \"\n\t\t\t\t+ \"PROGRESS INTEGER NOT NULL, PRIMARY KEY(PLAYER_ID, ACHIEVEMENT))\");\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\" //\n\t\t\t\t+ \"BOUNTYOWNER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"MOBTYPE CHAR(6), \"//\n\t\t\t\t+ \"WANTEDPLAYER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"NPC_ID INTEGER, \"//\n\t\t\t\t+ \"MOB_ID CHAR(40), \"//\n\t\t\t\t+ \"WORLDGROUP CHAR(20) NOT NULL, \"//\n\t\t\t\t+ \"CREATED_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"END_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"PRIZE FLOAT NOT NULL, \"//\n\t\t\t\t+ \"MESSAGE CHAR(64), \"//\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \" + \"PRIMARY KEY (WORLDGROUP,BOUNTYOWNER_ID,WANTEDPLAYER_ID), \"\n\t\t\t\t+ \"FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\" + \")\");\n\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t\t// Setup Database triggers\n\t\tsetupTriggerV2(connection);\n\n\t\tperformTableMigrateFromV1toV2(connection);\n\t\tconnection.close();\n\t}",
"public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }",
"public static Connection createTables() {\n\t \n\t Statement stmt = null;\n\t int result = 0;\n\t \n\t try {\n\t \t Connection connection = getConnection();\n\t \t \n\t \t try {\n\t \t stmt = connection.createStatement();\n\t \t \n\t \t result = stmt.executeUpdate(\"\"\n\t \t \t\t\n\t \t \t\t// Creating form table\n\t \t \t\t+ \"CREATE TABLE IF NOT EXISTS form (\"\n\t \t \t\t+ \"form_version VARCHAR(50),\"\n\t \t \t\t+ \"form_name VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"field_id INT NOT NULL,\"\n\t \t \t\t+ \"field_value VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"CONSTRAINT PK_form PRIMARY KEY (form_version, field_id)); \"\n\t \t \t\t\n\t \t \t\t// Creating template_fields table\n\t \t \t\t+ \"CREATE TABLE IF NOT EXISTS template_fields (\"\n\t \t \t\t+ \"field_id INT NOT NULL,\"\n\t \t \t\t+ \"form_name VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"field_name VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"field_value VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"field_type VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"field_mandatory VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"CONSTRAINT PK_field PRIMARY KEY (field_id,form_name)); \"\n\t \t \t\t\n\t \t \t\t// Creating radio_fields table\n\t \t \t\t+ \"CREATE TABLE IF NOT EXISTS radio_fields (\"\n\t \t \t\t+ \"radio_id INTEGER IDENTITY PRIMARY KEY,\"\n\t \t \t\t+ \"field_id INTEGER NOT NULL,\"\n\t \t \t\t+ \"form_name VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"radio_value VARCHAR(50) NOT NULL,\"\n\t \t \t\t+ \"UNIQUE(field_id, radio_value, form_name)); \"\n\t \t \t\t\n\t \t \t\t//Creating template_fields_options table\n\t \t \t\t+ \"CREATE TABLE IF NOT EXISTS template_fields_options (\"\n\t \t \t\t+ \"option_id INTEGER IDENTITY PRIMARY KEY,\"\n\t \t \t\t+ \"option_value VARCHAR(50) NOT NULL); \"\n\t \t \t\t+ \"\");\n\t \t \n\t \t connection.close();\n\t \t stmt.close();\n\t \t } catch (SQLException e) {\n\t e.printStackTrace();\n\t \t }\n\t \t System.out.println(\"Tables created successfully\");\n\t \t return connection;\n\t \t \n\t }\n\t catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t \n\t }\n\t}",
"private void init() {\n dao = new ProductDAO();\n model = new DefaultTableModel();\n \n try {\n showAll();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n \n }",
"private void createTableArea() {\n\t\tthis.tableModel = new MessagesTableModel();\n\t\tthis.conversation = new JTable(this.tableModel);\n\t\tthis.conversation.setRowSelectionAllowed(false);\n\t\tthis.conversation.getColumn(\"Pseudo\").setMaxWidth(150);\n\t\tthis.conversation.getColumn(\"Message\").setWidth(200);\n\t\tthis.conversation.getColumn(\"Heure\").setMaxWidth(50);\n\t\tthis.conversation.getColumn(\"Message\").setCellRenderer(new WrapTableCellRenderer());\n\t\tthis.conversation.getColumn(\"Pseudo\").setCellRenderer(new ColorTableCellRenderer());\n\t\tthis.scrollPane = new JScrollPane(conversation);\n\t}",
"private void createPollTables(DataSource ds) {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = ds.getConnection();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tpst = con.prepareStatement(\n\t\t\t\t\t\"CREATE TABLE Polls\\r\\n\" + \"(id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,\\r\\n\"\n\t\t\t\t\t\t\t+ \"title VARCHAR(150) NOT NULL,\\r\\n\" + \"message CLOB(2048) NOT NULL\\r\\n\" + \")\");\n\t\t\tpst.execute();\n\n\t\t} catch (SQLException ex) {\n\t\t\tif (!ex.getSQLState().equals(\"X0Y32\"))\n\t\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tpst = con.prepareStatement(\n\t\t\t\t\t\"CREATE TABLE PollOptions\\r\\n\" + \"(id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,\\r\\n\"\n\t\t\t\t\t\t\t+ \"optionTitle VARCHAR(100) NOT NULL,\\r\\n\" + \"optionLink VARCHAR(150) NOT NULL,\\r\\n\"\n\t\t\t\t\t\t\t+ \"pollID BIGINT,\\r\\n\" + \"votesCount BIGINT,\\r\\n\"\n\t\t\t\t\t\t\t+ \"FOREIGN KEY (pollID) REFERENCES Polls(id)\\r\\n\" + \")\");\n\t\t\tpst.executeUpdate();\n\n\t\t} catch (SQLException ex) {\n\t\t\tif (!ex.getSQLState().equals(\"X0Y32\"))\n\t\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"private void createTable(Table table) {\n\t\t// Set up the table\n\t\ttable.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// Add the column (Task)\n\t\tTableColumn lTaskColumn = new TableColumn(table, SWT.NONE);\n\t\tlTaskColumn.setText(\"Task\");\n\n\t\t// Add the column (Operation)\n\t\tTableColumn lOperationColumn = new TableColumn(table, SWT.NONE);\n\t\tlOperationColumn.setText(\"Operation\");\n\n\t\t// Add the column (Duration)\n\t\tTableColumn lDurationColumn = new TableColumn(table, SWT.NONE);\n\t\tlDurationColumn.setText(\"Duration\");\n\n\t\t// Add the column (Timeout)\n\t\tTableColumn lTimeoutColumn = new TableColumn(table, SWT.NONE);\n\t\tlTimeoutColumn.setText(\"Timed Out\");\n\n\t\t// Add the column (TEF Result)\n\t\tTableColumn lResultColumn = new TableColumn(table, SWT.NONE);\n\t\tlResultColumn.setText(\"Build/TEF Result\");\n\n\t\t// Add the column (TEF RunWsProgram)\n\t\tTableColumn lTEFRunWsProgColumn = new TableColumn(table, SWT.NONE);\n\t\tlTEFRunWsProgColumn.setText(\"TEF RunWsProgram Result\");\n\n\t\t// Pack the columns\n\t\tfor (int i = 0, n = table.getColumnCount(); i < n; i++) {\n\t\t\tTableColumn lCol = table.getColumn(i);\n\t\t\tlCol.setResizable(true);\n\t\t\tlCol.setWidth(lCol.getText().length());\n\t\t\tlCol.pack();\n\t\t}\n\n\t\t// Turn on the header and the lines\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\n\t}",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }"
] | [
"0.69226956",
"0.66481537",
"0.6604273",
"0.65891725",
"0.65733594",
"0.6543767",
"0.65019315",
"0.64025545",
"0.6389233",
"0.6345603",
"0.63213813",
"0.63009167",
"0.62875086",
"0.62627333",
"0.6240326",
"0.6214268",
"0.61307806",
"0.612952",
"0.60782325",
"0.6072396",
"0.6057596",
"0.6040557",
"0.6025036",
"0.60122114",
"0.59730995",
"0.59464324",
"0.5944104",
"0.59340274",
"0.59294987",
"0.59085715",
"0.589661",
"0.58848894",
"0.58827907",
"0.58620787",
"0.5858704",
"0.5853829",
"0.58425975",
"0.5841551",
"0.58291155",
"0.5829103",
"0.5824041",
"0.5819045",
"0.5813385",
"0.5811802",
"0.5800334",
"0.5788366",
"0.5757903",
"0.57517755",
"0.57465583",
"0.5725455",
"0.5725455",
"0.5724112",
"0.57193244",
"0.57147264",
"0.57134885",
"0.57121056",
"0.57081056",
"0.57067996",
"0.5704391",
"0.57005495",
"0.56993085",
"0.56948304",
"0.56797534",
"0.5677366",
"0.56734794",
"0.56732446",
"0.5671119",
"0.5661849",
"0.5653042",
"0.5652802",
"0.5652221",
"0.56464434",
"0.5645194",
"0.5637421",
"0.5622985",
"0.56188524",
"0.561039",
"0.55914515",
"0.558736",
"0.55869204",
"0.558415",
"0.5567569",
"0.55643475",
"0.5557524",
"0.5555858",
"0.55529255",
"0.5549755",
"0.5549088",
"0.5548878",
"0.5547992",
"0.5533252",
"0.5532971",
"0.5528985",
"0.55263823",
"0.552555",
"0.55240816",
"0.55203867",
"0.5505828",
"0.5501454",
"0.55009425"
] | 0.61219645 | 18 |
Drop the news tables | private void dropTables(SQLiteDatabase db) {
db.execSQL("DROP TABLE IF EXISTS " + TABLE_NEWS);
db.execSQL("DROP TABLE IF EXISTS " + TABLE_FEEDS);
db.execSQL("DROP TABLE IF EXISTS " + TABLE_CATEGORIES);
db.execSQL("DROP TABLE IF EXISTS " + TABLE_IMAGES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void dropAllTables();",
"public void DropTables() {\n\t\ttry {\n\t\t\tDesinstall_DBMS_MetaData();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void removeLifeloggingTables() throws SQLException {\n\n\t\tString sqlCommand1 = \"DROP TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DROP TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.close();\n\t}",
"private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence_profile\");\n }",
"public void dropTables()\n {\n String tableName;\n\n for (int i=0; i<tableNames.length; i++)\n {\n tableName = tableNames[i];\n System.out.println(\"Dropping table: \" + tableName);\n try\n {\n Statement statement = connect.createStatement();\n\n String sql = \"DROP TABLE \" + tableName;\n\n statement.executeUpdate(sql);\n }\n catch (SQLException e)\n {\n System.out.println(\"Error dropping table: \" + e);\n }\n }\n }",
"public void dropTables() {\n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE REVISION\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE VCS_COMMIT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE FILE\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CRD\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"VACUUM\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \t}",
"public void dropTable();",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"public void dropAllTables(SQLiteDatabase db){\n dropTable(db, TABLE_SUBSCRIPTIONS);\r\n }",
"public void dropTable() {\n }",
"void dropAllTablesForAllConnections();",
"private static void dropTablesFromDatabase (Statement statement) throws SQLException {\n //Удаление таблиц из БД\n statement.execute(\"DROP TABLE IF EXISTS payment;\");\n statement.execute(\"DROP TABLE IF EXISTS account;\");\n statement.execute(\"DROP TABLE IF EXISTS users;\");\n statement.execute(\"DROP TABLE IF EXISTS role;\");\n }",
"public void doDropTable();",
"@Override\n\tpublic void dropTable() {\n\t\ttry {\n\t\t\tTableUtils.dropTable(connectionSource, UserEntity.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Downloads.class, true);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"NEWS\\\"\";\n db.execSQL(sql);\n }",
"@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }",
"public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }",
"public void dropAllCreateAgain() {\n\t\tSQLiteDatabase db = getWritableDatabase() ;\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AUTHORS_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AUTHOR_POSITION_AFFILIATION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AFFILIATION_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AFFILIATION_ID_POSITION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_REFERENCES);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_FIGURES);\n\t\tonCreate(db);\n\t\t}",
"protected void dropDetachedPartitionTables() {\n\n TenantInfo tenantInfo = getTenantInfo(); \n \n FhirSchemaGenerator gen = new FhirSchemaGenerator(adminSchemaName, tenantInfo.getTenantSchema());\n PhysicalDataModel pdm = new PhysicalDataModel();\n gen.buildSchema(pdm);\n\n dropDetachedPartitionTables(pdm, tenantInfo);\n }",
"private void clearTable()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n table.removeViews(1, table.getChildCount() - 1);\n }",
"public void clearLifeloggingTables() throws SQLException, ClassNotFoundException {\n\t\tString sqlCommand1 = \"DELETE TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DELETE TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.close();\n\t}",
"@AfterEach\n void dropAllTablesAfter() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }",
"boolean dropTable();",
"@Override\n public void dropUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createSQLQuery(\"DROP TABLE IF EXISTS Users\").executeUpdate();\n tx.commit();\n session.close();\n\n }",
"public void clearTables()\n\t{\n\t\ttry {\n\t\t\tclearStatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"@BeforeAll\n void dropAllTablesBefore() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }",
"public void dropAll () {\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tif (dbCol.getIndexInfo().size()>0)\n\t\t\tdbCol.dropIndexes();\n\t\tdbCol.drop();\n\t\t\t \n\t\t\n\t}",
"public void dropTable(String tableName);",
"private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }",
"public void clearTables() {\n\t _database.delete(XREF_TABLE, null, null);\n\t _database.delete(ORDER_RECORDS_TABLE, null, null); \n\t}",
"@Override\r\n\tpublic boolean dropTable() {\n\t\treturn false;\r\n\t}",
"private void dropMergeTables() {\n // [2012/4/30 - ysahn] Comment this when testing, if you want to leave the temp tables\n\n try {\n callSP(buildSPCall(DROP_MAP_TABLES_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error dropping id mapping tables. \", exception);\n }\n\n try {\n callSP(buildSPCall(DROP_HELPER_TABLES_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error dropping id mapping tables. \", exception);\n }\n }",
"public static void dropAllTables(Database db, boolean ifExists) {\n DiaryReviewDao.dropTable(db, ifExists);\n EncourageSentenceDao.dropTable(db, ifExists);\n ImportDateDao.dropTable(db, ifExists);\n ScheduleTodoDao.dropTable(db, ifExists);\n TargetDao.dropTable(db, ifExists);\n TomatoTodoDao.dropTable(db, ifExists);\n UpTempletDao.dropTable(db, ifExists);\n UserDao.dropTable(db, ifExists);\n }",
"public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}",
"public void deletarTabela(String tabela){\n try{\n db.execSQL(\"DROP TABLE IF EXISTS \" + tabela);\n }catch (Exception e){\n\n }\n }",
"private void truncateTable(Statement st) throws SQLException {\n String sql = \"truncate table buidling;truncate table photo;truncate table PHOTOGRAPHER;\";\n// System.out.println(sql);\n st.addBatch(\"truncate table building\");\n st.addBatch(\"truncate table photo\");\n st.addBatch(\"truncate table photographer\");\n st.executeBatch();\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TOPIC_DB\\\"\";\n db.execSQL(sql);\n }",
"public void dropTable(Class<?>[] clzs) {\n\t\tfor (Class<?> clz : clzs)\n\t\t\tdropTable(clz);\n\t}",
"public void unsetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WHOLETBL$2, 0);\n }\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n TopCategoriesDao.dropTable(db, ifExists);\n CategoriesDao.dropTable(db, ifExists);\n BrandsDao.dropTable(db, ifExists);\n StoreDao.dropTable(db, ifExists);\n PostDao.dropTable(db, ifExists);\n ProductDao.dropTable(db, ifExists);\n BrandUpdatesDao.dropTable(db, ifExists);\n TipsDao.dropTable(db, ifExists);\n RelatedProductsDao.dropTable(db, ifExists);\n PostCollectionDao.dropTable(db, ifExists);\n }",
"private static void dropTables(Connection conn)\n {\n System.out.println(\"Checking for existing tables.\");\n\n try\n {\n // Get a Statement object.\n Statement stmt = conn.createStatement();\n\n try\n {\n stmt.execute(\"DROP TABLE Cart\");\n System.out.println(\"Cart table dropped.\");\n } catch (SQLException ex)\n {\n // No need to report an error.\n // The table simply did not exist.\n }\n\n try\n {\n stmt.execute(\"DROP TABLE Products\");\n System.out.println(\"Products table dropped.\");\n } catch (SQLException ex)\n {\n // No need to report an error.\n // The table simply did not exist.\n }\n } catch (SQLException ex)\n {\n System.out.println(\"ERROR: \" + ex.getMessage());\n ex.printStackTrace();\n }\n }",
"void dropDatabase();",
"@After\n public void tearDown() {\n try(Connection con = DB.sql2o.open()) {\n String deleteClientsQuery = \"DELETE FROM clients *;\";\n String deleteStylistsQuery = \"DELETE FROM stylists *;\";\n con.createQuery(deleteClientsQuery).executeUpdate();\n con.createQuery(deleteStylistsQuery).executeUpdate();\n }\n }",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n TipsDao.dropTable(db, ifExists);\n }",
"@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void deleteDatabase() {\r\n\t\tlog.info(\"Enter deleteDatabase\");\r\n\r\n\t\t\r\n\t\tConnection connection = null;\t\t\r\n\t\ttry {\r\n\t\t\tconnection = jndi.getConnection(\"jdbc/libraryDB\");\t\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"Drop Table Users_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cams_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table User_Cam_Mapping_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cam_Images_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Datenbank wurde erfolgreich zurueckgesetzt!\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Fehler: \"+e.getMessage());\r\n\t\t\tlog.error(\"Error: \"+e.getMessage());\r\n\t\t} finally {\r\n\t\t\tcloseConnection(connection);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}",
"private void dropOldTables(CopyTable table) throws SQLException\n\t{\n\t\tLOG.info(\"Dropping older versions of table '\" + table.getToName() + \"'...\");\n\t\t\n\t\tStatement q =\n\t\t\tCopyToolConnectionManager.getInstance().getMonetDbConnection().createStatement();\n\t\t\n\t\tResultSet result =\n\t\t\tq.executeQuery(\"SELECT name FROM sys.tables WHERE name LIKE '\" + table.getToName()\n\t\t\t\t+ \"_20%_%' AND name <> '\" + table.getToName() + \"' \"\n\t\t\t\t+ \"AND schema_id = (SELECT id from sys.schemas WHERE LOWER(name) = LOWER('\" + table.getSchema()\n\t\t\t\t+ \"')) AND query IS NULL ORDER BY name DESC\");\n\t\t\n\t\tint i = 0;\n\t\tint dropCount = 0;\n\t\tStatement stmtDrop =\n\t\t\tCopyToolConnectionManager.getInstance().getMonetDbConnection().createStatement();\n\t\twhile(result.next())\n\t\t{\n\t\t\ti++;\n\t\t\t\n\t\t\t// if table is a fast view-switching table then\n\t\t\t// \t\tskip first result -> is current table and referenced by view\n\t\t\t// \t\tskip second result -> as backup (TODO: perhaps make this configurable?)\n\t\t\tif (table.isUseFastViewSwitching())\n\t\t\t\tif (i == 1 || i == 2)\n\t\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// build DROP query\n\t\t\tStringBuilder query = new StringBuilder(\"DROP TABLE \");\n\t\t\t\n\t\t\tif (!StringUtils.isEmpty(table.getSchema()))\n\t\t\t\tquery.append(MonetDBUtil.quoteMonetDbIdentifier(table.getSchema())).append(\".\");\n\t\t\t\n\t\t\tquery.append(MonetDBUtil.quoteMonetDbIdentifier(result.getString(\"name\"))).append(\";\");\n\t\t\t\n\t\t\t// execute DROP query\n\t\t\tstmtDrop.executeUpdate(query.toString());\t\t\t\n\t\t\tdropCount++;\n\t\t}\n\t\t\n\t\tif (i == 0 || (table.isUseFastViewSwitching() && i <= 2))\n\t\t\tLOG.info(\"Table '\" + table.getToName() + \"' has no older versions\");\n\t\telse\n\t\t\tLOG.info(\"Dropped \" + dropCount + \" older versions of table '\" + table.getToName() + \"'\");\n\t\t\n\t\tresult.close();\n\t\tq.close();\n\t}",
"static void emptyTable () {\n Session session = null;\n Transaction transaction = null;\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n Query query = session.createQuery(\"DELETE from ReservationsEntity \");\n query.executeUpdate();\n Query query2 = session.createQuery(\"DELETE from OrdersEntity \");\n query2.executeUpdate();\n\n Query query3 = session.createQuery(\"DELETE from TablesEntity \");\n query3.executeUpdate();\n transaction.commit();\n }\n catch (Exception e)\n {\n if (transaction != null) {\n transaction.rollback();\n }\n throw e;\n } finally {\n if (session != null) {\n session.close();\n }\n }\n }",
"private void dropDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n DatabaseMetaData md = conn.getMetaData();\r\n String[] types = {\"TABLE\"};\r\n ResultSet rs = md.getTables(null, \"USERTEST\", \"%\", types);\r\n while (rs.next()) {\r\n String queryDrop\r\n = \"DROP TABLE \" + rs.getString(3);\r\n Statement st = conn.createStatement();\r\n st.executeQuery(queryDrop);\r\n System.out.println(\"TABLE \" + rs.getString(3).toLowerCase() + \" DELETED\");\r\n st.close();\r\n }\r\n rs.close();\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }",
"public void resetTables() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_LOGIN, null, null);\n db.close();\n }",
"private void removeRedundantGreyTable()\r\n \t{\r\n \t\tdeleteNodes(XPath.GREY_TABLE.query);\r\n \t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'COMMENTARIES'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"livechina_chinnel\\\"\";\n db.execSQL(sql);\n }",
"public void dropTable(Class<?> clz) {\n\t\tdropTable(getTableName(clz));\n\t}",
"public void delete_database() {\n //deletes file and by doing so all the tables\n File file = new File(url);\n String path = \"..\" + File.separator + file.getPath();\n File file_path = new File(path);\n file_path.delete();\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n CriuzesDao.dropTable(db, ifExists);\n Criuzes_TMPDao.dropTable(db, ifExists);\n CabinsDao.dropTable(db, ifExists);\n Cabins_TMPDao.dropTable(db, ifExists);\n ExcursionsDao.dropTable(db, ifExists);\n Excursions_TMPDao.dropTable(db, ifExists);\n GuestsDao.dropTable(db, ifExists);\n Guests_TMPDao.dropTable(db, ifExists);\n }",
"public static void dropTable(String dropTableString) {\n System.out.println(\"STUB: Calling parseQueryString(String s) to process queries\");\n System.out.println(\"Parsing the string:\\\"\" + dropTableString + \"\\\"\");\n String dropTableName = dropTableString.replaceAll(\".* \", \"\").concat(\".tbl\");\n System.out.println(\"TableName : \" + dropTableName);\n try {\n Table table = new Table(dropTableName);\n table.page.close();\n File file = new File(dropTableName);\n// table.page.setLength(0);\n //TODO : update tables table and columnstable and property files\n\n if (file.exists())\n file.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n protected void doClean() throws SQLException {\n for (String dropStatement : generateDropStatements(name, \"V\", \"VIEW\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // aliases\n for (String dropStatement : generateDropStatements(name, \"A\", \"ALIAS\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n for (Table table : allTables()) {\n table.drop();\n }\n\n // slett testtabeller\n for (String dropStatement : generateDropStatementsForTestTable(name, \"T\", \"TABLE\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n\n // tablespace\n for (String dropStatement : generateDropStatementsForTablespace(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // sequences\n for (String dropStatement : generateDropStatementsForSequences(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // procedures\n for (String dropStatement : generateDropStatementsForProcedures(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // functions\n for (String dropStatement : generateDropStatementsForFunctions(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // usertypes\n for (String dropStatement : generateDropStatementsForUserTypes(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n SbjectDao.dropTable(db, ifExists);\n SourceDao.dropTable(db, ifExists);\n }",
"public void dropTable(DropTableQuery query);",
"private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }",
"public void removeEvents() throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase(); \n\t\ttry {\n\t\t\tdb.delete(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, null);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}",
"@Override\n public void dropTable(String table_name) {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // try to delete the table\n try {\n String drop_table = \"DROP TABLE \" + table_name;\n statement.execute(drop_table);\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not delete table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Deleted table \" + table_name);\n\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"DOWNLOAD_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public void removetable(Connection connection) throws SQLException\n {\n\tStringBuffer sbremove = new StringBuffer();\n\tsbremove.append(\" DROP TABLE Credit CASCADE CONSTRAINTS \");\n\tStatement statement =null;\n\ttry {\n\t statement = connection.createStatement();\n\t statement.executeUpdate (sbremove.toString());\n\t}catch (SQLException e) {\n\t throw e;\n\t}finally{\n\t statement.close();\n\t}\n }",
"public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}",
"public void wipeDB() {\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tdb.delete(EventDataSQLHelper.TABLE, null, null);\n\t\tdb.close();\n }",
"public void borrarTodo()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tStatement st = conexion.createStatement();\r\n\t\tst.execute(\"DROP TABLE usuarios\");\r\n\t\tst.execute(\"DROP TABLE prestamos\");\r\n\t\tst.execute(\"DROP TABLE libros\");\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"LIVE_KIND_OBJ\\\"\";\n db.execSQL(sql);\n }",
"public void resetTables(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(User.TABLE_USER_NAME, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"MOVIE_DETAIL\\\"\";\n db.execSQL(sql);\n }",
"public void deleteUpsos() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_UPSO, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all upso info from sqlite\");\n }",
"public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}",
"private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }",
"@After\n public void tearDown() {\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n }",
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n\t\tProvinceDao.dropTable(db, ifExists);\n\t\tCityDao.dropTable(db, ifExists);\n\t\tCityAreaDao.dropTable(db, ifExists);\n\t}",
"public void cleanTable() throws ClassicDatabaseException;",
"public void deleteDB(){\n \t\tSQLiteDatabase db = this.getWritableDatabase();\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS user\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS poll\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS time\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS status\");\n \t\tonCreate(db);\n \t}",
"public void dropTable(String table) {\n SQLiteDatabase db = openConnection();\n db.execSQL(\"DROP TABLE IF EXISTS \" + table);\n closeConnection();\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'SELLER'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, Class<?> clz) {\n ArrayList<String> stmts=getDropTableStatms(clz);\n for (String stmt : stmts) {\n db.execSQL(stmt);\n }\n }",
"public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int i, int i1) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + NewsModel.TABLE_NAME);\n\n // Create tables again\n onCreate(db);\n }",
"private void DropEverything() throws isisicatclient.IcatException_Exception {\n List<Object> allGroupsResults = port.search(sessionId, \"Grouping\");\r\n List tempGroups = allGroupsResults;\r\n List<EntityBaseBean> allGroups = (List<EntityBaseBean>) tempGroups;\r\n port.deleteMany(sessionId, allGroups);\r\n\r\n //Drop all rules\r\n List<Object> allRulesResults = port.search(sessionId, \"Rule\");\r\n List tempRules = allRulesResults;\r\n List<EntityBaseBean> allRules = (List<EntityBaseBean>) tempRules;\r\n port.deleteMany(sessionId, allRules);\r\n\r\n //Drop all public steps\r\n List<Object> allPublicStepResults = port.search(sessionId, \"PublicStep\");\r\n List tempPublicSteps = allPublicStepResults;\r\n List<EntityBaseBean> allPublicSteps = (List<EntityBaseBean>) tempPublicSteps;\r\n port.deleteMany(sessionId, allPublicSteps);\r\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STEP11_RESBEAN\\\"\";\n db.execSQL(sql);\n }",
"public void removeTablesInNavigationTable(String panelTitle) {\n\t\tConsoleTableNavigation table = (ConsoleTableNavigation) getBoard(panelTitle);\n\t\ttable.removeTables();\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"COMMENT\\\"\";\n db.execSQL(sql);\n }",
"private void deletes() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Delete delete: deletes) {\n \tdelete.init();\n }\n \n //DBPeer.updateTableIndexes(); //Set min max of indexes not implemented yet\n }",
"abstract void dropTable() throws SQLException;",
"@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEED);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEEDUSER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ITEM);\n \t\tonCreate(db);\n \t}",
"private void cleanActionsTables() {\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PUBLIC,\n null,\n null\n );\n getContentResolver().delete(\n ChatObjectContract.CONTENT_URI_ACTIONS_PRIVATE,\n BaseColumns.MSG_IN_QUEUE + \"=1\",\n null\n );\n }"
] | [
"0.7241311",
"0.7163452",
"0.7022426",
"0.7005273",
"0.69773823",
"0.6968994",
"0.695441",
"0.67858356",
"0.6681128",
"0.66653734",
"0.66326666",
"0.66055495",
"0.6600958",
"0.6587505",
"0.6573295",
"0.6535567",
"0.65221685",
"0.6518529",
"0.6502231",
"0.6441295",
"0.6417213",
"0.6415697",
"0.63835037",
"0.63797474",
"0.63684154",
"0.6345113",
"0.63425",
"0.63359565",
"0.62990886",
"0.6284543",
"0.62682956",
"0.6262675",
"0.62396795",
"0.6193777",
"0.61836433",
"0.6172504",
"0.61713135",
"0.6161813",
"0.6114539",
"0.6073296",
"0.60701996",
"0.6049393",
"0.6031066",
"0.6029053",
"0.6027226",
"0.6016167",
"0.6012081",
"0.5977415",
"0.5967317",
"0.5955862",
"0.5954298",
"0.5942135",
"0.5940109",
"0.5939052",
"0.5933952",
"0.5928808",
"0.592697",
"0.59204847",
"0.59125805",
"0.59091276",
"0.58976156",
"0.58951885",
"0.58788955",
"0.5878746",
"0.5871916",
"0.58684725",
"0.586697",
"0.5865639",
"0.5858903",
"0.5854496",
"0.584985",
"0.584961",
"0.5839426",
"0.58327985",
"0.58302796",
"0.5827043",
"0.58223253",
"0.58089375",
"0.5807492",
"0.5806819",
"0.5803339",
"0.579799",
"0.5797122",
"0.57843256",
"0.5774428",
"0.576458",
"0.5762152",
"0.57620096",
"0.5756809",
"0.57540256",
"0.57456917",
"0.57384783",
"0.57362306",
"0.57329804",
"0.5732579",
"0.57315934",
"0.57295877",
"0.572442",
"0.5722431",
"0.57116824"
] | 0.70405257 | 2 |
Validates string object and throws InvalidException | public interface Validate {
public abstract void validate(String s) throws InvalidException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String validate(String toValidate);",
"public static void isValid(String str) throws IllegalArgumentException {\n\t//remove leading and trailing whitespace\n\tstr = str.trim();\n\t\n\t//null & empty validation\n\tif(\"\".equals(str)) throw new IllegalArgumentException(\"Invalid String\");\n }",
"public void validate(Object str) throws InvalidConfigException\n {\n super.validate(str);\n checkValidName((String)str);\n checkValidXmlToken((String)str);\n checkValidObjectNameToken((String)str);\n }",
"public abstract void validate(String value) throws DatatypeException;",
"private void valida(String str)throws Exception{\n\t\t\t\n\t\t\tif(str == null || str.trim().isEmpty()){\n\t\t\t\tthrow new Exception(\"Nao eh possivel trabalhar com valores vazios ou null.\");\n\t\t\t}\n\t\t\n\t\t}",
"public void validateObject(Object object) throws AppointmentInvalidInputException {\r\n\t\ttry {\r\n\t\t\tobject.toString();\r\n\t\t}catch(NullPointerException exception) {\r\n\t\t\tthrow new AppointmentNotFoundException(String.format(AppointmentConstants.INVALID_INPUT, object), exception);\r\n\t\t}\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfIncorrectString() {\n Ip4Address ipAddress;\n\n String fromString = \"NoSuchIpAddress\";\n ipAddress = Ip4Address.valueOf(fromString);\n }",
"@Override\n\tprotected void isValid(String input) throws DataInputException\n\t{\n\t}",
"public abstract boolean isValid(String s);",
"@Override\n protected boolean isValueIsValid(String value) {\n return false;\n }",
"public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }",
"public void testInvalidStringPositiveTest()\n {\n form.setVerificationCode(testStr);\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }",
"public void InvalidFormat();",
"boolean isValidValue(String value);",
"@Test\n public void testEmail_String()\n {\n try\n {\n String value = UtilEmailTest.EMAIL;\n Email instance = new Email(value);\n assertEquals(\"Bad email address\", value, instance.getAddress());\n\n value = \" \" + value.toUpperCase() + \" \";\n instance = new Email(value);\n assertEquals(\"Bad email address\", UtilEmailTest.EMAIL, instance.getAddress());\n }\n catch(UserException ex)\n {\n ex.printStackTrace();\n fail(\"Instanciation should not fail: \" + ex.getMessage());\n }\n try\n {\n new Email(UtilEmailTest.EMAIL + \"|\");\n fail(\"Instanciation with forbidden character should fail\");\n }\n catch(UserException ex)\n {\n System.out.println(ex.getMessage());\n }\n try\n {\n new Email(null);\n fail(\"Instanciation with null value should fail\");\n }\n catch(UserException ex)\n {\n System.out.println(ex.getMessage());\n }\n }",
"public static void assertInvalid(String text)\n {\n assertTrue(parseInvalidProgram(text));\n }",
"public abstract boolean isValidValue(String input);",
"private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }",
"public void validate () { throw new RuntimeException(); }",
"private void badStringEthernetAddressConstructorHelper(\n String ethernetAddressString)\n {\n try\n {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress(ethernetAddressString);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NumberFormatException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n }",
"@Override\n public boolean validate(final String param) {\n return false;\n }",
"public void validate( Object object, Object value )\n //throws MetaException\n {\n String mask = (String) getAttribute( ATTR_MASK );\n String msg = getMessage( \"Invalid value format\" );\n\n String val = (value==null)?null:value.toString();\n\n if ( !GenericValidator.isBlankOrNull( val )\n && !GenericValidator.matchRegexp( val, mask )) {\n throw new InvalidValueException( msg );\n }\n }",
"public void validate() throws Exception {\n }",
"public <T> void validateObject(T object, String exceptionMessage) {\n ValidationContext ctx = validateObject(object);\n if (ctx != null) {\n throw new ValidationException(exceptionMessage, ctx);\n }\n }",
"public static void validateString(String desc)\n\t\t\tthrows IllegalArgumentException {\n\t\tif (desc == null || desc.isEmpty())\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Please check a provided paramenter [ \" + desc + \" ]\");\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfEmptyString() {\n Ip4Address ipAddress;\n\n String fromString = \"\";\n ipAddress = Ip4Address.valueOf(fromString);\n }",
"@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }",
"private RedisSMQException validationException(Object value, String cause) {\n\t\treturn new RedisSMQException(\"Value \" + value + \" \" + cause);\n\t}",
"public void testGetMessage_InvalidObj() {\r\n try {\r\n validator.getMessage(new Byte(\"1\"));\r\n fail(\"testGetMessage_InvalidObj is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testGetMessage_InvalidObj.\");\r\n }\r\n }",
"public static void validateString(String... params)\n\t\t\tthrows IllegalArgumentException {\n\t\tfor (String param : params)\n\t\t\tif (param == null || param.isEmpty())\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Please check a provided paramenter [ \" + param + \" ]\");\n\t}",
"@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullString() {\n Ip4Address ipAddress;\n\n String fromString = null;\n ipAddress = Ip4Address.valueOf(fromString);\n }",
"public void testFromString()\n {\n // An empty board\n assertEquals(b1.toString(), \"EEEEEEEEE\");\n b1.fromString(\"EEEEEEEEE\");\n assertEquals(b1.toString(), \"EEEEEEEEE\");\n\n // An arbitrary complex but valid case\n b1.fromString(\"RRRBEEBBE\");\n assertEquals(b1.toString(), \"RRRBEEBBE\");\n\n // Wrong string length\n try { b1.fromString(\"E\"); }\n catch (Exception e)\n {\n assertEquals(e.getClass(),\n (new IllegalArgumentException()).getClass());\n assertEquals(e.getMessage(), \"Your state identifying \" +\n \"string is the wrong length. It must be nine characters\" +\n \" long with no spaces.\");\n }\n\n // Invalid cell characters\n try { b1.fromString(\"XXXXXXXXX\"); }\n catch (Exception e)\n {\n assertEquals(e.getClass(),\n (new IllegalArgumentException()).getClass());\n assertEquals(e.getMessage(), \"Your string has a \" +\n \"value in it that doesn't match one of our cell \" +\n \"types.\");\n }\n\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"@Test\n\tpublic void validObjectShouldValidate() {\n\t\tT validObject = buildValid();\n\t\tAssertions.assertThat(isValid(validObject))\n\t\t\t\t.as(invalidMessage(validObject))\n\t\t\t\t.isTrue();\n\t}",
"private RedisSMQException validationException(String cause) {\n\t\treturn new RedisSMQException(\"Value \" + cause);\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"private void validate(String s, int length, String msg) {\n Logger.getLogger(getClass()).info(\"valore della stringa inserita\"+s);\n \tif (s != null && s.length()>length)\n throw new IllegalArgumentException(msg);\n }",
"public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"@Test\n\tpublic void testValidateInvalidWrongType() {\n\t\tRapidBean bean = createTestBean(\"Bl�mel\", \"Martin\", \"19641014\");\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\");\n\t\ttry {\n\t\t\tprop.validate(bean);\n\t\t\tAssert.fail(\"expected ValidationException\");\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}",
"public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }",
"public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }",
"@ParameterizedTest\n @ValueSource(strings = {\"Hello\", \"number1\", \"_underscore\", \"underscore_\", \"p.e.r.o.i.d.s\", \"\\\\Backslash\", \"Backslash\\\\\"})\n void testValid(String valid) throws IOException {\n try (Workbook wb = _testDataProvider.createWorkbook()) {\n Name name = wb.createName();\n assertDoesNotThrow(() -> name.setNameName(valid));\n }\n }",
"@When(\"^user enters valid \\\"([^\\\"]*)\\\"$\")\n public void userEntersValid(String arg0) throws Throwable {\n }",
"public void validateStringField(String field, String nameField) throws ParamsInvalidException {\n if (field == null) {\n throw new ParamsInvalidException(10, nameField);\n }\n if (field.isEmpty()) {\n throw new ParamsInvalidException(11, nameField);\n }\n }",
"private boolean isNameValid(String name) {\n\n }",
"private void validateFirstNameInput(String firstName) {\n\t\t\n\t\tif(Objects.isNull(firstName) || firstName.length() < 3) {\n\t\t\tthrow new FirstNameIsNotInExpectedFormat(firstName);\n\t\t}\n\t\t\n\t}",
"public void stinException(String nameField, Editable stringAnalize, int max) throws Exceptions {\n if(stringAnalize.toString().isEmpty()){\n throw new Exceptions(\"You need to insert the \"+nameField);\n }\n if(stringAnalize.length()>max){\n throw new Exceptions(\"You need to insert less than \"+max+\" characters\");\n }\n try{\n if(Double.parseDouble(stringAnalize.toString())!=321312.123) {\n throw new Exceptions(\"The \" + nameField + \" could not be a number\");\n }\n }catch(Exceptions fs){\n throw new Exceptions(\"The \" + nameField + \" could not be a number\");\n }catch(Exception e){\n }\n }",
"void validate() throws ValidationException;",
"public void validate() {}",
"public InvalidHexException(String invalid) {\r\n\t\tsuper(invalid);\r\n\t\tSystem.err.println(\"Invalid input: Hex values can only have characters 0-9 and A-F\");\r\n\t}",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"void validateMobileNumber(String stringToBeValidated,String name);",
"public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}",
"@Test\n public void cannotConvertInvalidRomanString() throws IllegalArgumentException {\n String invalidRomanStr = \"mMmCMxciL\";\n\n //then\n exception.expect(IllegalArgumentException.class);\n exception.expectMessage(invalidRomanStr + \" is not a valid roman numeral string\");\n\n //when\n RomanNumberUtil.toDecimal(invalidRomanStr);\n }",
"public static boolean fromStringForRequired(String string)\n throws IllegalArgumentException, TypeValueException {\n if (\"true\".equals(string)) {\n return true;\n } else if (\"false\".equals(string)) {\n return false;\n } else if (string == null) {\n throw new IllegalArgumentException(\"string == null\");\n } else {\n throw new TypeValueException(SINGLETON, string);\n }\n }",
"private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }",
"void validate();",
"void validate();",
"void validate(T object);",
"public void testCtorStr_Failure2() throws Exception {\n try {\n new RenameConverter(\" \");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }",
"boolean allowsValue (final String str, final ValidationContext vc)\n {\n try\n {\n getValue (str, vc);\n return true;\n }\n catch (final DatatypeException e)\n {\n return false;\n }\n }",
"static void emailValidation(String email) throws Exception {\n Pattern pattern_email = Pattern.compile(\"^[a-z0-9._-]+@[a-z0-9._-]{2,}\\\\.[a-z]{2,4}$\");\n if (email != null) {\n if (!pattern_email.matcher(email).find()) {\n throw new Exception(\"The value is not a valid email address\");\n }\n } else {\n throw new Exception(\"The email is required\");\n }\n }",
"@Override\r\n\tpublic void validate(FacesContext context, UIComponent component, Object object) throws ValidatorException {\r\n\t\t\r\n\t\tString valor = object.toString();\r\n\t\t\t\r\n\t\tif (valor.matches(\"^\\\\s.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al principi\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*\\\\s$\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver espais en blanc al final\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (valor.matches(\".*[ ]{2,}.*\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"No pot haver mÚs d'un espai en blanc entre paraules\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t\tif (!valor.matches(\"[a-zA-Z ]+\"))\r\n\t\t{\r\n\t\t\tFacesMessage msg = \tnew FacesMessage(\"Validaciˇ err˛nia\", \"┌nicament es poden utilitzar carÓcters alfabŔtics\");\r\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\t\t\tthrow new ValidatorException(msg);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\n public void testStringFractionImplInvalidStrings() {\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"9 9 0/2\");\n });\n //Input value which is not a number\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"One\");\n });\n }",
"private void validationUsername( String username ) throws Exception {\n\n if ( username.length() < 4 ) {\n throw new Exception( \"Longueur du nom d'utilisateur invalide.\" );\n }\n if ( username == null ) {\n throw new Exception( \"Merci de saisir un nom d'utilisateur valide.\" );\n }\n }",
"protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug 16256: important not to treat \"\" (blank error) the same as null\r\n\t\t// (no error)\r\n\t\tsetErrorMessage(errorMessage);\r\n\t}",
"public RamString(String string) throws IllegalArgumentException{\r\n if (string == null) {\r\n throw new IllegalArgumentException(\"Input cannot be null.\");\r\n }\r\n this.string = string; }",
"@Test\n public void containsIllegalCharacters() {\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_DAY.toString()));\n\n // Deadline contains illegal character in Month -> true\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_MONTH.toString()));\n\n // Deadline contains illegal character in Year -> true\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_YEAR.toString()));\n\n // No illegal character -> false\n assertFalse(Deadline.containsIllegalCharacters(VALID_1ST_JAN_2018.toString()));\n assertFalse(Deadline.containsIllegalCharacters(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n }",
"private static Exception assertInvalidStrictName(String name) {\n try {\n Model.validateStrictName(name);\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\"Invalid name [\" + name + \"]\"));\n return e;\n }\n return new Exception(\"failure expected\");\n }",
"private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void whenNullStringUsed_ExceptionIsThrown() {\n\t\tString input = null;\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}",
"public void testCtorStr_Failure1() throws Exception {\n try {\n new RenameConverter(null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }",
"private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }",
"public static void validateNull(JsonObject inputObject, String value) throws ValidatorException {\n if (value != null && !(value.equals(\"null\") || value.equals(\"\\\"null\\\"\"))) {\n ValidatorException exception = new ValidatorException(\"Expected a null but found a value\");\n logger.error(\"Received not null input\" + value + \" to be validated with : \" + inputObject\n .toString(), exception);\n throw exception;\n }\n }",
"@Test\n\tvoid valid() {\n\t\tnew DistinguishNameValidator().initialize(null);\n\n\t\t// Real tests\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(null, null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"0dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"dc=sample,dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = A , dc=sample,dc =com \", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = 3s34 , dc=sample,dc =com \", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = À:éè ù , dc=g-üfì,dc =com \", null));\n\t}",
"public boolean canProvideString();",
"void validate(String email);",
"@NCheck(failSpecificationType = IObjectStringNotMatchingFail.class)\n boolean isStringNotMatching(Object caller, String referenceA, String regex);",
"@Test\n public void testFirstNameMinLength() {\n owner.setFirstName(\"T\");\n assertInvalid(owner, \"firstName\", \"First name must be between 2 and 20 characters\", \"T\");\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void whenEmptyStringUsed_ExceptionIsThrown() {\n\t\tString input = \"\";\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}",
"@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}",
"public void checkSafeString(IRubyObject object) {\n if (getSafeLevel() > 0 && object.isTaint()) {\n ThreadContext tc = getCurrentContext();\n if (tc.getFrameName() != null) {\n throw newSecurityError(\"Insecure operation - \" + tc.getFrameName());\n }\n throw newSecurityError(\"Insecure operation: -r\");\n }\n secure(4);\n if (!(object instanceof RubyString)) {\n throw newTypeError(\n \"wrong argument type \" + object.getMetaClass().getName() + \" (expected String)\");\n }\n }",
"public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public org.apache.spark.ml.param.Param<java.lang.String> handleInvalid () { throw new RuntimeException(); }",
"public boolean isLenient() {\n return true;\n }",
"public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"private boolean isInputValid() {\n return true;\n }",
"@Test(expected = RuntimeException.class)\n\tpublic void shouldReturnExceptionWhenNegativeNumberasInput(){\n\t\tstringCalculator.addString(\"3,-5,6,-9\");\n\t}",
"@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}"
] | [
"0.6809616",
"0.67604613",
"0.67517954",
"0.67026776",
"0.6574477",
"0.6555891",
"0.654088",
"0.63852316",
"0.6384624",
"0.632732",
"0.6212066",
"0.61834997",
"0.60434115",
"0.6022862",
"0.59991467",
"0.5974142",
"0.5974108",
"0.5945519",
"0.59445095",
"0.5916874",
"0.5904632",
"0.5879236",
"0.58602804",
"0.58466226",
"0.584151",
"0.58349407",
"0.5833182",
"0.5826238",
"0.5823805",
"0.58224744",
"0.5809257",
"0.58015203",
"0.5791289",
"0.57895064",
"0.5775421",
"0.5770872",
"0.5770872",
"0.5770872",
"0.5767432",
"0.5767432",
"0.57534665",
"0.57180405",
"0.57180405",
"0.57062185",
"0.56917566",
"0.56875706",
"0.5686422",
"0.56835747",
"0.5679872",
"0.56690717",
"0.5668648",
"0.5631727",
"0.563066",
"0.56279856",
"0.5617627",
"0.56163317",
"0.5610875",
"0.5601006",
"0.55952686",
"0.5592645",
"0.5591647",
"0.5577245",
"0.5576248",
"0.5573011",
"0.55714136",
"0.55705124",
"0.55705124",
"0.55701935",
"0.5570098",
"0.5559942",
"0.5557314",
"0.5531662",
"0.5530849",
"0.55277026",
"0.5527393",
"0.5526361",
"0.55239457",
"0.55233073",
"0.55219287",
"0.55201983",
"0.55060416",
"0.5468551",
"0.54649866",
"0.546075",
"0.54540557",
"0.5453922",
"0.5453075",
"0.5447855",
"0.5438512",
"0.5434672",
"0.5422376",
"0.5418815",
"0.5418308",
"0.5408671",
"0.54071414",
"0.5405544",
"0.5405544",
"0.540279",
"0.5399717",
"0.5394209"
] | 0.6106773 | 12 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
FullScreencall();
super.onCreate(savedInstanceState);
setContentView(R.layout.game);
Rel_main_game = (RelativeLayout) findViewById(R.id.main_game_rl);
//Rel_main_game1 = (RelativeLayout) findViewById(R.id.main_game_rl);
DisplayMetrics dm = new DisplayMetrics();
this.getWindowManager().getDefaultDisplay().getMetrics(dm);
final int heightS = dm.heightPixels;
final int widthS = dm.widthPixels;
game_panel = new GamePanel(getApplicationContext(), this,widthS, heightS);
Rel_main_game.addView(game_panel);
RelativeLayout RR = new RelativeLayout(this);
RR.setBackgroundResource(R.drawable.btn);
RR.setGravity(Gravity.CENTER);
Rel_main_game.addView(RR,800,150);
RR.setX(0);
txt= new TextView(this);
Typeface Custom = Typeface.createFromAsset(getAssets(), "font.ttf");
txt.setTypeface(Custom);
txt.setTextColor(Color.YELLOW);
SharedPreferences prefs = this.getSharedPreferences("myPrefsKey", Context.MODE_PRIVATE);
txt.setText("Score: " + score );
RR.addView(txt);
// txt1.setTypeface(Custom);
//txt1.setTextColor(Color.YELLOW);
//txt1.setText("High Score: "+score);
//RR.addView(txt1);
LayoutInflater myInflater = (LayoutInflater) getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE);
pausaButton = myInflater.inflate(R.layout.pause, null, false);
pausaButton.setX(widthS-250);
pausaButton.setY(0);
Rel_main_game.addView(pausaButton);
ImageView pauseImage = (ImageView) pausaButton.findViewById(R.id.imCont);
pausaButton.setOnTouchListener(new TochButton(pauseImage));
pausaButton.setOnClickListener(Pausa_click);
pausaButton.getLayoutParams().height=250;
pausaButton.getLayoutParams().width=250;
PauseMenu= myInflater.inflate(R.layout.pause_menu, null, false);
Rel_main_game.addView(PauseMenu);
PauseMenu.setVisibility(View.GONE);
mte=(ImageView)findViewById(R.id.imageView1);
ImageView Cont = (ImageView)PauseMenu.findViewById(R.id.imCont1);
ImageView MainMenuTo = (ImageView)PauseMenu.findViewById(R.id.toMain);
Cont.setOnTouchListener(new TochButton(Cont));
Cont.setOnClickListener(Continue_list);
MainMenuTo.setOnTouchListener(new TochButton(MainMenuTo));
MainMenuTo.setOnClickListener(To_Main_Menu_list);
WinDialog= myInflater.inflate(R.layout.win, null, false);
Rel_main_game.addView(WinDialog);
ImageView Win_to_main = (ImageView) WinDialog.findViewById(R.id.imageViel2);
Win_to_main.setOnTouchListener(new TochButton(Win_to_main));
Win_to_main.setOnClickListener(To_Main_Menu_list);
WinDialog.setVisibility(View.GONE);
LoseDialog= myInflater.inflate(R.layout.lose, null, false);
Rel_main_game.addView(LoseDialog);
ImageView Lose_to_main = (ImageView) LoseDialog.findViewById(R.id.imageViel2);
Lose_to_main.setOnTouchListener(new TochButton(Lose_to_main));
Lose_to_main.setOnClickListener(To_Main_Menu_list);
btn11=(Button)findViewById(R.id.button1m);
//pbtn=(Button)findViewById(R.id.button1m);
mte.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
MainMusic.setVolume(0,0);
}
});
btn11.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "I scored "+score+" points!How much can you score?Install the game Space Prowler from the Play Store now!";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
}
});
LoseDialog.setVisibility(View.GONE);
MainMusic = MediaPlayer.create(Game.this, R.raw.music);
MainMusic.setVolume(0.3f, 0.3f);
MainMusic.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
MainMusic.setVolume(0,0);
} | {
"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 void onClick(View v) {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "I scored "+score+" points!How much can you score?Install the game Space Prowler from the Play Store now!";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | protected void i_get_coin() {
get_coins++;
score+=200;
s();
txt.setText("Score: " + score+" HighScore: " + hscore);
MediaPlayer mp = MediaPlayer.create(Game.this, R.raw.coin);
mp.start();
if (get_coins==50){
i_win();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | private void i_win() {
if (MainMusic.isPlaying())
MainMusic.stop();
MainMusic = MediaPlayer.create(Game.this, R.raw.win);
MainMusic.start();
game_panel.Pause_game=true;
WinDialog.setVisibility(View.VISIBLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
HttpSession s=request.getSession();
JSONArray ja = new JSONArray();
month = request.getParameter("month");
year = request.getParameter("year");
s.setAttribute("month", month);
int wastedMinutes = 0;
s.setAttribute("year", year);
ResultSet rs2=db.selectQuery("select * from salary where month='"+month+"' and year='"+year+"'");
int workdays = Integer.parseInt(request.getParameter("workdays"));
int totalWorkingHours = workdays * 8;
System.out.println("total working hours "+totalWorkingHours);
int actualWorkHours = 0;
int actualWorkMinutes = 0;
int oneHourSal = 0;
float oneHourSalFloat = 0;
int oneMinuteSalary = 0;
int grossSal = 0;
float wastedHoursToSend = 0;
int wastedHours = 0;
double actualSalary = 0;
String email = "";
String name = "";
ResultSet rs1 = null;
try {
if(!rs2.next()){
ResultSet rs = db
.selectQuery("select eid,name,email,salary from employee");
while (rs.next()) {
email = rs.getString("email");
name = rs.getString("name");
int eid = rs.getInt("eid");
System.out.println("eid :: " + eid);
actualSalary = rs.getDouble("salary");
System.out.println("actual slar "+actualSalary);
oneHourSal = (int) (actualSalary / totalWorkingHours);
oneHourSalFloat = oneHourSal;
rs1 = db
.selectQuery("select wasted_minutes from wasted_hours_per_month where eid='"
+ eid
+ "' and month='"
+ month
+ "' and year='" + year + "'");
if (rs1.next()) {
System.out.println("in if");
wastedHours = Math.round(Float.parseFloat(rs1
.getString("wasted_minutes").toString()) / 60);
System.out.println("wasted minutes : "+rs1
.getString("wasted_minutes"));
wastedMinutes = (int) Math.ceil(Float.parseFloat(rs1
.getString("wasted_minutes")));
wastedHoursToSend = Math.round(Float.parseFloat(rs1
.getString("wasted_minutes").toString()) / 60);
System.out.println("wastedHours :: " + wastedHours);
System.out.println("totalWorkingHours : "+totalWorkingHours);
float grossSalFloat = 0;
if(wastedMinutes > 1)
{
actualWorkMinutes = totalWorkingHours * 60 - wastedMinutes;
System.out.println("*************************************");
System.out.println("New Actual Working minutes : "+actualWorkMinutes);
System.out.println("oneHourSal : "+oneHourSal);
System.out.println("wastedMinutes : "+wastedMinutes);
System.out.println("*************************************");
grossSalFloat = Float.parseFloat(Integer.toString(actualWorkMinutes)) * (oneHourSalFloat / 60);
grossSal = (int)grossSalFloat;
System.out.println("grossSal : "+grossSal);
actualWorkHours = totalWorkingHours - wastedHours;
System.out.println("actual work jrs "+actualWorkHours);
}
else
{
actualWorkHours = totalWorkingHours;
grossSal = actualWorkHours * oneHourSal;
System.out.println("actual work jrs "+actualWorkHours);
}
int y= db.updateQuery(
"insert into salary(eid,month,year,actual_salary,total_working_days,total_working_hours,actual_working_hours,gross_salary) values("
+
eid+",'"+month+"','"+year+"','"+actualSalary+"','"+workdays
+
"','"+totalWorkingHours+"','"+actualWorkHours+"','"+grossSal
+"')"); if(y==1){
System.out.println("salary calculation done"); }
} else {
System.out.println("in else");
wastedHours = 0;
actualWorkHours=totalWorkingHours;
System.out.println("wastedHours :: " + wastedHours);
//actualWorkHours = totalWorkingHours - wastedHours;
grossSal = (int) actualSalary;
int y= db.updateQuery(
"insert into salary(eid,month,year,actual_salary,total_working_days,total_working_hours,actual_working_hours,gross_salary) values("
+
eid+",'"+month+"','"+year+"','"+actualSalary+"','"+workdays
+
"','"+totalWorkingHours+"','"+actualWorkHours+"','"+grossSal
+"')");
if(y==1){
System.out.println("salary calculation done"); }
else{
System.out.println("error fail"); }
}
JSONObject jo = new JSONObject();
jo.put("eid", eid);
jo.put("month", month);
jo.put("year", year);
jo.put("workdays", workdays);
jo.put("wastedHours", wastedHours);
jo.put("totalWorkingHours", totalWorkingHours);
jo.put("actualWorkHours", actualWorkHours);
jo.put("actualSal", actualSalary);
jo.put("grossSal", grossSal);
ja.put(jo);
String ss = "<h3>Hello</h3>"+name+"<br><h3>MONTHLY WORK DETAIL</h3> <hr>";
ss += "month : " + month + "<br>" + "year : " + year + "<br>"
+ "workdays : " + workdays + "<br>" + "wastedHours : "
+ wastedHours + "<br>" + "totalWorkingHours : "
+ totalWorkingHours + "<br>" + "actualWorkHours : "
+ actualWorkHours + "<br>" + "actualSal : "
+ actualSalary + "<br>" + "grossSal : " + grossSal;
EmailAttachmentSender.sendEmailWithAttachments(email, ss);
}
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally
{
if(rs2 != null)
try {
rs2.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(rs1 != null)
try {
rs1.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//db.closeConnection();
}
response.setContentType("application/json");
response.getWriter().print(ja.toString());
} | {
"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 |
Creates new form SelectContests | public SelectContests() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n ContestBDD contestBDD = new ContestBDD(getContext());\n contest = new Contest(rb1.getText().toString(), Et1.getText().toString(),\n rb2.getText().toString(), Et2.getText().toString(),\n Et3.getText().toString(), \"4-4-2\", \"4-4-2\", filemanagerstring);\n contestBDD.open();\n contestBDD.insertContest(contest);\n if (mListener != null)\n mListener.onFragmentInteraction(null);\n //Show(new onContestFragmentCreated(),contest,time);\n contestBDD.close();\n }",
"public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }",
"private void GetCreatedContest() {\n\n\t\ttry {\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tasName.add(\"userid\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tLocalData data = new LocalData(context);\n\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\t\t\tasValue.add(data.GetS(\"userid\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\n\t\t\tString sUrl = StringURLs.CREATED_CONTEST;\n\n\t\t\tsUrl = StringURLs.getQuery(sUrl, asName, asValue);\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setContext(context);\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (sJSON.length() == 0) {\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(context,\n\t\t\t\t\t\t\t\t\t\t\t\"c100\"), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tShowContestDeatails(sJSON, \"createdcontest\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(context, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sUrl);\n\n\t\t} catch (Exception exp) {\n\n\t\t}\n\t}",
"public void setContestId(String contestId) ;",
"private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"public Project_Create() {\n initComponents();\n }",
"private Contest createContestForTest() {\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n StudioFileType fileType = new StudioFileType();\r\n populateStudioFileType(fileType);\r\n em.persist(fileType);\r\n\r\n ContestChannel channel = new ContestChannel();\r\n populateContestChannel(channel);\r\n em.persist(channel);\r\n\r\n ContestType contestType = new ContestType();\r\n populateContestType(contestType);\r\n contestType.setContestType(1L);\r\n em.persist(contestType);\r\n\r\n ContestStatus status = new ContestStatus();\r\n status.setDescription(\"description\");\r\n status.setName(\"Name\");\r\n status.setContestStatusId(10L);\r\n status.setStatusId(1L);\r\n em.persist(status);\r\n\r\n Date date = new Date();\r\n ContestGeneralInfo generalInfo = new ContestGeneralInfo();\r\n generalInfo.setBrandingGuidelines(\"guideline\");\r\n generalInfo.setDislikedDesignsWebsites(\"disklike\");\r\n generalInfo.setGoals(\"goal\");\r\n generalInfo.setOtherInstructions(\"instruction\");\r\n generalInfo.setTargetAudience(\"target audience\");\r\n generalInfo.setWinningCriteria(\"winning criteria\");\r\n\r\n ContestMultiRoundInformation multiRoundInformation = new ContestMultiRoundInformation();\r\n multiRoundInformation.setMilestoneDate(new Date());\r\n multiRoundInformation.setRoundOneIntroduction(\"round one\");\r\n multiRoundInformation.setRoundTwoIntroduction(\"round two\");\r\n\r\n ContestSpecifications specifications = new ContestSpecifications();\r\n specifications.setAdditionalRequirementsAndRestrictions(\"none\");\r\n specifications.setColors(\"white\");\r\n specifications.setFonts(\"Arial\");\r\n specifications.setLayoutAndSize(\"10px\");\r\n\r\n PrizeType prizeType = new PrizeType();\r\n prizeType.setDescription(\"Good\");\r\n prizeType.setPrizeTypeId(1L);\r\n em.persist(prizeType);\r\n\r\n MilestonePrize milestonePrize = new MilestonePrize();\r\n milestonePrize.setAmount(10.0);\r\n milestonePrize.setCreateDate(new Date());\r\n milestonePrize.setNumberOfSubmissions(1);\r\n milestonePrize.setType(prizeType);\r\n\r\n Contest entity = new Contest();\r\n\r\n entity.setContestChannel(channel);\r\n entity.setContestType(contestType);\r\n entity.setCreatedUser(10L);\r\n entity.setEndDate(date);\r\n entity.setEventId(101L);\r\n entity.setForumId(1000L);\r\n entity.setName(\"name\");\r\n entity.setProjectId(101L);\r\n entity.setStartDate(date);\r\n entity.setStatus(status);\r\n entity.setStatusId(1L);\r\n entity.setTcDirectProjectId(1L);\r\n entity.setWinnerAnnoucementDeadline(date);\r\n entity.setGeneralInfo(generalInfo);\r\n entity.setSpecifications(specifications);\r\n entity.setMultiRoundInformation(multiRoundInformation);\r\n entity.setMilestonePrize(milestonePrize);\r\n\r\n em.getTransaction().commit();\r\n\r\n em.close();\r\n return entity;\r\n }",
"@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }",
"public JComponent contestantDropDownList(Contestant[] conts, int numConts) {\n \tcontestants=conts;\n \tif(contestants!=null) {\n\t \tString[] strings = new String[numConts];\n\t \tfor(int i=0;i<numConts;i++){\n\t \t\tstrings[i]=\"\"+contestants[i].getID()+\" - \"+contestants[i].getFirst()+\" \"+contestants[i].getLast();\n\t \t}\n\t \tcontestantComboBox = new JComboBox(strings);\n\t \tcontestantComboBox.setSelectedItem(\"Select from a list of current contestants\");\n\t \tcontestantComboBox.addActionListener(new ActionListener() {\n\t \t public void actionPerformed(ActionEvent e) { \t\t\t\n\t \t\t\tfirstFieldC.setText(contestants[contestantComboBox.getSelectedIndex()].getFirst());\n\t \t\t\tlastFieldC.setText(contestants[contestantComboBox.getSelectedIndex()].getLast());\n\t \t\t\ttribeField.setText(contestants[contestantComboBox.getSelectedIndex()].getTribe());\n\t \t\t\tcID=contestants[contestantComboBox.getSelectedIndex()].getID();\n\t \t\t}\n\t \t});\n \t} else\n \t\tcontestantComboBox=new JComboBox();\n\t \tJPanel c = new JPanel();\n\t \tc.add(contestantComboBox, BorderLayout.LINE_START);\n\t \treturn c;\n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public SelectCourse() {\n super();\n }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public static void createButtonSelection(ActionContext actionContext){\n Thing store = actionContext.getObject(\"store\");\n store.doAction(\"openCreateForm\", actionContext);\n }",
"private void addNewCoursesOnClick(){\n dataSource.open();\n dataSource.createCourses(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString());\n dataSource.close();\n CoursesListElement courses = new CoursesListElement(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString(),0);\n listElements.add(courses);\n // setting list adapter\n listView.setAdapter(new ActionListAdapter(getActivity(),R.id.list_courses, listElements));\n newCourses.setVisibility(View.GONE);\n editTextCourses.setText(\"\");\n editTextTeacher.setText(\"\");\n editTextWhen.setText(\"\");\n editTextWhere.setText(\"\");\n editTextGrading.setText(\"\");\n editTextOther.setText(\"\");\n }",
"public void onSelectionCreate(ActionEvent event) throws SQLException {\n //TODO think about creating league model class to get id easily\n if(chooseAgeGroupCreate.getValue() != null && chooseCityBoxCreate.getValue() != null){\n chooseLeagueBoxCreate.setDisable(false);\n chooseLeagueTeamBoxCreate.getItems().clear();\n chooseLeagueBoxCreate.getItems().clear();\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBoxCreate.getValue().toString(), chooseAgeGroupCreate.getValue());\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBoxCreate.getItems().addAll(leagueList);\n }\n }\n }",
"private Contest newContest(long id, long forumId, Limit limit, List languages) {\n\t\tContest contest = new Contest();\n\t\tcontest.setId(id);\n\t\tcontest.setDescription(\"desc\" + id);\n\t\tcontest.setLimit(limit);\n\t\tcontest.setLanguages(languages);\n\t\tcontest.setTitle(\"title\" + id);\n\t\tcontest.setForumId(forumId);\n\t\tcontest.setStartTime(new Date(id * 1000));\n\t\tcontest.setEndTime(new Date(id * 2000));\n\t\treturn contest;\n\t}",
"public AdminContestListViewImp() {\n\t\tmyPanel = new JPanel();\n\t\tmyList = new ContestList();\t\n\t\t\n\t\tnewContestButton = new JButton(\"Create new contest\");\n\t\t\n\t\tmyPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));\n\t\t\n\t\tJPanel listContainerPanel = new JPanel();\n\t\tlistContainerPanel.setLayout(new BoxLayout(listContainerPanel, BoxLayout.Y_AXIS));\t\n\t\tlistContainerPanel.add(ContestList.getColumnTitleHeader());\n\t\tlistContainerPanel.add(new JScrollPane(myList));\n\t\t\n\t\tnewContestButton.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tlistContainerPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\t\n\t\tmyPanel.add(listContainerPanel);\n\t\tmyPanel.add(newContestButton);\n\t\t\n\t}",
"private boolean addContestantToList() {\r\n\t\tContestant toAdd = new Contestant();\r\n\t\ttoAdd.setFName(fNameField.getText());\r\n\t\ttoAdd.setLName(lNameField.getText());\r\n\t\tif (mInitField.getText().length() != 0) {\r\n\t\t\ttoAdd.setMInit(mInitField.getText());\r\n\t\t}\r\n\t\ttoAdd.setPhoneNo(phoneNumberField.getText());\r\n\t\ttoAdd.setEmail(emailField.getText());\r\n\t\ttoAdd.setImgURL(filePath);\r\n\t\tint[] a = new int[2];\r\n\t\tswitch (ageField.getSelectedIndex()) {\r\n\t\t\tcase 0:\r\n\t\t\t\t//to print invalid in\r\n\t\t\t\t//break;\r\n\t\t\tcase 1: \r\n\t\t\t\ta[0] = 0;\r\n\t\t\t\ta[1] = 3;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2: \r\n\t\t\t\ta[0] = 4;\r\n\t\t\t\ta[1] = 7;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3: \r\n\t\t\t\ta[0] = 8;\r\n\t\t\t\ta[1] = 11;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4: \r\n\t\t\t\ta[0] = 12;\r\n\t\t\t\ta[1] = 15;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5: \r\n\t\t\t\ta[0] = 16;\r\n\t\t\t\ta[1] = 18;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6: \r\n\t\t\t\ta[0] = 19;\r\n\t\t\t\ta[1] = 24;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7: \r\n\t\t\t\ta[0] = 25;\r\n\t\t\t\ta[1] = 30;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8: \r\n\t\t\t\ta[0] = 31;\r\n\t\t\t\ta[1] = Integer.MAX_VALUE;\r\n\t\t\t\ttoAdd.setAgeRange(a);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tboolean result = myList.addContestant(toAdd);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public CadastrarCategoria() {\n initComponents();\n }",
"public JIFrameAtividadesInserir() {\n initComponents();\n this.selecionaDadosCategoria(conn);\n }",
"@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"public FormInserir() {\n initComponents();\n }",
"public SearchContestsManagerAction() {\r\n }",
"@Test\r\n \t public void testAddnewCourse() {\r\n \t \tLoginpg loginPage = new Loginpg();\r\n \t \tloginPage.setUsernameValue(\"admin\");\r\n \t \tloginPage.setpassWordValue(\"myvirtualx\");\r\n \t \tloginPage.clickSignin();\r\n \t \t\r\n \t \tCoursepg coursePage= new Coursepg();\r\n \t \tcoursePage.clickCourse().clickNewCourse().typeNewCourseName(\"selenium\").clickSubmit();\r\n \t\r\n \t }",
"public abstract void addSelectorForm();",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"public UpcomingContestsManagerAction() {\r\n }",
"public Form_reporte_comuna_y_tipo(Controlador cont) {\n initComponents();\n this.controlador = cont;\n cargarSelect();\n\n }",
"@GetMapping(\"/form\")\n public String form(@RequestParam(name = \"id\", required = false, defaultValue = \"0\") int id, Model model) {\n Categoria categoria = new Categoria();\n if (id != 0) {\n categoria = categoriaService.findById(id);\n }\n model.addAttribute(\"categoria\", categoria);\n return FORM_VIEW;\n }",
"public void setContests(List<ProjectPlannerContestRow> contests) {\r\n this.contests = contests;\r\n }",
"public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }",
"@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public Contest createContest(Contest arg0) throws ContestManagementException {\r\n return null;\r\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"public void clickAddButton(View view){\n CaseDialog caseDialog = new CaseDialog(this);\n caseDialog.show();\n caseDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n casesAdapter.notifyDataSetChanged();\n }\n });\n }",
"public View_Categoria() {\n c = new Categoria();\n daoCategoria = new Dao_CadastroCategoria();\n categorias = new ArrayList<>();\n initComponents();\n TextCodigo.setDocument(new LimitaDigitosNum(11));\n TextNome.setDocument(new LimitaDigitos(30));\n TextNomeCons.setDocument(new LimitaDigitos(30));\n atualizarTabela();\n inicio();\n }",
"public Seleccion_Multiple_MultipleRespuesta() {\n initComponents();\n }",
"@FXML\n private void addCivilization(ActionEvent event) {\n \ttry {\n\n\t\t\tString civilizationName = newCivilizationNameTextField.getText();\n\n\t\t\tint type = 0 ;\n\n\t\t\tif(t1.isSelected()) {\n\n\t\t\t\ttype = 1 ;\n\n\t\t\t}\n\t\t\telse if(t2.isSelected()) {\n\n\t\t\t\ttype = 2;\n\n\t\t\t}\n\t\t\telse if(t3.isSelected()) {\n\n\t\t\t\ttype = 3;\n\n\t\t\t}\n\n\t\t\tif(civilizationName == null || civilizationName.isEmpty() || type == 0) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tcivilizationsTemp.add(new Pair<String, Integer>(civilizationName, type));\n\t\t\t\tnewCivilizationNameTextField.setText(\"\");\n\t\t\t\tt1.setSelected(false);\n\t\t\t\tt2.setSelected(false);\n\t\t\t\tt3.setSelected(false);\n\t\t\t\n\t\t\t\ttableCivilizations.getItems().clear();\n\t\t\t\ttableCivilizations.getItems().addAll(civilizationsTemp);\n\t\t\t}\n\n\t\t}\n \tcatch(InsufficientInformationException e1) {\n\n\t\t\tinsufficientDataAlert();\n\n\t\t}\n }",
"@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }",
"@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}",
"public List<ContestDTO> getContests() {\r\n return contests;\r\n }",
"public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tcontentPanel.add(getBtnCrear());\r\n\t\tcontentPanel.add(getBtnCancelar());\r\n\t\tcontentPanel.add(getLblNombre());\r\n\t\tcontentPanel.add(getTfNombre());\r\n\t\tcontentPanel.add(getLblSexo());\r\n\t\tcontentPanel.add(getComboSexo());\r\n\t\tcontentPanel.add(getLblEdadDesde());\r\n\t\tcontentPanel.add(getTfedadMinima());\r\n\t\tcontentPanel.add(getLblHasta());\r\n\t\tcontentPanel.add(getTfEdadMaxima());\r\n\r\n\t\t// Cargamos los datos en las tf\r\n\t\tcargarDatosCategoria(c);\r\n\t}",
"@Test\n public void testCreateNewOperationAsUser(){\n loginAsUser();\n\n vinyardApp.navigationOperationsClick();\n vinyardApp.navigationNewOpClick();\n\n Select name = new Select(driver.findElement(By.id(\"name\")));\n name.selectByValue(\"Пръскане\");\n vinyardApp.fillCostField(\"10.5\");\n vinyardApp.fillDurationsField(\"1\");\n vinyardApp.newOperationFormSave();\n String result = driver.getCurrentUrl();\n String expected = \"http://localhost:8080/save\";\n assertEquals(expected, result);\n }",
"@FXML\n private void addNewCoach() {\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"insert into szkolka.uzytkownik(imie, nazwisko, id_tu) values('\" +\n coachName.getText() + \"', '\" + coachSurname.getText() + \"', 2);\");\n st.close();\n coachName.setText(\"\");\n coachSurname.setText(\"\");\n setCoachesTable();\n }\n } catch (SQLException e) {\n warningText.setVisible(true);\n }\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"private void createGrpClinicSelection() {\n\n\t}",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public void newProject(View V){\n Intent i = new Intent(this, NewProject.class);\n i.putExtra(\"course title\",courseTitle);\n startActivity(i);\n }",
"public Campus create(long campusId);",
"@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}",
"@Override\n public void CreateContest(Contest contest) throws ATP_ExceptionHandler {\n try {\n em.getTransaction().begin();\n em.persist(contest);\n em.getTransaction().commit();\n } catch (Exception e) {\n // TODO: handle exception\n throw new ATP_ExceptionHandler(e.getMessage(), 34, \"ContestDAO\", \"Create Conrest Fail\");\n }\n }",
"public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }",
"@Test\n public void testGetLoadCategory() {\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tLoadCategories expResult = new LoadCategories(1);\n\tinstance.setLoadCategory(expResult);\n\tLoadCategories result = instance.getLoadCategory();\n\tassertEquals(expResult, result);\n }",
"@Test\n\tpublic void happyCreateNewIngredient(){\n\t\tname = \"Ingredient\" + String.valueOf(Math.random()).replace(\".\", \"\");\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\tIngredientPage i = new IngredientPage(driver);\n\t\ti.click(By.id(\"dropdown\"));\n\t\ti.click(By.id(\"add_dropdown\"));\n\t\ti.sendKeys(By.id(\"name\"), name);\n\t\ti.sendKeys(By.id(\"cost\"), \"3\");\n\t\ti.sendKeys(By.id(\"inventory\"), \"5\");\n\t\ti.sendKeys(By.id(\"unitofmeasure\"), \"fluffy\");\n\t\ti.click(By.id(\"createingredient\"));\n\t\ti.click(By.className(\"close\"));\n\t\tassertEquals(name, i.getInnerHtml(By.id(name)));\n\t}",
"public InspectionModal createNewInspection(){\n waitForLoading();\n clickElement(createNewInspectionButton);\n return new InspectionModal(super.driver); // return pop ap\n }",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"public void showInputCategoryCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_INPUT_CATEGORY_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_INPUT_CATEGORY_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Input Category\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n InputCategoryCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"List<AbiFormsForm> selectByExample(AbiFormsFormExample example);",
"private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }",
"public New_appointment() {\n initComponents();\n }",
"@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tdropdown.clear();\r\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tSpielplanErstellenForm erstellen = new SpielplanErstellenForm();\r\n\r\n\t\t\tRootPanel.get(\"details\").add(erstellen);\r\n\t\t}",
"private void selectCourses() {\n\t\tIntent intent = new Intent(this, ActivitySelectCourses.class);\n\t\tstartActivity(intent);\n\t}",
"public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }",
"public void AddExercises(View v){\n // Set this as a parent of the subclasses (of which there are different paths)\n ApplicationParents.getInstance().parents.push(getIntent());\n\n Intent i = new Intent(EditWorkoutActivity.this, SelectExericsesActivity.class);\n i.putExtra(\"Workout\", workout);\n i.putExtra(\"User\", user);\n startActivity(i);\n }",
"private void setupCreateCourse() {\n\t\tmakeButton(\"Create Course\", (ActionEvent e) -> {\n\t\t\ttry {\n\t\t\t\tString[] inputs = getInputs(new String[] { \"Name:\", \"Number:\" });\n\t\t\t\tif (inputs == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint num = Integer.parseInt(inputs[1]);\n\t\t\t\tadCon.createCourse(inputs[0], num);\n\t\t\t\tupdateCourses();\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Course number must be a number\", \"Error\",\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t});\n\t}",
"@When(\"I click on the Create new Project\")\n public void i_click_on_the_create_new_project(){\n\n i_click_on_create_a_new_project();\n }",
"public void fillForm() {\n\t\t// fills the name field with nameOfProject\n\t\tprojName.sendKeys(nameOfProject);\n\t\t// selects the first option from the 'Client partner' dropdown list\n\t\tSelect sel = new Select(clientList);\n\t\tsel.selectByIndex(1);\n\t\t// enters valid date data\n\t\tstartDate.sendKeys(\"06042018\");\n\t\tendDate.sendKeys(\"06052018\");\n\t}",
"public void handleCreateProject(SelectEvent event) {\n\t}",
"@Test\n\tpublic void CreateNewFilter() throws Throwable\n\t{\n\t\t\n\t\tHome h=new Home(driver);\n\t\th.getConatctLink().click();\n\t\t\n\t\tContacts c=new Contacts(driver);\n\t\tc.clickOnFilterLnk();\n\t\t\n\t\tCreateNewFilterPage nfp=new CreateNewFilterPage(driver);\n\t\tnfp.EnterViweName(driver).sendKeys(\"sam\"+\"_\"+wLib.getRamDomNum());\n\t\tnfp.clickOnSaveBtn();\n\t\t\n\t\tContacts c1=new Contacts(driver);\n\t\tc1.clickOnFilterLnk();\n\t\t\n\t\tCreateNewFilterPage nfp1=new CreateNewFilterPage(driver);\n\t\tnfp1.EnterViweName(driver).sendKeys(\"saigun\"+\"_\"+wLib.getRamDomNum());\n\t\tnfp1.clickOnSaveBtn();\n\t\t\n\t\t\n\t}",
"public CRUD_form() {\n initComponents();\n DbCon.getConnection(\"jdbc:mysql://localhost:3306/test\", \"root\", \"rishi\");\n }",
"@Test\r\n\tpublic void submit_after_test7() {\r\n\t\tSelect sel = new Select(driver.findElement(By.cssSelector(\"#searchCondition\")));\r\n\t\t\r\n\t\t//select option의 값 배열에 저장\r\n\t\tList<String> temp = new ArrayList<String>();\r\n\t\tfor(WebElement val : sel.getOptions()) {\r\n\t\t\ttemp.add(val.getText());\r\n\t\t}\r\n\t\t\r\n\t\t//예상되는 select option의 값\r\n\t\tString[] chk_sel_option = {\"Name\",\"ID111\"};\r\n\t\t\r\n\t\tassertArrayEquals(temp.toArray(), chk_sel_option);\r\n\t}",
"public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }",
"@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}",
"public DDSViewCollectionForm() {\n\t}",
"public WMSSelectorDialog(final EventBus eventBus, final List<WMSLayer> wmsLayers, final CoverageDescription coverage) {\n this.setIsModal(true);\n this.setShowMinimizeButton(false);\n this.setShowCloseButton(false);\n this.setWidth(200);\n this.setHeight(100);\n this.centerInPage();\n\n final DynamicForm form = new DynamicForm();\n final ComboBoxItem comboBox = new ComboBoxItem();\n comboBox.setTitle(\"WMS Layer\");\n String[] names = new String[wmsLayers.size()];\n for (int i = 0; i < names.length; i++) {\n names[i] = wmsLayers.get(i).getName();\n }\n comboBox.setValueMap(names);\n\n ButtonItem okButton = new ButtonItem(\"OK\");\n okButton.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n //Get selection\n WMSLayer selectedLayer = null;\n for (WMSLayer wmsLayer : wmsLayers) {\n if (wmsLayer.getName().equals(comboBox.getValue())) {\n selectedLayer = wmsLayer;\n break;\n }\n }\n if (selectedLayer != null) {\n WCSCoverage wcsCoverage = new WCSCoverage(coverage, selectedLayer);\n HashSet<Data> layers = new HashSet<Data>(1);\n layers.add(wcsCoverage);\n eventBus.fireEvent(new AddLayersEvent(layers));\n WMSSelectorDialog.this.hide();\n }\n }\n });\n\n form.setItems(comboBox, okButton);\n\n this.addItem(form);\n }",
"protected void addContest(Contest cs) {\n\t\tthis.contests.put(cs.getId(), cs);\n\t}",
"private void ShowContestDeatails(String sJson, String contest) {\n\n\t\tmContestDetails = new ArrayList<ContestDetails>();\n\n\t\ttry {\n\n\t\t\tJSONObject jsonObject = new JSONObject(sJson);\n\t\t\tJSONObject response = jsonObject.getJSONObject(\"response\");\n\t\t\tString success = response.getString(\"success\");\n\n\t\t\tif (success.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\tJSONArray participatedcontest = jsonObject\n\t\t\t\t\t\t.getJSONArray(contest);\n\n\t\t\t\tfor (int i = 0; i < participatedcontest.length(); i++) {\n\n\t\t\t\t\tJSONObject array = participatedcontest.getJSONObject(i);\n\n\t\t\t\t\tContestDetails contestDetails = new ContestDetails();\n\n\t\t\t\t\tcontestDetails.setID(array.getInt(\"ID\"));\n\t\t\t\t\tcontestDetails.setContest_name(array\n\t\t\t\t\t\t\t.getString(\"contest_name\"));\n\t\t\t\t\tcontestDetails.setThemephoto(array.getString(\"themephoto\"));\n\t\t\t\t\tcontestDetails.setContestenddate(array\n\t\t\t\t\t\t\t.getString(\"contestenddate\"));\n\t\t\t\t\tcontestDetails.setConteststartdate(array\n\t\t\t\t\t\t\t.getString(\"conteststartdate\"));\n\t\t\t\t\tcontestDetails.setVotingstartdate(array\n\t\t\t\t\t\t\t.getString(\"votingstartdate\"));\n\t\t\t\t\tcontestDetails.setVotingenddate(array\n\t\t\t\t\t\t\t.getString(\"votingenddate\"));\n\t\t\t\t\tcontestDetails.setPrize(array.getString(\"prize\"));\n\t\t\t\t\tcontestDetails.setCreatedby(array.getString(\"createdby\"));\n\t\t\t\t\tcontestDetails.setDescription(array\n\t\t\t\t\t\t\t.getString(\"description\"));\n\n\t\t\t\t\tif (array.getInt(\"contestparticipantid\") == 1) {\n\n\t\t\t\t\t\tcontestDetails.setContestparticipantid(true);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tcontestDetails.setContestparticipantid(false);\n\t\t\t\t\t}\n\n\t\t\t\t\tmContestDetails.add(contestDetails);\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tString msgcode = jsonObject.getJSONObject(\"response\")\n\t\t\t\t\t\t.getString(\"msgcode\");\n\n\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\tMain.getStringResourceByName(context, msgcode),\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\tmMainContestDetails = mContestDetails;\n\n\t\t\tUpdateListView();\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(context,\n\t\t\t\t\tMain.getStringResourceByName(context, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}",
"public void createCourse(String courseName, int courseCode){}",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvasCT);\r\n\t \tSC.say(\"Clicou\");\r\n\t }",
"public void insertTestCase(String path){\n\t\t\n\t\tif(MainWindow.getCasePath().isEmpty()){\n\t\t\tConsoleLog.Message(\"Test case not selected\"); \n\t\t}else{\n\t\t\tTestCaseSettingsData data = controller.readSettingsData(path);\n\t\t\tgetSelectedPanel().insertTestCaseToTable(data);\n\t\t\tgetSelectedPanel().clearResults();\n\t\t}\n\t}",
"@Override\n\t@RequestMapping(value = \"/showcreatecourse\", method = RequestMethod.GET)\n\tpublic String showCreateCourse(Model model) {\n\n\t\treturn \"createcourse\";\n\t}",
"public void seleccionarCategoria(String name);",
"public PizzaSelectPage() {\n initComponents();\n }",
"public CrearPedidos() {\n initComponents();\n }",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public void create(int id, DVD dvd, Categorie categorie);",
"@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }",
"private static boolean addNewProject() {\n\t\tString[] options = new String[] {\"Ongoing\",\"Finished\",\"Cancel\"};\n\t\tint choice = JOptionPane.showOptionDialog(frame, \"Select new project type\" , \"Add new Project\", \n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[2]);\n\t\t\n\t\tNewProjectDialog dialog;\n\t\t\n\t\tswitch(choice) {\n\t\tcase 0:\n\t\t\tdialog = new NewProjectDialog(\"o\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tdialog = new NewProjectDialog(\"f\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void createNewTeam(ActionEvent actionEvent) throws IOException {\n createTeamPane.setDisable(false);\n createTeamPane.setVisible(true);\n darkPane.setDisable(false);\n darkPane.setVisible(true);\n\n teamNameCreateField.setText(\"\");\n abbrevationCreateField.setText(\"\");\n chooseCityBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseAgeGroupCreate.getSelectionModel().clearSelection();\n chooseLeagueTeamBoxCreate.getSelectionModel().clearSelection();\n\n chooseLeagueBoxCreate.setDisable(true);\n chooseLeagueTeamBoxCreate.setDisable(true);\n }",
"private static void populateContestType(ContestType contestType) {\r\n contestType.setDescription(\"description\");\r\n contestType.setRequirePreviewFile(true);\r\n contestType.setRequirePreviewImage(true);\r\n contestType.setContestType(1L);\r\n }",
"public ProjektTest()\n {\n }",
"public void addClubSelector() {\n\n if (clubSelectorTour == null) {\n clubSelectorTour = calendarMenu.addItem(\"Set Club\", command -> {\n\n Window window = new Window(\"Select Club for Calendar Events\");\n window.setWidth(\"400px\");\n window.setHeight(\"200px\");\n getUI().addWindow(window);\n window.center();\n window.setModal(true);\n C<Club> cs = new C<>(Club.class);\n ComboBox clubs = new ComboBox(\"Club\", cs.c());\n clubs.setItemCaptionMode(ItemCaptionMode.ITEM);\n clubs.setNullSelectionAllowed(false);\n\n clubs.setFilteringMode(FilteringMode.CONTAINS);\n Button done = new Button(\"Done\");\n done.addClickListener(listener -> {\n window.close();\n Object id = clubs.getValue();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n calendar.markAsDirty();\n }\n });\n\n EVerticalLayout l = new EVerticalLayout(clubs, done);\n\n window.setContent(l);\n });\n }\n }",
"public ConsultarVeiculo() {\n initComponents();\n }",
"public CoursesManagement() {\n initComponents();\n }",
"@GetMapping(value = \"rest-getCityNewList\")\n\tpublic JsonResponse<List<DropDownModel>> getCityNewList(@RequestParam String distId) {\n\t\tlogger.info(\"Method : getCityNewList starts\");\n\n\t\tlogger.info(\"Method : getCityNewList ends\");\n\t\treturn PatientDetailsDao.getCityNewListDao(distId);\n\t}"
] | [
"0.58612597",
"0.5750265",
"0.5605611",
"0.55924195",
"0.5539413",
"0.5417406",
"0.53783435",
"0.5370134",
"0.5350769",
"0.5306745",
"0.5300949",
"0.5296483",
"0.5252593",
"0.5222968",
"0.52208686",
"0.5210201",
"0.517465",
"0.5128938",
"0.5087176",
"0.5084228",
"0.50754774",
"0.5074393",
"0.5069569",
"0.50625557",
"0.50438195",
"0.5038664",
"0.5024894",
"0.50243664",
"0.50178736",
"0.5015532",
"0.5004456",
"0.49939108",
"0.4983951",
"0.49816832",
"0.49806362",
"0.49774444",
"0.49514607",
"0.49480528",
"0.49456662",
"0.493262",
"0.49306953",
"0.49298412",
"0.49270236",
"0.49269876",
"0.4924321",
"0.49234194",
"0.49233365",
"0.49201828",
"0.4909777",
"0.48992828",
"0.48992398",
"0.48983",
"0.4891923",
"0.48749232",
"0.48742577",
"0.48598766",
"0.48475027",
"0.48376393",
"0.48339036",
"0.48336166",
"0.4829669",
"0.48274475",
"0.4818731",
"0.48173204",
"0.48153862",
"0.4802892",
"0.4800026",
"0.4797017",
"0.47915262",
"0.47885606",
"0.47710943",
"0.4767218",
"0.47635174",
"0.47629842",
"0.47605523",
"0.47590953",
"0.47518578",
"0.4747436",
"0.47468513",
"0.4738152",
"0.47314373",
"0.47252056",
"0.4721771",
"0.4718271",
"0.47145617",
"0.4712303",
"0.47088367",
"0.4701447",
"0.46962747",
"0.46922004",
"0.46921584",
"0.46863088",
"0.46843395",
"0.46773955",
"0.46758473",
"0.4675742",
"0.46754068",
"0.46753803",
"0.4671771",
"0.46704882"
] | 0.7125779 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jCheckBox1 = new javax.swing.JCheckBox();
jCheckBox2 = new javax.swing.JCheckBox();
jButton1 = new javax.swing.JButton();
jCheckBox3 = new javax.swing.JCheckBox();
jCheckBox4 = new javax.swing.JCheckBox();
jCheckBox5 = new javax.swing.JCheckBox();
jCheckBox6 = new javax.swing.JCheckBox();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Contest Reminder");
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setResizable(false);
jCheckBox1.setSelected(true);
jCheckBox1.setText("Codeforces");
jCheckBox2.setSelected(true);
jCheckBox2.setText("Hackerrank");
jButton1.setText("Done");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jCheckBox3.setSelected(true);
jCheckBox3.setText("Topcoder");
jCheckBox4.setSelected(true);
jCheckBox4.setText("Codechef");
jCheckBox5.setSelected(true);
jCheckBox5.setText("Hackerearth");
jCheckBox6.setSelected(true);
jCheckBox6.setText("Atcoder");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(48, 48, 48)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jCheckBox1)
.addComponent(jCheckBox4))
.addGap(29, 29, 29)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jCheckBox2)
.addComponent(jCheckBox5)))
.addGroup(layout.createSequentialGroup()
.addGap(127, 127, 127)
.addComponent(jButton1)))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jCheckBox6)
.addComponent(jCheckBox3))
.addContainerGap(41, Short.MAX_VALUE))
);
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jCheckBox1, jCheckBox2, jCheckBox3, jCheckBox4, jCheckBox5, jCheckBox6});
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(43, 43, 43)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jCheckBox1)
.addComponent(jCheckBox2)
.addComponent(jCheckBox3))
.addGap(41, 41, 41)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jCheckBox4)
.addComponent(jCheckBox5)
.addComponent(jCheckBox6))
.addGap(67, 67, 67)
.addComponent(jButton1)
.addContainerGap(80, Short.MAX_VALUE))
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
] | 0.0 | -1 |
2 GET, SET METHODS | public DanhSachThanhVien getObjDSThanhVien() {
return objDSThanhVien;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"protected abstract Set method_1559();",
"public void get() {\n }",
"@Override\n public void get() {}",
"public T set(T obj);",
"public String get();",
"public Result get(Get get) throws IOException;",
"public boolean isGet();",
"void set(T t);",
"T get();",
"T get();",
"T get();",
"T get();",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public abstract String get();",
"String get();",
"String get();",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"boolean get();",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"private Get() {}",
"private Get() {}",
"@Override\n String get();",
"public T get() {\n return value;\n }",
"public RestUtils setMethodGet()\n\t{\n\t\trestMethodDef.setHttpMethodPost(false);\n\t\treturn this;\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}",
"public Value get(Key key) ;",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"public void doGet( )\n {\n \n }",
"Object get(ID id) throws Exception;",
"@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(\"test23\", ref.getAuthor());\n ref.setEditor(\"test23\");\n assertEquals(\"test23\", ref.getEditor());\n ref.setTitle(\"test23\");\n assertEquals(\"test23\", ref.getTitle());\n ref.setBooktitle(\"test23\");\n assertEquals(\"test23\", ref.getBooktitle());\n ref.setYear(\"1839\");\n assertEquals(\"1839\", ref.getYear());\n ref.setPublisher(\"Otava\");\n assertEquals(\"Otava\", ref.getPublisher());\n ref.setJournal(\"test23\");\n assertEquals(\"test23\", ref.getJournal());\n ref.setVolume(\"3\");\n assertEquals(\"3\", ref.getVolume());\n ref.setNumber(\"123\");\n assertEquals(\"123\", ref.getNumber());\n ref.setSeries(\"test23\");\n assertEquals(\"test23\", ref.getSeries());\n ref.setEdition(\"3rd\");\n assertEquals(\"3rd\", ref.getEdition());\n ref.setPages(\"12-35\");\n assertEquals(\"12-35\", ref.getPages());\n ref.setMonth(\"May\");\n assertEquals(\"May\", ref.getMonth());\n ref.setNote(\"test23\");\n assertEquals(\"test23\", ref.getNote());\n }",
"public native void set(T value);",
"public boolean isPutOrGet() {\r\n return putOrGet;\r\n }",
"public Object get (int i)\r\n {\r\n }",
"public void set(String name, Object value) {\n }",
"public abstract void set(M newValue);",
"protected abstract Object _get(String key);",
"public Result get(Get get, Integer lockId) throws IOException;",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public abstract void set(String key, T data);",
"public interface Getter {\r\n\tObject get();\r\n}",
"public void setPutOrGet(boolean value) {\r\n this.putOrGet = value;\r\n }",
"public Builder setGet(\n java.lang.String value) {\n copyOnWrite();\n instance.setGet(value);\n return this;\n }",
"@Test\n public void test_get_2() throws Exception {\n User user1 = createUser(1, true);\n\n User res = instance.get(user1.getId());\n\n assertNull(\"'get' should be correct.\", res);\n }",
"boolean getSet();",
"T get(ID id);",
"default Object get(String path) {\n return get(path, null);\n }",
"@Rubric(\n value=\"testBuildingSetAndGet\",\n goal=\"The goal of this evaluation is to testBuildingSetAndGet\",\n points=2.0,\n reference=\"This Test fails when: 1 or more of the Building.Set/Get had a problem\"\n )\n @Test(timeout=TIMEOUT)\n public void testBuildingSetAndGet() {\n Building b1 = new Building(10,20,30,40);\n assertEquals(10, b1.getLength());\n assertEquals(20, b1.getWidth());\n assertEquals(30, b1.getLotLength());\n assertEquals(40, b1.getLotWidth());\n b1.setLength(1);\n b1.setWidth(2);\n b1.setLotLength(3);\n b1.setLotWidth(4);\n assertEquals(1, b1.getLength());\n assertEquals(2, b1.getWidth());\n assertEquals(3, b1.getLotLength());\n assertEquals(4, b1.getLotWidth());\n }",
"public ImmutableRetrieve() {\n super();\n }",
"private void SetData(String uri, String id, String state, String value) {\n RequestPackage p = new RequestPackage();\n p.setUri(uri);\n p.setMethod(\"GET\");\n p.setParam(\"id\",id);\n p.setParam(\"state\",state);\n p.setParam(\"val\",value);\n // execute AsyncTask\n RequestTask r = new RequestTask();\n r.execute(p);\n\n }",
"@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}",
"abstract Function get(Object arg);",
"public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }",
"public void set(String s);",
"public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"String setValue();",
"public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}",
"public abstract void set(DataType x, DataType y, DataType z);",
"protected abstract void _set(String key, Object obj, Date expires);",
"public Object get(String chave);",
"void set(String key, Object value);",
"@Test\n public void test_getTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'getTelephone' should be correct.\",\n value, instance.getTelephone());\n }",
"public void setValue(Object param1, Object param2) {\n }",
"public DResult get(Get get, long startId) throws IOException;",
"public abstract T get(String key);",
"public void set(Object requestor, String field);",
"public V get() {\n return value;\n }",
"public Object get()\n {\n return m_internalValue;\n }",
"public interface Getter<T>\n{\n /**\n * Returns the data.\n * \n * @return data\n */\n public T get();\n}",
"private boolean isGetterSetterMethod(MethodBean pMethod, ClassBean pClass) {\n for (InstanceVariableBean var : pClass.getInstanceVariables()) {\n if (pMethod.getName().toLowerCase().equals(\"get\" + var.getName())) {\n return true;\n } else if (pMethod.getName().toLowerCase().equals(\"set\" + var.getName())) {\n return true;\n }\n }\n return false;\n }",
"@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }",
"private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }",
"public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}",
"public Value get(Key key);",
"@Override\r\n public V get(K key){\r\n // Return the value given by overloaded get function\r\n return get(root, key);\r\n }",
"DattySet getSet(String name, Properties properties, SetExistsAction action);",
"public static void assign(Object to, Object from) {\n List<Method> getMethods = new ArrayList<>();\n List<Method> setMethods = new ArrayList<>();\n\n for (Method method: from.getClass().getMethods()) {//заполняем getMethods getter-ами\n if(isGetter(method)) {\n getMethods.add(method);\n }\n }\n\n for (Method method: to.getClass().getMethods()) {//заполняем getMethods setter-ами\n if(isSetter(method)) {\n setMethods.add(method);\n }\n }\n\n for (Method setMethod: setMethods) {\n String setMethodName = setMethod.getName().substring(3);\n for (Method getMethod: getMethods) {\n if (setMethodName.equals(getMethod.getName().substring(3)) &&\n CompareTypes(setMethod.getParameterTypes()[0], getMethod.getReturnType())) {\n try {\n setMethod.invoke(to, getMethod.invoke(from));\n } catch (Exception e) {\n System.out.println(e);\n }\n break;\n }\n }\n }\n }",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"public Object get(String arg0, String arg1) {\n\t\treturn this.get(arg0,arg1);\n\t}",
"public int setValue (int val);",
"@Override\n\tpublic void setOptimizeGet(boolean arg0) {\n\n\t}",
"static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }",
"public void setAge(int age);",
"void setAge(int age);",
"void setValue(T value);",
"void setValue(T value);",
"public abstract void setValue(T value);",
"public Object set (int i, Object t)\r\n {\r\n }",
"void set(Model model);",
"protected abstract V get(K key);",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public T set(int i, T obj);",
"long get();",
"public void set(int i);",
"public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }"
] | [
"0.618534",
"0.60726875",
"0.6040834",
"0.5969196",
"0.5886623",
"0.57477915",
"0.5729078",
"0.56727403",
"0.5635843",
"0.5629048",
"0.5629048",
"0.5629048",
"0.5629048",
"0.5614937",
"0.560934",
"0.55981576",
"0.55842096",
"0.55842096",
"0.5567084",
"0.5557492",
"0.5557223",
"0.5557223",
"0.55500525",
"0.55472696",
"0.55472696",
"0.55445516",
"0.55437815",
"0.5476886",
"0.5452655",
"0.54369366",
"0.5375233",
"0.5370216",
"0.53659636",
"0.53640586",
"0.5360828",
"0.5353292",
"0.53478944",
"0.5330208",
"0.5327999",
"0.5327178",
"0.532172",
"0.5312603",
"0.53048533",
"0.530475",
"0.5286468",
"0.5273972",
"0.52345616",
"0.51900214",
"0.51828694",
"0.5178956",
"0.51761323",
"0.5169299",
"0.51671183",
"0.5165437",
"0.516271",
"0.5139985",
"0.5134678",
"0.51303864",
"0.51282275",
"0.51272625",
"0.5117638",
"0.51169354",
"0.5112084",
"0.5109116",
"0.5096714",
"0.5092709",
"0.5085733",
"0.505468",
"0.505084",
"0.50461483",
"0.50427425",
"0.50368816",
"0.50321734",
"0.5031541",
"0.5029407",
"0.5026933",
"0.5019863",
"0.5014641",
"0.5007924",
"0.50030094",
"0.49997777",
"0.4997239",
"0.4997019",
"0.49913445",
"0.4991013",
"0.4977437",
"0.4976719",
"0.49737564",
"0.49689272",
"0.49624655",
"0.4955759",
"0.4955759",
"0.49452046",
"0.49444476",
"0.49417427",
"0.49362427",
"0.49355748",
"0.49334088",
"0.49331856",
"0.4933074",
"0.49312636"
] | 0.0 | -1 |
4. INPUT, OUTPUT METHODS | public void xuat() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Object getInput ();",
"public abstract void input();",
"public abstract Object getOutput ();",
"@Override\n\tpublic void input() {\n\t\t\n\t}",
"protected abstract void getInput();",
"INPUT createINPUT();",
"Input getObjetivo();",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();",
"@Override\n\tvoid input() {\n\t}",
"Input getInputs();",
"public IInputOutput getConstantOuput();",
"Result<Actor<InputOutput>> self();",
"public interface IObjectInput {\r\n\r\n\t/**\r\n\t * Reads a boolean.\r\n\t *\r\n\t * @return The next boolean.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic boolean readBoolean() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a char.\r\n\t *\r\n\t * @return The next char.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic char readChar() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 32 bit integer.\r\n\t *\r\n\t * @return The next 32 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic int readInt() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 64 bit integer.\r\n\t *\r\n\t * @return The next 64 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic long readLong() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 16 bit integer.\r\n\t *\r\n\t * @return The next 16 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic short readShort() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a utf encoded string.\r\n\t *\r\n\t * @return The next utf encoded string.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic String readUTF() throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a byte.\r\n\t *\r\n\t * @return The next byte.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic byte readByte() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer.\r\n\t * The number of bytes read is defined by the lenght of the\r\n\t * buffer.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer) throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer\r\n\t * starting from the specified offset. The number of bytes\r\n\t * read is defined by the length parameter.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @param offset The offset to start from.\r\n\t * @param length The number of bytes to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer, int offset, int length) throws IOException;\r\n\r\n\t/**\r\n\t * Reads an object.\r\n\t * \r\n\t * @return The object that has been read.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic Object readObject() throws IOException;\r\n\r\n}",
"public interface Transform<INPUT, OUTPUT> {\n\n\tOUTPUT transform(INPUT input);\n\t\n}",
"String getInput();",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n\tpublic void GetOut() {\n\t\t\n\t}",
"public abstract int process(Buffer input, Buffer output);",
"Input createInput();",
"Inputs getInputs();",
"public Object transform(Object input) {\n return input;\n }",
"public interface Output {\n\n void putString(String string);\n\n // Basic Data Types\n /**\n * Write number\n *\n * @param num\n * Number\n */\n void writeNumber(Number num);\n\n /**\n * Write boolean\n *\n * @param bol\n * Boolean\n */\n void writeBoolean(Boolean bol);\n\n /**\n * Write string\n *\n * @param string\n * String\n */\n void writeString(String string);\n\n /**\n * Write date\n *\n * @param date\n * Date\n */\n void writeDate(Date date);\n\n void writeNull();\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Collection<?> array);\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object[] array);\n\n /**\n * Write primitive array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object array);\n\n /**\n * Write map.\n *\n * @param map\n * Map to write\n */\n void writeMap(Map<Object, Object> map);\n\n /**\n * Write array as map.\n *\n * @param array\n * Array to write\n */\n void writeMap(Collection<?> array);\n\n /**\n * Write object.\n *\n * @param object\n * Object to write\n */\n void writeObject(Object object);\n\n /**\n * Write map as object.\n *\n * @param map\n * Map to write\n */\n void writeObject(Map<Object, Object> map);\n\n /**\n * Write recordset.\n *\n * @param recordset\n * Recordset to write\n */\n void writeRecordSet(RecordSet recordset);\n\n /**\n * Write XML object\n *\n * @param xml\n * XML document\n */\n void writeXML(Document xml);\n\n /**\n * Write ByteArray object (AMF3 only).\n *\n * @param array\n * object to write\n */\n void writeByteArray(ByteArray array);\n\n /**\n * Write a Vector<int>.\n *\n * @param vector\n * vector\n */\n void writeVectorInt(Vector<Integer> vector);\n\n /**\n * Write a Vector<uint>.\n *\n * @param vector\n * vector\n */\n void writeVectorUInt(Vector<Long> vector);\n\n /**\n * Write a Vector<Number>.\n *\n * @param vector\n * vector\n */\n void writeVectorNumber(Vector<Double> vector);\n\n /**\n * Write a Vector<Object>.\n *\n * @param vector\n * vector\n */\n void writeVectorObject(Vector<Object> vector);\n\n /**\n * Write reference to complex data type\n *\n * @param obj\n * Referenced object\n */\n void writeReference(Object obj);\n\n /**\n * Whether object is custom\n *\n * @param custom\n * Object\n * @return true if object is of user type, false otherwise\n */\n boolean isCustom(Object custom);\n\n /**\n * Write custom (user) object\n *\n * @param custom\n * Custom data type object\n */\n void writeCustom(Object custom);\n\n /**\n * Clear references\n */\n void clearReferences();\n}",
"public interface ObjectInput extends DataInput {\n /**\n * Indicates the number of bytes of primitive data that can be read without\n * blocking.\n *\n * @return the number of bytes available.\n * @throws IOException\n * if an I/O error occurs.\n */\n public int available() throws IOException;\n\n /**\n * Closes this stream. Implementations of this method should free any\n * resources used by the stream.\n *\n * @throws IOException\n * if an I/O error occurs while closing the input stream.\n */\n public void close() throws IOException;\n\n /**\n * Reads a single byte from this stream and returns it as an integer in the\n * range from 0 to 255. Returns -1 if the end of this stream has been\n * reached. Blocks if no input is available.\n *\n * @return the byte read or -1 if the end of this stream has been reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read() throws IOException;\n\n /**\n * Reads bytes from this stream into the byte array {@code buffer}. Blocks\n * while waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer) throws IOException;\n\n /**\n * Reads at most {@code count} bytes from this stream and stores them in\n * byte array {@code buffer} starting at offset {@code count}. Blocks while\n * waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @param offset\n * the initial position in {@code buffer} to store the bytes read\n * from this stream.\n * @param count\n * the maximum number of bytes to store in {@code buffer}.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer, int offset, int count) throws IOException;\n\n /**\n * Reads the next object from this stream.\n *\n * @return the object read.\n *\n * @throws ClassNotFoundException\n * if the object's class cannot be found.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public Object readObject() throws ClassNotFoundException, IOException;\n\n /**\n * Skips {@code toSkip} bytes on this stream. Less than {@code toSkip} byte are\n * skipped if the end of this stream is reached before the operation\n * completes.\n *\n * @param toSkip\n * the number of bytes to skip.\n * @return the number of bytes actually skipped.\n *\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public long skip(long toSkip) throws IOException;\n}",
"public <INPUT, OUTPUT> OUTPUT run(INPUT input) throws Exception {\n return run(null, input);\n }",
"default void process(Input input, Output response) { }",
"public interface InputParam extends Parameter {\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isEquivalent\r\n */\r\n \r\n /**\r\n * Gets all property values for the isEquivalent property.<p>\r\n * \r\n * @returns a collection of values for the isEquivalent property.\r\n */\r\n Collection<? extends Noun> getIsEquivalent();\r\n\r\n /**\r\n * Checks if the class has a isEquivalent property value.<p>\r\n * \r\n * @return true if there is a isEquivalent property value.\r\n */\r\n boolean hasIsEquivalent();\r\n\r\n /**\r\n * Adds a isEquivalent property value.<p>\r\n * \r\n * @param newIsEquivalent the isEquivalent property value to be added\r\n */\r\n void addIsEquivalent(Noun newIsEquivalent);\r\n\r\n /**\r\n * Removes a isEquivalent property value.<p>\r\n * \r\n * @param oldIsEquivalent the isEquivalent property value to be removed.\r\n */\r\n void removeIsEquivalent(Noun oldIsEquivalent);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#isInputTo\r\n */\r\n \r\n /**\r\n * Gets all property values for the isInputTo property.<p>\r\n * \r\n * @returns a collection of values for the isInputTo property.\r\n */\r\n Collection<? extends MethodCall> getIsInputTo();\r\n\r\n /**\r\n * Checks if the class has a isInputTo property value.<p>\r\n * \r\n * @return true if there is a isInputTo property value.\r\n */\r\n boolean hasIsInputTo();\r\n\r\n /**\r\n * Adds a isInputTo property value.<p>\r\n * \r\n * @param newIsInputTo the isInputTo property value to be added\r\n */\r\n void addIsInputTo(MethodCall newIsInputTo);\r\n\r\n /**\r\n * Removes a isInputTo property value.<p>\r\n * \r\n * @param oldIsInputTo the isInputTo property value to be removed.\r\n */\r\n void removeIsInputTo(MethodCall oldIsInputTo);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.semanticweb.org/rami#Label\r\n */\r\n \r\n /**\r\n * Gets all property values for the Label property.<p>\r\n * \r\n * @returns a collection of values for the Label property.\r\n */\r\n Collection<? extends Object> getLabel();\r\n\r\n /**\r\n * Checks if the class has a Label property value.<p>\r\n * \r\n * @return true if there is a Label property value.\r\n */\r\n boolean hasLabel();\r\n\r\n /**\r\n * Adds a Label property value.<p>\r\n * \r\n * @param newLabel the Label property value to be added\r\n */\r\n void addLabel(Object newLabel);\r\n\r\n /**\r\n * Removes a Label property value.<p>\r\n * \r\n * @param oldLabel the Label property value to be removed.\r\n */\r\n void removeLabel(Object oldLabel);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}",
"InOut createInOut();",
"public interface Input \n{\n\t/*\n\t * Use to initialise input\n\t */\n\tboolean initialise (String args);\n\t/*\n\t * Return a line or return null\n\t */\n\tString getLine ();\n\t\n}",
"void requestOutput();",
"void requestInput();",
"TOutput MapFrom(TInput input);",
"public abstract Out apply(In value);",
"public void doIt(Input in);",
"@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }",
"Output createOutput();",
"public interface UsersInput {\n\n /**\n * Return user's input on a given line.\n * @param outForUser given line.\n * @return user's input.\n * @throws IOException IOException.\n */\n String getUsersInput(String outForUser) throws IOException;\n}",
"public abstract T output(int i);",
"OUT apply( IN in );",
"public void processInput() {\n\n\t}",
"public abstract boolean getOutput();",
"@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}",
"public interface IDataIO<RESULT, DATA>\n{\n\t/**\n\t * @param data\n\t * Input data.\n\t * @return Output value.\n\t */\n\tpublic DATA write(RESULT data);\n\n\t/**\n\t * @param data\n\t * Input data.\n\t * @return Output value.\n\t */\n\tpublic RESULT read(DATA data);\n}",
"public interface ParameterInput extends Input {\n\t\n\t/**\n\t * Returns the metadata of this parameter.\n\t * @return ParameterMetadata\tmetadata\n\t */\n\tpublic ParameterMetadata getMetadata();\n\t\n\t/**\n\t * Returns the parameter value of an option.\n\t * \n\t * @return Object option parameter value\n\t */\n\tpublic Object getValue();\n\t\n\t/**\n\t * Returns the File parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File file value\n\t */\n\tpublic File getFileValue();\n\t\n\t/**\n\t * Returns the directory parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return File a directory file\n\t */\t\n\tpublic File getDirectoryValue();\n\n\t/**\n\t * Returns the String parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return String string value\n\t */\n\tpublic String getStringValue();\n\t\n\t/**\n\t * Returns the Number parameter value of an option.\n\t * If option's parameter type does not match with the\n\t * return type the value returned is null.\n\t * \n\t * @return Number value\n\t */\n\tpublic Number getNumberValue();\n\t\n}",
"Output getOutputs();",
"public byte[] getInput() {\n return input;\n }",
"public interface ExtractorInput {\n int m3230a(int i);\n\n int m3231a(byte[] bArr, int i, int i2);\n\n void m3232a();\n\n boolean m3233a(byte[] bArr, int i, int i2, boolean z);\n\n long m3234b();\n\n void m3235b(int i);\n\n void m3236b(byte[] bArr, int i, int i2);\n\n boolean m3237b(byte[] bArr, int i, int i2, boolean z);\n\n long m3238c();\n\n void m3239c(int i);\n\n void m3240c(byte[] bArr, int i, int i2);\n\n long m3241d();\n}",
"public abstract int calculateOutput();",
"@Override\n public double getOutput() {\n return this.inputValue;\n }",
"@Override\n\tpublic void setInput(Input arg0) {\n\n\t}",
"protected abstract void registerInput();",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();",
"InputsType getInputs();",
"public interface InputMapper {\n\n /**入庫データを抽出する*/\n public List<InputList> findInputList(InputList inputList);\n\n /**入庫データを取得する*/\n public InputList findInputListById(InputList inputList);\n\n /**入庫データを更新する*/\n public void updateInputData(InputList inputList);\n\n /**入庫データを削除する*/\n public void deleteInputData(InputList inputList);\n\n /**入庫データを追加する*/\n public void batchInsertInputData( List<InputList> inputLists);\n\n}",
"public interface InputSummingFunction {\r\n\r\n\t/**\r\n\t * Performs calculations based on the output values of the input neurons.\r\n\t * \r\n\t * @param inputConnections\r\n\t * neuron's input connections\r\n\t * @return total input for the neuron having the input connections\r\n\t */\r\n\tdouble collectOutput(List<NeuronsConnection> inputConnections);\r\n\r\n}",
"public int process(Buffer in, Buffer out) {\n\t\t\taccessFrame(in);\r\n\r\n\t\t\t// Swap the data between the input & output.\r\n\t\t\tObject data = in.getData();\r\n\t\t\tin.setData(out.getData());\r\n\t\t\tout.setData(data);\r\n\r\n\t\t\t// Copy the input attributes to the output\r\n\t\t\tout.setFormat(in.getFormat());\r\n\t\t\tout.setLength(in.getLength());\r\n\t\t\tout.setOffset(in.getOffset());\r\n\r\n\t\t\treturn BUFFER_PROCESSED_OK;\r\n\t\t}",
"@Override\n\tpublic void update(Input input) {\n\t\t\n\t}",
"public String input() throws Exception {\r\n\t\treturn INPUT;\r\n\t}",
"public abstract boolean accept(Input i);",
"public interface InputHelper {\n\n Random random = new Random();\n Scanner scanner = new Scanner(System.in);\n\n /**\n * @param message information about type format\n * @return filled input value\n */\n int getInteger(String message);\n\n /**\n * @param message information about type format\n * @return filled input value\n */\n String getString(String message);\n\n /**\n * @param message information about type format\n * @return filled input value\n */\n boolean getBoolean(String message);\n}",
"public interface IwInput extends IwNode {\r\n\tIwCustomizableNode getIwInputProcessingNode();\r\n\tvoid setIwInputProcessingNode(IwCustomizableNode iwInputProcessingNode);\r\n\tvoid explore(IwStep currentStep);\r\n\t\r\n\tram.Class getRamInputData();\r\n\tvoid setRamInputData(ram.Class ramInputData);\r\n}",
"public void setInput(Input input) {\n this.input = input;\n }",
"public abstract void update(Input input);",
"Iterable<K> inputs();",
"public JCoresScript io(Input _input, Output _output) {\n this.input = _input;\n this.output = _output;\n return this;\n }",
"public int getInput1() {\n return input1;\n }",
"public interface IOutputParameter extends IIOParameter, Serializable {\n\n /**\n *\n * @return function to convert a byte array to the value; used to\n * convert from stderr\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStderr();\n\n /**\n *\n * @return function to convert a integer exit value to a idata\n * value; used for the handling of the exit value of the overall\n * program\n */\n Optional<IConvertExitValueToIData> getFunctionToHandleExitValue();\n\n /**\n *\n * @return function to convert a byte array to the value;\n * used to convert from stdout\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStdout();\n\n /**\n *\n * @return function to read the iData from files\n */\n Optional<IReadIDataFromFiles> getFunctionToReadIDataFromFiles();\n}",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"static Interaction inputs(String in) {\n return (input, output) -> {\n input.append(in);\n };\n }",
"public interface OutputProcessor {\n\n void process(Reader reader, Writer writer) throws IOException;\n\n}",
"public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}",
"public interface RequestsInput\r\n{\r\n\tpublic Object[] requestData(GameState gameState, Player player);\r\n}",
"private Input()\n {\n }",
"@Override\r\n\tpublic List getInput() {\n\t\treturn super.getInput();\r\n\t}",
"public abstract BasicInput createInput( boolean isSeq ) throws IOException;",
"public abstract boolean supportsMultipleOutputs();",
"public abstract void process(int input);",
"public interface InputService {\n Coordinate readCoordinate();\n}",
"public void setInput(String input) { this.input = input; }",
"@Override\n public Format getInputFormat()\n {\n return super.getInputFormat();\n }",
"public void calcOutput()\n\t{\n\t}",
"OutputPin getResult();",
"OutputPin getResult();",
"public interface InputComponent {\n int handleInput();\n}",
"public interface Interaction {\n\n void apply(StringBuilder in, StringBuilder out);\n\n /**\n * Methtod prints(..) appends the array of strings to the output.\n *\n * @param lines [String...] an array of Strings\n * @return the appended output\n */\n static Interaction prints(String... lines) {\n return (input, output) -> {\n for (String line : lines) {\n output.append(line).append('\\n');\n }\n };\n }\n\n /**\n * Method inputs(..) appends input string to the input.\n *\n * @param in [String] - fake input\n * @return the appended input\n */\n static Interaction inputs(String in) {\n return (input, output) -> {\n input.append(in);\n };\n }\n}",
"public void setInput(String input);",
"SModel getOutputModel();",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getInput() {\n return input;\n }",
"void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);",
"OutputsType getOutputs();",
"protected void setSpecificInputOutput() {\n\t\tsetInputOutput(new GeoElement[] { (GeoElement) point, inputOrtho },\n\t\t\t\tnew GeoElement[] { line });\n\t}",
"protected abstract void _write(DataOutput output) throws IOException;",
"public abstract void handleInput();",
"public interface IOutput <T> extends ITickable{\n void setInputLocation(BlockPos pos);\n}",
"public abstract void read(DataInput input) throws IOException;",
"private static PointCP2 getInput() throws IOException\n {\n byte[] buffer = new byte[1024]; //Buffer to hold byte input\n boolean isOK = false; // Flag set if input correct\n String theInput = \"\"; // Input information\n \n //Information to be passed to the constructor\n \n double a = 0.0;\n double b = 0.0;\n\n // Allow the user to enter the three different arguments\n for (int i = 0; i < 2; i++)\n {\n while (!(isOK))\n {\n isOK = true; //flag set to true assuming input will be valid\n \n // Prompt the user\n if (i == 0) // First argument - type of coordinates\n {\n System.out.print(\"Enter Rho value: \");\n }\n else // Second and third arguments\n {\n System.out.print(\"Enter Theta value: \");\n }\n\n // Get the user's input \n \n // Initialize the buffer before we read the input\n for(int k=0; k<1024; k++)\n \tbuffer[k] = '\\u0020'; \n \n System.in.read(buffer);\n theInput = new String(buffer).trim();\n \n // Verify the user's input\n try\n {\n if (i == 0) // First argument \n {\n a = Double.valueOf(theInput).doubleValue();\n }\n else // Second and \n { \n b = Double.valueOf(theInput).doubleValue();\n }\n }\n catch(Exception e)\n {\n \tSystem.out.println(\"Incorrect input\");\n \tisOK = false; //Reset flag as so not to end while loop\n }\n }\n\n //Reset flag so while loop will prompt for other arguments\n isOK = false;\n }\n //Return a new PointCP object\n return (new PointCP2( a, b));\n }",
"Output1(Res1 r){\n this.r = r;\n }",
"@Override\n\tprotected void flowThrough(Object in, Object d, Object out) {\n\t\t\n\t}",
"public abstract double value(Instance output, Instance example);"
] | [
"0.7086824",
"0.7047157",
"0.68011594",
"0.67538047",
"0.67346436",
"0.65546954",
"0.64610326",
"0.64171857",
"0.63816017",
"0.63206667",
"0.63054895",
"0.6262374",
"0.62150353",
"0.6182871",
"0.6134307",
"0.61259115",
"0.60916126",
"0.60637754",
"0.6039566",
"0.6037287",
"0.60100067",
"0.60081005",
"0.6000884",
"0.59483063",
"0.59412825",
"0.59337646",
"0.5911012",
"0.59027916",
"0.5900686",
"0.5873027",
"0.5863254",
"0.5856402",
"0.58408475",
"0.5833539",
"0.5823204",
"0.58020383",
"0.5782647",
"0.57806665",
"0.5742663",
"0.57352716",
"0.5729545",
"0.57233703",
"0.5713642",
"0.5712471",
"0.57051206",
"0.56943905",
"0.5685868",
"0.5669009",
"0.56583774",
"0.56576765",
"0.56531066",
"0.5648786",
"0.5644779",
"0.56356126",
"0.56059635",
"0.5603964",
"0.55943984",
"0.5591325",
"0.55881673",
"0.55877626",
"0.5572881",
"0.55664754",
"0.55600965",
"0.55558985",
"0.55537754",
"0.55440754",
"0.5542264",
"0.5533499",
"0.55226845",
"0.5520368",
"0.55159533",
"0.55099267",
"0.55089664",
"0.548124",
"0.5467247",
"0.54593617",
"0.5457834",
"0.545596",
"0.545532",
"0.54532063",
"0.54516715",
"0.54516715",
"0.5444101",
"0.54367435",
"0.54254234",
"0.54189956",
"0.54159606",
"0.5415828",
"0.5386279",
"0.5383949",
"0.5382008",
"0.5377579",
"0.53759646",
"0.5375809",
"0.53748417",
"0.5366479",
"0.5365808",
"0.53644365",
"0.5363818",
"0.5363251",
"0.5355391"
] | 0.0 | -1 |
Adds the given Order to the order book and associates it with the given order id. If there is already a order associated with the given order id it will return that order object, otherwise it will return null. | Order addOrder(String orderNumber, Order order)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Order addOrder(String orderId, Order order) throws OrderBookOrderException;",
"public void addOrder(Long id, Long orderId) {\n\t\tReceipt receipt = receiptRepository.findOne(id);\n\t\tOrder order = orderRepository.findOne(orderId);\n\n\t\treceipt.setOrder(order);\n\n\t\treceiptRepository.save(receipt);\n\t}",
"Order getOrder(String orderId) throws OrderBookOrderException;",
"public ThreeDSecureRequest addOrderId(String orderId) {\n this.orderId = orderId;\n return this;\n }",
"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 void addOrder(Order order) {\r\n\t\torders.put(order.getOrderID(), order);\r\n\t}",
"public Shoporder GetOrderById(String orderId) {\n\t\treturn mapper.GetOrderById(orderId);\n\t}",
"@Override\r\n\tpublic Order getOrderById(String orderId) {\n\t\treturn null;\r\n\t}",
"public void addOrder(Order order) {\n orders.add(order);\n }",
"void add(Order o);",
"public Integer add(Order order) {\n\t\treturn orderDAO.add(order);\n\t}",
"public Order findOrder(String orderID) {\r\n\t\tfor(Order o : orders.values()) {\r\n\t\t\tif(o.getOrderID().equals(orderID)) {\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\t} return null; \r\n\t}",
"public Order getOrderById(long orderId);",
"@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}",
"public Order loadOrderFromId(int orderId) {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void addOrder(Order order) throws PersistenceException{\n Order newOrder = orders.put(order.getOrderNumber(), order);\n write(order.getOrderDate());\n }",
"@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }",
"@Override\n public void addOrder(Order o) {\n orders.add(o);\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"Order getByID(String id);",
"public void add(Order o) {\r\n\t\tthis.orders.add(o);\r\n\t}",
"public org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder addNewOrder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder target = null;\n target = (org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder)get_store().add_element_user(ORDER$0);\n return target;\n }\n }",
"public void addOrder(Order order) {\n\t\tPreparedStatement addSQL = null;\n\t\tSystem.out.println(\"Creating order..\");\n\t\ttry {\n\n\t\t\taddSQL = getConnection()\n\t\t\t\t\t.prepareStatement(\"INSERT INTO orders(code, name, quantity) values(?,?,?);\",\n\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\n\t\t\taddSQL.setInt(1, order.getCode());\n\t\t\taddSQL.setString(2, order.getName());\n\t\t\taddSQL.setInt(3, order.getQuantity());\n\n\t\t\tint rows = addSQL.executeUpdate();\n\n\t\t\tif (rows == 0) {\n\t\t\t\tSystem.out.println(\"Failed to insert order into database\");\n\t\t\t}\n\n\t\t\ttry (ResultSet generatedID = addSQL.getGeneratedKeys()) {\n\t\t\t\tif (generatedID.next()) {\n\t\t\t\t\torder.setID(generatedID.getInt(1));\n\t\t\t\t\tSystem.out.println(\"Order created with id: \" + order.getID());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Failed to create order.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (addSQL != null) {\n\t\t\t\ttry {\n\t\t\t\t\taddSQL.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Order getOrder(int id) throws ServiceException;",
"@Override\r\n\tpublic Order create(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders(customer_id) values(%d)\",\r\n\t\t\t\t\torder.getCustomer().getId()));\r\n\t\t\t\tHashMap<Item, Long> items = order.getItems();\r\n\t\t\t\tfor (Entry<Item, Long> entry : items.entrySet()) {\r\n\t\t\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders_items(order_id, item_id, quantity) \"\r\n\t\t\t\t\t\t\t+ \"values(last_insert_id(), %d, %d)\", entry.getKey().getId(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\treturn readLatest();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public ComplexOrderTO getOrder(long storeID, long orderId) throws NotInDatabaseException;",
"@Override\r\n\tpublic Order FindById(int IdOrder) {\n\t\treturn em.find(Order.class, IdOrder);\r\n\t}",
"public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }",
"public Order get(int id) {\n\t\treturn orderDao.get(id);\n\t}",
"Order requireById(Long orderId);",
"@PostMapping\r\n\tpublic ResponseEntity<Object> addOrder(@RequestBody Order Order) \r\n\t{logger.info(\"Inside addOrder method\");\r\n\t\t//System.out.println(\"Enterd in post method\");\r\n\t\tOrder orderList = orderservice.addOrder(Order);\r\n\t\tlogger.info(\"New Order\" + Order);\r\n\t\tif (orderList == null)\r\n\r\n\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"Inernal server error\");\r\n\t\t// response is set to inserted message id in response header section.\r\n\t\r\n\t\tURI location = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\")\r\n\t\t\t\t.buildAndExpand((orderList).getBookingOrderId()).toUri();\r\n\t\treturn ResponseEntity.created(location).build();\r\n\t}",
"public void addToOrderList(Order order) {\n this.orderListMap.put(order.getOrderID(), order);\n OrderIO.setOrderIO(this.orderListMap);\n }",
"@Override\n public Order addUpdateOrder(Order order) throws ChangeOrderException {\n\n if (!orderExists(order.getOrderNumber())) {\n List<Order> newOrder = new ArrayList<>();\n order.setOrderNumber(Integer.toString(currentOrderNumber + 1));\n order.setOrderStatus(false);\n newOrder.add(order);\n\n order.recalculateData();\n orderMap.put(order.getOrderNumber(), newOrder);\n\n if (!orderMap.get(order.getOrderNumber()).get(0).equals(order)) {\n currentOrderNumber = currentOrderNumber - 1;\n order.setOrderStatus(false);\n order.setOrderNumber(null);\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n // Try to write the changes to file. If we fail, remove the order\n // from the map...0\n try {\n writeSingleOrderToDirectory(newOrder);\n } catch (FileIOException | BackupFileException e) {\n orderMap.remove(order.getOrderNumber());\n throw new ChangeOrderException(\"Problem adding new order... \");\n\n }\n currentOrderNumber = currentOrderNumber + 1;\n\n } else {\n\n // Order already exists, now we append it instead of adding a new order\n List<Order> oldOrder = orderMap.get(order.getOrderNumber());\n order.recalculateData();\n oldOrder.add(0, order);\n orderMap.put(order.getOrderNumber(), oldOrder);\n\n if (orderMap.get(order.getOrderNumber()).get(0) != order) {\n oldOrder.remove(0);\n orderMap.put(order.getOrderNumber(), oldOrder);\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n // Try to write the changes to file. If we fail, remove the order\n // from the map...\n try {\n writeSingleOrderToDirectory(oldOrder);\n } catch (FileIOException | BackupFileException e) {\n oldOrder.remove(0);\n orderMap.put(order.getOrderNumber(), oldOrder);\n orderMap.remove(order.getOrderNumber());\n throw new ChangeOrderException(\"Problem adding new order... \");\n }\n\n }\n\n return order;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"@Override\r\n\tpublic boolean addOrder(Order order) {\n\t\treturn orderDaoImpl.addOrder(order);\r\n\t}",
"public void addNewOrder(Order order) {\n\t\tnewOrders.add(order);\n\t}",
"public OrderDetail getOrderDetail(final String id);",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public synchronized void addToBook(Order o) throws InvalidDataException {\n\t\tif (o == null) throw new InvalidDataException(\"The order cannot be null.\");\n\t\taddToBook(o.getSide(),o);\n\t\tupdateCurrentMarket();\n\t}",
"@RequestMapping(value = \"/portfolio\", method = RequestMethod.POST)\n\tpublic ResponseEntity<Order> addOrder(@RequestBody final Order order) {\n\t\tlogger.debug(\"Adding Order: \" + order);\n\t\t\n\t\t//TODO: can do a test to ensure userId == order.getUserId();\n\t\t\n\t\tOrder savedOrder = service.addOrder(order);\n\n\t\tlogger.debug(\"Order added: \" + savedOrder);\n\t\tif (savedOrder != null && savedOrder.getOrderId() != null) {\n\t\t\treturn new ResponseEntity<Order>(savedOrder, getNoCacheHeaders(), HttpStatus.CREATED);\n\t\t} else {\n\t\t\tlogger.warn(\"Order not saved: \" + order);\n\t\t\treturn new ResponseEntity<Order>(savedOrder, getNoCacheHeaders(), HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}",
"private void addOrderDB(){\n OrganiseOrder organiser = new OrganiseOrder();\n Order finalisedOrder = organiser.Organise(order);\n // Generate the order id\n String id = UUID.randomUUID().toString();\n // Set the name of the order to the generated id\n finalisedOrder.setName(id);\n\n // Get the firebase reference\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"Orders\").child(id);\n\n // Update the order\n ref.setValue(finalisedOrder);\n }",
"@Override\n\tpublic void addOrder(Order order) {\n\t\t\n\t em.getTransaction().begin();\n\t\t\tem.persist(order);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\temf.close();\n\t \n\t}",
"public static PoolRealTimeOrderBean getOrderById(long orderId) {\n\t\tPoolRealTimeOrderBean order = pool.get(orderId);\n\t\trefreshOrderRelatedInformation(order);\n\t\treturn order;\n\t}",
"public JSONObject fetchOrder(long orderId) throws Exception;",
"private OrderEntity getCurrentOrder(String orderId) {\n\t\tOrderEntity entity = new OrderEntity();\n\t\t//TODO get current order data from oracle\n\t\t\n\t\treturn entity;\n\t}",
"@Override\n\tpublic Order create(Order order) {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"INSERT INTO orders(customer_id) VALUES ('\" + order.getCustomer_id() + \"')\");\n\t\t\treturn readLatest();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"static void addOrder(orders orders) {\n }",
"@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}",
"public Receipt getReceiptByOrder(Long orderid) {\n\t\tReceipt exreceipt = new Receipt();\n\t\tOrder order = new Order();\n\t\torder.setId(orderid);\n\t\texreceipt.setOrder(order);\n\t\tExample<Receipt> ex = Example.of(exreceipt);\n\t\treturn receiptRepository.findOne(ex);\n\t}",
"@GetMapping(\"/getOrder\")\n\tpublic ResponseEntity<Order> getOrderWithId(@RequestParam int orderId) {\n\t\treturn new ResponseEntity<>(dataFetchService.getOrderWithId(orderId), HttpStatus.OK);\n\t}",
"public Order getOrder(Business business, Long orderId) {\n\t\tcheckNotNull(business, \"business was null\");\n\t\t\t\n\t\ttry {\n\t\t\treturn orderRepo.getById(business.getKey(), orderId);\n\t\t} catch (com.googlecode.objectify.NotFoundException e) {\n\t\t\tlogger.error(\"Unable to get order, order or business id unknown\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"void addService(Long orderId, Long serviceId);",
"public Order getOrderByID(String order_id) throws Exception {\n\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"select * from ocgr_orders left join ocgr_clients on ocgr_orders.client_id = ocgr_clients.client_id left join ocgr_vendors on ocgr_orders.vendor_id = ocgr_vendors.vendor_id where order_id=? ;\";\n\n\t\tDB db = new DB();\n\n\t\ttry {\n\t\t\tdb.open();\n\t\t\tcon = db.getConnection();\n\n\t\t\tstmt = con.prepareStatement(sql);\n\t\t\tstmt.setString(1,order_id);\n\t\t\trs = stmt.executeQuery();\n\n\t\t\tif (!rs.next()) {\n\t\t\t\trs.close();\n\t\t\t\tstmt.close();\n\t\t\t\tdb.close();\n\n\t\t\t\tthrow new Exception(\"Not valid Order_id\");\n\t\t\t}\n\t\t\tClient client = new Client( rs.getString(\"client_id\"), rs.getString(\"client_password\"), rs.getString(\"client_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_fullname\"), rs.getString(\"client_compName\"), rs.getString(\"client_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_itin\"), rs.getString(\"client_doy\"), rs.getString(\"client_phone\") );\n\n\t\t\tVendor vendor = new Vendor( rs.getString(\"vendor_id\"), rs.getString(\"vendor_password\"), rs.getString(\"vendor_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_fullname\"), rs.getString(\"vendor_compName\"), rs.getString(\"vendor_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_itin\"), rs.getString(\"vendor_doy\"), rs.getString(\"vendor_phone\") );\n\n\t\t\tOrder order = new Order(rs.getString(\"order_id\"), rs.getTimestamp(\"order_date\"), rs.getBigDecimal(\"order_total\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_address\"), rs.getString(\"order_address\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_paymentmethod\"), client, vendor );\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tdb.close();\n\n\t\t\treturn order;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdb.close();\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public static Result getOrder(String orderId){\n \n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty rs = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Connection conn = mysql.getConnection(); \n Orders order;\n List<MarketProduct> productList;\n\n try{\n\n // -1- Prepare Statement\n PreparedStatement preStat = conn.prepareStatement(rs.getPropertyValue(\"mysql.order.select.4\"));\n preStat.setString(1, orderId);\n \n ResultSet resultSet = preStat.executeQuery();\n \n // -2- Get Result\n if(resultSet.first()){\n \n // -2.1- Get Order Object\n order = ORMHandler.resultSetToOrder(resultSet);\n \n // -2.2- Get User & UserAddress Object\n User user = ORMHandler.resultSetToUser(resultSet);\n UserAddress userAddress = ORMHandler.resultSetToUserAddress(resultSet);\n userAddress.setAddress(ORMHandler.resultSetToAddress(resultSet));\n \n // -2.3- Get MarketProduct list \n productList = new ArrayList<>();\n do{\n MarketProduct product = ORMHandler.resultSetToProduct(resultSet);\n productList.add(product);\n }while(resultSet.next());\n \n // -2.4- Set \n order.setUserAddress(userAddress);\n order.setUser(user);\n order.setProductList(productList);\n \n return Result.SUCCESS.setContent(order);\n }else{\n return Result.SUCCESS_EMPTY;\n } \n\n } catch (SQLException ex) { \n return Result.FAILURE_DB.setContent(ex.getMessage());\n }finally{\n mysql.closeAllConnection();\n } \n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public Orders(int ordersId) {\r\n this.ordersId = ordersId;\r\n }",
"public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }",
"@Override\n\tpublic OrderDetail getById(String id) {\n\t\tOrderDetail detail = orderDetailDao.getById(id);\n\t\treturn detail;\n\t}",
"Order editOrder(String orderId, Order editedOrder) throws \n OrderBookOrderException;",
"private void pickupOrder(long orderId) {\n shelf.pull(orderId);\n }",
"public Order readOrder(Long id)\n {\n Long customerID = null;\n List<Item> orderItems = new ArrayList<>();\n\n String sql = \"SELECT customerID FROM orders WHERE id = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n resultSet.next();\n customerID = resultSet.getLong(\"customerID\");\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n\n sql = \"SELECT items.* FROM order_items LEFT JOIN items ON order_items.itemID = items.id WHERE orderID = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n while(resultSet.next())\n {\n orderItems.add(modelItemFromResultSet(resultSet));\n }\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n return new Order(id, customerID, orderItems);\n }",
"public Order find_Order(Integer order_id, Integer branch_id) {\n return order_dao.find(order_id, branch_id);\n }",
"public int getId() {\n return orderID;\n }",
"public String getOrder(String orderId) {\n\t SQLiteDatabase db = this.getReadableDatabase();\n\t \n\t String orderSQLSelect = \"SELECT * FROM \" + ORDER_RECORDS_TABLE + \" WHERE \" + ORDER_NUMBER + \" = '\" + orderId + \"'\";\n\t Cursor cursor = db.rawQuery(orderSQLSelect, null);\n\t \n\t if (cursor != null) { \n\t \tif(cursor.moveToFirst()) {\n\t \t\treturn cursor.getString(0) + \" \" + cursor.getString(3);\n\t \t} else {\n\t \t\treturn null;\n\t \t}\n\t }\n\t\n\t return null;\n\t}",
"public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}",
"public void add(Order order){\n if(this.root == null)\n this.root = new Node(order);\n\n else\n root.add(order);\n }",
"public static ru.terralink.mvideo.sap.Orders load(long id)\n {\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.load(id));\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"@Override\r\n\tpublic OrderItem getOrderItem(int id) {\n\t\tSession session = SessionFactorySingleton.getSessionFactory().getFactorySession();\r\n\t\tOrderItem order = (OrderItem) session.get(OrderItem.class,id);\r\n\t\treturn order;\r\n\r\n\t}",
"public String getOrderID() {return orderID;}",
"public Order getOrderById(int id) {\n\t\tOrder o = new Order();\r\n\t\to.setId(id);\r\n\t\to.setDescription(\"Test class\");\r\n\t\treturn o;\r\n\t}",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"public Optional<Order> getOrder(Long id) {\n\t\treturn repo.findById(id);\n\t}",
"@Override\n\tpublic Order findById(int id) {\n\t\treturn null;\n\t}",
"public int insert(EOrders order) {\n\t return orderMapper.insert(order);\n\t}",
"@POST\r\n\t@Produces({\"application/xml\" , \"application/json\"})\r\n\t@Path(\"/order\")\r\n\tpublic String addOrder(OrderRequest orderRequest) {\n\t\tOrderActivity ordActivity = new OrderActivity();\r\n\t\treturn ordActivity.addOrder(orderRequest.getOrderDate(),orderRequest.getTotalPrice(), orderRequest.getProductOrder(),orderRequest.getCustomerEmail());\r\n\t}",
"public void addOrder(Order newOrder) {\n\t\tif ( units.containsKey(newOrder.getPerson().hashCode()) && units.get(newOrder.getPerson().hashCode()).length > 0 ) {\n\t\t\tunits.put(newOrder.getPerson().hashCode(), addUnitsRecord(units.get(newOrder.getPerson().hashCode()), newOrder));\n\t\t} else {\n\t\t\tOrder[] eq = new Order[3];\n\t\t\tunits.put(newOrder.getPerson().hashCode(), addUnitsRecord(eq, newOrder));\n\t\t}\n\t}",
"@Override\n\tpublic OrderDO findById(String id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic int add(OrderDetailBean detail) {\n\t\treturn dao.add(detail);\r\n\t}",
"public ShippingOrder getOrderInfoByOrderId(String orderId){\r\n ShippingDataAccess shippingOrder = new ShippingDataAccess(this.sqlServerIp);\r\n String log = null;\r\n ShippingOrder order = shippingOrder.selectShippingOrderByOrderId(orderId, log);\r\n return order;\r\n }",
"public Order readOrder(Long id) {\n\t\tSystem.out.println(\"ReadOrder\" + id);\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders WHERE id = \" + id);) {\n\t\t\tresultSet.next();\n\t\t\treturn modelFromResultSet(resultSet);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"@PostMapping(\"/add-order\")\n\tpublic ResponseEntity<Object> insertOrder(@RequestBody Order order) {\n\t\tLOGGER.info(\"add-Order URL is opened\");\n\t\tLOGGER.info(\"addOrder() is initiated\");\n\t\tOrderDTO orderDTO = null;\n\t\tResponseEntity<Object> orderResponse = null;\n\t\torderDTO = orderService.addOrder(order);\n\t\torderResponse = new ResponseEntity<>(orderDTO, HttpStatus.ACCEPTED);\n\t\tLOGGER.info(\"addOrder() has executed\");\n\t\treturn orderResponse;\n\t}",
"public void setOrderID(String orderID) {\n\t\tORDER_ID = orderID;\n\t}",
"public void AddOrder(Shoporder model) {\n\t\tmapper.AddOrder(model);\n\t}",
"public OrderItem insertOrderItem(OrderItem oi) {\n insert(oi);\n return oi;\n }",
"public boolean addTicket(Ticket order)\n\t{\n\t\ttickets.push(order);\n\t\t\n\t\treturn true;\n\t\t\n\t}",
"void prepareOrder(int orderId);",
"@Override\n\tpublic DBObject trackOrder(String orderID) {\n\t\treturn null;\n\t}",
"public List<Item> createOrderItem(Long orderId, Long itemId) {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"INSERT INTO order_items(order_id, item_id) VALUES ('\" + orderId \n\t\t\t\t+ \"','\" + itemId + \"')\");\n\t\t\treturn readLatestOrderItem();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic int addOrder(Order order, List<OrderItem> OrderItem, OrderShipping orderShipping) {\n\t\treturn odi.addOrder(order, OrderItem, orderShipping);\r\n\t}",
"@GetMapping(\"/{id}\")\r\n\tpublic Order getOrderbyId(@PathVariable(value = \"id\") int id) {\r\n\t\treturn this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t}",
"public void addPendingOrder(Order order) {\n\t\tmOrders.add(order);\n\t}",
"public void add(final ItemOrder theOrder) {\r\n Objects.requireNonNull(theOrder, \"theOrder can't be null!\");\r\n myShoppingCart.put(theOrder.getItem(), theOrder.calculateOrderTotal());\r\n }",
"public List<OrderDetail> getOrderDetailByOrder(Long orderId);",
"Optional<Order> findById(Long orderId);"
] | [
"0.7734518",
"0.6963345",
"0.6778316",
"0.6557272",
"0.64449334",
"0.63981694",
"0.63914376",
"0.6328201",
"0.61888206",
"0.61884046",
"0.61762005",
"0.6110731",
"0.6094706",
"0.60610765",
"0.60337216",
"0.59811455",
"0.59167874",
"0.5906175",
"0.5879631",
"0.58765584",
"0.58755827",
"0.5852815",
"0.58508855",
"0.5813334",
"0.57998884",
"0.5796991",
"0.5779493",
"0.5767789",
"0.5759795",
"0.5758885",
"0.5749425",
"0.57484096",
"0.5738907",
"0.57361114",
"0.57361114",
"0.57265496",
"0.57221305",
"0.57188094",
"0.5718273",
"0.5705773",
"0.56932753",
"0.5675336",
"0.56545836",
"0.56411946",
"0.56357247",
"0.5630568",
"0.56036544",
"0.56026155",
"0.5596799",
"0.5587818",
"0.5583792",
"0.5514017",
"0.5508577",
"0.5497859",
"0.5495907",
"0.5485508",
"0.5482336",
"0.5478886",
"0.54693687",
"0.54631776",
"0.5461576",
"0.5454464",
"0.5440728",
"0.5436403",
"0.54324675",
"0.5431065",
"0.5415729",
"0.5403297",
"0.5403168",
"0.53950065",
"0.5387569",
"0.5387569",
"0.53846794",
"0.53818566",
"0.5378151",
"0.53617626",
"0.5359781",
"0.5352905",
"0.5332607",
"0.5326272",
"0.5314433",
"0.5311684",
"0.53088045",
"0.5301968",
"0.5295864",
"0.52943116",
"0.5291296",
"0.5282352",
"0.5275798",
"0.52745634",
"0.52543783",
"0.5251628",
"0.5246988",
"0.52453333",
"0.5244133",
"0.52373934",
"0.52275586",
"0.5214347",
"0.5211999",
"0.52072436"
] | 0.5980419 | 16 |
Returns a String array containing the order ids of all orders in the order book. | List<Order> getAllOrders()
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getOrderedIDs() {\n\t\treturn this.orderedIDs;\n\t}",
"public String listOfOrders() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Order> it = orders.iterator(); it.hasNext();){\r\n\t\t\t Order o = (Order) it.next();\r\n \t sb.append(o.toString() + NL);\r\n }\r\n return sb.toString();\r\n }",
"public List<String> getAllOrders() {\n\t List<String> orderList = new ArrayList<String>();\n\t // Select All Query\n\t String selectQuery = \"SELECT * FROM \" + ORDER_RECORDS_TABLE;\n\t \n\t SQLiteDatabase db = this.getWritableDatabase();\n\t Cursor cursor = db.rawQuery(selectQuery, null);\n\t \n\t // looping through all rows and adding to list\n\t if (cursor.moveToFirst()) {\n\t do {\n\t \torderList.add(\"Order Number:[\" + cursor.getString(0) + \"] Barcode Number:[\" + cursor.getString(1) + \"] Customer Number:[\" + cursor.getString(2) +\n\t \t\t\t\"] Customer Name:[\" + cursor.getString(3) + \"] Order Date:[\" + cursor.getString(4) + \"]\");\n\t } while (cursor.moveToNext());\n\t }\n\t \n\t // return the list\n\t return orderList;\n\t}",
"public List<Order> getOrders() {\n\t\treturn repo.findAll();\n\t}",
"public ArrayList<Order> getOrders() {\n\n\t\tArrayList<Order> order = new ArrayList<Order>();\n\n\t\tOrder or = null;\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM restodb.order\";\n\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tResultSet rs = statement.executeQuery(sql);\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tor = new Order(rs.getString(\"idorder\"), rs.getString(\"date\"), rs.getString(\"clientName\"),\n\t\t\t\t\t\trs.getString(\"status\"), rs.getString(\"location_idlocation\"));\n\n\t\t\t\torder.add(or);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t\treturn order;\n\t}",
"public int[] getListOfId() {\r\n\t\tString sqlCommand = \"SELECT Barcode FROM ProductTable\";\r\n\t\tint[] idList = null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\ttry (Connection conn = this.connect();\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlCommand)) {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\tidList = new int[counter];\r\n\t\t\tfor (int i = 0; i < counter; i++) {\r\n\t\t\t\tidList[i] = tmpList.get(i);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"getListOfId: \"+e.getMessage());\r\n\t\t\treturn new int[0]; \r\n\t\t}\r\n\t\treturn idList;\r\n\t}",
"public static List<IOrder> getOrders() throws JFException {\r\n\t\treturn JForexContext.getEngine().getOrders();\r\n\t}",
"List<List<Order>> getAllOrdersByQuantity() throws OrderBookOrderException;",
"public String getOrdersId() {\n return ordersId;\n }",
"public String[] getIDs() {\n return impl.getIDs();\n }",
"public String getIds() {\n return ids;\n }",
"public String getIds() {\n return ids;\n }",
"LinkedHashSet<String> getOrderedBeanIds();",
"public static synchronized String[] getSessionIds() {\n String[] ids = new String[statemap.size()];\n statemap.keySet().toArray(ids);\n return ids;\n }",
"public List<String> getDocumentNumbersByPurchaseOrderId(Integer id);",
"public java.lang.Object[] getIdsAsArray()\r\n {\r\n return (ids == null) ? null : ids.toArray();\r\n }",
"public List<Order> getOrders() {\n\t\treturn new ArrayList<Order>(mOrders);\n\t}",
"public String getOpenOrders() {\n\n\t\treturn getOpenOrders(\"\");\n\t}",
"public List<OrderItem> getOrderItemListfromIds(List<Long> orderItemIds){\n\n StringBuilder itemIds = new StringBuilder(\"(\");\n //orderItemIds.stream().forEach(x -> itemIds = itemIds + x);\n\n for(Long id: orderItemIds){\n itemIds.append(id);\n itemIds.append(',');\n }\n itemIds.deleteCharAt(itemIds.lastIndexOf(\",\"));\n itemIds.append(')');\n\n return orderItemRepository.getOrderItemListByIds(itemIds.toString());\n }",
"public static int[] getIDs() {\n int[] res = new int[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (int)crossbows[i][0];\n }\n return res;\n }",
"public List<OrderItem> findAllOrderItems()\n\t{\n\t\tList<OrderItem> list=orderItemDAO.findAll();\n\t\treturn list;\n\t}",
"public String[] getExtResDepsID(){\n\n\t\tString[] depids = new String[extResDepsID.size()];\n\n\t\tint i = 0;\n\t\tfor(Enumeration en = extResDepsID.elements(); en.hasMoreElements(); ){\n\t\t\t\n\t\t\tdepids[i] = (String)en.nextElement();\n\t\t}\n\n\t\treturn depids;\n\n//\t\treturn (String[])extResDepsID.toArray();\n\t}",
"public String getIds() {\n return this.ids;\n }",
"public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId);",
"List<String> findAllIds();",
"public List getAllIds();",
"public ArrayList<Order> getOrders() {\n\t\tArrayList<Order> orders = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\t// Set up file reading\n\t\t\tFile file = new File(filename);\n\n\t\t\tFileReader in = new FileReader(file.getAbsolutePath());\n\n\t\t\t// Read the file\n\t\t\tBufferedReader br = new BufferedReader(in);\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null && !line.equals(\"\")) {\n\t\t\t\t// Tokenize string with split, since we have delimiters in place\n\t\t\t\tString[] tokens = line.split(Pattern.quote(\"|\"));\n\t\t\t\t// Use tokens to create an Order object\n\t\t\t\tOrder order = new Order(Integer.parseInt(tokens[0]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[1]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[2]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[3]));orders.add(order);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\t// Print error if file could not be read\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn orders;\n\t}",
"public ArrayList<Order> getOrders() {\n return this.listOrder;\n }",
"public int[] getIDs(){\r\n\t\tint[] id = new int[Config.MAX_CLIENTS];\r\n\t\tfor(int i=0; i< Config.MAX_CLIENTS;i++){\r\n\t\t\tid[i] = clients[i].getID();\r\n\t\t}\r\n\t\treturn id;\r\n\t}",
"public static String[] obtenerIds() throws IOException{\n\t\tint numOfLines=countLines(HOSPITALES_DATA_FILE) ;\n\t String[] idsArr = new String[numOfLines];\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n int counter = 0;\n while ((line = fileReader.readLine()) != null)\n {\n String[] tokens = line.split(DELIMITER);\n \n idsArr[counter] = tokens[0];\n counter++;\n }\t\t\t\n fileReader.close();\n\t\treturn idsArr; \n\t}",
"public Long[] getQueryIDs(){\n\t\treturn DataStructureUtils.toArray(ids_ranks.keySet(), Long.class);\n\t}",
"public List<Order> getOrders() {\n return _orders;\n }",
"com.google.protobuf.ByteString\n getOrderIdBytes();",
"public String[] getItemIDs() {\n String[] IDs = new String[this.size()];\n for (int i = 0; i < IDs.length; i++) {\n IDs[i] = this.get(i).getItemId();\n }\n return IDs;\n }",
"public ArrayList<OrderItem> getOrderArray(){return orderInfo;}",
"public Set<Integer> listBookings(){\r\n\t\treturn bookings.keySet();\r\n\t}",
"public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}",
"public abstract List<CustomerOrder> findAll(Iterable<Long> ids);",
"public java.util.List<String> getIds() {\n return ids;\n }",
"public long[] getAgentIds(String key);",
"int[] getSelectedAuthorsBookIndexes();",
"@Override\r\n\tpublic List<Order> getAllOrders() {\n\t\treturn null;\r\n\t}",
"private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}",
"private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}",
"public String[] getBordas(){\r\n String[] str = new String[bordas.size()];\r\n int i =0;\r\n for(Borda b:bordas){\r\n str[i]=b.toString();\r\n i++;\r\n }\r\n return str;\r\n }",
"public String[] getRequestIds() {\r\n String[] toReturn = new String[0];\r\n\r\n String[] paramFields = {\"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"admin\", \"req_list\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\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_0221\", \"couldn't get Request IDs\");\r\n } else {\r\n wrapError(\"APIL_0221\", \"couldn't get Request IDs\");\r\n }\r\n return toReturn;\r\n } else {\r\n toReturn = StringTool.stringToArray(response.getValue(\"req_ids\").trim(), ITEM_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }",
"private List<String> getToIds(Collection<XRef> xrefs){\n List<String> toIds = new ArrayList<String>();\n for (XRef xRef : xrefs) {\n toIds.add(xRef.getToEntry().getEntryId());\n }\n return toIds;\n }",
"public List<Order> findAllOrders() throws ApplicationEXContainer.ApplicationCanNotChangeException {\n List<Order> orders;\n try(Connection connection = MySQLDAOFactory.getConnection();\n AutoRollback autoRollback = new AutoRollback(connection)){\n orders =orderDao.findAllOrders(connection);\n autoRollback.commit();\n } catch (SQLException | NamingException | DBException throwables) {\n LOGGER.error(throwables.getMessage());\n throw new ApplicationEXContainer.ApplicationCanNotChangeException(throwables.getMessage(),throwables);\n }\n return orders;\n }",
"public List<OrderItems> getAllOrderItemsByOrderId(int orderId){\n\t\tSystem.out.println(\"service\");\n\t\tList<OrderItems> orderItemsRecords = orderItemsRepo.getAllOrderItemsByOrderId(orderId);\n\t\tList<OrderItems> orderItems= new ArrayList();\n\t\tfor(OrderItems items: orderItemsRecords) \n\t\t\tif(items.getOrders().getOrderId() == orderId)\n\t\t\t\torderItems.add(items);\t\t\n\t\tSystem.out.println(orderItems);\n\t\treturn orderItems;\t\n\t}",
"public ArrayList<Order> getAllOrders() {\n\t\tArrayList<Order> allOrders = new ArrayList<Order>();\n\n\t\tStatement sql = null;\n\n\t\ttry {\n\t\t\tgetConnection().close();\n\t\t\tsql = getConnection().createStatement();\n\t\t\tResultSet results = sql.executeQuery(\"SELECT id, code, name, quantity FROM orders WHERE 1=1;\");\n\n\t\t\twhile (results.next()) {\n\n\t\t\t\tOrder order = new Order(results.getInt(\"id\"), results.getInt(\"code\"), results.getString(\"name\"),\n\t\t\t\t\t\t0, results.getInt(\"quantity\"));\n\n\t\t\t\tallOrders.add(order);\n\t\t\t}\n\n\t\t\tresults.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (sql != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsql.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn allOrders;\n\t}",
"@GetMapping(\"/orders\")\n public List<AgentOrderList> findAllAgentsOrderList() {\n return agentRepo.findAllAgentOrderListBy();\n }",
"public org.hl7.fhir.Identifier[] getIdentifierArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IDENTIFIER$0, targetList);\n org.hl7.fhir.Identifier[] result = new org.hl7.fhir.Identifier[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic String[] getIds() {\n\t\treturn null;\n\t}",
"public static List<IOrder> getOrders(Instrument instrument) throws JFException {\r\n\t\treturn JForexContext.getEngine().getOrders(instrument);\r\n\t}",
"public int[] getDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n int[] result = new int[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();\n return result;\n }\n }",
"private String[] getInstrumentIds(){\n logger.info(\"Getting Instruments from cache\");\n return instruments.keySet().toArray(new String[instruments.size()]);\n }",
"public JsonArray getInvertoryOrdersByID(String supplierID) {\r\n\t\tJsonArray orders = new JsonArray();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM fuel_inventory_orders\" + \" WHERE supplierID = '\" + supplierID\r\n\t\t\t\t\t\t+ \"' AND orderStatus = 'SENT_TO_SUPPLIER' OR orderStatus = 'Supllied';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tstmt.executeQuery(query);\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject order = new JsonObject();\r\n\t\t\t\t\torder.addProperty(\"orderID\", rs.getString(\"orderID\"));\r\n\t\t\t\t\torder.addProperty(\"fuelType\", rs.getString(\"fuelType\"));\r\n\t\t\t\t\torder.addProperty(\"fuelAmount\", rs.getString(\"fuelAmount\"));\r\n\t\t\t\t\torder.addProperty(\"supplierID\", rs.getString(\"supplierID\"));\r\n\t\t\t\t\torder.addProperty(\"stationID\", rs.getString(\"stationID\"));\r\n\t\t\t\t\torder.addProperty(\"orderStatus\", rs.getString(\"orderStatus\"));\r\n\t\t\t\t\torder.addProperty(\"reason\", rs.getString(\"reason\"));\r\n\t\t\t\t\torder.addProperty(\"totalPrice\", rs.getString(\"totalPrice\"));\r\n\t\t\t\t\torder.addProperty(\"orderDate\", rs.getString(\"orderDate\"));\r\n\t\t\t\t\torders.add(order);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn orders;\r\n\t}",
"public StringArray getTraversalIDs() {\n return (StringArray) (_getFeatureValueNc(wrapGetIntCatchException(_FH_traversalIDs)));\n }",
"public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> findAll()\n {\n return findAll(0, Integer.MAX_VALUE);\n }",
"public Addressbook[] getAddressbooks() throws RemoteException;",
"@Override\n\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\n\t\t\t}",
"public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }",
"public ArrayList getAllAccountIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT acc_id FROM accounts\");\n\t\t\twhile (rs.next()) {\n\t\t\t\taccountIds.add(rs.getInt(\"acc_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountIds;\n\t}",
"public JSONArray getOrders() throws Exception;",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public synchronized List<Integer> getDocIdsTodosDocumentos() throws Exception{\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\t\r\n\t\tMTDIterator<MTDDocument> iterator = iterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tMTDDocument doc = iterator.next();\r\n\t\t\tlista.add(doc.getDocId());\r\n\t\t}\r\n\t\titerator.close();\r\n\t\t\r\n\t\treturn lista;\r\n\t}",
"public List<OrderReport> getAllOrdersAcrossStores();",
"public ArrayList getOrderItems() \r\n\t{\r\n\t\treturn orderItemList;\r\n\t}",
"public ArrayList<String> readAllCartID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_CART, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }",
"@Override\r\n\tpublic List<PurchaseOrder> getAllPurchaseOrders() {\n\t\treturn ht.loadAll(PurchaseOrder.class);\r\n\t}",
"int[] getGivenByOrder();",
"List<List<Order>> getOrdersByQuantity(Integer quantity) throws \n OrderBookOrderException;",
"public List<Order> getOrders() throws AlpacaAPIException {\n Type listType = new TypeToken<List<Order>>() {\n }.getType();\n\n AlpacaRequestBuilder urlBuilder =\n new AlpacaRequestBuilder(apiVersion, baseAccountUrl, AlpacaConstants.ORDERS_ENDPOINT);\n\n HttpResponse<JsonNode> response = alpacaRequest.invokeGet(urlBuilder);\n\n if (response.getStatus() != 200) {\n throw new AlpacaAPIException(response);\n }\n\n return alpacaRequest.getResponseObject(response, listType);\n }",
"@GetMapping(\"/getOrderHistory\")\n\tpublic ResponseEntity<List<Order>> getOrderHistoryWithOrderId(@RequestParam int orderId) {\n\t\treturn new ResponseEntity<>(dataFetchService.getOrderHistoryWithOrderId(orderId), HttpStatus.OK);\n\t}",
"@Transient\n @JsonProperty(\"symbols\")\n public List<Long> getSymbolsAsIds() {\n List<Long> ids = new LinkedList<>();\n symbols.stream().map(Symbol::getId).forEach(ids::add);\n return ids;\n }",
"public static ArrayList<Orders> selectAllOrders() {\n ArrayList<Orders> toReturn = new ArrayList<Orders>();\n\n Connection dbConnection = ConnectionFactory.getConnection();\n PreparedStatement selectStatement = null;\n ResultSet rs = null;\n try {\n selectStatement = dbConnection.prepareStatement(selectStatementString);\n rs = selectStatement.executeQuery();\n while(rs.next()) {\n\n int order_Id = rs.getInt(\"id\");\n int productID = rs.getInt(\"product_id\");\n int clientID = rs.getInt(\"client_id\");\n double totalPrice = rs.getInt(\"total_price\");\n int quantity = rs.getInt(\"amount\");\n toReturn.add(new Orders(order_Id,productID,clientID,totalPrice,quantity));\n }\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING,\"OrderDAO:selectAllOrders \" + e.getMessage());\n } finally {\n ConnectionFactory.close(rs);\n ConnectionFactory.close(selectStatement);\n ConnectionFactory.close(dbConnection);\n }\n return toReturn;\n }",
"public List<Order> getAll() {\n\t\treturn orderDao.getAll();\n\t}",
"public List<ClientOrderDto> getClientOrders(Long clientId) throws ServiceException {\n\t\tList<ClientOrderDto> orderList = new ArrayList<>();\n\t\ttry (DaoCreator daoCreator = new DaoCreator()) {\n\t\t\tOrderDao orderDao = daoCreator.getOrderDao();\n\t\t\torderList = orderDao.getAllClientOrdersById(clientId);\n\t\t\tCollections.reverse(orderList);\n\t\t\tLOGGER.info(\"Find and return all client = {} orders from DB\", clientId);\n\t\t} catch(DaoException|ConnectionException|SQLException e) {\n\t\t throw new ServiceException(\"Can't return all client orders from DB\", e);\n\t\t}\n\t\treturn orderList;\n\t}",
"private ArrayList<String> loadIds() {\n\n\t\tArrayList<String> idArray = new ArrayList<String>();\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = context.openFileInput(SAVE_FILE);\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(\n\t\t\t\t\tfileInputStream);\n\t\t\tType listType = new TypeToken<ArrayList<String>>() {\n\t\t\t}.getType();\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tArrayList<String> list = gson.fromJson(inputStreamReader, listType);\n\t\t\tidArray = list;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn idArray;\n\t}",
"public String[] listarArquivos() {\n\t\tString[] lista = new String[contaArquivos];\n\t\tfor (int i = 0; i < contaArquivos; i++) {\n\t\t\tlista[i] = arquivos[i].toString();\n\t\t}\n\n\t\treturn lista;\n\t}",
"public Ebook[] getAll() {\n return ebooks;\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Vector<String> getIdentifiers()\n\t{\n\t\tfinal Vector<String> rets = new Vector<String>();\n\t\trets.add(identifier);\n\t\treturn rets;\n\t}",
"public static String[] getAvailableIDs();",
"public org.apache.xmlbeans.XmlInt[] xgetDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n org.apache.xmlbeans.XmlInt[] result = new org.apache.xmlbeans.XmlInt[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"@Override\n\tpublic List<Keyword> getBookIds(String keyword) {\n\t\treturn null;\n\t}",
"void getOrders();",
"public List<String> getAllEncumberedTo() {\n\t\tList<String> list = new LinkedList<String>();\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT DISTINCT v.encumbered_to FROM vehicles v ORDER BY v.encumbered_to ASC\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(rs.getString(\"v.encumbered_to\"));\n\t\t\t}\n\t\t\t\n\t\t\tst.close();\n\t\t\trs.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List<ObjectIdentifier> getTradeIds() {\n return _tradeIds;\n }",
"int[] inOrderTraversal() {\n \tinOrderTraversalRecursive(this.root);\n \tInteger[] result = (Integer[])inorder.toArray(new Integer[0]);\n \tint[] r = new int[result.length];\n \tfor(int i = 0 ; i < result.length; i++)\n \t{\n \t\tr[i] = result[i];\n \t}\n \treturn r;\n }",
"public List<String> getCustomerIds() {\r\n\t\treturn getSingleColWithMultipleRowsList(GET_CUSTOMER_IDS);\r\n\t}",
"public static List<Order> getPendingOrders() throws SQLException {\n\t\t\r\n\t\tList<Order> orderList = new ArrayList<>();\r\n\t\t\r\n\t\torderList = OrderDAO.fetchOrder(OrderStatus.Pending);\r\n\t\t\r\n\t\tfor(Order order: orderList){\r\n\t\t\t\r\n\t\t\tSystem.out.println(order);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn orderList;\r\n\t}",
"public ArrayList<AgencyAndId> getAssignedVehicleIdsForDepot(String depotIdentifier)\n throws Exception;",
"public Object[] asArray() {\n return new Object[] { getId(), getCustomerID(), getOrderDate()};\n }",
"public com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] getDatetimeorderingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(DATETIMEORDERING$2, targetList);\r\n com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[] result = new com.guidewire.datamodel.DatetimeorderingDocument.Datetimeordering[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public List<ObjectIdentifier> getPositionIds() {\n return _positionIds;\n }",
"List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;",
"public List<Order> getOrders(){\n return this.orders;\n }",
"public List<Long> getTodosComputadoresId()throws Exception{\n\t\t\n\t\tList<Long> ids=new ArrayList<Long>();\n\t\tString sql = \"select codigo from \" + TABELA;\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\twhile (rs.next()){\n\t\t\tids.add(rs.getLong(1));\n\t\t}\n\n\t\treturn ids;\n\t}"
] | [
"0.68572307",
"0.60827345",
"0.59421897",
"0.5844657",
"0.5739516",
"0.5716497",
"0.56666255",
"0.5663743",
"0.56146365",
"0.55953914",
"0.5577291",
"0.5577291",
"0.55684394",
"0.5562168",
"0.5560075",
"0.55435073",
"0.5542775",
"0.5535034",
"0.5502058",
"0.5500387",
"0.5496532",
"0.54910666",
"0.54633677",
"0.54611576",
"0.5433628",
"0.5428576",
"0.5427301",
"0.5406095",
"0.5382607",
"0.537909",
"0.53766114",
"0.53735185",
"0.53578705",
"0.53551924",
"0.52937835",
"0.52901906",
"0.5288188",
"0.5270389",
"0.52685153",
"0.5265197",
"0.5260068",
"0.52385104",
"0.52378213",
"0.52378213",
"0.52324045",
"0.5230618",
"0.5217564",
"0.5210161",
"0.52079546",
"0.5181426",
"0.51784074",
"0.5173466",
"0.5156667",
"0.5156667",
"0.5147915",
"0.5139118",
"0.51364416",
"0.5127777",
"0.51236576",
"0.5116874",
"0.5107758",
"0.51049787",
"0.5104696",
"0.51006275",
"0.51002",
"0.5098326",
"0.509746",
"0.5089829",
"0.5085522",
"0.50851226",
"0.5067988",
"0.5062799",
"0.5062566",
"0.5059101",
"0.5054335",
"0.5053898",
"0.505372",
"0.50513566",
"0.50512344",
"0.5047261",
"0.5043615",
"0.5041434",
"0.5041102",
"0.50359654",
"0.5035283",
"0.50313854",
"0.5025637",
"0.50248367",
"0.5024766",
"0.5023741",
"0.50218743",
"0.5014418",
"0.501392",
"0.5011647",
"0.5011158",
"0.5007466",
"0.5007242",
"0.5005475",
"0.50044245",
"0.5001397",
"0.50004774"
] | 0.0 | -1 |
Returns the order object associated with the given order id. Returns null if no such order exists | Order getOrder(String orderNumber)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@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}",
"@Override\r\n\tpublic Order getOrderById(String orderId) {\n\t\treturn null;\r\n\t}",
"public Order get(int id) {\n\t\treturn orderDao.get(id);\n\t}",
"public Optional<Order> getOrder(Long id) {\n\t\treturn repo.findById(id);\n\t}",
"public Order getOrderById(long orderId);",
"public Order readOrder(Long id) {\n\t\tSystem.out.println(\"ReadOrder\" + id);\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders WHERE id = \" + id);) {\n\t\t\tresultSet.next();\n\t\t\treturn modelFromResultSet(resultSet);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"Order getByID(String id);",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}",
"Order getOrder(String orderId) throws OrderBookOrderException;",
"public Order findOrder(String orderID) {\r\n\t\tfor(Order o : orders.values()) {\r\n\t\t\tif(o.getOrderID().equals(orderID)) {\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\t} return null; \r\n\t}",
"public Shoporder GetOrderById(String orderId) {\n\t\treturn mapper.GetOrderById(orderId);\n\t}",
"Order getOrder(int id) throws ServiceException;",
"public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}",
"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 OrderDetail getOrderDetail(final String id);",
"@Override\n\tpublic Order findById(int id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic OrderDO findById(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic OrderEntity findOneById(Long id) {\n\t\treturn oder.getById(id);\n\t}",
"Optional<Order> findById(Long orderId);",
"public Order readOrder(Long id)\n {\n Long customerID = null;\n List<Item> orderItems = new ArrayList<>();\n\n String sql = \"SELECT customerID FROM orders WHERE id = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n resultSet.next();\n customerID = resultSet.getLong(\"customerID\");\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n\n sql = \"SELECT items.* FROM order_items LEFT JOIN items ON order_items.itemID = items.id WHERE orderID = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n while(resultSet.next())\n {\n orderItems.add(modelItemFromResultSet(resultSet));\n }\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n return new Order(id, customerID, orderItems);\n }",
"public Order find_Order(Integer order_id, Integer branch_id) {\n return order_dao.find(order_id, branch_id);\n }",
"@Override\n\tpublic OrderDetail getById(String id) {\n\t\tOrderDetail detail = orderDetailDao.getById(id);\n\t\treturn detail;\n\t}",
"@GetMapping(\"/{id}\")\r\n\tpublic Order getOrderbyId(@PathVariable(value = \"id\") int id) {\r\n\t\treturn this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t}",
"@Override\n\tpublic Orderi get(Integer id) {\n\t\t\n\t\treturn (Orderi)getHibernateTemplate().get(Orderi.class, id);\n\t}",
"public static Payment getPaymentByOrderId(int id) {\r\n\t\tEntityManager em = DBUtil.getEntityManagerFactory()\r\n\t\t\t\t.createEntityManager();\r\n\r\n\t\tString query = \"SELECT p FROM Payment p WHERE p.customerOrder.id = :id\";\r\n\t\tTypedQuery<Payment> q = em.createQuery(query, Payment.class);\r\n\t\tq.setParameter(\"id\", id);\r\n\t\tPayment payment = null;\r\n\r\n\t\ttry {\r\n\t\t\tpayment = q.getSingleResult();\r\n\t\t} catch (NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\r\n\t\treturn payment;\r\n\t}",
"@GetMapping(\"/getOrder\")\n\tpublic ResponseEntity<Order> getOrderWithId(@RequestParam int orderId) {\n\t\treturn new ResponseEntity<>(dataFetchService.getOrderWithId(orderId), HttpStatus.OK);\n\t}",
"@Override\r\n\tpublic OrderItem getOrderItem(int id) {\n\t\tSession session = SessionFactorySingleton.getSessionFactory().getFactorySession();\r\n\t\tOrderItem order = (OrderItem) session.get(OrderItem.class,id);\r\n\t\treturn order;\r\n\r\n\t}",
"@Override\n\tpublic Forge_Order_Detail findById(Serializable id) {\n\t\treturn null;\n\t}",
"public Order getOrder(Business business, Long orderId) {\n\t\tcheckNotNull(business, \"business was null\");\n\t\t\t\n\t\ttry {\n\t\t\treturn orderRepo.getById(business.getKey(), orderId);\n\t\t} catch (com.googlecode.objectify.NotFoundException e) {\n\t\t\tlogger.error(\"Unable to get order, order or business id unknown\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public static PoolRealTimeOrderBean getOrderById(long orderId) {\n\t\tPoolRealTimeOrderBean order = pool.get(orderId);\n\t\trefreshOrderRelatedInformation(order);\n\t\treturn order;\n\t}",
"public Order getOrderById(int id) {\n\t\tOrder o = new Order();\r\n\t\to.setId(id);\r\n\t\to.setDescription(\"Test class\");\r\n\t\treturn o;\r\n\t}",
"@Override\n\tpublic OrderEntity findOneByAccountId(Long id) {\n\t\treturn oder.findOneByAccountId(id);\n\t}",
"Order requireById(Long orderId);",
"public ComplexOrderTO getOrder(long storeID, long orderId) throws NotInDatabaseException;",
"public ShippingOrder getOrderInfoByOrderId(String orderId){\r\n ShippingDataAccess shippingOrder = new ShippingDataAccess(this.sqlServerIp);\r\n String log = null;\r\n ShippingOrder order = shippingOrder.selectShippingOrderByOrderId(orderId, log);\r\n return order;\r\n }",
"@Override\r\n\tpublic Order FindById(int IdOrder) {\n\t\treturn em.find(Order.class, IdOrder);\r\n\t}",
"public Order getOrderByID(String order_id) throws Exception {\n\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"select * from ocgr_orders left join ocgr_clients on ocgr_orders.client_id = ocgr_clients.client_id left join ocgr_vendors on ocgr_orders.vendor_id = ocgr_vendors.vendor_id where order_id=? ;\";\n\n\t\tDB db = new DB();\n\n\t\ttry {\n\t\t\tdb.open();\n\t\t\tcon = db.getConnection();\n\n\t\t\tstmt = con.prepareStatement(sql);\n\t\t\tstmt.setString(1,order_id);\n\t\t\trs = stmt.executeQuery();\n\n\t\t\tif (!rs.next()) {\n\t\t\t\trs.close();\n\t\t\t\tstmt.close();\n\t\t\t\tdb.close();\n\n\t\t\t\tthrow new Exception(\"Not valid Order_id\");\n\t\t\t}\n\t\t\tClient client = new Client( rs.getString(\"client_id\"), rs.getString(\"client_password\"), rs.getString(\"client_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_fullname\"), rs.getString(\"client_compName\"), rs.getString(\"client_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_itin\"), rs.getString(\"client_doy\"), rs.getString(\"client_phone\") );\n\n\t\t\tVendor vendor = new Vendor( rs.getString(\"vendor_id\"), rs.getString(\"vendor_password\"), rs.getString(\"vendor_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_fullname\"), rs.getString(\"vendor_compName\"), rs.getString(\"vendor_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_itin\"), rs.getString(\"vendor_doy\"), rs.getString(\"vendor_phone\") );\n\n\t\t\tOrder order = new Order(rs.getString(\"order_id\"), rs.getTimestamp(\"order_date\"), rs.getBigDecimal(\"order_total\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_address\"), rs.getString(\"order_address\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_paymentmethod\"), client, vendor );\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tdb.close();\n\n\t\t\treturn order;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdb.close();\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public static ru.terralink.mvideo.sap.Orders load(long id)\n {\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.load(id));\n }",
"public Receipt getReceiptByOrder(Long orderid) {\n\t\tReceipt exreceipt = new Receipt();\n\t\tOrder order = new Order();\n\t\torder.setId(orderid);\n\t\texreceipt.setOrder(order);\n\t\tExample<Receipt> ex = Example.of(exreceipt);\n\t\treturn receiptRepository.findOne(ex);\n\t}",
"public abstract CustomerOrder findOne(Long id);",
"@Transactional(readOnly = true)\n public Optional<OrderItems> findOne(Long id) {\n log.debug(\"Request to get OrderItems : {}\", id);\n return orderItemsRepository.findById(id);\n }",
"@Override\n\tpublic WxOrder queryOrderById(Integer id) {\n\t\treturn orderMapper.queryOrderById(id);\n\t}",
"public static ru.terralink.mvideo.sap.Orders find(long id)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.find()\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n Object[] keys = new Object[]{id};\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.findEntityWithKeys(keys));\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"private OrderEntity getCurrentOrder(String orderId) {\n\t\tOrderEntity entity = new OrderEntity();\n\t\t//TODO get current order data from oracle\n\t\t\n\t\treturn entity;\n\t}",
"@Override\r\n\tpublic List<OrderAction> findOne(String orderId) {\n\t\treturn null;\r\n\t}",
"public JSONObject fetchOrder(long orderId) throws Exception;",
"Order find(Long id);",
"public Order loadOrderFromId(int orderId) {\n throw new UnsupportedOperationException();\n }",
"public ServiceOrder retrieveServiceOrder( String orderid) {\r\n\t\tlogger.info(\"will retrieve Service Order from catalog orderid=\" + orderid );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICEORDER_BY_ID, orderid);\r\n\t\t\t\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service Order object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"retrieveServiceOrder response is: \" + response);\r\n\t\t\tServiceOrder sor = toJsonObj( (String)response, ServiceOrder.class); \r\n\t\t\t\r\n\t\t\treturn sor;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service Order details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@GET\n\t@Path(\"{id}\")\n\tpublic Response getOrder(@PathParam(\"id\") String id) {\n\t\t String orderJSON = null;\n\t\t try {\n\t\t \torderJSON = backend.getOrder(id);\n\t\t \t// returns a JSON string based on a UUID\n\t\t } catch ( NotFoundException e) {\n\t\t \treturn Response.status(404).entity(id).build();\n\t\t }\n\t\t return Response.status(200).entity(orderJSON).build();\n\t}",
"@Nullable\n public Order doRetrieveById(int id) {\n try {\n Connection cn = ConPool.getConnection();\n PreparedStatement st;\n Operator op = null;\n Order o = null;\n User u = null;\n\n st = cn.prepareStatement(\"SELECT * FROM `order` O WHERE O.id=?;\");\n st.setInt(1, id);\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n o = new Order();\n if (rs.getString(6) != null) {\n op = opd.doRetrieveByUsername(rs.getString(6));\n } else {\n op = null;\n }\n o.setOperator(op);\n o.setId(rs.getInt(2));\n o.setTotPrice(rs.getDouble(3));\n o.setNumberOfItems(rs.getInt(4));\n o.setData(rs.getString(5));\n u = ud.doRetrieveByUsername(rs.getString(1));\n o.setUser(u);\n st = cn.prepareStatement(\"SELECT * FROM digitalpurchasing D WHERE D.order=?;\");\n st.setInt(1, o.getId());\n ResultSet rs2 = st.executeQuery();\n DigitalProduct dp = null;\n while (rs2.next()) {\n dp = dpd.doRetrieveById(rs2.getInt(1));\n o.addProduct(dp, rs2.getInt(3));\n }\n st = cn.prepareStatement(\"SELECT * FROM physicalpurchasing P WHERE P.order=?;\");\n st.setInt(1, o.getId());\n rs2 = st.executeQuery();\n PhysicalProduct pp = null;\n while (rs2.next()) {\n pp = ppd.doRetrieveById(rs2.getInt(1));\n o.addProduct(pp, rs2.getInt(3));\n }\n\n }\n st.close();\n cn.close();\n\n return o;\n } catch (SQLException e) {\n return null;\n }\n }",
"@Transactional(readOnly = true)\n public Optional<PizzaOrder> findOne(Long id) {\n log.debug(\"Request to get PizzaOrder : {}\", id);\n return pizzaOrderRepository.findById(id);\n }",
"@GetMapping(\"/view-order/{id}\")\n\tpublic ResponseEntity<Object> getOrderById(@PathVariable Long id) throws OrderNotFoundException {\n\t\tLOGGER.info(\"view-Order URL is opened\");\n\t\tLOGGER.info(\"viewOrder() is initiated\");\n\t\tOrderDTO orderDTO = orderService.getOrderById(id);\n\t\tLOGGER.info(\"viewOrder() has executed\");\n\t\treturn new ResponseEntity<>(orderDTO, HttpStatus.OK);\n\t}",
"@Override\n\tpublic Order get(Integer identifier) {\n\t\treturn null;\n\t}",
"public OrderDetail getOrderDetail(int order_detail_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n String sqlSelectQuery = \"SELECT * FROM \" + CoffeeShopDatabase.OrderDetailTable.TABLE_NAME +\n \" WHERE \" + CoffeeShopDatabase.OrderDetailTable._ID + \" = \" + order_detail_id;\n Cursor cursor = db.rawQuery(sqlSelectQuery, null);\n if (cursor != null) {\n cursor.moveToFirst();\n }\n OrderDetail orderDetail = new OrderDetail(\n cursor.getInt(cursor.getColumnIndex(CoffeeShopDatabase.OrderDetailTable._ID)),\n cursor.getInt(cursor.getColumnIndex(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_ORDER_ID)),\n cursor.getInt(cursor.getColumnIndex(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_DRINK_ID)),\n cursor.getInt(cursor.getColumnIndex(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_QUANTITY))\n );\n return orderDetail;\n }",
"OrderDTO findBy(String id);",
"public String getOrder(String orderId) {\n\t SQLiteDatabase db = this.getReadableDatabase();\n\t \n\t String orderSQLSelect = \"SELECT * FROM \" + ORDER_RECORDS_TABLE + \" WHERE \" + ORDER_NUMBER + \" = '\" + orderId + \"'\";\n\t Cursor cursor = db.rawQuery(orderSQLSelect, null);\n\t \n\t if (cursor != null) { \n\t \tif(cursor.moveToFirst()) {\n\t \t\treturn cursor.getString(0) + \" \" + cursor.getString(3);\n\t \t} else {\n\t \t\treturn null;\n\t \t}\n\t }\n\t\n\t return null;\n\t}",
"public int getId() {\n return orderID;\n }",
"@Override\n\tpublic Porder getPorderById(Integer porderid) {\n \t\n \treturn entityManager.find(Porder.class,porderid);\n }",
"public String orderById(String orderId) {\n String path = mgmtOrdersPath + orderId;\n\n return sendRequest(getResponseType, systemUserAuthToken(), path, allResult, statusCode200);\n }",
"@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> getCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerOrder : {}\", id);\n CustomerOrder customerOrder = customerOrderRepository.findOne(id);\n return Optional.ofNullable(customerOrder)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"static orders getOrder(String uid) {\n return null;\n }",
"Order findById(Long id);",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder getOrder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder target = null;\n target = (org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder)get_store().find_element_user(ORDER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public List<OrderDetail> getOrderDetailByOrder(Long orderId);",
"public MobileTaskAssignment getByOrder(String orderId) {\r\n\t\treturn (MobileTaskAssignment) sessionFactory.getCurrentSession().createQuery(\r\n\t\t\t\t\t\"from \" + domainClass.getName() + \" task \" +\r\n\t\t\t\t\t\t\"where task.orderId = :orderId\")\r\n\t\t\t\t\t.setString(\"orderId\", orderId)\r\n\t\t\t\t\t.uniqueResult();\r\n\t}",
"public OrderItem findOrderItemById(int id)\n\t{\n\t\tOrderItem orderIt=orderItemDAO.findById(id);\n\t\tif(orderIt==null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t \"Id-ul nu exista!\",\n\t\t\t\t \"Update error\",\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t\tthrow new NoSuchElementException(\"OrderItem=ul cu id-ul:\"+id+\" nu a fost gasit\");\n\t\t}\n\t\treturn orderIt;\n\t}",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"Optional<Order> findByUserId(long userId);",
"ClOrderInfo selectByPrimaryKey(String orderId);",
"public List<Map<String, Object>> getOrder(String id);",
"public static Result getOrder(String orderId){\n \n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty rs = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Connection conn = mysql.getConnection(); \n Orders order;\n List<MarketProduct> productList;\n\n try{\n\n // -1- Prepare Statement\n PreparedStatement preStat = conn.prepareStatement(rs.getPropertyValue(\"mysql.order.select.4\"));\n preStat.setString(1, orderId);\n \n ResultSet resultSet = preStat.executeQuery();\n \n // -2- Get Result\n if(resultSet.first()){\n \n // -2.1- Get Order Object\n order = ORMHandler.resultSetToOrder(resultSet);\n \n // -2.2- Get User & UserAddress Object\n User user = ORMHandler.resultSetToUser(resultSet);\n UserAddress userAddress = ORMHandler.resultSetToUserAddress(resultSet);\n userAddress.setAddress(ORMHandler.resultSetToAddress(resultSet));\n \n // -2.3- Get MarketProduct list \n productList = new ArrayList<>();\n do{\n MarketProduct product = ORMHandler.resultSetToProduct(resultSet);\n productList.add(product);\n }while(resultSet.next());\n \n // -2.4- Set \n order.setUserAddress(userAddress);\n order.setUser(user);\n order.setProductList(productList);\n \n return Result.SUCCESS.setContent(order);\n }else{\n return Result.SUCCESS_EMPTY;\n } \n\n } catch (SQLException ex) { \n return Result.FAILURE_DB.setContent(ex.getMessage());\n }finally{\n mysql.closeAllConnection();\n } \n }",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"OrderItemDto getOrderItem(long id) throws SQLException;",
"public OrderEntity LoadSingleOrder(int id) throws ClassNotFoundException, SQLException{\n\t\tOrderEntity o = new OrderEntity();\r\n\t\tConnectDB db = new ConnectDB();\r\n\t\tdb.connect();\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM cart WHERE ID = \" + id;\r\n\t\t\tResultSet rs = db.st.executeQuery(sql);\r\n\t\t\t//System.out.print(rs.getString(\"Username\"));\r\n\t\t\twhile (rs.next()){\r\n\t\t\t\t\t\r\n\t\t\t\to.setId(rs.getInt(\"id\"));\r\n\t\t\t\to.setId_customer(rs.getInt(\"id_customer\"));\r\n\t\t\t\to.setTotal_price(rs.getInt(\"price_sum\"));\r\n\t\t\t\to.setAddress(rs.getString(\"address\"));\r\n\t\t\t\to.setDate(rs.getString(\"date_delivery\"));\r\n\t\t\t\to.setStatus(rs.getInt(\"status\"));\r\n\t\t\t\t\r\n\t\t\t\t//list.add(p);\t\t\t\t\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tdb.st.close();\r\n\t\t\tdb.con.close();\r\n\t\t\t\r\n\t\t} catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\treturn o;\r\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"@Transactional(readOnly = true)\n public Optional<OrderTransactionDTO> findOne(Long id) {\n log.debug(\"Request to get OrderTransaction : {}\", id);\n return orderTransactionRepository.findById(id)\n .map(orderTransactionMapper::toDto);\n }",
"@GetMapping(\"/order/{id}\")\r\n\tprivate ResponseEntity<Object> getOrder(@PathVariable(\"id\") int id) \r\n\t{\r\n\t\tOrderDetailsResponse response = new OrderDetailsResponse();\r\n\t\tresponse.setMessage(\"SUCCESS\");\r\n\t\tresponse.setStatus((long) 200);\r\n\t\tOrderDetailsRequest details = new OrderDetailsRequest();\r\n\t\tconstructResponseData(orderService.getOrderById(id),details);\r\n\t\tif(details != null && details.getCustomername()== null) {\r\n\t\t\tlogger.error(\"No order found for the id \"+id);\r\n\t\t\tthrow new OrderNotFoundException();\r\n\t\t}else {\r\n\t\t\tList<OrderItemDetails> order = restClientService.findByOrderid( details.getId());\r\n\t\t\tdetails.setProductDetails(order);\r\n\t\t}\r\n\t\tList<OrderDetailsRequest> orders = new ArrayList<OrderDetailsRequest>();\r\n\t\torders.add(details);\r\n\t\tresponse.setOrders(orders);\r\n\t\treturn new ResponseEntity<Object>(response, HttpStatus.OK);\r\n\r\n\t}",
"public Long getOrderid() {\r\n return orderid;\r\n }",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"@Override\n\tpublic RechargeOrder getByOrderIDAndUid(String orderId, Long userId) {\n\t\treturn null;\n\t}",
"@Transactional(readOnly = true)\n public Optional<RoworderDTO> findOne(Long id) {\n log.debug(\"Request to get Roworder : {}\", id);\n return roworderRepository.findById(id)\n .map(roworderMapper::toDto);\n }",
"@Override\n\tpublic HsExchangeOrder selectByPrimaryKey(HsExchangeOrder order) {\n\t\treturn hsExchangeOrderDbService.selectByPrimaryKey(order.getId());\n\t}",
"public String getOrderID() {return orderID;}",
"public Orderdetail findOrderdetail(int userorderid) {\n\t\tString sql = \"select * from orderdetail where userorderid = ?\";\n\n\t\tResultSet rs = dbManager.execQuery(sql, userorderid);\n\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\tif (rs.next()) { // 有数据\n\t\t\t\t\tOrderdetail orderdetail = new Orderdetail();\n\t\t\t\t\t\n\t\t\t\t\torderdetail.setUserorderid(rs.getInt(1));\n\t\t\t\t\torderdetail.setGreensid(rs.getInt(2));\n\t\t\t\t\torderdetail.setOrderid(rs.getInt(3));\n\t\t\t\t\torderdetail.setCount(rs.getInt(4));\n\t\t\t\t\t\n\t\t\t\t\treturn orderdetail;\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\n\t\t\t\t// 关闭数据库连接\n\t\t\t\tdbManager.closeConnection();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public CustomerOrder getOrder() {\n return (CustomerOrder) get(\"order\");\n }",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"public Long getOrderId() {\n return orderId;\n }",
"public Long getOrderId() {\n return orderId;\n }",
"@GetMapping(\"/{userId}/orders/{orderId}\")\n public OrderDto findOrder(@PathVariable @Positive Long userId,\n @PathVariable @Positive Long orderId) {\n return orderService.findByUserId(userId, orderId);\n }",
"public Integer getOrderId() {\n return orderId;\n }",
"public DrinkOrder getDrinkOrder(int drink_order_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n String sqlSelectQuery = \"SELECT * FROM \" + CoffeeShopDatabase.DrinkOrderTable.TABLE_NAME +\n \" WHERE \" + CoffeeShopDatabase.DrinkOrderTable._ID + \" = \" + drink_order_id;\n Cursor cursor = db.rawQuery(sqlSelectQuery, null);\n if (cursor != null) {\n cursor.moveToFirst();\n }\n DrinkOrder drinkOrder = new DrinkOrder(\n cursor.getInt(cursor.getColumnIndex(CoffeeShopDatabase.DrinkOrderTable._ID)),\n cursor.getString(cursor.getColumnIndex(CoffeeShopDatabase.DrinkOrderTable.COLUMN_NAME_ORDER_DATE)),\n cursor.getDouble(cursor.getColumnIndex(CoffeeShopDatabase.DrinkOrderTable.COLUMN_NAME_TOTAL_COST))\n );\n return drinkOrder;\n }",
"public CustomerOrderDetails fallbackGetOrders(Long orderId) {\n\n\t\tCustomerOrderDetails orderDetails = CustomerOrderDetails.builder().orderId(0L)\n\t\t\t\t.externalReference(\"not available\").items(null).build();\n\n\t\treturn orderDetails;\n\n\t}",
"public abstract CustomerOrder findOneForUpdate(Long id);"
] | [
"0.7834443",
"0.77712446",
"0.7730037",
"0.768688",
"0.7675231",
"0.7641842",
"0.7635677",
"0.7624564",
"0.7529623",
"0.74741846",
"0.7463725",
"0.74283314",
"0.7423444",
"0.74045944",
"0.73801357",
"0.7319228",
"0.7289245",
"0.72547036",
"0.7035078",
"0.7014864",
"0.70136803",
"0.6957562",
"0.6954197",
"0.6943669",
"0.69210464",
"0.6892739",
"0.6872618",
"0.6868676",
"0.68431693",
"0.68394923",
"0.68202287",
"0.6814635",
"0.67891794",
"0.6755215",
"0.6754235",
"0.66817033",
"0.66719586",
"0.66666013",
"0.66600657",
"0.6655071",
"0.6646422",
"0.663092",
"0.662094",
"0.66145515",
"0.66111284",
"0.660217",
"0.659154",
"0.65904987",
"0.65903574",
"0.6582431",
"0.65607375",
"0.64490384",
"0.6447913",
"0.6354504",
"0.63141346",
"0.62578523",
"0.6257014",
"0.62052834",
"0.6202204",
"0.6186485",
"0.6149672",
"0.61308616",
"0.6127579",
"0.60895",
"0.60854083",
"0.60537523",
"0.6044518",
"0.60441536",
"0.60078955",
"0.5985892",
"0.5985892",
"0.5982318",
"0.5971098",
"0.59642833",
"0.59391207",
"0.5921022",
"0.59190065",
"0.5918564",
"0.5892517",
"0.5883282",
"0.58803076",
"0.58793",
"0.58767587",
"0.5867298",
"0.5867298",
"0.5867298",
"0.58656824",
"0.58562475",
"0.5834245",
"0.5832831",
"0.5831898",
"0.58299875",
"0.5824948",
"0.58158267",
"0.58158267",
"0.58122295",
"0.5811599",
"0.5805038",
"0.5801936",
"0.5789524"
] | 0.5872677 | 83 |
Removes from the order book the order associated with the given id. Returns the order object that is being removed or null if there is no order associated with the given id | Order removeOrder(String orderNumber)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Order removeOrder(String orderId) throws OrderBookOrderException;",
"public Order removeOrder(String orderID) {\r\n\t\tOrder o = this.findOrder(orderID);\r\n\t\tif(o.getOrderID().equals(orderID)) {\r\n\t\t\torders.remove(orderID);\r\n\t\t\treturn o;\r\n\t\t} return null;\r\n\t}",
"public void removeOrder(int id) {\n\t\tPreparedStatement removeSQL = null;\n\n\t\ttry {\n\t\t\tremoveSQL = getConnection().prepareStatement(\"DELETE FROM orders WHERE id=?;\");\n\n\t\t\tremoveSQL.setInt(1, id);\n\t\t\tremoveSQL.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (removeSQL != null) {\n\t\t\t\t\tremoveSQL.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void deleteOrder(Long id) {\n\t\t\n\t\trepo.deleteById(id);\n\t}",
"void deleteOrder(Long id);",
"@Override\r\n\tpublic boolean delOrder(int id) {\n\t\treturn adi.delOrder(id);\r\n\t}",
"public void DelOrder(String orderId) {\n\t\tmapper.DelOrder(orderId);\n\t}",
"@Override\n\tpublic int deleteOrder(int id) {\n\t\tString sql=\"DELETE FROM `order` WHERE id=?\";\n\t\treturn myExecuteUpdate(sql, id);\n\t}",
"public void deleteOrder(String orderId) {\n\t\torderMapper.deleteOrder(orderId);\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderRefundByPrimaryKey(Integer id) {\n\t\treturn licenseOrderRefundMapper.deleteByPrimaryKey(id);\n\t}",
"public void removeOrder(LocalDate orderDate, Integer orderId) throws OrderNotFoundException, PersistenceException;",
"E remove(Id id);",
"public T removeById (UUID id) {\n for (Node<T> i : this.nodeInOrder(this.root, new ArrayList<>())) {\n if (i.id.compareTo(id) == 0) {\n return this.remove(i.data);\n }\n }\n return null;\n }",
"public Curso remove(Long id) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\tcursos.remove(curso);\n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public void delete(int id) {\n\t\torderDao.delete(id);\n\t}",
"@Override\n\tpublic OrderDO findById(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Order findById(int id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int delete(Long id) {\n\t\treturn orderInDao.delete(id);\n\t}",
"void remove(Order o);",
"@DeleteMapping(\"/{id}\")\r\n public ResponseEntity<Order> deleteOrder(@PathVariable(value =\"id\") int id){\r\n\t\tOrder existingOrder = this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t\tthis.orderRepo.delete(existingOrder);\r\n\t\treturn ResponseEntity.ok().build();\r\n\t}",
"public void deleteOrder(String orderid) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + orderid, null);\n }",
"@Override\n\tpublic int deleteFromLicenseOrderInfoByPrimaryKey(Integer id) {\n\t\treturn licenseOrderInfoMapper.deleteByPrimaryKey(id);\n\t}",
"public CancelledOrder removeCancelledOrder(int iID){\n\t\tif(hmCancelledOrder.containsKey(iID)){\n\t\t\tCancelledOrder cancelledOrder = hmCancelledOrder.remove(iID);\n\t\t\talCancelledOrder.remove(cancelledOrder);\n\t\t\treturn cancelledOrder;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete OrderItems : {}\", id);\n orderItemsRepository.deleteById(id);\n }",
"public Optional<Order> getOrder(Long id) {\n\t\treturn repo.findById(id);\n\t}",
"OrderDTO delete(String id);",
"public void delete(Long id) {\n log.debug(\"Request to delete PizzaOrder : {}\", id);\n pizzaOrderRepository.deleteById(id);\n }",
"@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}",
"public void removeByid_(long id_);",
"public String cancel_order(int id) {\n\t\treturn this.apiCall(\"cancel_order\", \"\", (\"id,\" + id), true);\n\t}",
"public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void deleteOrder(long id) {\n\t\t\n\t}",
"boolean deleteOrder(long orderId);",
"@Override\n\tpublic long deleteById(String id) {\n\t\tlong deleteById = orderDetailDao.deleteById(id);\n\t\treturn deleteById;\n\t}",
"@Override\n public Book removeBookById(int id) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n Book book = Book.newBuilder().build();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelectById =\n helper.prepareStatementSelectById(connection, id);\n ResultSet resultSet = statementSelectById.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n book = bookCreator.create(resultSet);\n resultSet.deleteRow();\n }\n if (book.getId() == 0) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return book;\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete OrderTransaction : {}\", id);\n orderTransactionRepository.deleteById(id);\n }",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"@Override\r\n\tpublic Order getOrderById(String orderId) {\n\t\treturn null;\r\n\t}",
"public int deleteOrderItem(long id) {\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\treturn statement.executeUpdate(\"DELETE FROM order_items WHERE id = \" + id); \n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}",
"public ExecutedOrder removeExecutedOrder(int iID){\n\t\tif(hmExecutedOrder.containsKey(iID)){\n\t\t\tExecutedOrder executedOrder = hmExecutedOrder.remove(iID);\n\t\t\talExecutedOrder.remove(executedOrder);\n\t\t\treturn executedOrder;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"void remove(Order order);",
"@DeleteMapping(\"/delete-order/{id}\")\n\tpublic ResponseEntity<Object> deleteOrderById(@PathVariable Long id) throws OrderNotFoundException {\n\t\tLOGGER.info(\"delete-Order URL is opened\");\n\t\tLOGGER.info(\"delete-Order() is initiated\");\n\t\torderService.deleteOrderById(id);\n\t\tLOGGER.info(\"delete-Order() has executed\");\n\t\treturn new ResponseEntity<>(\"deleted successfully:\", HttpStatus.ACCEPTED);\n\n\t}",
"@Override\n\tpublic int delete(long id) {\n\t\t\n\t\t// =============================================================================\n\t\t// NOTE: to delete an order an order items for the order must be deleted first\n\t\t// to avoid failing a foreign key constraint\n\t\t// =============================================================================\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"DELETE FROM order_items WHERE order_id = \" + id); \n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\treturn statement.executeUpdate(\"DELETE FROM orders WHERE id = \" + id);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}",
"Trade removeTrade(String tradeId) throws OrderBookTradeException;",
"public OrderRecord removeRunningOrder(int iID){\n\t\tif(hmRunningOrder.containsKey(iID)){\n\t\t\tHashMap<Integer, OrderRecord> m = new HashMap<>(hmRunningOrder);\n\t\t\tOrderRecord RunningOrder = m.remove(iID);\n\t\t\thmRunningOrder = Collections.unmodifiableMap(m);\n\t\t\talRunningOrder.remove(RunningOrder);\n\t\t\treturn RunningOrder;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Trainee deleteById(int id) {\n\t\tTrainee a=em.find(Trainee.class,id);\n\t\tif(a!=null) {\n\t\t\tem.remove(a);\n\t\t}\n\t\treturn a;\n\t}",
"public void delete(Object id)\n {\n Object ref = this.entityManager.getReference(handles(), id);\n this.entityManager.remove(ref);\n }",
"@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}",
"Order getOrder(int id) throws ServiceException;",
"public Order readOrder(Long id) {\n\t\tSystem.out.println(\"ReadOrder\" + id);\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders WHERE id = \" + id);) {\n\t\t\tresultSet.next();\n\t\t\treturn modelFromResultSet(resultSet);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"Order getOrder(String orderId) throws OrderBookOrderException;",
"@Delete({\n \"delete from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);",
"public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}",
"@Override\n\tpublic Forge_Order_Detail findById(Serializable id) {\n\t\treturn null;\n\t}",
"public Order get(int id) {\n\t\treturn orderDao.get(id);\n\t}",
"@Override\n\tpublic void deleteOrder(int id) throws SQLException {\n\t\tConnection conn = null;\n PreparedStatement stmt = null;\n String sql=\"DELETE FROM orders WHERE orderId=?\";\n try {\n conn = DBCPUtils.getConnection();\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1,id);\n stmt.executeUpdate();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }finally{\n DBCPUtils.releaseConnection(conn, stmt, null); \n }\n\t\t\n\t}",
"public OrderRecord removeCancelledOrder(CancelledOrder order){\n\t\treturn removeCancelledOrder(order.iRef);\n\t}",
"@Override\n\tpublic void removeById(int id) {\n\t\tem.remove(em.find(Restaurant.class, id));\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete Roworder : {}\", id);\n roworderRepository.deleteById(id);\n }",
"public OrderRecord removeRunningOrder(OrderRecord order){\n\t\treturn removeRunningOrder(order.iRef);\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderProductByPrimaryKey(Integer id) {\n\t\treturn licenseOrderProductMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderPayByPrimaryKey(Integer id) {\n\t\treturn licenseOrderPayMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\n\tpublic int removePayment(String id) {\n\t\treturn paymentDao.removePayment(id);\n\t}",
"public Rules deleteRule(String id) {\n Iterator<Rules> iterator = rules.iterator();\n while (iterator.hasNext()) {\n Rules rule = iterator.next();\n if (rule.getId().equals(id)) {\n iterator.remove();\n return rule;\n }\n }\n return null;\n }",
"void removeOrderItem(OrderItem target);",
"public static Payment getPaymentByOrderId(int id) {\r\n\t\tEntityManager em = DBUtil.getEntityManagerFactory()\r\n\t\t\t\t.createEntityManager();\r\n\r\n\t\tString query = \"SELECT p FROM Payment p WHERE p.customerOrder.id = :id\";\r\n\t\tTypedQuery<Payment> q = em.createQuery(query, Payment.class);\r\n\t\tq.setParameter(\"id\", id);\r\n\t\tPayment payment = null;\r\n\r\n\t\ttry {\r\n\t\t\tpayment = q.getSingleResult();\r\n\t\t} catch (NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\r\n\t\treturn payment;\r\n\t}",
"Order getByID(String id);",
"void remove(Long id);",
"void remove(Long id);",
"private void pickupOrder(long orderId) {\n shelf.pull(orderId);\n }",
"@Override\n\tpublic void removeOrder(Order order) {\n\t\t\n\t}",
"public void remover(Long id) {\n\n repository.delete(id);\n }",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"public void delete(Long id) {\n\t\tItems items = em.getReference(Items.class, id);\n\t\tem.remove(items);\n\t}",
"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}",
"int deleteByPrimaryKey(String orderId);",
"public void deleteOrder(int orderID) {\n if (this.orderListMap.get(orderID).getOrderState().equals(OrderState.INPROGRESS)) {\n this.orderListMap.remove(orderID);\n OrderIO.setOrderIO(this.orderListMap);\n } else {\n System.out.println(\"Order state is not \\\"in progress\\\". Forbidden to delete order from order list.\");\n }\n }",
"public OrderItem deleteOrderItem(OrderItem orderItem)\n\t{\n\t\tif(findOrderItemById(orderItem.getId())==null)\n\t\t{\n\t\t\tSystem.out.println(\"Comanda si produsele care se doresc sterse nu exista\");\n\t\t\treturn null;\n\t\t}\n\t\tOrderItem orderIt=orderItemDAO.delete(orderItem);\n\t\treturn orderIt;\n\t}",
"void removeById(Long id) throws DaoException;",
"@DeleteMapping(value = \"/{id}\")\n\t@PreAuthorize(\"hasAnyRole('ADMIN')\")\n\tpublic ResponseEntity<Response<String>> remover(@PathVariable(\"id\") Long id) {\n\t\tlog.info(\"Removendo pedido: {}\", id);\n\t\tResponse<String> response = new Response<String>();\n\t\tOptional<Pedido> pedido = this.pedidoService.buscarPorId(id);\n\n\t\tif (!pedido.isPresent()) {\n\t\t\tlog.info(\"Erro ao remover devido ao pedido ID: {} ser inválido.\", id);\n\t\t\tresponse.getErrors().add(\"Erro ao remover pedido. Registro não encontrado para o id \" + id);\n\t\t\treturn ResponseEntity.badRequest().body(response);\n\t\t}\n\n\t\tthis.pedidoService.remover(id);\n\t\treturn ResponseEntity.ok(new Response<String>());\n\t}",
"public OrderRecord removeExecutedOrder(ExecutedOrder order){\n\t\treturn removeExecutedOrder(order.iRef);\n\t}",
"@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tem.remove(findOne(id));\n\t\t\n\t}",
"@Override\n\tpublic Account deleteAccount(Integer id) {\n\t\tint index = 0;\n\t\tfor(Account acc:accountList) {\n\t\t\tif(acc.returnAccountNumber().compareTo(id) == 0 ) {\n\t\t\t\taccountList.remove(index);\n\t\t\t\treturn acc;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"int deleteByPrimaryKey(String orderid);",
"@Override\n\tpublic int deleteFromLicenseBizOrderByPrimaryKey(Integer id) {\n\t\treturn licenseBizOrderMapper.deleteByPrimaryKey(id);\n\t}",
"public void eliminarActividadDeTicket(int id) {\n ActividadEnSitio actividadEnSitio = this.actividadEnSitioFacade.find(id);\n if (actividadEnSitio != null) {\n this.actividadEnSitioFacade.remove(actividadEnSitio);\n }\n }",
"@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}",
"public void delete(Integer id) {\n Bank bank = find(id);\n if (bank != null) {\n em.remove(bank);\n }\n }",
"void remove(PK id);",
"@ApiMethod(name=\"beers.delete\")\n public Beer removeBeer(@Named(\"id\") Long id) {\n PersistenceManager mgr = getPersistenceManager();\n Beer beer = null;\n try {\n beer = mgr.getObjectById(Beer.class, id);\n mgr.deletePersistent(beer);\n } finally {\n mgr.close();\n }\n return beer;\n }",
"void remove(String id);",
"void remove(String id);",
"void remove(String id);",
"@Override\n\tpublic void remove(Long id) {\n\t\tproductRepository.delete(id);\n\t}",
"public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.dvc.NoSuchThuTuc2GiayToException;",
"@Override\n\tpublic Response deleteOrder(BookDeleteRequest request) {\n\t\treturn null;\n\t}",
"@CrossOrigin(origins = \"http://localhost:8000\")\n @ApiOperation(value = \"Delete an existing order by its ID\")\n @RequestMapping(value = \"/orders/{id}\", method = RequestMethod.DELETE)\n public void deletePizzaOrder(@ApiParam(value = \"ID of the pizza order to delete\", required = true) @PathVariable Long id) {\n PizzaOrder isItThere = pizzaOrderService.findById(id);\n\t\n if (isItThere == null) {\n logger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} not found\",id);\n\t throw new ResourceNotFoundException(\"Order with id \" + id + \" not found\");\n\t \n }\n\tlogger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} deleted\",id);\n pizzaOrderService.deleteOrder(id);\n }",
"public org.oep.cmon.dao.tlct.model.DanhMucGiayTo remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;",
"public OrderDetail getOrderDetail(final String id);",
"public void remove(String id) {\n\t\t\n\t}"
] | [
"0.7566335",
"0.70784765",
"0.6529089",
"0.6472448",
"0.6282012",
"0.6200583",
"0.6200327",
"0.6084236",
"0.59916466",
"0.5974689",
"0.5973029",
"0.59727114",
"0.5964109",
"0.5951923",
"0.59234273",
"0.5904205",
"0.59028226",
"0.58755404",
"0.58734345",
"0.5810091",
"0.5803113",
"0.5786699",
"0.57851255",
"0.5755608",
"0.5751216",
"0.5732413",
"0.57287705",
"0.57254523",
"0.56986064",
"0.56984144",
"0.567371",
"0.56488353",
"0.5633751",
"0.5631469",
"0.56230617",
"0.5603485",
"0.5572394",
"0.5570268",
"0.5568804",
"0.5563047",
"0.55404854",
"0.5504295",
"0.549628",
"0.5489217",
"0.5483252",
"0.54792356",
"0.54674894",
"0.54412633",
"0.54363185",
"0.54211795",
"0.542109",
"0.54164046",
"0.54085946",
"0.5403828",
"0.54004276",
"0.53999907",
"0.53962463",
"0.53956664",
"0.53896445",
"0.5389122",
"0.53851396",
"0.538118",
"0.5372853",
"0.5370013",
"0.5345334",
"0.53408253",
"0.5327403",
"0.5311466",
"0.5311466",
"0.5278201",
"0.52628976",
"0.5257016",
"0.5227961",
"0.52195626",
"0.52133936",
"0.52112377",
"0.5205836",
"0.52011985",
"0.519502",
"0.51793957",
"0.51790965",
"0.5177508",
"0.51749206",
"0.51738733",
"0.5171314",
"0.5170411",
"0.51646686",
"0.51613456",
"0.5152427",
"0.5146827",
"0.5145738",
"0.5145738",
"0.5145738",
"0.51272935",
"0.5126603",
"0.5112836",
"0.51110935",
"0.5107365",
"0.5106269",
"0.5093378"
] | 0.5571024 | 37 |
Edits from the order book the order associated with the given id. Returns the order object that is being removed or null if there is no order associated with the given id | Order replaceOrder(String orderNumber, Order order)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Order editOrder(String orderId, Order editedOrder) throws \n OrderBookOrderException;",
"Order removeOrder(String orderId) throws OrderBookOrderException;",
"Order getOrder(int id) throws ServiceException;",
"@Override\n\tpublic OrderDO findById(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int deleteOrder(int id) {\n\t\tString sql=\"DELETE FROM `order` WHERE id=?\";\n\t\treturn myExecuteUpdate(sql, id);\n\t}",
"@Override\n\tpublic Order findById(int id) {\n\t\treturn null;\n\t}",
"void deleteOrder(Long id);",
"public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}",
"Order getOrder(String orderId) throws OrderBookOrderException;",
"public Order get(int id) {\n\t\treturn orderDao.get(id);\n\t}",
"@Override\r\n\tpublic Order getOrderById(String orderId) {\n\t\treturn null;\r\n\t}",
"@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}",
"Order getByID(String id);",
"public OrderDetail getOrderDetail(final String id);",
"public Optional<Order> getOrder(Long id) {\n\t\treturn repo.findById(id);\n\t}",
"OrderDTO delete(String id);",
"@Override\r\n\tpublic boolean delOrder(int id) {\n\t\treturn adi.delOrder(id);\r\n\t}",
"public Order readOrder(Long id) {\n\t\tSystem.out.println(\"ReadOrder\" + id);\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders WHERE id = \" + id);) {\n\t\t\tresultSet.next();\n\t\t\treturn modelFromResultSet(resultSet);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Forge_Order_Detail findById(Serializable id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int delete(Long id) {\n\t\treturn orderInDao.delete(id);\n\t}",
"@Test\n public void testEditExistingOrderGetOrderByIDAndDeleteOrder() throws FlooringMasteryDoesNotExistException, FlooringMasteryFilePersistenceException {\n\n Order order3 = new Order(\"002\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"2017-06-23\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order originalOrder = service.getOrderByID(\"002\");\n assertEquals(\"Bree\", originalOrder.getCustomerName());\n\n Order orderToEdit = service.editExistingOrder(originalOrder.getOrderID(), order3, \"production\");\n \n assertEquals(\"Bree\", orderToEdit.getCustomerName());\n \n Order editedOrder = service.getOrderByID(\"002\");\n\n assertEquals(\"002\", editedOrder.getOrderID());\n assertEquals(\"Paul\", editedOrder.getCustomerName());\n \n Order deletedOrder = service.deleteOrder(service.getOrderByID(\"002\"), service.getConfig());\n assertEquals(\"Paul\", deletedOrder.getCustomerName());\n \n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderList = service.getOrdersByDate(ld);\n assertEquals(1, orderList.size());\n }",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"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}",
"@DeleteMapping(\"/{id}\")\r\n public ResponseEntity<Order> deleteOrder(@PathVariable(value =\"id\") int id){\r\n\t\tOrder existingOrder = this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t\tthis.orderRepo.delete(existingOrder);\r\n\t\treturn ResponseEntity.ok().build();\r\n\t}",
"public abstract CustomerOrder findOneForUpdate(Long id);",
"@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderInfoByPrimaryKey(Integer id) {\n\t\treturn licenseOrderInfoMapper.deleteByPrimaryKey(id);\n\t}",
"public OrderItem findOrderItemById(int id)\n\t{\n\t\tOrderItem orderIt=orderItemDAO.findById(id);\n\t\tif(orderIt==null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t \"Id-ul nu exista!\",\n\t\t\t\t \"Update error\",\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t\tthrow new NoSuchElementException(\"OrderItem=ul cu id-ul:\"+id+\" nu a fost gasit\");\n\t\t}\n\t\treturn orderIt;\n\t}",
"@Override\n\tpublic void deleteOrder(long id) {\n\t\t\n\t}",
"public Order getOrderById(long orderId);",
"public void deleteOrder(Long id) {\n\t\t\n\t\trepo.deleteById(id);\n\t}",
"private void pickupOrder(long orderId) {\n shelf.pull(orderId);\n }",
"@Override\r\n\tpublic Order update(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"UPDATE orders \"\r\n\t\t\t\t\t+ \"SET customer_id = %d WHERE order_id = %d \", order.getCustomer().getId(), order.getId()));\t\r\n\t\t\treturn readOrder(order.getId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@PutMapping(\"/update-order/{id}\")\n\tpublic ResponseEntity<Object> updateOrderById(@PathVariable Long id, @RequestBody Order orderRequest)\n\t\t\tthrows OrderNotFoundException {\n\t\tLOGGER.info(\"update-Order URL is opened\");\n\t\tLOGGER.info(\"updateOrder() is initiated\");\n\t\torderService.updateOrderById(id, orderRequest);\n\t\tLOGGER.info(\"updateOrder() has executed\");\n\t\treturn new ResponseEntity<>(\"Updated \", HttpStatus.OK);\n\t}",
"public String cancel_order(int id) {\n\t\treturn this.apiCall(\"cancel_order\", \"\", (\"id,\" + id), true);\n\t}",
"@Override\n\tpublic WxOrder queryOrderById(Integer id) {\n\t\treturn orderMapper.queryOrderById(id);\n\t}",
"@Override\n\tpublic long deleteById(String id) {\n\t\tlong deleteById = orderDetailDao.deleteById(id);\n\t\treturn deleteById;\n\t}",
"public Order readOrder(Long id)\n {\n Long customerID = null;\n List<Item> orderItems = new ArrayList<>();\n\n String sql = \"SELECT customerID FROM orders WHERE id = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n resultSet.next();\n customerID = resultSet.getLong(\"customerID\");\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n\n sql = \"SELECT items.* FROM order_items LEFT JOIN items ON order_items.itemID = items.id WHERE orderID = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n while(resultSet.next())\n {\n orderItems.add(modelItemFromResultSet(resultSet));\n }\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n return new Order(id, customerID, orderItems);\n }",
"@Override\n\tpublic Orderi get(Integer id) {\n\t\t\n\t\treturn (Orderi)getHibernateTemplate().get(Orderi.class, id);\n\t}",
"@GetMapping(\"/{id}\")\r\n\tpublic Order getOrderbyId(@PathVariable(value = \"id\") int id) {\r\n\t\treturn this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t}",
"@Override\r\n @Transactional(value = \"jpaTransactionManager\")\r\n public JPAOrderItem updateUsingQueryMethodAndClear(Integer orderId) {\n Integer itemNum = 1;\r\n JPAOrderItem jpaOrderItem = jpaOrderItemRepository.findOne(itemNum);\r\n\r\n jpaOrderItemRepository.updateByQueryWithClear(orderId);\r\n\r\n // Once again getting the same item#1 from the given orderId to check\r\n // the state\r\n jpaOrderItem = jpaOrderItemRepository.findOne(itemNum);\r\n return jpaOrderItem;\r\n }",
"@Override\n\tpublic OrderEntity findOneById(Long id) {\n\t\treturn oder.getById(id);\n\t}",
"boolean deleteOrder(long orderId);",
"public Shoporder GetOrderById(String orderId) {\n\t\treturn mapper.GetOrderById(orderId);\n\t}",
"void remove(Order o);",
"public void delete(int id) {\n\t\torderDao.delete(id);\n\t}",
"@Override\n\tpublic int delete(long id) {\n\t\t\n\t\t// =============================================================================\n\t\t// NOTE: to delete an order an order items for the order must be deleted first\n\t\t// to avoid failing a foreign key constraint\n\t\t// =============================================================================\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"DELETE FROM order_items WHERE order_id = \" + id); \n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\treturn statement.executeUpdate(\"DELETE FROM orders WHERE id = \" + id);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}",
"public Order removeOrder(String orderID) {\r\n\t\tOrder o = this.findOrder(orderID);\r\n\t\tif(o.getOrderID().equals(orderID)) {\r\n\t\t\torders.remove(orderID);\r\n\t\t\treturn o;\r\n\t\t} return null;\r\n\t}",
"@Override\n\tpublic OrderDetail getById(String id) {\n\t\tOrderDetail detail = orderDetailDao.getById(id);\n\t\treturn detail;\n\t}",
"Order requireById(Long orderId);",
"void invalidateOrder(long orderId);",
"@DeleteMapping(\"/delete-order/{id}\")\n\tpublic ResponseEntity<Object> deleteOrderById(@PathVariable Long id) throws OrderNotFoundException {\n\t\tLOGGER.info(\"delete-Order URL is opened\");\n\t\tLOGGER.info(\"delete-Order() is initiated\");\n\t\torderService.deleteOrderById(id);\n\t\tLOGGER.info(\"delete-Order() has executed\");\n\t\treturn new ResponseEntity<>(\"deleted successfully:\", HttpStatus.ACCEPTED);\n\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderRefundByPrimaryKey(Integer id) {\n\t\treturn licenseOrderRefundMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\r\n\tpublic OrderItem getOrderItem(int id) {\n\t\tSession session = SessionFactorySingleton.getSessionFactory().getFactorySession();\r\n\t\tOrderItem order = (OrderItem) session.get(OrderItem.class,id);\r\n\t\treturn order;\r\n\r\n\t}",
"@Override\n\tpublic Order update(Order order) {\n\t\treturn null;\n\t}",
"public void removeOrder(int id) {\n\t\tPreparedStatement removeSQL = null;\n\n\t\ttry {\n\t\t\tremoveSQL = getConnection().prepareStatement(\"DELETE FROM orders WHERE id=?;\");\n\n\t\t\tremoveSQL.setInt(1, id);\n\t\t\tremoveSQL.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (removeSQL != null) {\n\t\t\t\t\tremoveSQL.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void deleteOrder(int id) throws SQLException {\n\t\tConnection conn = null;\n PreparedStatement stmt = null;\n String sql=\"DELETE FROM orders WHERE orderId=?\";\n try {\n conn = DBCPUtils.getConnection();\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1,id);\n stmt.executeUpdate();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }finally{\n DBCPUtils.releaseConnection(conn, stmt, null); \n }\n\t\t\n\t}",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public Order getOrderById(int id) {\n\t\tOrder o = new Order();\r\n\t\to.setId(id);\r\n\t\to.setDescription(\"Test class\");\r\n\t\treturn o;\r\n\t}",
"public Order delete(Order order);",
"int deleteByPrimaryKey(String orderid);",
"public void removeOrder(LocalDate orderDate, Integer orderId) throws OrderNotFoundException, PersistenceException;",
"public void delete(Long id) {\n log.debug(\"Request to delete OrderItems : {}\", id);\n orderItemsRepository.deleteById(id);\n }",
"@Delete({\n \"delete from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);",
"public void setOrderid(String orderid) {\n this.orderid = orderid == null ? null : orderid.trim();\n }",
"public CartOrder updateOrder(CartOrder order) throws Exception;",
"@Override\n\tpublic OrderEntity findOneByAccountId(Long id) {\n\t\treturn oder.findOneByAccountId(id);\n\t}",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"@Override\n\tpublic Order save(Order e, long id) {\n\t\treturn null;\n\t}",
"Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;",
"public static ru.terralink.mvideo.sap.Orders load(long id)\n {\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.load(id));\n }",
"int deleteByPrimaryKey(String orderId);",
"@Override\n\tpublic int completeOrder(int orderId) {\n\t\tOrder order = orderDao.getOrder(orderId);\n\t\tfor (ProductOrder productOrder : order.getProductOrders()) {\n\t\t\tProduct product = productOrder.getProduct();\n\t\t\tint newQuantity = product.getAvailableQuantity() - productOrder.getOrderAmount();\n\t\t\tproduct.setAvailableQuantity(newQuantity);\n\t\t\tcatalogService.editProduct(product);\n\t\t}\n\t\treturn orderDao.completeOrder(orderId);\n\t}",
"@Override\r\n\tpublic Order FindById(int IdOrder) {\n\t\treturn em.find(Order.class, IdOrder);\r\n\t}",
"public Order findOrder(String orderID) {\r\n\t\tfor(Order o : orders.values()) {\r\n\t\t\tif(o.getOrderID().equals(orderID)) {\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\t} return null; \r\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete Roworder : {}\", id);\n roworderRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete PizzaOrder : {}\", id);\n pizzaOrderRepository.deleteById(id);\n }",
"public int deleteOrderItem(long id) {\n\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\treturn statement.executeUpdate(\"DELETE FROM order_items WHERE id = \" + id); \n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"@CrossOrigin(origins = \"http://localhost:8000\")\n @ApiOperation(value = \"Delete an existing order by its ID\")\n @RequestMapping(value = \"/orders/{id}\", method = RequestMethod.DELETE)\n public void deletePizzaOrder(@ApiParam(value = \"ID of the pizza order to delete\", required = true) @PathVariable Long id) {\n PizzaOrder isItThere = pizzaOrderService.findById(id);\n\t\n if (isItThere == null) {\n logger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} not found\",id);\n\t throw new ResourceNotFoundException(\"Order with id \" + id + \" not found\");\n\t \n }\n\tlogger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} deleted\",id);\n pizzaOrderService.deleteOrder(id);\n }",
"@CrossOrigin(origins = \"http://localhost:8000\")\n @ApiOperation(value = \"Update a pizza order by ID\", produces = \"application/json\", response = PizzaOrder.class)\n @RequestMapping(value = \"/orders/{id}\", method = RequestMethod.POST, consumes = \"application/json\")\n public PizzaOrder savePizzaOrder(\n @ApiParam(value = \"Pizza order details to update. Id is passed separately.\", required = true) @RequestBody PizzaOrder pizzaOrder,\n @ApiParam(value = \"ID of the Pizza Order to update\", required = true) @PathVariable Long id) {\n pizzaOrder.setId(id);\n PizzaOrder isItThere = pizzaOrderService.findById(id);\n if (isItThere == null) {\n logger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} not found\",id);\t \n\t throw new ResourceNotFoundException(\"Order with id \" + id + \" not found\");\n\t \n }\n\t logger.info(\"TrackingId:89a80896-35a4-468c-9ec3-b762ab161429|ClientId:89a80897-35a4-468c-9ec3-b762ab161429|Pizza Order Id: {} updated\",id);\n return pizzaOrderService.updateOrder(pizzaOrder);\n }",
"public void deleteOrder(String orderid) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + orderid, null);\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public static ru.terralink.mvideo.sap.Orders find(long id)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.find()\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n Object[] keys = new Object[]{id};\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.findEntityWithKeys(keys));\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public int getId() {\n return orderID;\n }",
"@Override\n\tpublic int edit(OrderIn orderIn) {\n\t\treturn orderInDao.edit(orderIn);\n\t}",
"@ApiOperation(value = \"Completes an existing order\", response = OrderDto.class)\n\t@ApiResponses(value = {\n\t @ApiResponse(code = 200, message = \"Successfully completed order.\"),\n\t @ApiResponse(code = 400, message = \"The order is unable to complete.\"\n\t \t\t+ \" Either it is in no appropriate state or no items were added\")\n\t})\n\t@RequestMapping(path = \"{orderId}\", method = RequestMethod.PATCH)\n\tpublic @ResponseBody OrderDto complete(@PathVariable(\"orderId\") Long orderId) {\n\t\treturn this.orderConverter.toModel(this.orderManager.complete(orderId));\n\n\t}",
"public Boolean deleteOrder(String idOrder) {\n\n\t\tOrderDetails od = new OrderDetails();\n\t\tod.deleteAllOrderDetails(idOrder);\n\n\t\ttry {\n\t\t\tString sql = \"DELETE FROM restodb.order WHERE idorder = \" + idOrder;\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tint x = statement.executeUpdate(sql);\n\n\t\t\tif (x > 0)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t\treturn false;\n\t}",
"OrderDTO findBy(String id);",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public Order loadOrderFromId(int orderId) {\n throw new UnsupportedOperationException();\n }",
"Order find(Long id);",
"@GET\n\t@Path(\"{id}\")\n\tpublic Response getOrder(@PathParam(\"id\") String id) {\n\t\t String orderJSON = null;\n\t\t try {\n\t\t \torderJSON = backend.getOrder(id);\n\t\t \t// returns a JSON string based on a UUID\n\t\t } catch ( NotFoundException e) {\n\t\t \treturn Response.status(404).entity(id).build();\n\t\t }\n\t\t return Response.status(200).entity(orderJSON).build();\n\t}",
"public static PoolRealTimeOrderBean getOrderById(long orderId) {\n\t\tPoolRealTimeOrderBean order = pool.get(orderId);\n\t\trefreshOrderRelatedInformation(order);\n\t\treturn order;\n\t}",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"public synchronized void cancelOrder(BookSide side, String orderId) throws InvalidDataException, OrderNotFoundException {\n\t\tif (side == null) throw new InvalidDataException(\"The side cannot be null.\");\n\t\tif (orderId == null || orderId.isEmpty()) throw new InvalidDataException(\"The order ID cannot be null or empty.\");\n\t\tif (side.equals(BookSide.BUY)) getBuySide().submitOrderCancel(orderId);\n\t\telse getSellSide().submitOrderCancel(orderId);\n\t\tupdateCurrentMarket();\n\t}"
] | [
"0.71105146",
"0.6904841",
"0.656651",
"0.6557867",
"0.6454293",
"0.642366",
"0.6411617",
"0.63925433",
"0.63632166",
"0.6349213",
"0.63342327",
"0.6327295",
"0.62819123",
"0.6219255",
"0.62109774",
"0.6208516",
"0.61729777",
"0.6147073",
"0.6123556",
"0.61155754",
"0.6072651",
"0.60392135",
"0.60287905",
"0.59940434",
"0.5987707",
"0.59862745",
"0.5985425",
"0.59753823",
"0.59640926",
"0.5918679",
"0.58672625",
"0.5841325",
"0.58321685",
"0.58291626",
"0.58287287",
"0.5783324",
"0.576618",
"0.576491",
"0.57505",
"0.574858",
"0.57446015",
"0.5704636",
"0.5701538",
"0.56880283",
"0.56820315",
"0.5677707",
"0.5661014",
"0.5653524",
"0.5651612",
"0.56505656",
"0.5640816",
"0.56320256",
"0.56183875",
"0.56001097",
"0.55994326",
"0.5589288",
"0.5584284",
"0.55839205",
"0.55459726",
"0.55171895",
"0.55105525",
"0.549806",
"0.549772",
"0.5496422",
"0.5488519",
"0.54868126",
"0.54764354",
"0.5469835",
"0.5469835",
"0.54642236",
"0.54618275",
"0.54580945",
"0.54517084",
"0.5451148",
"0.54473555",
"0.54448795",
"0.5442268",
"0.54402083",
"0.5416242",
"0.54089737",
"0.53933734",
"0.5392547",
"0.538734",
"0.53804964",
"0.5379017",
"0.5379017",
"0.53510565",
"0.53475434",
"0.53462017",
"0.533342",
"0.533203",
"0.5328159",
"0.5321261",
"0.5321261",
"0.5321261",
"0.5319049",
"0.53182495",
"0.53179854",
"0.5300466",
"0.529662",
"0.5290316"
] | 0.0 | -1 |
Loads a list of all orders in the order book with the given date. Returns the order object that is being removed or null if there is no order associated with the given id | void loadOrders(String date)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeOrder(LocalDate orderDate, Integer orderId) throws OrderNotFoundException, PersistenceException;",
"@Override\n public List<Order> getAllOrders(String date) throws FlooringMasteryPersistenceException {\n \n Map<Integer, Order> hm = ordersByDate.get(date); // get the hashmap by the date\n\n return new ArrayList<>(hm.values()); // get and return the list of orders from the <Integer, Order> hashmap\n \n }",
"private void loadOrder(LocalDate date) throws PersistenceException{\n orders.clear();\n ORDER_FILE = \"Order_\"+ date+\".txt\";\n Scanner scanner;\n File file = new File(ORDER_FILE);\n if(file.exists()){\n \n \n try {\n scanner = new Scanner(\n new BufferedReader(\n new FileReader(ORDER_FILE)));\n } catch (FileNotFoundException e) {\n throw new PersistenceException(\n \"-_- Could not load data into memory.\",e);\n } \n scanner.nextLine();\n String currentLine;\n String[] currentTokens = new String[13]; \n while (scanner.hasNextLine()) {\n currentLine = scanner.nextLine();\n currentTokens = currentLine.split(DELIMITER);\n \n\n Order currentOrder = new Order(Integer.parseInt((currentTokens[0])));\n \n currentOrder.setOrderDate(LocalDate.parse(currentTokens[1]));\n currentOrder.setClientName(currentTokens[2]);\n currentOrder.setState(currentTokens[3]);\n currentOrder.setStateTax(new BigDecimal(currentTokens[4]));\n currentOrder.setProduct(currentTokens[5]);\n currentOrder.setArea(new BigDecimal(currentTokens[6]));\n currentOrder.setMaterialCost(new BigDecimal(currentTokens[7]));\n currentOrder.setLaborCost(new BigDecimal(currentTokens[8]));\n currentOrder.setTotalMaterialCost(new BigDecimal(currentTokens[9]));\n currentOrder.setTotalLaborCost(new BigDecimal(currentTokens[10]));\n currentOrder.setTotalTax(new BigDecimal(currentTokens[11]));\n currentOrder.setTotalCost(new BigDecimal(currentTokens[12]));\n \n orders.put(currentOrder.getOrderNumber(), currentOrder);\n }\n scanner.close();\n } else{\n try{\n file.createNewFile();\n } catch (IOException ex){\n throw new PersistenceException(\"Error! No orders from that date.\", ex);\n }\n }\n }",
"public List<Order> getOrdersByDate(Date date);",
"@Override\n public Order deleteOrder(String date, Order order) throws FlooringMasteryPersistenceException {\n Map<Integer,Order> childHash =ordersByDate.get(date);\n if(childHash == null){ // childHash is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, childHash = new HashMap<>()); // make childHash a new hashmap and then put it in the parent hashmap\n }\n return childHash.remove(order.getOrderId());\n \n }",
"void deleteOrder(Long id);",
"Order getOrder(int id) throws ServiceException;",
"public static ru.terralink.mvideo.sap.Orders load(long id)\n {\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.load(id));\n }",
"@Override\n public List<Order> getAllOrders(LocalDate date) throws PersistenceException{\n return new ArrayList<Order>(orders.values());\n }",
"public void removeOrder() throws FlooringDaoException {\n boolean validDateOrderNumber = true;\n do {\n try {\n String date = view.getOrdersDate();\n int orderNumber = view.getOrderNumber();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n view.displayOrderToEditOrDelete(ordersByDate, orderNumber);\n validDateOrderNumber = true;\n boolean confirmValid = true;\n do {\n try {\n String confirm = view.confirmDelete(); //unfortunately this line has to execute for it to pick up an invalidOrder exception. not the best but serviceable\n service.removeOrder(date, orderNumber, confirm);\n confirmValid = true;\n } catch (InvalidDataException ex) {\n view.displayError(ex.getMessage());\n confirmValid = false;\n }\n } while (!confirmValid);\n validDateOrderNumber = true;\n\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDateOrderNumber = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Invalid order number. Order number must consist of digits 0-9 only with no decimal points.\");\n validDateOrderNumber = false;\n } catch (InvalidOrderNumberException ex) {\n view.displayError(ex.getMessage());\n validDateOrderNumber = false;\n }\n } while (!validDateOrderNumber);\n }",
"Order removeOrder(String orderId) throws OrderBookOrderException;",
"@Override\n\tpublic OrderDO findById(String id) {\n\t\treturn null;\n\t}",
"private void loadOrders(String date) throws FlooringMasteryPersistenceException{\n \n String filename = \"Orders_\" + date + \".txt\";\n Scanner scanner;\n\t \n try {\n // Create Scanner for reading the file\n scanner = new Scanner(\n new BufferedReader(\n new FileReader(filename)));\n } catch (FileNotFoundException e) { \n throw new FlooringMasteryPersistenceException(\n \"-_- Could not load data into memory.\", e);\n }\n // currentLine holds the most recent line read from the file\n\t String currentLine;\n\n\t String[] currentTokens;\n\n\t while (scanner.hasNextLine()) {\n\t // get the next line in the file\n\t currentLine = scanner.nextLine();\n\t // break up the line into tokens\n\t currentTokens = currentLine.split(DELIMITER);\n \n // convert each field in the file into a field of the Order DTO's constructor\n int orderNumber = Integer.parseInt(currentTokens[0]);\n String customerName = currentTokens[1];\n String state = currentTokens[2];\n \n BigDecimal taxRate = new BigDecimal(currentTokens[3]);\n BigDecimal taxRateScaled = taxRate.setScale(2, RoundingMode.HALF_UP);\n \n String productType = currentTokens[4];\n \n BigDecimal materialCost = new BigDecimal(currentTokens[5]);\n BigDecimal materialCostScaled = materialCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal laborCost = new BigDecimal(currentTokens[6]);\n BigDecimal laborCostScaled = laborCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal area = new BigDecimal(currentTokens[7]);\n BigDecimal areaScaled = area.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalMaterialCost = new BigDecimal(currentTokens[8]);\n BigDecimal totalMaterialCostScaled = totalMaterialCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalLaborCost = new BigDecimal(currentTokens[9]);\n BigDecimal totalLaborCostScaled = totalLaborCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalTax = new BigDecimal(currentTokens[10]);\n BigDecimal totalTaxScaled = totalTax.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal total = new BigDecimal(currentTokens[11]);\n BigDecimal totalScaled = total.setScale(2, RoundingMode.HALF_UP);\n \n \n\n Order currentOrder = new Order(orderNumber, customerName, state, taxRateScaled, productType, materialCostScaled, laborCostScaled, areaScaled, totalMaterialCostScaled, totalLaborCostScaled, totalTaxScaled, totalScaled);\n \n \n Map<Integer,Order> hm = ordersByDate.get(date); // get the child hashmap by date\n if(hm == null){ // hm is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, hm = new HashMap<>()); // make hm a new hashmap and then put it in the parent hashmap\n }\n \n hm.put(currentOrder.getOrderId(), currentOrder); // put in current order to child hashmap\n ordersByDate.put(date, hm); // put child hashmap with current order in parent hashmap\n \n }\n scanner.close();\n }",
"Order getOrder(String orderId) throws OrderBookOrderException;",
"OrderDTO delete(String id);",
"public void getOrdersByDate() throws FlooringDaoException {\n boolean validDate = true;\n do {\n try {\n String date = view.getOrdersDate();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n validDate = true;\n view.displayOrdersByDate(ordersByDate);\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDate = false;\n }\n } while (!validDate);\n }",
"public Order readOrder(Long id)\n {\n Long customerID = null;\n List<Item> orderItems = new ArrayList<>();\n\n String sql = \"SELECT customerID FROM orders WHERE id = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n resultSet.next();\n customerID = resultSet.getLong(\"customerID\");\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n\n sql = \"SELECT items.* FROM order_items LEFT JOIN items ON order_items.itemID = items.id WHERE orderID = \" + id;\n try (Connection connection = DBUtils.getInstance().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql))\n {\n while(resultSet.next())\n {\n orderItems.add(modelItemFromResultSet(resultSet));\n }\n }\n catch (Exception e)\n {\n LOGGER.debug(e);\n LOGGER.error(e.getMessage());\n }\n return new Order(id, customerID, orderItems);\n }",
"public Order getOrder(LocalDate date, int orderNum) throws InvalidDateException {\n Order editedOrder = new Order();\n try {\n List<Order> orders = dao.getOrdersByDate(date);\n\n for (Order order : orders) {\n if (order.getOrderNumber() == orderNum) {\n editedOrder = order;\n }\n }\n\n if (editedOrder.getOrderNumber() == null) {\n throw new InvalidDateException(\"That order does not exist.\");\n\n }\n } catch (FlooringMasteryDaoException e) {\n throw new InvalidDateException(\n \"Order Number: \" + orderNum + \" does not exist for that date\");\n }\n\n return editedOrder;\n }",
"@Override\n\tpublic Order findById(int id) {\n\t\treturn null;\n\t}",
"public Order readOrder(Long id) {\n\t\tSystem.out.println(\"ReadOrder\" + id);\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders WHERE id = \" + id);) {\n\t\t\tresultSet.next();\n\t\t\treturn modelFromResultSet(resultSet);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Order getOrderById(String orderId) {\n\t\treturn null;\r\n\t}",
"public List<Order> displayOrders(LocalDate date) throws FlooringMasteryDaoException {\n\n List<Order> orders = dao.getOrdersByDate(date);\n return orders;\n\n }",
"public Orderdetail findById(String id) {\n\t\treturn null;\r\n\t}",
"@Test\n public void testEditExistingOrderGetOrderByIDAndDeleteOrder() throws FlooringMasteryDoesNotExistException, FlooringMasteryFilePersistenceException {\n\n Order order3 = new Order(\"002\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"2017-06-23\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order originalOrder = service.getOrderByID(\"002\");\n assertEquals(\"Bree\", originalOrder.getCustomerName());\n\n Order orderToEdit = service.editExistingOrder(originalOrder.getOrderID(), order3, \"production\");\n \n assertEquals(\"Bree\", orderToEdit.getCustomerName());\n \n Order editedOrder = service.getOrderByID(\"002\");\n\n assertEquals(\"002\", editedOrder.getOrderID());\n assertEquals(\"Paul\", editedOrder.getCustomerName());\n \n Order deletedOrder = service.deleteOrder(service.getOrderByID(\"002\"), service.getConfig());\n assertEquals(\"Paul\", deletedOrder.getCustomerName());\n \n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderList = service.getOrdersByDate(ld);\n assertEquals(1, orderList.size());\n }",
"Order getByID(String id);",
"public static ru.terralink.mvideo.sap.Orders find(long id)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.find()\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n Object[] keys = new Object[]{id};\n return (ru.terralink.mvideo.sap.Orders)(DELEGATE.findEntityWithKeys(keys));\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public List<Map<String, Object>> getOrder(String id);",
"@Override\n\tpublic Response deleteOrder(BookDeleteRequest request) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int delete(Long id) {\n\t\treturn orderInDao.delete(id);\n\t}",
"@Override\n\tpublic void deleteOrder(long id) {\n\t\t\n\t}",
"public Order get(int id) {\n\t\treturn orderDao.get(id);\n\t}",
"public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;",
"public Order getOrderById(long orderId);",
"boolean deleteOrder(long orderId);",
"void invalidateOrder(long orderId);",
"@DeleteMapping(\"/{id}\")\r\n public ResponseEntity<Order> deleteOrder(@PathVariable(value =\"id\") int id){\r\n\t\tOrder existingOrder = this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t\tthis.orderRepo.delete(existingOrder);\r\n\t\treturn ResponseEntity.ok().build();\r\n\t}",
"public List<PartDto> getAllPartsPriceMod(LocalDate date, Integer order) throws Exception {\n List<PartRecord> result = this.repoPartRecords.findByLastModificationAfter(date);\n if (order > 0){\n orderPartsRecords(order, result);\n }\n List<Part> parts = getRelatedParts(result);\n return mapper.mapList(parts, true);\n }",
"@Override\n public void loadAllDates(LocalDate date) throws PersistenceException{\n try {\n loadOrder(date);\n } catch (PersistenceException ex) {\n throw new PersistenceException(\"ERROR! ERROR! CANNOT LOAD!\", ex);\n }\n }",
"private void pickupOrder(long orderId) {\n shelf.pull(orderId);\n }",
"public ArrayList<Order> getTodaysOrders() {\n\n\t\tArrayList<Order> order = new ArrayList<Order>();\n\n\t\tOrder or = null;\n\n\t\tDate date = new Date();\n\n\t\tTimestamp ts = new Timestamp(date.getTime());\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM restodb.order WHERE date >= '\" + formatter.format(ts).substring(0, 10) + \"'\";\n\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tResultSet rs = statement.executeQuery(sql);\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tor = new Order(rs.getString(\"idorder\"), rs.getString(\"date\"), rs.getString(\"clientName\"),\n\t\t\t\t\t\trs.getString(\"status\"), rs.getString(\"location_idlocation\"));\n\n\t\t\t\torder.add(or);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t\treturn order;\n\t}",
"@Override\r\n\tpublic boolean delOrder(int id) {\n\t\treturn adi.delOrder(id);\r\n\t}",
"public OrderDetail getOrderDetail(final String id);",
"@Override\n\tpublic List<Orders> queryOrderOfId(int id) throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet result = null;\n\t\tList<Orders> messages=null;\n\t\ttry{\n\t\t\tconn = DBCPUtils.getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM orders WHERE orderId=?\");\n\t\t\tstmt.setInt(1,id);\n\t\t\tresult = stmt.executeQuery();\n\t\t\tmessages=new ArrayList<Orders>();\n\t\t\twhile (result.next()) {\n\t\t\t\tOrders order=new Orders();\n\t\t\t\torder.setOrderId(result.getInt(1));\n\t\t\t\torder.setOrderName(result.getString(2));\n\t\t\t\torder.setOrderAddress(result.getString(3));\n\t\t\t\torder.setOrderPhone(result.getString(4));\n\t\t\t\torder.setOrderNumber(result.getInt(5));\n\t\t\t\torder.setOrderTime(result.getString(6));\n\t\t\t\torder.setBookName(result.getString(7));\n\t\t\t\torder.setOrderMemo(result.getString(8));\n\t\t\t\tmessages.add(order);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBCPUtils.releaseConnection(conn, stmt, result);\n\t\t}\n\t\treturn messages;\n\t\t\n\t\t\n\t}",
"public Order delete(Order order);",
"public List<PartDto> getAllPartsModify(LocalDate date, Integer order) throws Exception {\n List<Part> result = this.repoParts.findByLastModificationAfter(date);\n if(order > 0){\n orderParts(order, result);\n }\n return mapper.mapList(result, false);\n }",
"public OrderList findOrders(){\n sql=\"SELECT * FROM Order\";\n Order order;\n try{\n ResultSet resultSet = db.SelectDB(sql);\n \n while(resultSet.next()){\n order = new Order();\n order.setOrderID(resultSet.getString(\"OrderID\"));\n order.setCustomerID(resultSet.getString(\"CustomerID\"));\n order.setStatus(resultSet.getString(\"Status\"));\n ordersList.addItem(order);\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash finding all orders\" + e);\n }\n return ordersList;\n }",
"public Order loadOrderFromId(int orderId) {\n throw new UnsupportedOperationException();\n }",
"public void deleteByOrder(Order order);",
"@Override\n\tpublic Forge_Order_Detail findById(Serializable id) {\n\t\treturn null;\n\t}",
"public List<Order> findOrder(int orderId) {\n\t\tList<Order> orders=new ArrayList<Order>();\n\t\tQuery query=em.createQuery(\"from Order where order_Id=:orderId\"+\" and block_id is null\");\n\t\tquery.setParameter(\"orderId\",orderId);\n\t\t//System.out.println(query);\n\t\torders=query.getResultList();\n\t\t//System.out.println(orders.get(0));\n\n\t\treturn orders;\n\n\t}",
"@Override\n\tpublic RechargeOrder getByOrderID(String orderId) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/getOrderHistory\")\n\tpublic ResponseEntity<List<Order>> getOrderHistoryWithOrderId(@RequestParam int orderId) {\n\t\treturn new ResponseEntity<>(dataFetchService.getOrderHistoryWithOrderId(orderId), HttpStatus.OK);\n\t}",
"@GetMapping(\"/{id}\")\r\n\tpublic Order getOrderbyId(@PathVariable(value = \"id\") int id) {\r\n\t\treturn this.orderRepo.findById(id)\r\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"order does not exist\"));\r\n\t}",
"public void deleteOrder(Long id) {\n\t\t\n\t\trepo.deleteById(id);\n\t}",
"public void removeOrderDetails(final Map idList);",
"public OrderEntity LoadSingleOrder(int id) throws ClassNotFoundException, SQLException{\n\t\tOrderEntity o = new OrderEntity();\r\n\t\tConnectDB db = new ConnectDB();\r\n\t\tdb.connect();\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM cart WHERE ID = \" + id;\r\n\t\t\tResultSet rs = db.st.executeQuery(sql);\r\n\t\t\t//System.out.print(rs.getString(\"Username\"));\r\n\t\t\twhile (rs.next()){\r\n\t\t\t\t\t\r\n\t\t\t\to.setId(rs.getInt(\"id\"));\r\n\t\t\t\to.setId_customer(rs.getInt(\"id_customer\"));\r\n\t\t\t\to.setTotal_price(rs.getInt(\"price_sum\"));\r\n\t\t\t\to.setAddress(rs.getString(\"address\"));\r\n\t\t\t\to.setDate(rs.getString(\"date_delivery\"));\r\n\t\t\t\to.setStatus(rs.getInt(\"status\"));\r\n\t\t\t\t\r\n\t\t\t\t//list.add(p);\t\t\t\t\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tdb.st.close();\r\n\t\t\tdb.con.close();\r\n\t\t\t\r\n\t\t} catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\treturn o;\r\n\t}",
"@Override\n\tpublic int deleteOrder(int id) {\n\t\tString sql=\"DELETE FROM `order` WHERE id=?\";\n\t\treturn myExecuteUpdate(sql, id);\n\t}",
"public void deleteOrders(Integer oid) {\n\t\t\n\t\tordersMapper.deleteByPrimaryKey(oid);\n\t}",
"@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}",
"public void removeOrder(LocalDate removalDate, int orderNum) throws InvalidDateException {\n\n try {\n\n List<Order> orders = dao.getOrdersByDate(removalDate);\n for (int i = 0; i < orders.size(); i++) {\n if (orderNum == orders.get(i).getOrderNumber()) {\n dao.removeOrder(orders.get(i), removalDate);\n }else if(i == orders.size() - 1){\n throw new InvalidDateException (\"Order does not exist\");\n }\n }\n\n } catch (FlooringMasteryDaoException e) {\n throw new InvalidDateException(\"The date you entered does not contain any orders.\");\n }\n\n }",
"@Override\n\tpublic long deleteById(String id) {\n\t\tlong deleteById = orderDetailDao.deleteById(id);\n\t\treturn deleteById;\n\t}",
"@Override\n\tpublic void delete(long orderId) {\n\t\t\n\t}",
"OrderDTO findBy(String id);",
"private ObservableList<Order> getAllCustomerOrders(int customerId){\r\n ObservableList<Order> customerOrders = null;\r\n try {\r\n OrderDB odb = new OrderDB();\r\n customerOrders = odb.getAllOrders(customerId);\r\n } catch (Exception e){\r\n System.err.println(e.getMessage());\r\n }\r\n return customerOrders;\r\n }",
"public List<Order> getAllUsersOrdersById(long userId);",
"@Override\n\tpublic List<OrderDetailsEntity> findBuyOrderId(Long id) {\n\t\treturn oderDet.findAllBuyOrderId(id);\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete OrderItems : {}\", id);\n orderItemsRepository.deleteById(id);\n }",
"int deleteByPrimaryKey(String orderid);",
"private void deleteOrderFromDatabase() {\n SQLiteDatabase sqLiteDatabase = db.getWritableDatabase();\n sqLiteDatabase.delete(\"ORDERS\",null,null);\n sqLiteDatabase.close();\n }",
"int deleteByPrimaryKey(String orderId);",
"@DeleteMapping(\"/delete-order/{id}\")\n\tpublic ResponseEntity<Object> deleteOrderById(@PathVariable Long id) throws OrderNotFoundException {\n\t\tLOGGER.info(\"delete-Order URL is opened\");\n\t\tLOGGER.info(\"delete-Order() is initiated\");\n\t\torderService.deleteOrderById(id);\n\t\tLOGGER.info(\"delete-Order() has executed\");\n\t\treturn new ResponseEntity<>(\"deleted successfully:\", HttpStatus.ACCEPTED);\n\n\t}",
"public static PoolRealTimeOrderBean getOrderById(long orderId) {\n\t\tPoolRealTimeOrderBean order = pool.get(orderId);\n\t\trefreshOrderRelatedInformation(order);\n\t\treturn order;\n\t}",
"public JSONObject fetchOrder(long orderId) throws Exception;",
"List<Order> getUserOrderList(int userId) throws ServiceException;",
"public Optional<Order> getOrder(Long id) {\n\t\treturn repo.findById(id);\n\t}",
"public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}",
"List<LineItem> listLineItemByOrderId(Integer orderId);",
"public void delete(int id) {\n\t\torderDao.delete(id);\n\t}",
"@Override\n\tpublic List<Orders> findAll() throws Exception\n\t{\n\t\treturn null;\n\t}",
"Order find(Long id);",
"@Override\n\tpublic List<OdderDTO> odderList(String id) {\n\t\treturn cookie.odderList(id);\n\t}",
"public List<OrderDetail> getOrderDetailByOrder(Long orderId);",
"@Override\n\tpublic void readCanceledOrders(UUID canceledOrdersID) {\n\t}",
"@Override\n\tpublic int deleteFromLicenseOrderInfoByPrimaryKey(Integer id) {\n\t\treturn licenseOrderInfoMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\n public Order editOrder(String date, Order editedOrder) throws FlooringMasteryPersistenceException {\n Map<Integer,Order> editHash =ordersByDate.get(date);\n if(editHash == null){ // editHash is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, editHash = new HashMap<>()); // make editHash a new hashmap and then put it in the parent hashmap\n }\n editHash.put(editedOrder.getOrderId(), editedOrder); \n ordersByDate.put(date, editHash);\n return editHash.put(editedOrder.getOrderId(), editedOrder); // replace the order with new info, don't assign a new Order ID like in createOrder()\n\n }",
"public synchronized void checkTooLateToCancel(String orderId) throws InvalidDataException, OrderNotFoundException {\n\t\tif (orderId == null || orderId.isEmpty()) throw new InvalidDataException(\"The order id cannot be null.\");\n\t\tIterator<Price> priceIterator = getOldEntries().keySet().iterator();\n\t\tboolean found = false;\n\t\twhile (priceIterator.hasNext() && !found) {\n\t\t\tArrayList<Tradable> trades = getOldEntries().get(priceIterator.next());\n\t\t\tIterator<Tradable> tradeIterator = trades.iterator();\n\t\t\twhile (tradeIterator.hasNext() && !found) {\n\t\t\t\tTradable nextTrade = tradeIterator.next();\n\t\t\t\tif (nextTrade.getId().equals(orderId)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tCancelMessage cm = makeCancelMessage(nextTrade,\"Too Late to Cancel\");\n\t\t\t\t\tMessagePublisher.getInstance().publishCancel(cm);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!found) throw new OrderNotFoundException(\"The requested order could not be found.\");\n\t}",
"@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerOrder : {}\", id);\n customerOrderRepository.delete(id);\n customerOrderSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerOrder\", id.toString())).build();\n }",
"@Override\n public Collection<Order> getOrdersByUserId(String id) {\n Collection<Order> orders = getAll();\n return orders.stream()\n .filter(x -> x.getCustomerId().equals(id))\n .collect(Collectors.toList());\n }",
"void remove(Order o);",
"@Delete({\n \"delete from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long id);",
"@Override\r\n\tpublic void Delete(Order order) {\n\t\tem.remove(em.merge(order));\r\n\t\t\r\n\t}",
"@Override\n\tpublic OrderDetailsEntity findDoanhthu(String date) {\n\t\treturn oderDet.fidoanhthu(date);\n\t}",
"@Override\n\tpublic WxOrder queryOrderById(Integer id) {\n\t\treturn orderMapper.queryOrderById(id);\n\t}",
"public void cancelOrder() {\n order.clear();\n }",
"List<Order> getAllOrders()\n throws FlooringMasteryPersistenceException;",
"public Order getOrderByID(String order_id) throws Exception {\n\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tString sql = \"select * from ocgr_orders left join ocgr_clients on ocgr_orders.client_id = ocgr_clients.client_id left join ocgr_vendors on ocgr_orders.vendor_id = ocgr_vendors.vendor_id where order_id=? ;\";\n\n\t\tDB db = new DB();\n\n\t\ttry {\n\t\t\tdb.open();\n\t\t\tcon = db.getConnection();\n\n\t\t\tstmt = con.prepareStatement(sql);\n\t\t\tstmt.setString(1,order_id);\n\t\t\trs = stmt.executeQuery();\n\n\t\t\tif (!rs.next()) {\n\t\t\t\trs.close();\n\t\t\t\tstmt.close();\n\t\t\t\tdb.close();\n\n\t\t\t\tthrow new Exception(\"Not valid Order_id\");\n\t\t\t}\n\t\t\tClient client = new Client( rs.getString(\"client_id\"), rs.getString(\"client_password\"), rs.getString(\"client_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_fullname\"), rs.getString(\"client_compName\"), rs.getString(\"client_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"client_itin\"), rs.getString(\"client_doy\"), rs.getString(\"client_phone\") );\n\n\t\t\tVendor vendor = new Vendor( rs.getString(\"vendor_id\"), rs.getString(\"vendor_password\"), rs.getString(\"vendor_email\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_fullname\"), rs.getString(\"vendor_compName\"), rs.getString(\"vendor_address\"),\n\t\t\t\t\t\t\t\t\t\trs.getString(\"vendor_itin\"), rs.getString(\"vendor_doy\"), rs.getString(\"vendor_phone\") );\n\n\t\t\tOrder order = new Order(rs.getString(\"order_id\"), rs.getTimestamp(\"order_date\"), rs.getBigDecimal(\"order_total\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_address\"), rs.getString(\"order_address\"),\n\t\t\t\t\t\t\t\t\trs.getString(\"order_paymentmethod\"), client, vendor );\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tdb.close();\n\n\t\t\treturn order;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdb.close();\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"@Override\n\tpublic OrderDetail getById(String id) {\n\t\tOrderDetail detail = orderDetailDao.getById(id);\n\t\treturn detail;\n\t}",
"List<Order> getAll();",
"@GET\n\t@Path(\"{id}\")\n\tpublic Response getOrder(@PathParam(\"id\") String id) {\n\t\t String orderJSON = null;\n\t\t try {\n\t\t \torderJSON = backend.getOrder(id);\n\t\t \t// returns a JSON string based on a UUID\n\t\t } catch ( NotFoundException e) {\n\t\t \treturn Response.status(404).entity(id).build();\n\t\t }\n\t\t return Response.status(200).entity(orderJSON).build();\n\t}",
"@Override\n\tpublic List<WxOrderDetail> queryOrderRefundGoodsList(Integer id) {\n\t\tList<WxOrderDetail> returnList = null;\n\t\tList<WxOrderDetail> detailList = orderMapper.queryOrderRefundGoodsList(id);\n\t\tif(detailList != null && detailList.size() > 0) {\n\t\t\treturnList = new ArrayList<WxOrderDetail>();\n\t\t\tfor(int i=0;i<detailList.size();i++) {\n\t\t\t\tif(detailList.get(i).getGoodsNum() > 0) {\n\t\t\t\t\tdetailList.get(i).setNum(0);\n\t\t\t\t\treturnList.add(detailList.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn returnList;\n\t}"
] | [
"0.6566618",
"0.5984146",
"0.5974132",
"0.5964011",
"0.5963223",
"0.5866457",
"0.58558124",
"0.58426005",
"0.5726403",
"0.57177675",
"0.5708163",
"0.56540203",
"0.5633947",
"0.5633429",
"0.5552777",
"0.5532333",
"0.551813",
"0.5497531",
"0.5495283",
"0.5443865",
"0.53700626",
"0.53582054",
"0.5344211",
"0.53390014",
"0.53374493",
"0.5326425",
"0.531732",
"0.52691835",
"0.5257016",
"0.52540576",
"0.52367103",
"0.52112216",
"0.52104306",
"0.5170126",
"0.5169996",
"0.5140511",
"0.5138555",
"0.51361924",
"0.51274025",
"0.5124088",
"0.51157147",
"0.50978374",
"0.5088786",
"0.50787765",
"0.5061125",
"0.5058113",
"0.5027307",
"0.5026801",
"0.50090563",
"0.50019246",
"0.4999564",
"0.4992503",
"0.49903965",
"0.4985999",
"0.49856308",
"0.49844646",
"0.4973717",
"0.49582794",
"0.49469373",
"0.49326006",
"0.49191618",
"0.49130508",
"0.49102086",
"0.48974755",
"0.48799205",
"0.48712417",
"0.4859381",
"0.48443207",
"0.48426324",
"0.48375222",
"0.4835735",
"0.48182443",
"0.48172945",
"0.481075",
"0.48065883",
"0.47955492",
"0.47938886",
"0.47911814",
"0.47877687",
"0.4766897",
"0.4766421",
"0.47587466",
"0.47507748",
"0.47428322",
"0.4742673",
"0.4733566",
"0.47331172",
"0.47304547",
"0.47116956",
"0.47106543",
"0.46999738",
"0.46937957",
"0.46888655",
"0.46859267",
"0.46828264",
"0.46820533",
"0.4678683",
"0.46777806",
"0.46714383",
"0.46713433"
] | 0.66119885 | 0 |
Writes to file a list of all orders in the order book with the given date. Returns the order object that is being removed | void saveOrders(String date)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeOrder(LocalDate orderDate, Integer orderId) throws OrderNotFoundException, PersistenceException;",
"private void loadOrder(LocalDate date) throws PersistenceException{\n orders.clear();\n ORDER_FILE = \"Order_\"+ date+\".txt\";\n Scanner scanner;\n File file = new File(ORDER_FILE);\n if(file.exists()){\n \n \n try {\n scanner = new Scanner(\n new BufferedReader(\n new FileReader(ORDER_FILE)));\n } catch (FileNotFoundException e) {\n throw new PersistenceException(\n \"-_- Could not load data into memory.\",e);\n } \n scanner.nextLine();\n String currentLine;\n String[] currentTokens = new String[13]; \n while (scanner.hasNextLine()) {\n currentLine = scanner.nextLine();\n currentTokens = currentLine.split(DELIMITER);\n \n\n Order currentOrder = new Order(Integer.parseInt((currentTokens[0])));\n \n currentOrder.setOrderDate(LocalDate.parse(currentTokens[1]));\n currentOrder.setClientName(currentTokens[2]);\n currentOrder.setState(currentTokens[3]);\n currentOrder.setStateTax(new BigDecimal(currentTokens[4]));\n currentOrder.setProduct(currentTokens[5]);\n currentOrder.setArea(new BigDecimal(currentTokens[6]));\n currentOrder.setMaterialCost(new BigDecimal(currentTokens[7]));\n currentOrder.setLaborCost(new BigDecimal(currentTokens[8]));\n currentOrder.setTotalMaterialCost(new BigDecimal(currentTokens[9]));\n currentOrder.setTotalLaborCost(new BigDecimal(currentTokens[10]));\n currentOrder.setTotalTax(new BigDecimal(currentTokens[11]));\n currentOrder.setTotalCost(new BigDecimal(currentTokens[12]));\n \n orders.put(currentOrder.getOrderNumber(), currentOrder);\n }\n scanner.close();\n } else{\n try{\n file.createNewFile();\n } catch (IOException ex){\n throw new PersistenceException(\"Error! No orders from that date.\", ex);\n }\n }\n }",
"public void removeOrder() throws FlooringDaoException {\n boolean validDateOrderNumber = true;\n do {\n try {\n String date = view.getOrdersDate();\n int orderNumber = view.getOrderNumber();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n view.displayOrderToEditOrDelete(ordersByDate, orderNumber);\n validDateOrderNumber = true;\n boolean confirmValid = true;\n do {\n try {\n String confirm = view.confirmDelete(); //unfortunately this line has to execute for it to pick up an invalidOrder exception. not the best but serviceable\n service.removeOrder(date, orderNumber, confirm);\n confirmValid = true;\n } catch (InvalidDataException ex) {\n view.displayError(ex.getMessage());\n confirmValid = false;\n }\n } while (!confirmValid);\n validDateOrderNumber = true;\n\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDateOrderNumber = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Invalid order number. Order number must consist of digits 0-9 only with no decimal points.\");\n validDateOrderNumber = false;\n } catch (InvalidOrderNumberException ex) {\n view.displayError(ex.getMessage());\n validDateOrderNumber = false;\n }\n } while (!validDateOrderNumber);\n }",
"@Override\n public Order deleteOrder(String date, Order order) throws FlooringMasteryPersistenceException {\n Map<Integer,Order> childHash =ordersByDate.get(date);\n if(childHash == null){ // childHash is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, childHash = new HashMap<>()); // make childHash a new hashmap and then put it in the parent hashmap\n }\n return childHash.remove(order.getOrderId());\n \n }",
"public List<Order> getOrdersByDate(Date date);",
"public void removeOrder(LocalDate removalDate, int orderNum) throws InvalidDateException {\n\n try {\n\n List<Order> orders = dao.getOrdersByDate(removalDate);\n for (int i = 0; i < orders.size(); i++) {\n if (orderNum == orders.get(i).getOrderNumber()) {\n dao.removeOrder(orders.get(i), removalDate);\n }else if(i == orders.size() - 1){\n throw new InvalidDateException (\"Order does not exist\");\n }\n }\n\n } catch (FlooringMasteryDaoException e) {\n throw new InvalidDateException(\"The date you entered does not contain any orders.\");\n }\n\n }",
"@Override\n\tpublic void complete(int num) {\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(fileName);\n\t\t\tBufferedOutputStream bo = new BufferedOutputStream(fo);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(bo);\n\t\n\t\n\t\t\t\n\t\t\tfor(Order rs : ord) {\n\t\t\t\tif (rs.getNum()==num) {\n\t\t\t\t\t\tord.remove(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tout.writeObject(ord);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t\n\t\t} catch(IOException e) {\n\t\t\t\n\t\t} \n\t\t\n\t}",
"public List<PartDto> getAllPartsModify(LocalDate date, Integer order) throws Exception {\n List<Part> result = this.repoParts.findByLastModificationAfter(date);\n if(order > 0){\n orderParts(order, result);\n }\n return mapper.mapList(result, false);\n }",
"public void addOrderToFile(Order order, LocalDate date) {\n\n try {\n\n dao.addToFile(order, date);\n\n } catch (FlooringMasteryDaoException e) {\n\n }\n }",
"private void loadOrders(String date) throws FlooringMasteryPersistenceException{\n \n String filename = \"Orders_\" + date + \".txt\";\n Scanner scanner;\n\t \n try {\n // Create Scanner for reading the file\n scanner = new Scanner(\n new BufferedReader(\n new FileReader(filename)));\n } catch (FileNotFoundException e) { \n throw new FlooringMasteryPersistenceException(\n \"-_- Could not load data into memory.\", e);\n }\n // currentLine holds the most recent line read from the file\n\t String currentLine;\n\n\t String[] currentTokens;\n\n\t while (scanner.hasNextLine()) {\n\t // get the next line in the file\n\t currentLine = scanner.nextLine();\n\t // break up the line into tokens\n\t currentTokens = currentLine.split(DELIMITER);\n \n // convert each field in the file into a field of the Order DTO's constructor\n int orderNumber = Integer.parseInt(currentTokens[0]);\n String customerName = currentTokens[1];\n String state = currentTokens[2];\n \n BigDecimal taxRate = new BigDecimal(currentTokens[3]);\n BigDecimal taxRateScaled = taxRate.setScale(2, RoundingMode.HALF_UP);\n \n String productType = currentTokens[4];\n \n BigDecimal materialCost = new BigDecimal(currentTokens[5]);\n BigDecimal materialCostScaled = materialCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal laborCost = new BigDecimal(currentTokens[6]);\n BigDecimal laborCostScaled = laborCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal area = new BigDecimal(currentTokens[7]);\n BigDecimal areaScaled = area.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalMaterialCost = new BigDecimal(currentTokens[8]);\n BigDecimal totalMaterialCostScaled = totalMaterialCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalLaborCost = new BigDecimal(currentTokens[9]);\n BigDecimal totalLaborCostScaled = totalLaborCost.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal totalTax = new BigDecimal(currentTokens[10]);\n BigDecimal totalTaxScaled = totalTax.setScale(2, RoundingMode.HALF_UP);\n \n BigDecimal total = new BigDecimal(currentTokens[11]);\n BigDecimal totalScaled = total.setScale(2, RoundingMode.HALF_UP);\n \n \n\n Order currentOrder = new Order(orderNumber, customerName, state, taxRateScaled, productType, materialCostScaled, laborCostScaled, areaScaled, totalMaterialCostScaled, totalLaborCostScaled, totalTaxScaled, totalScaled);\n \n \n Map<Integer,Order> hm = ordersByDate.get(date); // get the child hashmap by date\n if(hm == null){ // hm is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, hm = new HashMap<>()); // make hm a new hashmap and then put it in the parent hashmap\n }\n \n hm.put(currentOrder.getOrderId(), currentOrder); // put in current order to child hashmap\n ordersByDate.put(date, hm); // put child hashmap with current order in parent hashmap\n \n }\n scanner.close();\n }",
"@Override\n public List<Order> getAllOrders(String date) throws FlooringMasteryPersistenceException {\n \n Map<Integer, Order> hm = ordersByDate.get(date); // get the hashmap by the date\n\n return new ArrayList<>(hm.values()); // get and return the list of orders from the <Integer, Order> hashmap\n \n }",
"void loadOrders(String date)\n throws FlooringMasteryPersistenceException;",
"public void removeAfterDate(Date d) {\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if item's expiry date before the date param\n if (currentItem.getExpiryDate().before(d)) {\n // remove it from the stock\n removeAtIndex(i);\n // because an item was removed from [i], we'd like to stay in same indexer\n // (because all items are \"shifted\" back in the array)\n i--;\n }\n }\n }",
"public void delete_from_list(String string)\n {\n String[] current_data = read();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n PrintWriter writer = new PrintWriter(dir);\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null && !line.contains(string))\n {\n writer.println(line);\n }\n }\n writer.close();\n }catch (Exception ex)\n {\n //debug2(\"write_contact_list failure\");\n }\n }",
"public void getOrdersByDate() throws FlooringDaoException {\n boolean validDate = true;\n do {\n try {\n String date = view.getOrdersDate();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n validDate = true;\n view.displayOrdersByDate(ordersByDate);\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDate = false;\n }\n } while (!validDate);\n }",
"public static void updateOverDueTask() {\n\t\tString prevDate = DateModifier.getPrevDate(DateModifier.getCurrDate());\r\n\r\n\t\tfor (int j = 0; j < 10; j++) { // Deletes files from 10 days ago\r\n\r\n\t\t\tString fileName = prevDate + \".txt\";\r\n\t\t\tfile_object = new File(fileName);\r\n\t\t\t\r\n\t\t\tif (file_object.exists()) {\r\n\t\t\t\t\r\n\t\t\t\t// read the content of the previous date file, put in the list\r\n\t\t\t\tprevDateTask = (new FileAccessor(fileName)).readContents();\r\n\r\n\t\t\t\tif (prevDateTask.size() != 0) {\r\n\t\t\t\t\tODTask = (new FileAccessor(OVERDUETXT)).readContents();\r\n\r\n\t\t\t\t\t// Transfer contents over\r\n\t\t\t\t\tfor (int i = 0; i < prevDateTask.size(); i++) {\r\n\t\t\t\t\t\tODTask.add(prevDate + \" \" + prevDateTask.get(i));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// write in file\r\n\t\t\t\t\t(new FileAccessor(OVERDUETXT, ODTask)).writeContents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Delete the previous date text file to save space\r\n\t\t\t\tfile_object.delete();\r\n\t\t\t}\r\n\r\n\t\t\t// Get previous date from the previous date for the next loop\r\n\t\t\tprevDate = DateModifier.getPrevDate(prevDate);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"protected void deleteItem(Emotion emotion,ArrayList<Emotion> list){\n// Iterates through the arraylist and tries to match the object date. Once a match is found, the item is removed.\n for (int i=0; i<list.size();i++){\n Emotion object = list.get(i);\n if (object.getDate().equals(emotion.getDate())){\n list.remove(i);\n }\n }\n }",
"Order removeOrder(String orderId) throws OrderBookOrderException;",
"private void deleteOrder() {\r\n // Scanners for individual variables\r\n Scanner sc = new Scanner(System.in);\r\n Scanner productIdScanner = new Scanner(System.in);\r\n Scanner dateScanner = new Scanner(System.in);\r\n\r\n // Mirrors back to the user their chosen menu option (in this case to delete a specific order)\r\n System.out.println(\"\\n\" + \"----------------------------------------------\");\r\n System.out.println(\" DELETE ORDER\");\r\n System.out.println(\"----------------------------------------------\");\r\n\r\n // Prompts user for E-mail on order\r\n System.out.println(\"Enter the E-mail associated with the Order you would like to Delete: \");\r\n String entered_email = sc.next(); // Reads user's input\r\n\r\n // If user's email does not contain \"@\" and \".com\" then it's invalid,\r\n // notify user and ask for a valid e-mail address\r\n if (!entered_email.contains(\"@\") && (!entered_email.contains(\".com\"))) {\r\n System.out.println(\"\\nSorry you entered an invalid E-mail!\");\r\n\r\n while(!entered_email.contains(\"@\") || (!entered_email.contains(\".com\"))){\r\n System.out.println(\"Please enter a correct E-mail address: \");\r\n entered_email = sc.next(); // Reads user's input\r\n }\r\n }\r\n\r\n System.out.println(\"\\nE-mail Entered: \" + entered_email); // Mirrors back entered E-mail\r\n System.out.println(\"----------------------------------------------\");\r\n\r\n // Create variables that will later hold requested specified information\r\n OrderItem itemSearchingFor = null;\r\n OrderItem combinationSearchingFor = null;\r\n\r\n System.out.println(\"* This is a list of all the orders associated with the E-Mail\" +\" (\" + entered_email+ \")\\n\");\r\n\r\n // Search the array; if entered E-mail is found/exists, print appropriate list of all orders pertaining to that entered E-mail\r\n // Its purpose is to return the list of orders pertaining to the user's entered E-mail\r\n // iterate through \"orderInfo\" array\r\n for (int i = 0; i < orderInfo.size(); i++) {\r\n if (entered_email.equalsIgnoreCase(orderInfo.get(i).getCustomerEmail())) { // if E-mail is found, retrieve info\r\n itemSearchingFor = orderInfo.get(i); // itemSearchingFor is set to values\r\n\r\n // Prints appropriate values\r\n System.out.println(\"Date: \" + itemSearchingFor.getOrderDate()\r\n + \", Customer E-mail: \" + itemSearchingFor.getCustomerEmail()\r\n + \", Customer Location: \" + itemSearchingFor.getCustomerLocation()\r\n + \", Product ID: \" + itemSearchingFor.getProductId()\r\n + \", Product Quantity: \" + itemSearchingFor.getQuantity());\r\n\r\n System.out.println(\"----------------------------------------------\");\r\n\r\n }\r\n }\r\n\r\n // If no orders were found/returned based on the user's entered email,\r\n // then notify user and redirect to Main Menu Selection Screen\r\n if (itemSearchingFor == null) {\r\n System.out.println(\" ! NOTHING FOUND/EMPTY !\");\r\n System.out.println(\"\\n* Please enter 'x' to be redirected to the Main Menu Selection Screen\");\r\n System.out.println(\"--------------------------------------------\");\r\n String exitAttribute = sc.next();\r\n if(exitAttribute.equalsIgnoreCase(\"x\")) {\r\n return;\r\n }\r\n else{\r\n while(!exitAttribute.equalsIgnoreCase(\"x\")) {\r\n System.out.println(\"Sorry please enter 'x' to be redirected! \");\r\n exitAttribute = sc.next();\r\n if(exitAttribute.equalsIgnoreCase(\"x\")) {\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Method will now prompt user for more specific data from the order wanting to delete\r\n System.out.println(\"\\nNow enter the date of the order you would like to delete\"); // Prompts date from order\r\n System.out.println(\"Note: *** Date must be in this format: (yyyy-mm-dd) Ex: (2020-01-14) ***\"); // Note to user regarding date format\r\n System.out.println(\"Please enter date now:\");\r\n String entered_date = dateScanner.next(); // Reads in user's entered date\r\n\r\n // If entered date is less than or greater than 10 characters it's invalid so notify user,\r\n // also if it doesn't contain \"-\" (dashes) it's invalid\r\n if (!entered_date.contains(\"-\") && entered_date.length() != 10){\r\n System.out.println(\"Invalid Date!\"); // Error Message\r\n\r\n // Keep on asking user for a valid date, repeats until user provides a valid input\r\n while(!entered_date.contains(\"-\") || entered_date.length() != 10) {\r\n System.out.println(\"\\n Please enter a valid Date (yyyy-mm-dd) Ex:(2020-01-14): \"); // Prompts user for a valid date\r\n entered_date = sc.next(); // Reads user's date\r\n }\r\n }\r\n\r\n System.out.println(\"Date Entered: \" + entered_date); // Mirrors back entered date\r\n\r\n System.out.println(\"\\nNow please enter the product id associated with the order you would like to delete: \");// Prompts product ID from order\r\n String entered_productId = productIdScanner.next(); // Reads in user's entered product ID\r\n\r\n // If product id is less than or greater than 12 characters it's invalid so notify user\r\n if (entered_productId.length() < 12 || entered_productId.length() > 12){\r\n System.out.println(\"Invalid entry: Must be 12 characters long.\"); // Error Message\r\n\r\n // Keep on asking user for a valid 12 character long product id, repeats until user provides a valid input\r\n while(entered_productId.length() != 12) {\r\n System.out.println(\"\\n Please enter a valid Product ID (12 character long): \"); // Prompts user for a valid (12 character long) product id\r\n entered_productId = sc.next(); // Reads user's product id\r\n }\r\n }\r\n\r\n System.out.println(\"Product ID Entered: \" + entered_productId); // Mirrors back entered product ID\r\n\r\n // newly iterate through \"orderInfo\" array, again\r\n for (int j = 0; j < orderInfo.size(); j++) {\r\n if (entered_productId.equalsIgnoreCase(orderInfo.get(j).getProductId()) // if appropriate product ID, E-mail, and date matches an order, retrieve info\r\n && entered_email.equalsIgnoreCase(orderInfo.get(j).getCustomerEmail())\r\n && entered_date.equalsIgnoreCase(orderInfo.get(j).getOrderDate())) {\r\n combinationSearchingFor = orderInfo.get(j); // combinationSearchingFor is set to the value\r\n\r\n // Prints appropriate values\r\n System.out.println(\"\\nRequested Order to Delete: \"+ \"\\n\" + \"----------------------------------------------\");\r\n System.out.println(\"Date: \" + combinationSearchingFor.getOrderDate()\r\n + \", Customer E-mail: \" + combinationSearchingFor.getCustomerEmail()\r\n + \", Customer Location: \" + combinationSearchingFor.getCustomerLocation()\r\n + \", Product ID: \" + combinationSearchingFor.getProductId()\r\n + \", Product Quantity: \" + combinationSearchingFor.getQuantity());\r\n\r\n System.out.println(\"----------------------------------------------\");\r\n // break;\r\n }\r\n }\r\n\r\n // If no information was found/exists based on order information entered from user, then notify user\r\n if (combinationSearchingFor == null) {\r\n System.out.println(\"\\n\" + \"----------------------------------------------\");\r\n System.out.println(\"Sorry, the order you are looking for was not found!\");\r\n System.out.println(\"----------------------------------------------\" + \"\\n\");\r\n }\r\n\r\n // If correct information was found, then ask user if they would like to delete the order\r\n if(combinationSearchingFor != null) {\r\n System.out.println(\"\\nAre you sure you want to delete this record?: 'yes' or 'no'\");\r\n String deleteAttribute = sc.next(); // Read in user's answer\r\n\r\n //if user enters yes then the item is deleted\r\n if (deleteAttribute.equalsIgnoreCase(\"yes\")) {\r\n orderInfo.remove(combinationSearchingFor); // Removes order from array\r\n System.out.println(\"\\nRecord has been SUCCESSFULLY deleted.\"); // Message to let user know of deletion\r\n System.out.println(\"\");\r\n }\r\n //if user enters 'no' or anything else, then order will not be deleted\r\n else {\r\n System.out.println(\"\\nRecord was NOT deleted.\\n\");\r\n }\r\n }\r\n\r\n // Asks user if they would like to delete another order\r\n System.out.println(\"Would you like to search for another order to delete? ('yes'/'no')\");\r\n String searchAttribute = sc.next();\r\n\r\n // if 'yes' then restarts deleteOrder() method again\r\n if (searchAttribute.equalsIgnoreCase(\"yes\")) {\r\n System.out.println(\"\\n\");\r\n deleteOrder();\r\n }\r\n // Else if 'no',then exits the deleteOrder() method\r\n else if (searchAttribute.equalsIgnoreCase(\"no\")) {\r\n System.out.println(\"\\n\");\r\n return;\r\n }\r\n // Else if other answer, shows an invalid response message and exits to main menu\r\n else if (searchAttribute != \"no\" || searchAttribute != \"yes\") {\r\n System.out.println(\"Invalid Response! Now Exiting to Menu!\\n\");\r\n }\r\n }",
"public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public void Buy (String bookName) throws IOException{ \r\n \r\n //Reads the \"Book.txt\" file. \r\n out = new FileReader(\"Book.txt\");\r\n read = new BufferedReader(out);\r\n \r\n String thisLine;\r\n String data = \"\";\r\n String newLine;\r\n while((thisLine = read.readLine()) != null){\r\n data += thisLine + \"\\r\\n\";\r\n }\r\n read.close();\r\n newLine = data.replaceAll(bookName, \"DELETED\");\r\n in = new FileWriter(\"Book.txt\");\r\n in.write(newLine);\r\n in.close();\r\n }",
"private void removefromstore()\r\n\t{\r\n\t\tFile inputFile = new File(\"InventoryItems.csv\");\r\n\t\tFile tempFile = new File(\"temp.csv\");\r\n\t\tString cvsSplitBy = \",\";\r\n\t\t\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(inputFile));\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\r\n\t\t\tString currentLine;\r\n\t\t\t\r\n\t\t\twhile((currentLine = reader.readLine()) != null) {\r\n\t\t\t // trim newline when comparing with lineToRemove\r\n\t\t\t\tString[] tempItem = currentLine.split(cvsSplitBy);\r\n\t\t\t if(tempItem[0].equals(this.id)) \r\n\t\t\t \tcontinue;\r\n\t\t\t writer.write(currentLine + System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\t\t\twriter.close(); \r\n\t\t\treader.close(); \r\n\t\t\t\r\n\t\t\t//clear the file\r\n\t\t\tPrintWriter pwriter = new PrintWriter(inputFile);\r\n\t\t\tpwriter.print(\"\");\r\n\t\t\tpwriter.close();\r\n\t\t\t\r\n\t\t\t//copy back the data\r\n\t\t\treader = new BufferedReader(new FileReader(tempFile));\r\n\t\t writer = new BufferedWriter(new FileWriter(inputFile));\r\n\t\t\t\r\n\t\t\twhile((currentLine = reader.readLine()) != null) {\r\n\t\t\t writer.write(currentLine + System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\t\t\twriter.close(); \r\n\t\t\treader.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} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\r\n\r\n\t\t\r\n\t}",
"@Override\n public List<Order> getAllOrders(LocalDate date) throws PersistenceException{\n return new ArrayList<Order>(orders.values());\n }",
"public static void Delete() throws FileNotFoundException{\n System.out.println(\"[S]elected, [A]ll\");\n Scanner deleteEventScanner = new Scanner(System.in);\n String deleteOption = deleteEventScanner.next();\n if(deleteOption.equalsIgnoreCase(\"s\")){\n System.out.println(\"Enter the Date to delete all events scheduled on that date(MM/DD/YYYY\");\n String eventsToDelete = deleteEventScanner.next();\n int monthToDelete= Integer.parseInt(eventsToDelete.substring(0,2));\n int dateToDelete = Integer.parseInt(eventsToDelete.substring(3,5));\n int yearToDelete = Integer.parseInt(eventsToDelete.substring(6));\n delete.set(yearToDelete, monthToDelete-1, dateToDelete);\n for(int i=0;i<events.size();i++){\n if(events.get(i).getMonth()==delete.get(Calendar.MONTH)&&events.get(i).getDate()==delete.get(Calendar.DATE)&&events.get(i).getYear()==delete.get(Calendar.YEAR)){\n events.remove(i);\n }\n }\n \n \n }\n else if(deleteOption.equalsIgnoreCase(\"a\")){\n events.removeAll(events);\n }\n menu();\n }",
"public List<PartDto> getAllPartsPriceMod(LocalDate date, Integer order) throws Exception {\n List<PartRecord> result = this.repoPartRecords.findByLastModificationAfter(date);\n if (order > 0){\n orderPartsRecords(order, result);\n }\n List<Part> parts = getRelatedParts(result);\n return mapper.mapList(parts, true);\n }",
"void remove(Order order);",
"public void deletePayment(int num) {\n \titems.remove(num);\n \t try {\n FileWriter fw = new FileWriter(jsonFile);\n PrintWriter pw = new PrintWriter(fw);\n String str[] = Data.toString().split(\",\");\n int i;\n for(i=0; i<str.length-1; i++) {\n pw.println(str[i]+\",\");\n }\n pw.println(str[i]);\n pw.close();\n fw.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }",
"private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }",
"private void deleteOrderFromDatabase() {\n SQLiteDatabase sqLiteDatabase = db.getWritableDatabase();\n sqLiteDatabase.delete(\"ORDERS\",null,null);\n sqLiteDatabase.close();\n }",
"public void deleteByOrder(Order order);",
"@Override\r\n\tpublic void deletePizzaRecord(int pId) {\n\t\ttempList = new ArrayList<PizzaBean>();\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tpizza = (List<PizzaBean>) ois.readObject();\r\n\t\t\tfor (PizzaBean p : pizza) {\r\n\t\t\t\tif (p.getpId() == pId) {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList.add(p);\r\n\t\t\t\t}\r\n\t\t\t\tfos = new FileOutputStream(tempFile);\r\n\t\t\t\toos = new ObjectOutputStream(fos);\r\n\t\t\t\toos.writeObject(tempList);\r\n\t\t\t\toriginal.delete();\r\n\t\t\t\ttempFile.renameTo(original);\r\n\t\t\t\toos.flush();\r\n\t\t\t}\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\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Pizza deleted Successfully\");\r\n\r\n\t}",
"Order removeOrder(String orderNumber)\n throws FlooringMasteryPersistenceException;",
"@Override\n\tpublic Response deleteOrder(BookDeleteRequest request) {\n\t\treturn null;\n\t}",
"public Order delete(Order order);",
"public synchronized boolean remove (Message message) throws IOException {\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n FileWriter fileWriter = null;\n BufferedWriter bufferedWriter = null;\n\n try {\n ImprovedFile temp = new ImprovedFile(file.getName() + \".backup\");\n file.renameTo(temp);\n fileReader = new FileReader(temp);\n fileWriter = new FileWriter(file);\n bufferedReader = new BufferedReader(fileReader);\n bufferedWriter = new BufferedWriter(fileWriter);\n\n String line = bufferedReader.readLine();\n while (line != null) {\n Message fileMessage = Message.readLongFormat(line);\n if (!fileMessage.equals(message)) {\n bufferedWriter.write(line);\n bufferedWriter.newLine();\n }\n line = bufferedReader.readLine();\n }\n } finally {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n\n if (fileReader != null) {\n fileReader.close();\n }\n\n if (bufferedWriter != null) {\n bufferedWriter.close();\n }\n\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n\n return list.remove(message);\n }",
"@Override\n public boolean removeOrder(Order order) throws OrderNotFoundException, ChangeOrderException {\n String orderNumber = order.getOrderNumber();\n\n if (orderMap.containsKey(orderNumber)) {\n FileHandler orderHandler = new FileHandler(orderDir);\n List<Order> orderList = orderMap.get(orderNumber);\n\n orderMap.remove(orderNumber);\n\n if (orderExists(orderNumber)) {\n throw new ChangeOrderException(\"Problem removing order... \");\n }\n\n try {\n orderHandler.removeOrderFromAll(orderList, orderDir);\n\n } catch (BackupFileException | MissingFileException | FileIOException e) {\n throw new ChangeOrderException(\"Problem removing order... \");\n }\n return true;\n\n } else {\n throw new OrderNotFoundException(\"Error: order does not exist...\");\n }\n\n }",
"public void removeOrder(){\n foods.clear();\n price = 0;\n }",
"public static void saveReceipt()\r\n\t{\r\n\t\tPrintWriter listWriter = null;\r\n\t\tPrintWriter contentWriter = null;\r\n\t\tnewReceipt = getTimeStamp();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tlistWriter = new PrintWriter(new FileOutputStream(RECEIPT_LIST_FILE, true));\r\n\t\t\tcontentWriter = new PrintWriter(RECEIPT_PATH + newReceipt);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\t\r\n\t\tlistWriter.println(newReceipt);\r\n\t\tfor(int count=0; count < listModel.getSize(); count++)\r\n\t\t\tcontentWriter.println(listModel.elementAt(count));\r\n\t\t\r\n\t\tlistWriter.close();\r\n\t\tcontentWriter.close();\r\n\t\tclearReceipt();\r\n\t}",
"void remove(Order o);",
"public void removeOrderFromTheStock(Map<String, Integer> order) {\n musicShopStock.getStock();\n //musicShopStock.addGoods(3, 3, 3);\n for (Map.Entry<String, Integer> orderEntry : order.entrySet()) {\n String goodsType = orderEntry.getKey();\n Integer needToOrder = orderEntry.getValue();\n int numberDeleteGoods = 0;\n Iterator<MusicalInstrument> iterator = musicShopStock.getStock().iterator();\n while (iterator.hasNext()) {\n MusicalInstrument instrument = iterator.next();\n if (instrument.getType().equals(goodsType) && numberDeleteGoods < needToOrder) {\n iterator.remove();\n numberDeleteGoods++;\n }\n }\n }\n musicShopStock.showGoods();\n }",
"public void saveFile() throws FileNotFoundException {\r\n try {\r\n PrintWriter out = new PrintWriter(FILE_NAME);\r\n //This puts back the labels that the loadFile removed\r\n out.println(\"date,cust_email,cust_location,product_id,product_quantity\");\r\n int i = 0;\r\n\r\n while (i < orderInfo.size()) {\r\n String saved = orderInfo.get(i).toString();\r\n out.println(saved);\r\n i++;\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n }\r\n\r\n }",
"private void removeContentsFromFile() {\n Log.d(\"debugMode\", \"deleting entire file contents...\");\n try {\n FileOutputStream openFileInput = openFileOutput(\"Locations.txt\", MODE_PRIVATE);\n PrintWriter printWriter = new PrintWriter(openFileInput);\n printWriter.print(\"\");\n printWriter.close();\n Log.d(\"debugMode\", \"deleting entire file contents successful\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testGetOrdersByDate() {\n\n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderListByDate = service.getOrdersByDate(ld);\n List<Order> filteredList = new ArrayList<>();\n\n for (Order currentOrder : orderListByDate) {\n if (currentOrder.getOrderDate().contains(\"06232017\")) {\n filteredList.add(currentOrder);\n }\n }\n\n assertEquals(2, filteredList.size());\n }",
"public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public void removeByTodoDateTime(Date todoDateTime);",
"public void generateBillFile(int orderId, ArrayList<MenuItem> items, float price, Date date) {\r\n String name = \"Bill\" + orderId;\r\n this.output = new File(name);\r\n try {\r\n output.createNewFile();\r\n writer = new FileWriter(output);\r\n\r\n writer.write(\"Order id: \" + orderId + \"\\n \\n\");\r\n writer.write(\"Ordered items: \\n\");\r\n for (MenuItem i: items) {\r\n writer.write(i.toString() + \"\\n\");\r\n }\r\n writer.write(\"Total price: \" + price + \"\\n\");\r\n writer.write(date + \"\");\r\n\r\n writer.close();\r\n } catch (Exception e) {\r\n }\r\n }",
"@Test\n public void testRemoveAnOrder() {\n OrderOperations instance = new OrderOperations();\n int orderNumber = 1;\n String date = \"03251970\";\n String customerName = \"Barack\";\n String state = \"MI\";\n String productType = \"Wood\";\n double area = 700;\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n DAOInterface testInterface = (DAOInterface) ctx.getBean(\"productionMode\");\n String productInfo, taxes;\n try {\n productInfo = testInterface.readFromDisk(\"productType.txt\");\n } catch (FileNotFoundException e) {\n productInfo = \"\";\n }\n\n try {\n taxes = testInterface.readFromDisk(\"taxes.txt\");\n } catch (FileNotFoundException e) {\n taxes = \"\";\n }\n instance.addOrder(customerName, date, state, productType, area, taxes, productInfo);\n assertEquals(instance.getOrderMap().get(date).size(), 1);\n instance.removeAnOrder(date, orderNumber, \"y\");\n assertEquals(instance.getOrderMap().get(date).size(), 0);\n \n }",
"public void getOrderedList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < olist.size(); i++) {\n\n\t\t\t\tfwriter.append(olist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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\t}",
"@Override\r\n\tpublic void deleteSoftDrinkRecord(int sId) {\n\t\ttempList2 = new ArrayList<SoftDrinkBean>();\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original2);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tdrink = (List<SoftDrinkBean>) ois.readObject();\r\n\t\t\tfor (SoftDrinkBean s: drink) {\r\n\t\t\t\tif ( s.getsId()== sId) {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList2.add(s);\r\n\t\t\t\t}\r\n\t\t\t\tfos = new FileOutputStream(tempFile2);\r\n\t\t\t\toos = new ObjectOutputStream(fos);\r\n\t\t\t\toos.writeObject(tempList2);\r\n\t\t\t\toriginal.delete();\r\n\t\t\t\ttempFile2.renameTo(original2);\r\n\t\t\t}\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\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"SoftDrink deleted Successfully\");\r\n\r\n\t}",
"public List<Order> displayOrders(LocalDate date) throws FlooringMasteryDaoException {\n\n List<Order> orders = dao.getOrdersByDate(date);\n return orders;\n\n }",
"public List<Reservation> saveToFile() {\n\t\treturn rList;\n\t}",
"void deleteOrder(Long id);",
"public void removeOrganDeceased(LocalDate dateOfDeath) {\n DonorReceiver account = accountManager.getAccountsByNHI(selectedRecord.getNhi()).get(0);\n TransplantWaitingList.removeOrganDeceased(selectedRecord, accountManager, dateOfDeath);\n PageNav.loadNewPage(PageNav.TRANSPLANTLIST);\n }",
"private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Delete the book only if mBookId matches DEFAULT_BOOK_ID\n if (mBookId != DEFAULT_BOOK_ID) {\n bookEntry.setId(mBookId);\n mDb.bookDao().deleteBook(bookEntry);\n }\n finish();\n }\n });\n\n }",
"void writeToFile () throws IOException{\n FileWriter deleteFile = new FileWriter(\"Resolved Ticket of \" + this.resovedDate + \".txt\");\n BufferedWriter FileDeleted = new BufferedWriter(deleteFile);\n\n FileDeleted.write(\"Resolution: \" + this.Resolution + \" ; Date: \" + this.resovedDate);\n FileDeleted.close();\n }",
"public void removeOrderDetails(final Map idList);",
"public void addOrderToFile(Order order) {\n\n try {\n dao.addToFile(order, date);\n\n } catch (FlooringMasteryDaoException e) {\n\n }\n }",
"@Override\r\n public void remove() {\n ArrayList<String>Lines=new ArrayList<>();\r\n String Path = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n \r\n String RID=id.getText();\r\n String Taskname = name.getText();\r\n String startDate = date_start.getText();\r\n String EndDate = date_finish.getText();\r\n String LocalStatus = status.getText();\r\n String MemberID = MemberId.getText();\r\n \r\n Lines.add(RID);\r\n Lines.add(Taskname);\r\n Lines.add(startDate);\r\n Lines.add(EndDate);\r\n Lines.add(LocalStatus);\r\n Lines.add(MemberID);\r\n \r\n FileFacade facade = new FileFacade();\r\n facade.remove(Path, Lines);\r\n \r\n }",
"public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }",
"@DELETE\n @Path(\"/{nom}/{date}\")\n public Response remove(@PathParam(\"nom\") String nom, @PathParam(\"date\") String date) {\n DataAccess dataAccess = DataAccess.begin();\n try {\n dataAccess.deleteEvent(nom, date);\n dataAccess.closeConnection(true);\n return Response.status(Response.Status.NO_CONTENT).build();\n } catch (Exception e) {\n dataAccess.closeConnection(false);\n return Response.status(Response.Status.NOT_FOUND).entity(\"Event not found\\n\").build();\n }\n }",
"public void delete(int search) {\n\t\timportFile();\n\t\tfor (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getID() == search) {\n CarerAccounts.remove(i);\n\t\t\t}\n\t\t}\n\t\texportFile();\n\t}",
"public void readHistory()throws Exception {\n int currentline = 0;\n File myObj = new File(\"order_history.txt\");\n Scanner myReader = new Scanner(myObj);\n outputHistoryObj = new Order[1];\n while (myReader.hasNextLine()) {\n Pizza[] list = new Pizza[1];\n String[] commentparts = null; //This is superstitious, sorry\n String[] fullparts = myReader.nextLine().split(\" // \");\n String[] pizzaparts = fullparts[1].split(\" , \");\n for(int i=0; i<=pizzaparts.length-1; i++){\n if(pizzaparts[i].contains(\" & \")){\n commentparts = pizzaparts[i].split(\" & \");\n list[i] = new Pizza(Menu.list[Integer.parseInt(commentparts[0])-1].getName(), Menu.list[Integer.parseInt(commentparts[0])-1].getIngredients(), commentparts[1], Integer.parseInt(commentparts[0]), Menu.list[Integer.parseInt(commentparts[0])-1].getPrice());\n } else {\n list[i] = new Pizza(Menu.list[Integer.parseInt(pizzaparts[i])-1].getName(), Menu.list[Integer.parseInt(pizzaparts[i])-1].getIngredients(), \"\", Integer.parseInt(pizzaparts[i]), Menu.list[Integer.parseInt(pizzaparts[i])-1].getPrice());\n }\n list = Arrays.copyOf(list, list.length + 1); //Resize name array by one more\n }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date parsed = format.parse(fullparts[3]);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(parsed.getTime());\n outputHistoryObj[currentline] = new Order(fullparts[0], Integer.parseInt(fullparts[2]), timestamp, list);\n outputHistoryObj = Arrays.copyOf(outputHistoryObj, outputHistoryObj.length + 1); //Resize name array by one more\n currentline++;\n }\n myReader.close();\n }",
"public static void writeOrderForm(ArrayList<ArrayList<Furniture>> purchased, int price){\n String outputFile = \"orderform.txt\";\n File toWrite = new File(outputFile);\n ArrayList<String> ids = new ArrayList<String>();\n String orgOrder = getRequestType() + \" \" + getFurnitureRequest() + \", \" + getRequestNum();\n\n try{\n // adds ID of each item purchased to a list of IDs\n for(int i = 0; i < purchased.size(); i++){\n for(int j = 0; j < purchased.get(i).size(); j++){\n ids.add(purchased.get(i).get(j).getID());\n }\n }\n\n if(toWrite.exists() && toWrite.isFile()){\n toWrite.delete();\n }\n toWrite.createNewFile();\n\n FileWriter writer = new FileWriter(outputFile);\n BufferedWriter out = new BufferedWriter(writer);\n // writes an output file contains a summary of the order\n out.write(\"Furniture Order Form \\n\\n\");\n out.write(\"Faculty Name:\\n\");\n out.write(\"Contact:\\n\");\n out.write(\"Date:\\n\\n\");\n\n out.write(\"Original Request: \" + orgOrder + \"\\n\\n\");\n out.write(\"Items Ordered\");\n\n for(String i : ids){\n out.write(\"\\nID: \" + i);\n }\n out.write(\"\\n\\nTotal Price: \" + price);\n\n out.flush();\n out.close();\n }catch(Exception e){\n System.out.println(e);\n System.exit(0);\n }\n }",
"public void unsetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATECLOSE$4, 0);\n }\n }",
"public static void deleteRefRecord(int referenceeState,String selectedItem) throws FileNotFoundException{\n String filePath=\"userData\\\\\";\n if(referenceeState==1){\n filePath = \"userData\\\\departments.txt\";\n }else if(referenceeState==2){\n filePath = \"userData\\\\specializedArea.txt\";\n \n }\n File file = new File(filePath);\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n // get lines from txt file\n Object[] tableLines = br.lines().toArray();\n String[] stringArray = Arrays.copyOf(tableLines,tableLines.length, String[].class);\n ArrayList<String> list = new ArrayList<String>(Arrays.asList(stringArray));\n // extratct data from lines and add to the object array list\n for(int i = 0; i < stringArray.length; i++){\n String line = stringArray[i].toString().trim();\n if(line.equals(selectedItem)){\n list.remove(selectedItem);\n }\n }\n //deleting a all lines in the txt\n PrintWriter writer = new PrintWriter(file);\n writer.print(\"\");\n writer.close();\n //writing existing files to txt \n for(String loopObj: list){\n if(referenceeState==1){\n writingDepartment(loopObj);\n }else if(referenceeState==2){\n writingSpecializedArea(loopObj);\n } \n br.close();\n \n }\n \n }catch (Exception ex){\n Logger.getLogger(homeAdminGUI.class.getName()).log(Level.SEVERE, null, ex);\n \n }\n}",
"public static void removeOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Removing ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to remove the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\n\t\t\tdo {\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (listOfOrderedItems.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"There is no ordered items!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (i = 0; i < listOfOrderedItems.size(); i++) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print(\"Select an ordered item to remove from order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\tcheck = orderedItemManager.removeOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Ordered item removed from order successfully!\");\n\t\t\t\t\t\tlistOfOrderedItems.remove(orderedItem);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to remove ordered item from order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of removing items************\");\n\t}",
"public void writeData(ArrayList<Task> orderList) {\n try {\n FileWriter fw = new FileWriter(filePath, false);\n for (Task task : orderList) {\n fw.write(task.fileFormattedString() + \"\\n\");\n }\n fw.close();\n\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }",
"public void writeToRestaurantFile()\r\n {\r\n\ttry(ObjectOutputStream toRestaurantFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/restaurant.dta\")))\r\n\t{\r\n toRestaurantFile.writeObject(restaurant);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Restaurant objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public synchronized static void cleanOldFiles(Date old){\n\t\tfor(File item:context.getCacheDir().listFiles()){\n\t\t\tDate last = new Date(item.lastModified());\n\t\t\tif(last.before(old))\n\t\t\t\titem.delete();\n\t\t}\n\t}",
"public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public Order getOrder(LocalDate date, int orderNum) throws InvalidDateException {\n Order editedOrder = new Order();\n try {\n List<Order> orders = dao.getOrdersByDate(date);\n\n for (Order order : orders) {\n if (order.getOrderNumber() == orderNum) {\n editedOrder = order;\n }\n }\n\n if (editedOrder.getOrderNumber() == null) {\n throw new InvalidDateException(\"That order does not exist.\");\n\n }\n } catch (FlooringMasteryDaoException e) {\n throw new InvalidDateException(\n \"Order Number: \" + orderNum + \" does not exist for that date\");\n }\n\n return editedOrder;\n }",
"void close(Order order);",
"public void writeBuyingHistory(ArrayList<String> boughtBooks)throws IOException\n {\n String toWrite = new String();\n int i =0;\n if(hisMap.get(Customer.getInstance().getUsername())==null)\n {\n hisMap.put(Customer.getInstance().getUsername(),new ArrayList<String>());\n }\n else\n {\n i=0;\n while (i<boughtBooks.size())\n {\n hisMap.get(Customer.getInstance().getUsername()).add(boughtBooks.get(i));\n i++;\n }\n }\n\n\n i=0;\n\n toWrite+=Customer.getInstance().getUsername()+\",\";\n while (i<hisMap.get(Customer.getInstance().getUsername()).size()-boughtBooks.size())\n {\n toWrite+=hisMap.get(Customer.getInstance().getUsername()).get(i)+\"%\";\n i++;\n }\n ;\n i=0;\n while (i<boughtBooks.size())\n {\n toWrite+=boughtBooks.get(i);\n if(i!=boughtBooks.size()-1)\n toWrite+=\"%\";\n i++;\n }\n\n\n\n\n List<String> lines = Files.readAllLines(Paths.get(\"history.txt\"));\n if(specificLine>lines.size()-1)\n {\n lines.add(toWrite);\n }\n else {\n lines.set(specificLine, toWrite);\n }\n /*write part*/\n BufferedWriter bw = null;\n FileWriter fw = null;\n try {\n int j=0;\n String content = \"\";\n while (j<lines.size())\n {\n content+= lines.get(j)+\"\\n\";\n j++;\n }\n\n fw = new FileWriter(\"history.txt\");\n bw = new BufferedWriter(fw);\n bw.write(content);\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n } finally {\n\n try {\n\n if (bw != null)\n bw.close();\n\n if (fw != null)\n fw.close();\n\n } catch (IOException ex) {\n\n ex.printStackTrace();\n\n }\n\n }\n\n }",
"@Test\n public void testGetOrdersByDate() throws Exception {\n Order order = new Order();\n order.setOrderNumber(1);\n order.setCustomerName(\"John\");\n order.setState(\"OH\");\n order.setTaxRate(new BigDecimal(\"6.75\"));\n order.setProductType(\"Wood\");\n order.setArea(new BigDecimal(\"250\"));\n order.setCostPerSquareFoot(new BigDecimal(\"100\"));\n order.setMaterialCostTotal(new BigDecimal(\"50.00\"));\n order.setLaborCostPerSquareFoot(new BigDecimal(\"500\"));\n order.setLaborCost(new BigDecimal(\"15.00\"));\n order.setTax(new BigDecimal(\"66\"));\n order.setTotal(new BigDecimal(\"500\"));\n String fileDate = \"12-12-1987\";\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM-dd-yyyy\");\n LocalDate orderDate = LocalDate.parse(fileDate, formatter);\n order.setOrderDate(orderDate);\n service.addOrder(order);\n service.getOrdersByDate(orderDate);\n\n assertEquals(1, service.getOrdersByDate(orderDate).size()); \n }",
"@Test\n public void testEditExistingOrderGetOrderByIDAndDeleteOrder() throws FlooringMasteryDoesNotExistException, FlooringMasteryFilePersistenceException {\n\n Order order3 = new Order(\"002\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"2017-06-23\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order originalOrder = service.getOrderByID(\"002\");\n assertEquals(\"Bree\", originalOrder.getCustomerName());\n\n Order orderToEdit = service.editExistingOrder(originalOrder.getOrderID(), order3, \"production\");\n \n assertEquals(\"Bree\", orderToEdit.getCustomerName());\n \n Order editedOrder = service.getOrderByID(\"002\");\n\n assertEquals(\"002\", editedOrder.getOrderID());\n assertEquals(\"Paul\", editedOrder.getCustomerName());\n \n Order deletedOrder = service.deleteOrder(service.getOrderByID(\"002\"), service.getConfig());\n assertEquals(\"Paul\", deletedOrder.getCustomerName());\n \n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderList = service.getOrdersByDate(ld);\n assertEquals(1, orderList.size());\n }",
"public void removeFromReminders(List<Date> reminders);",
"@Override\n public void delete(){\n Integer Pointer=0;\n FileWriter editDetails = null;\n ArrayList<String> lineKeeper = saveText();\n\n if(lineKeeper.contains(getUsername())){\n Pointer=lineKeeper.indexOf(getUsername());\n Pointer=Pointer-1;\n for(int i=1;i<=8;i++){\n lineKeeper.remove(Pointer+1);\n }//end for\n homeAddress.delete(lineKeeper);\n }\n try{\n editDetails= new FileWriter(\"employees.txt\",false);\n for( int i=0;i<lineKeeper.size();i++){\n editDetails.append(lineKeeper.get(i));\n editDetails.append(System.getProperty(\"line.separator\"));\n }//end for\n editDetails.close();\n editDetails = null;\n }//end try\n catch (IOException ioe) {}//end catch\n }",
"public void writeEvent(){\n for (int i = 0; i<eventlist.size();i++){\n try {\n FileWriter fw = new FileWriter(eventFile, true);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(eventlist.get(i).getConfirm()); //this is the username of whoever is writing the event, which will be used as a confirmation later\n bw.newLine();\n bw.write(eventlist.get(i).getEventName());\n bw.newLine();\n bw.write(eventlist.get(i).getEventType());\n bw.newLine();\n bw.write(eventlist.get(i).getDescription());\n bw.newLine();\n bw.write(eventlist.get(i).getPriority());\n bw.newLine();\n bw.write(eventlist.get(i).getDate());\n bw.newLine();\n eventlist.clear(); //clears the ArrayList to prevent duplicate events showing up\n bw.close();\n //each event will take up 6 lines in the file\n }\n catch(IOException ex){\n ex.printStackTrace();\n System.out.println(\"Error writing to files\");\n }\n } \n \n }",
"public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;",
"private void writeSingleOrderToDirectory(List<Order> orderList)\n throws FileIOException,\n BackupFileException {\n writeSingleOrderToDirectory(orderList, \"\");\n }",
"public void removeOrderLine(int index) {\n orderLines.remove(index);\n }",
"private ArrayList<Task> filterByDate(ArrayList<Task> toFilter, Date date) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n Calendar calAim = Calendar.getInstance();\n Calendar calTest = Calendar.getInstance();\n calAim.setTime(date);\n\n //remove all on different dates\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Event.class)) {\n Event temp = (Event) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Period.class)) {\n Period temp = (Period) toFilter.get(i);\n calTest.setTime(temp.getStart());\n }\n boolean sameDay = calAim.get(Calendar.DAY_OF_YEAR) == calTest.get(Calendar.DAY_OF_YEAR)\n && calAim.get(Calendar.YEAR) == calTest.get(Calendar.YEAR);\n if (!sameDay) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }",
"private void expungeAllHistoricFiles()\r\n {\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.historic_details_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files - complete\");\r\n\r\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n private void storeHistory(OrderData obj)\n {\n LocalDate currentdate = LocalDate.now();\n Month currentMonth = currentdate.getMonth();\n int currentYear = currentdate.getYear();\n\n// Date date=new Date();\n// int month=date.getMonth();\n// int year=date.getYear();\n\n //this part is to store order\n final String yea=String.valueOf(currentYear);\n final String mon=currentMonth.toString();\n final String day=String.valueOf(currentdate.getDayOfMonth());\n final String dat=yea+\"-\"+mon+\"-\"+day;\n\n\n db.collection(\"shop\")\n .document(new Auth().getUId())\n .collection(\"orders\")\n .document(new Auth().getUId())\n .collection(dat)\n .add(obj)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //Log.d(TAG, \"DocumentSnapshot added with ID: \" + documentReference.getId());\n //Toast.makeText(getContext(),\"DocumentSnapshot added with ID: \" + documentReference.getId(), Toast.LENGTH_SHORT).show();\n //orderList.remove(position);\n\n\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error adding document\", e);\n //Toast.makeText(getContext(),\"Erroe adding doc\", Toast.LENGTH_SHORT).show();\n }\n });\n\n\n }",
"public static void writeUnique(String filePath, File outFile ) throws Exception\n\t{\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(outFile));\t\t\n\t\tList<FastaSequence> fastaList = FastaSequence.readFastaFile(filePath);\t\n\t\tHashMap<String, Integer> hash_map = new HashMap<String, Integer>();\n\t\t\n\t\t//iterate through lsit object and append to has map value\n\t\tfor( FastaSequence fs : fastaList) \n\t\t{\n\t\t\tif(hash_map.get(fs.getSequence())!= null) {\n\t\t\t\thash_map.put(fs.getSequence(),hash_map.get(fs.getSequence())+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\thash_map.put(fs.getSequence(),1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<fastaOrder> orderArray = new ArrayList<fastaOrder>();\n\t\t//populate objects and file em into an array\n\t\tfor(Map.Entry<String,Integer> entry : hash_map.entrySet()) \n\t\t{\n\t\t\t//orderArray[counter] = new fastaOrder(entry.getValue(), entry.getKey() );\n\t\t\t//fastaOrder objHolder = new fastaOrder((Integer)entry.getValue(), entry.getKey().toString());\n\t\t\tint count = entry.getValue();\n\t\t\tString seq = entry.getKey();\n\t\t\tfastaOrder objHolder = new fastaOrder(count,seq);\n\t\t\torderArray.add(objHolder);\n\t\t}\n\t\t\t//return output as file\n\t\t\tCollections.sort(orderArray);\n\t\t\tfor(fastaOrder i : orderArray) {\n\t\t\t\tSystem.out.println(i.getCount() + \" \" + i.getSeq());\n\t\t\t\twriter.write(i.getCount() + \" \" + i.getSeq()+\"\\n\");\n\t\t\t}\n\t\t\n\t\twriter.close();\n\t}",
"public static void delete() {\n\t\tSystem.out.println(\"Do you want to delete events on a [S]elected date or [A]ll events?\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tif (sc.hasNextLine()) {\n\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\tif (input.equals(\"s\")) {\n\t\t\t\tSystem.out.println(\"s\");\n\t\t\t\tSystem.out.println(\"What day do you want to delete the events on? In MM/DD/YYYY\");\n\t\t\t\tString date = sc.nextLine();\n\t\t\t\tint month = Integer.parseInt(date.substring(0, 2));\n\t\t\t\tint day = Integer.parseInt(date.substring(3, 5));\n\t\t\t\tint year = Integer.parseInt(date.substring(6, 10));\n\t\t\t\tGregorianCalendar toDelete = new GregorianCalendar(year, month, day);\n\t\t\t\tcalendarToEvent.remove(toDelete);\n\t\t\t\tquit(); //to save the new treemap to the events.txt\n\t\t\t\tSystem.out.println(\"Removed\");\n\t\t\t} else if (input.equals(\"a\")) {\n\t\t\t\tSystem.out.println(\"a\");\n\t\t\t\tSystem.out.println(\"Deleting all events\");\n\t\t\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t\t\t}\n\t\t}\n\t}",
"public void removePerson(int index, String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tFile file1 = new File(file);\n\n\t\tJSONObject jsonObject = (JSONObject) arrayList.get(index);\n\t\tSystem.out.println(arrayList.get(index));\n\t\tarrayList.remove(jsonObject);\n\t\tmapper.writeValue(file1, arrayList);\n\t}",
"public void deleteOrders(ArrayList<ArrayList<Furniture>> toDelete){\n for(int i = 0; i < toDelete.size(); i++){\n for(int j = 0; j < toDelete.get(i).size(); j++){\n deleteItem(toDelete.get(i).get(j).getID());\n }\n }\n }",
"void unsetFoundingDate();",
"private static JSONObject removeObject(JSONArray bookList,Book book){\r\n bookList.remove(book.toJson()); \r\n JSONObject bookObject = new JSONObject();\r\n bookObject.put(\"books\", bookList);\r\n return bookObject;\r\n }",
"boolean deleteOrder(long orderId);",
"public void file(OrderReceipt r) {\r\n\t\tthis.receiptissued.add(r);\r\n\t}",
"@Override\r\n\tpublic void deleteIceCreamRecord(int iceId) {\n\t\ttempList1 = new ArrayList<IceCreamBean>();\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original1);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\ticeCream = (List<IceCreamBean>) ois.readObject();\r\n\t\t\tfor (IceCreamBean p : iceCream) {\r\n\t\t\t\tif (p.getIceId() == iceId) {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList1.add(p);\r\n\t\t\t\t}\r\n\t\t\t\tfos = new FileOutputStream(tempFile1);\r\n\t\t\t\toos = new ObjectOutputStream(fos);\r\n\t\t\t\toos.writeObject(tempList1);\r\n\t\t\t\toriginal1.delete();\r\n\t\t\t\ttempFile1.renameTo(original1);\r\n\t\t\t}\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\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"iceCream deleted Successfully\");\r\n\r\n\t}",
"boolean delete(CustomerOrder customerOrder);",
"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 }",
"public void deleteBook(int num)\n { \n bookList.remove(num); \n }",
"synchronized public List<StickyRecord> removeExpired()\n {\n List<StickyRecord> removed = new ArrayList();\n long now = System.currentTimeMillis();\n Iterator<StickyRecord> i = _records.values().iterator();\n while (i.hasNext()) {\n StickyRecord record = i.next();\n if (!record.isValidAt(now)) {\n i.remove();\n removed.add(record);\n }\n }\n return removed;\n }",
"public void removeFromReminders(Date reminders);",
"@Override\n public Order editOrder(String date, Order editedOrder) throws FlooringMasteryPersistenceException {\n Map<Integer,Order> editHash =ordersByDate.get(date);\n if(editHash == null){ // editHash is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, editHash = new HashMap<>()); // make editHash a new hashmap and then put it in the parent hashmap\n }\n editHash.put(editedOrder.getOrderId(), editedOrder); \n ordersByDate.put(date, editHash);\n return editHash.put(editedOrder.getOrderId(), editedOrder); // replace the order with new info, don't assign a new Order ID like in createOrder()\n\n }",
"@Override\n\tpublic boolean delete(Order bean) {\n\t\treturn false;\n\t}"
] | [
"0.6068426",
"0.57988036",
"0.5612723",
"0.55530965",
"0.5366136",
"0.5336639",
"0.5299705",
"0.52811986",
"0.5277638",
"0.5238788",
"0.5162277",
"0.5120158",
"0.5090853",
"0.50903326",
"0.5079838",
"0.5067788",
"0.5051724",
"0.503663",
"0.49627116",
"0.49554834",
"0.49407285",
"0.49272868",
"0.49176484",
"0.49116728",
"0.48873204",
"0.4872831",
"0.48372522",
"0.4821841",
"0.480345",
"0.48010492",
"0.47742143",
"0.47731963",
"0.47651443",
"0.47308686",
"0.47253123",
"0.47038925",
"0.47004345",
"0.46882886",
"0.46861544",
"0.46856323",
"0.46841767",
"0.4674949",
"0.46588853",
"0.46530217",
"0.46403244",
"0.46394894",
"0.46254098",
"0.46180668",
"0.46066517",
"0.46045506",
"0.46018288",
"0.4596268",
"0.45886195",
"0.45842072",
"0.4574713",
"0.45661694",
"0.45643315",
"0.45567486",
"0.45511",
"0.45413873",
"0.45291165",
"0.45285589",
"0.45252013",
"0.45212245",
"0.450449",
"0.44985658",
"0.4496419",
"0.44871277",
"0.4483485",
"0.44724706",
"0.44704023",
"0.44651514",
"0.44585177",
"0.44468877",
"0.4446482",
"0.44462752",
"0.44434786",
"0.44434315",
"0.44414845",
"0.4438013",
"0.4437321",
"0.44267362",
"0.44145375",
"0.4412428",
"0.44049862",
"0.43954778",
"0.43803778",
"0.4368238",
"0.43673077",
"0.4355469",
"0.43533045",
"0.4352833",
"0.43474796",
"0.43470463",
"0.43289858",
"0.43107712",
"0.43059212",
"0.43054742",
"0.42985713",
"0.4296645"
] | 0.5103283 | 12 |
Searches a directory for a file and sees if there is a file that exists for a give date. Returns a boolean value | boolean doesFileExist(String date)
throws FlooringMasteryPersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean fileExists(String path) throws IOException;",
"boolean hasFileLoc();",
"private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"boolean hasFileLocation();",
"private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}",
"boolean exists(String path) throws IOException;",
"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}",
"boolean hasFileInfo();",
"boolean hasFileInfo();",
"public boolean exists(String path);",
"boolean directoryExists(String path) throws IOException;",
"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 }",
"private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }",
"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 hasFile(final String file);",
"boolean hasFilePath();",
"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 }",
"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}",
"public static boolean containsFile(File dir) {\n try {\n final boolean[] found = new boolean[1];\n found[0] = false;\n Files.walkFileTree(dir.toPath(), new SimpleFileVisitor<Path>(){\n @Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n if(Files.isRegularFile(path)){\n found[0] = true;\n return FileVisitResult.TERMINATE;\n }\n return FileVisitResult.CONTINUE;\n }\n });\n return found[0];\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\n public boolean exists(File file) {\n\treturn false;\n }",
"public boolean exists(File file) {\n return file.exists();\n }",
"public static boolean alreadyExistCheck(String filePath) {\n File f = new File(filePath);\n return f.exists() && !f.isDirectory();\n }",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}",
"private boolean directoryExists() {\n if (Meta.getInstance().containDirectory(dirName))\n return true;\n else\n return false;\n }",
"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 }",
"private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}",
"public static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"abstract public boolean exists( String path )\r\n throws Exception;",
"boolean hasDate();",
"public boolean exists() {\n return Files.exists(path);\n }",
"private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }",
"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 exists(String pathName)\n {\n if(new File(pathName).exists())\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public static boolean existsFile(String file) {\n return getFile(file).exists();\n }",
"public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\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 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}",
"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 boolean exists() {\n return _file.exists();\n }",
"public boolean isFile(String path);",
"public static boolean Java_find(File dir, String name) {\n boolean flag = false;\n // TODO: find files\n File[] fileList = dir.listFiles();\n\n for (File file : fileList) {\n if (file.getName().endsWith(name)) {\n System.out.println(file.getAbsolutePath());\n flag = true;\n } else if (file.isDirectory()) {\n boolean tempFlag = Java_find(file, name);\n if (!flag) {\n flag = tempFlag;\n }\n }\n }\n\n return flag;\n }",
"public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}",
"@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}",
"@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}",
"boolean hasFileName();",
"boolean hasFileName();",
"public static boolean isFileExists(String filePath)\n\t{\n\t\tFile file = new File(filePath);\n\t\treturn file.exists();\n\t}",
"public static boolean pathExists(String path){\n\t\treturn( (new File(path)).exists() );\n\t}",
"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 Java_find(File dir, String name) {\n boolean flag = false;\n // TODO: find files\n File[] list = dir.listFiles();\n FileOperation.listOfFiles = new ArrayList<String>();\n FileOperation.listOfMatching = new ArrayList<String>();\n listOfAllFiles(dir);\n for(String filename:FileOperation.listOfFiles){\n if(filename.contains(name)){\n flag=true;\n listOfMatching.add(filename);\n }\n }\n return flag;\n }",
"private boolean touchFileExists() {\n File f = new File(touchFile);\n return f.exists();\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 }",
"boolean hasInodeDirectory();",
"private boolean reportWithCurrentDateExists() {\n boolean exists = false;\n String sqlDateString = android.text.format.DateFormat.format(\"yyyy-MM-dd\", mCalendar).toString();\n Cursor reportCursor = mDbHelper.getReportPeer().fetchReportByTaskIdAndDate(mTaskId, sqlDateString);\n startManagingCursor(reportCursor);\n if (reportCursor != null && reportCursor.getCount() > 0) {\n long rowId = reportCursor.getLong(reportCursor.getColumnIndexOrThrow(ReportPeer.KEY_ID));\n if (mRowId == null || mRowId != rowId) {\n exists = true;\n }\n }\n if (reportCursor != null) {\n reportCursor.close();\n }\n return exists;\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 }",
"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 exists(String filename) {\n return getFile(filename) != null;\n }",
"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 }",
"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 isFile(FsPath path);",
"boolean isFile() throws IOException;",
"public boolean exist(String fileName) throws DataAccessException;",
"private static boolean containsJavaFiles(File directory) {\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tif (directory.isDirectory()) {\n\t\t\t\tString [] dirListing = directory.list(new JavaFilter());\n\t\t\t\tif (dirListing.length > 0)\n\t\t\t\t\tresult = true;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\treturn result;\n\t}",
"protected static boolean containsFileID(double fileID) {\n\n String sql = \"SELECT fileID FROM files\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n if (fileID == rs.getDouble(\"fileID\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"fileIDExists: \" + e.getMessage());\n }\n return false;\n\n }",
"public boolean isExist(Date date) {\n return mysqlDao.isExist(date);\n }",
"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 boolean fileExists (String id) throws ParseException {\n \n Query query = new QueryParser(Constants.INDEX_KEY_ID, analyzer).parse(id);\n \n return searchResponse(searchExec(query), query).length > 0;\n }",
"public boolean isExist(String fileName){\n\t\tFile f = new File(fileName);\n\t\treturn f.exists();\n\t}",
"public boolean searchFile(FileObject file)\n throws IllegalArgumentException;",
"public final boolean exists()\n {\n if ( m_fileStatus == FileStatus.FileExists ||\n m_fileStatus == FileStatus.DirectoryExists)\n return true;\n return false;\n }",
"boolean isDirectory() throws IOException;",
"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 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}",
"private boolean contains(ArrayList<File> dataDir, Path path) {\n //File path_dir = new File(path.toString());\n File path_dir = path.toFile();\n for (File dir : dataDir) {\n try {\n if (Files.isSameFile(path_dir.toPath(), dir.toPath())) return true;\n } catch (IOException e) {\n logger.warning(\"Cannot check isSameFile with \" + path_dir.toPath() + \", \" +\n dir.toPath());\n }\n }\n return false;\n }",
"boolean getWorkfileExists();",
"public static boolean exists(String path, String name) {\n return new File(path + name).exists();\n }",
"public static boolean isExisted(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.exists();\n\t}",
"public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}",
"public static boolean exists(String dirName)\r\n {\r\n Path p = Paths.get(dirName);\r\n return Files.exists(p) && Files.isDirectory(p);\r\n }",
"int hasDate(final Date date) {\n for (int i = 0; i < days.size(); i++) {\n if (days.get(i).getDate().equals(date)) {\n return i;\n }\n }\n return -1;\n }",
"public static boolean isFileExists(SourceFile sourceFile) throws IOException {\n return isFileExists(sourceFile.getPath(), sourceFile.getSourceType());\n }",
"private static boolean isDirectory(String filename) {\n File file = new File(filename);\n return file.isDirectory();\n }",
"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 static boolean isFileExists(String path, SourceType sourceType) throws IOException {\n return isFileExists(new Path(path), sourceType);\n }",
"public boolean cacheExist(){\n\t\tFile f = new File(\"./cache.txt\");\n\t\tif(f.exists() && !f.isDirectory()){\n\t\t\t//if the cache is exist\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasInodeFile();",
"public boolean isFileDownloaded(String dirPath, String fileName) {\r\n\t\tboolean flag = false;\r\n\t\tFile dir = new File(dirPath);\r\n\t\tFile[] dir_contents = dir.listFiles();\r\n\r\n\t\tfor (int i = 0; i < dir_contents.length; i++) {\r\n\t\t\tif (dir_contents[i].getName().equals(fileName))\r\n\t\t\t\treturn flag = true;\r\n\t\t}\r\n\r\n\t\treturn flag;\r\n\t}",
"public boolean hasFile(File folder, String fileName) {\n\t\treturn new File(folder, fileName + EXTENSION).exists();\n\t}",
"boolean allFileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\treturn ((file.lastModified() > OLDEST_DATE));\n\t}",
"public Boolean isFile(IDirectory parentDirectory, String path) {\r\n // Get the item given by the path\r\n DirectoryTreeNode item = this.getItemGivenPath(parentDirectory, path);\r\n return item != null && item instanceof IFile;\r\n }",
"private boolean existsFolder(File folderNameFile) {\n\t\tif (folderNameFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean exists(String name) throws IOException;",
"private boolean isExist(String name, Date date) {\n\t\t\n\t\tString sql = \"SELECT * from `expenses` WHERE Name='\"+name+\"' AND Date='\"+date+\"';\";\n\t\tResultSet rs = this.queryHandler.executeQuery(sql);\n\t\ttry {\n\t\t\tboolean exist = false;\n\t\t\twhile(rs.next()) {\n\t\t\t\texist = true;\n\t\t\t}\n\t\t\treturn exist;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.queryHandler.close();\n\t\treturn false;\n\t}",
"public boolean isDirectory();",
"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 exists(Path path) {\n try {\n return Files.exists(path);\n } catch (SecurityException e) {\n return false;\n }\n }",
"public static boolean isFileExists(Path path, SourceType sourceType) throws IOException {\n FileSystem fs = getFileSystemBySourceType(sourceType);\n FileStatus[] fileStatusArr = fs.globStatus(path);\n return !(fileStatusArr == null || fileStatusArr.length == 0);\n }",
"public boolean isFileMissing(Date timeNow, char typeOfFile) {\r\n boolean isMissing = false;\r\n String getFile = null;\r\n \r\n if(typeOfFile == 'S')\r\n getFile = this.getScaFile();\r\n else if(typeOfFile == 'I')\r\n getFile = this.getImpFile();\r\n \r\n if (getFile != null) {\r\n isMissing = false;\r\n } else {\r\n //If the file doesn't exists, check if the directory is older than one hour\r\n long hDiff = dtUtil.getHoursDif(this.getDirDate(), timeNow);\r\n if (hDiff > 1) {\r\n isMissing = true;\r\n }\r\n }\r\n \r\n return isMissing;\r\n }"
] | [
"0.6852696",
"0.65669376",
"0.64914817",
"0.64668983",
"0.6445079",
"0.6418123",
"0.6413706",
"0.6396815",
"0.6396815",
"0.6357337",
"0.6353696",
"0.63459235",
"0.6327058",
"0.62802684",
"0.627481",
"0.6266707",
"0.6215053",
"0.6214983",
"0.6199671",
"0.6192017",
"0.61850053",
"0.6151496",
"0.61099136",
"0.6085352",
"0.60755616",
"0.60690176",
"0.60667133",
"0.6032711",
"0.6026019",
"0.6009403",
"0.6003599",
"0.6000929",
"0.5993711",
"0.59933305",
"0.5976905",
"0.5976132",
"0.5976063",
"0.59574413",
"0.59442234",
"0.59366894",
"0.59285235",
"0.5897739",
"0.5882774",
"0.58790004",
"0.58778006",
"0.58760923",
"0.5864073",
"0.5864073",
"0.58543116",
"0.58527714",
"0.5841619",
"0.5833728",
"0.58297956",
"0.58128643",
"0.5795715",
"0.5783254",
"0.5772401",
"0.5769066",
"0.5765262",
"0.57499903",
"0.57384205",
"0.570723",
"0.5701405",
"0.56981456",
"0.5680023",
"0.5675606",
"0.56685585",
"0.5658017",
"0.56554455",
"0.56447375",
"0.5642183",
"0.56347036",
"0.5621726",
"0.5614508",
"0.5586331",
"0.5578525",
"0.557001",
"0.5566551",
"0.55662686",
"0.5563163",
"0.556019",
"0.5555886",
"0.5547768",
"0.5539904",
"0.5534593",
"0.55322295",
"0.5525691",
"0.5520257",
"0.5515144",
"0.5506057",
"0.5503282",
"0.5499358",
"0.5491005",
"0.5489201",
"0.5479787",
"0.5466139",
"0.5460781",
"0.5453205",
"0.5445504",
"0.5442402"
] | 0.75770164 | 0 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
openAndQueryDatabase();
displayResultList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
] | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
] | 0.0 | -1 |
set view model into included layout | public void setProps(PeerProps props, RoomClient roomClient) {
setPeerViewProps(props);
props.setOnPropsLiveDataChange(ediasProps -> {
if(roomClient.isConnecting()) {
// set view model.
setPeerViewProps(props);
// set view model.
setPeerProps(props);
}
});
// register click listener.
info.setOnClickListener(
view -> {
Boolean showInfo = props.getShowInfo().get();
props.getShowInfo().set(showInfo != null && showInfo ? Boolean.FALSE : Boolean.TRUE);
});
stats.setOnClickListener(
view -> {
// TODO(HaiyangWU): Handle inner click event;
});
// set view model
setPeerProps(props);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void setupMvpView();",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"@Override\n protected void initViewModel() {\n }",
"public abstract void initViews();",
"protected abstract void initializeView();",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"protected abstract void initViews();",
"protected abstract void initView();",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"private void setViews() {\n\n }",
"public mainLayoutController() {\n\t }",
"private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }",
"public abstract void initView();",
"void updateViewFromModel();",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"protected abstract void iniciarLayout();",
"void updateModelFromView();",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"protected abstract void populateView(View v, T model);",
"private void addViews() {\n\t}",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"private void initView() {\n\n }",
"private void initViews() {\n\n\t}",
"private void viewInit() {\n }",
"public void initViews(){\n }",
"@Override\n public void initView() {\n }",
"public interface View\n{\n void refresh(ModelData modelData);\n\n void setController(Controller controller);\n}",
"@Override\n public void initView() {\n\n }",
"protected void onLoadLayout(View view) {\n }",
"protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem));\n }",
"private void initViews() {\n\n }",
"public interface SettingMvpView extends MvpView {\n}",
"public View(Model m) {\n super(\"Group G: Danmarkskort\");\n model = m;\n iconPanel.addObserverToIcons(this);\n routePanel = new RouteView(this, model);\n optionsPanel = new OptionsPanel(this,model);\n /*Three helper functions to set up the AffineTransform object and\n make the buttons and layout for the frame*/\n setScale();\n makeGUI();\n adjustZoomFactor();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //This sets up a listener for when the frame is re-sized.\n createComponentListener();\n\n pack();\n canvas.requestFocusInWindow();\n model.addObserver(this);\n }",
"private void initViewModel() {\n SearchUserViewModel uvm = new SearchUserViewModel(this);\n mBinding.searchUserLayout.setUvm(uvm);\n }",
"private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }",
"public void initView(){}",
"public ManipularView() {\n initComponents();\n }",
"private void populateViewCollections() {\n\n\t}",
"public abstract int presentViewLayout();",
"public BaseView() {\r\n\t\tsuper();\r\n\t\tthis.modelView = new BaseModelView();\r\n\t\tthis.buildLayout();\r\n\t\tthis.setVisible(true);\r\n\t}",
"private void loadViews(){\n\t}",
"void initView();",
"@Override\n public void baseSetContentView() {\n View layout = View.inflate(this, R.layout.crm_vistor_signaddinfo, mContentLayout);\n mContext = this;\n }",
"@Override\n public void prepareView() {\n }",
"public interface MainView extends BaseView{\n\n void addMoreMoviesToTheList(List<MovieInfoModel> movieInfoModelList);\n void showMovieList(List<MovieInfoModel> movieInfoModelList);\n void resetPageNumberToDefault();\n void showNoMovieInfo();\n\n}",
"public ControlView (SimulationController sc){\n myProperties = ResourceBundle.getBundle(\"english\");\n myStartBoolean = false;\n mySimulationController = sc;\n myRoot = new HBox();\n myPropertiesList = sc.getMyPropertiesList();\n setView();\n\n }",
"MainPresenter(MainContract.View view) {\n this.view = view;\n model = new AmicableModel();\n }",
"View(Controller c, Model m){\r\n\t\tmodel = m;\r\n\t\tcontroller = c;\r\n\t\tbackground = null;\r\n\t\tground = null;\r\n\t\twindowHeight = 0;\r\n\t}",
"@Override\r\n\tpublic void setModel() {\n\t}",
"public WindowHandle( ModelControllable model, ViewControllable view ) {\r\n\r\n this.model = model;\r\n this.view = view;\r\n }",
"private void registerViews() {\n\t}",
"private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }",
"public View (Controller controllerFromOutside) {\n\t\t\n\t\t// Moving the controller from outside\n\t\t// into my internal reference\n\t\tthis.control = controllerFromOutside;\n\t\tthis.settings();\n\t\tthis.creatingElements();\n\t}",
"public interface MvpView {\n\n}",
"public interface MvpView {\n\n}",
"public interface ViewLayout {\r\n\r\n\t/** \r\n\t * Creates a reference to the view which layout should be calculated.\r\n\t * \r\n\t * @param view\r\n\t * \t\tthe view which layout should be calculated.\r\n\t */\r\n\tpublic void setView(View view);\r\n\t\r\n\t/**\r\n\t * Layouts the view components on the parent panel by assigning\r\n\t * them positions.\r\n\t * \r\n\t * @param parent\r\n\t * \t\tthe displaying parent container of the view\r\n\t */\r\n\tpublic void layoutContainer(Container parent);\r\n\r\n}",
"public abstract void setupMvpPresenter();",
"public viewOpe() {\n initComponents();\n }",
"private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }",
"public MainView() {\r\n\t\tinitialize();\r\n\t}",
"@Override\n public void baseSetContentView() {\n View layout = View.inflate(this,\n R.layout.ac_ext_sharedfilesd_grouphome, mContentLayout);\n // mContentLayout.addView(layout);\n intent1 = getIntent();\n context = this;\n\n }",
"public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public interface CommunityView extends HHBaseView {\n\n void setHeadline(Article article);\n}",
"public void setupView() {\n PagerAdapter mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(mPagerAdapter);\n viewPager.setCurrentItem(0);\n\n }",
"protected void init(DiagramProject project, DiagramModel model) {\n\t\tthis.model = model;\n\n\t\t// view knows about (observes) the model\n\t\tview = createView();\n\n\t\t// controller knows both\n\t\tcontroller = createController();\n\n\t\t// every diagram has its' own undo manager\n\t\tundoManager = createUndoManager();\n\n\t\t// add to parent\n\t\tthis.project = project;\n\t\tproject.addDiagram(this);\n\t}",
"public interface MvpView {\n}",
"public interface MvpView {\n}",
"public RootLayoutController(){}",
"public ViewDataIn() {\n initComponents();\n }",
"@Override\r\n\tpublic void setContent() {\n\t\tsetContentView(R.layout.mjson_layout);\r\n\t}",
"public interface ISettingsView {\r\n void initViews();\r\n}",
"public interface IMasterView {\n}",
"public AdminMainView() {\n initComponents();\n setComponent(new SearchEmployeeView(), mainPanel);\n }",
"public interface ViewWithViewModel {\n public void setViewModel(Object viewModel);\n}",
"public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }",
"public BuilderView(Model model, JPanel parent, BuilderApplication app) {\n\t\tsuper();\n\t\tthis.model = model;\n\t\tthis.cardLayoutPanel = parent;\n\t\tthis.bgColor = new Color(178, 34, 34);\n\t\tthis.app = app;\n\t\tthis.labelFont = new Font(\"Times New Roman\", Font.BOLD, 18);\n\t\tsetBackground(new Color(102,255,102));\n\t\tinitialize();\n\t}",
"void render(IViewModel model);",
"public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }",
"public ViewFrame(Model m1, Model m2, Controller controller) {\n initComponents();\n this.m1 = m1;\n this.m2 = m2;\n m1.registerView(this);\n m2.registerView(this);\n this.controller = controller;\n \n }",
"public VentaMainView() {\n initComponents();\n controlador = new VentaController();\n this.setLocationRelativeTo(null);\n cargarCategorias();\n cargarArticulos();\n }",
"private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}",
"public abstract void doLayout();",
"public interface CountryView extends MvpView {\n /**\n * show loading status\n * @param loading loading status should be visible or not\n */\n void showLoading(boolean loading);\n\n /**\n * if there is an error,show the related message about the error\n * @param errorMessage\n */\n void showError(String errorMessage);\n\n /**\n * show the facts of country\n * @param facts\n */\n void showFacts(List<Fact> facts);\n\n /**\n * show the title of the country\n * @param title\n */\n void showTitle(String title);\n\n}",
"public interface DetailListMvpView extends MvpView {\n\n void loadDetailCoach(Coaches coaches);\n}",
"public interface MainMvpView extends MvpView {\n\n void showSchoolModel(SchoolModel schoolModel);\n void showInfo(BabyModel babyModel, TCUserModel userModel,String babyId,String userId);\n void uploadHeadImgResult(boolean isSuccess,String name);\n void showTeacherInfo(AttendenceTeacherModel teacherModel,String qrCode,String teacherId, String schoolId);\n void onError(String msg);\n void toUpdate(AppVersionModel model);\n void inputUUIDClick(String uuid);\n void updateStateSuccess();\n void updateError();\n}",
"public interface MainMvpView {\n}",
"public RegionView() {\n initComponents();\n this.regionController=new RegionController(new MyConnection().getConnection());\n bindingTable();\n }"
] | [
"0.6500017",
"0.63455075",
"0.603014",
"0.6025089",
"0.6002348",
"0.5979575",
"0.5975117",
"0.5971868",
"0.5971868",
"0.59648705",
"0.59648705",
"0.59544224",
"0.5925181",
"0.59178555",
"0.5900498",
"0.5896352",
"0.58746964",
"0.58671707",
"0.58613276",
"0.58597505",
"0.5847961",
"0.5832479",
"0.5832479",
"0.5813784",
"0.5776488",
"0.5773754",
"0.5773754",
"0.57725775",
"0.57725775",
"0.5756012",
"0.5753008",
"0.5746585",
"0.57111543",
"0.56748205",
"0.5665616",
"0.56573045",
"0.56472874",
"0.56359476",
"0.563177",
"0.5625565",
"0.56245124",
"0.5623755",
"0.5609022",
"0.56027675",
"0.5596263",
"0.55883306",
"0.5578101",
"0.5567276",
"0.5565378",
"0.55587083",
"0.5538759",
"0.55336976",
"0.55206805",
"0.5516613",
"0.55164033",
"0.5507909",
"0.5502592",
"0.55004853",
"0.5493585",
"0.5479657",
"0.54728186",
"0.5464535",
"0.5445248",
"0.54370886",
"0.54288715",
"0.5427482",
"0.5427482",
"0.54263794",
"0.54228264",
"0.54203504",
"0.5404567",
"0.540238",
"0.54018444",
"0.5382065",
"0.53819215",
"0.53752077",
"0.5372861",
"0.53726983",
"0.53726983",
"0.53708994",
"0.53707564",
"0.5363758",
"0.53632784",
"0.5361875",
"0.53500164",
"0.53473246",
"0.534504",
"0.5341669",
"0.53411263",
"0.53403616",
"0.5329732",
"0.5327343",
"0.53264534",
"0.5323338",
"0.5319619",
"0.5313477",
"0.53134453",
"0.53043133",
"0.5296341",
"0.52926004",
"0.5290877"
] | 0.0 | -1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | AbbayedeTamie(Machecoulais machecoulais, Context context) {
super(0);
this.f16556a = machecoulais;
this.f16557b = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void dosomething2() {\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\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\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 public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.7415079",
"0.7120131",
"0.7120131",
"0.7120131",
"0.71147615",
"0.70227826",
"0.7006036",
"0.6960097",
"0.6936248",
"0.68299675",
"0.6789097",
"0.67602575",
"0.6727189",
"0.6727189",
"0.66801685",
"0.66706675",
"0.6636934",
"0.66282094",
"0.6619857",
"0.660652",
"0.6604241",
"0.65837836",
"0.6582929",
"0.6549885",
"0.6544145",
"0.6522115",
"0.65033853",
"0.6442342",
"0.64173746",
"0.64137477",
"0.6401444",
"0.63994104",
"0.6385763",
"0.63806564",
"0.63701975",
"0.6366722",
"0.6361512",
"0.635346",
"0.63510984",
"0.6335869",
"0.63205045",
"0.63073355",
"0.63073355",
"0.6294714",
"0.62944835",
"0.62944835",
"0.6286442",
"0.62733674",
"0.6262097",
"0.6238911",
"0.6223292",
"0.62196285",
"0.6204534",
"0.61961573",
"0.6176461",
"0.61728793",
"0.6171233",
"0.6169529",
"0.6159364",
"0.6130525",
"0.61267096",
"0.6122396",
"0.61028314",
"0.60921496",
"0.60915923",
"0.6088042",
"0.6084655",
"0.6062044",
"0.60616213",
"0.6055876",
"0.6042919",
"0.6042839",
"0.60396415",
"0.6035438",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.60301566",
"0.60285854",
"0.60269165",
"0.6026811",
"0.60241526",
"0.60188586",
"0.6013248",
"0.60111773",
"0.60087514",
"0.6000086",
"0.5998533",
"0.5995835",
"0.5994858",
"0.5990811",
"0.59884715",
"0.59809077",
"0.597093",
"0.5969813",
"0.59669137",
"0.5965574",
"0.5961231"
] | 0.0 | -1 |
/ renamed from: b | private void m20461b() {
this.f16556a.f16545b = 1;
this.f16556a.m20453f();
this.f16556a.m20444b(this.f16557b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"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 }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"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}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\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}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: a | public final /* synthetic */ Object mo34405a() {
m20461b();
return C6437ep.f17017a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | AbbayedeTimadeuc(Machecoulais machecoulais, Context context) {
super(0);
this.f16558a = machecoulais;
this.f16559b = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\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 public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.7414769",
"0.7119613",
"0.7119613",
"0.7119613",
"0.7115359",
"0.70228904",
"0.70061016",
"0.696022",
"0.6936881",
"0.6830244",
"0.6787099",
"0.6760496",
"0.6728036",
"0.6728036",
"0.6680376",
"0.6670228",
"0.66369796",
"0.66291183",
"0.6621313",
"0.6606562",
"0.6604357",
"0.6583625",
"0.65820765",
"0.6550219",
"0.65450674",
"0.65221393",
"0.6503267",
"0.644382",
"0.6418928",
"0.64158154",
"0.64030325",
"0.6399633",
"0.6387978",
"0.6380348",
"0.6371183",
"0.63664496",
"0.63617706",
"0.6353998",
"0.6352636",
"0.63373494",
"0.6320283",
"0.6307393",
"0.6307393",
"0.6294678",
"0.6294678",
"0.6294175",
"0.6286816",
"0.627444",
"0.62610507",
"0.62387806",
"0.6224901",
"0.6219781",
"0.62047696",
"0.61992806",
"0.6177128",
"0.6173233",
"0.61710334",
"0.61705345",
"0.6161384",
"0.6131691",
"0.6126879",
"0.61226225",
"0.6104933",
"0.6092518",
"0.60922223",
"0.60899097",
"0.60852826",
"0.60620767",
"0.6061522",
"0.6057693",
"0.6044921",
"0.6044759",
"0.60388917",
"0.6035412",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.6031055",
"0.6029546",
"0.6026392",
"0.6026248",
"0.60247725",
"0.6019767",
"0.6015276",
"0.60121584",
"0.6008863",
"0.6001897",
"0.5997813",
"0.59963226",
"0.59960836",
"0.59913826",
"0.59904647",
"0.5979328",
"0.59718513",
"0.596804",
"0.596701",
"0.5966249",
"0.59619606"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: b | public C6556j mo34405a() {
C6565k unused = this.f16558a.f16552i;
return C6565k.m21538a(this.f16559b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"@Override\n\tpublic void b() {\n\n\t}",
"public void b() {\r\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public void mo21825b() {\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public void mo115190b() {\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public void mo23813b() {\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract Object mo1185b();",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"@Override\n protected void prot() {\n }",
"public abstract void mo6549b();",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public final void mo51373a() {\n }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public abstract C0631bt mo9227aB();",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public static void bi() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public void m23075a() {\n }",
"public abstract void mo35054b();",
"public final void mo1285b() {\n }",
"private final zzgy zzgb() {\n }",
"private BigB()\r\n{\tsuper();\t\r\n}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void mo9137b() {\n }",
"public abstract Object mo26777y();",
"public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }",
"void mo2508a(bxb bxb);",
"public interface b {\n}",
"public interface b {\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }",
"public void smell() {\n\t\t\n\t}",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"protected void b(dh paramdh) {}",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"void m1864a() {\r\n }",
"public void mo38117a() {\n }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void method_4270() {}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"public void a() {\r\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"public void b() {\n ((a) this.a).b();\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public abstract B zzjo();",
"public void mo5251b() {\n }",
"public abstract int b();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo45765b();",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public abstract String mo118046b();",
"public abstract void mo70702a(C30989b c30989b);",
"private void m50366E() {\n }",
"private abstract void privateabstract();",
"void mo57277b();",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\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}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"protected void h() {}"
] | [
"0.722487",
"0.69545496",
"0.6846561",
"0.68076116",
"0.6734344",
"0.6691706",
"0.6669942",
"0.6667043",
"0.6646458",
"0.66168636",
"0.6606723",
"0.6606723",
"0.6590842",
"0.64897954",
"0.6463509",
"0.6463509",
"0.6449275",
"0.64444065",
"0.6424387",
"0.6419237",
"0.6415622",
"0.64133596",
"0.6328736",
"0.63282627",
"0.62739784",
"0.62120485",
"0.62094307",
"0.615139",
"0.6149478",
"0.6137617",
"0.6120393",
"0.6106608",
"0.6093711",
"0.60929483",
"0.60885155",
"0.6084987",
"0.6079538",
"0.6069903",
"0.606858",
"0.60564345",
"0.605349",
"0.60419637",
"0.60325295",
"0.6027189",
"0.60221",
"0.6019886",
"0.601151",
"0.60104364",
"0.6009854",
"0.5991172",
"0.5986835",
"0.59825355",
"0.5976448",
"0.5968229",
"0.5967636",
"0.596308",
"0.59624094",
"0.596078",
"0.5959548",
"0.5957446",
"0.5957446",
"0.5955017",
"0.5954229",
"0.5947407",
"0.5943378",
"0.5939961",
"0.5939866",
"0.59357184",
"0.5930922",
"0.59260964",
"0.59239286",
"0.5920593",
"0.591909",
"0.5916811",
"0.5906633",
"0.5903797",
"0.59023",
"0.59001166",
"0.5896523",
"0.5894844",
"0.589372",
"0.5891546",
"0.5868608",
"0.58675784",
"0.5864762",
"0.5859481",
"0.585929",
"0.5851135",
"0.58427995",
"0.58427995",
"0.5840333",
"0.58320737",
"0.5827398",
"0.5823947",
"0.5815813",
"0.58061475",
"0.58040917",
"0.5801323",
"0.57985",
"0.5792197",
"0.5789652"
] | 0.0 | -1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | AbbayeduMontdesCats(Machecoulais machecoulais, Context context) {
super(1);
this.f16560a = machecoulais;
this.f16561b = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void dosomething2() {\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\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\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 public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.74159163",
"0.7120729",
"0.7120729",
"0.7120729",
"0.7115672",
"0.7023054",
"0.7006769",
"0.6960434",
"0.6936652",
"0.68304604",
"0.67891514",
"0.6761081",
"0.6727488",
"0.6727488",
"0.66804963",
"0.66715986",
"0.66370845",
"0.66297126",
"0.6621532",
"0.66066694",
"0.6604886",
"0.65841156",
"0.6583929",
"0.6550328",
"0.65448713",
"0.6522409",
"0.6503556",
"0.6443593",
"0.64190036",
"0.6415382",
"0.6402815",
"0.6399424",
"0.6387566",
"0.6380102",
"0.6371176",
"0.63666064",
"0.63617533",
"0.63540274",
"0.63531214",
"0.6337336",
"0.63204753",
"0.63077676",
"0.63077676",
"0.62957364",
"0.62943465",
"0.62943465",
"0.6287212",
"0.6274649",
"0.62632316",
"0.6240756",
"0.6224407",
"0.62204224",
"0.62054425",
"0.61967254",
"0.6177081",
"0.617331",
"0.61726487",
"0.6169692",
"0.6161109",
"0.6130561",
"0.61270016",
"0.61236984",
"0.6104332",
"0.6093483",
"0.60925853",
"0.6088899",
"0.6086286",
"0.6061921",
"0.60618395",
"0.60565853",
"0.60448515",
"0.60435903",
"0.6040561",
"0.60353726",
"0.60317814",
"0.60317814",
"0.60317814",
"0.60317814",
"0.60317814",
"0.60317814",
"0.60305566",
"0.6030207",
"0.602693",
"0.602652",
"0.60256666",
"0.6019247",
"0.60148305",
"0.6011764",
"0.6010286",
"0.6001519",
"0.59999216",
"0.5996114",
"0.59959185",
"0.5992618",
"0.59899366",
"0.5980326",
"0.5970751",
"0.59701407",
"0.5967433",
"0.59656185",
"0.5961154"
] | 0.0 | -1 |
/ renamed from: a | public final /* bridge */ /* synthetic */ Object mo34409a(Object obj) {
m20465a((C6556j) obj);
return C6437ep.f17017a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | private void m20465a(C6556j jVar) {
Machecoulais.m20445b(jVar, this.f16561b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | CamembertdeNormandie(Machecoulais machecoulais, Context context, String str) {
super(0);
this.f16562a = machecoulais;
this.f16563b = context;
this.f16564c = str;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void dosomething2() {\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\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\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 public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.7415079",
"0.7120131",
"0.7120131",
"0.7120131",
"0.71147615",
"0.70227826",
"0.7006036",
"0.6960097",
"0.6936248",
"0.68299675",
"0.6789097",
"0.67602575",
"0.6727189",
"0.6727189",
"0.66801685",
"0.66706675",
"0.6636934",
"0.66282094",
"0.6619857",
"0.660652",
"0.6604241",
"0.65837836",
"0.6582929",
"0.6549885",
"0.6544145",
"0.6522115",
"0.65033853",
"0.6442342",
"0.64173746",
"0.64137477",
"0.6401444",
"0.63994104",
"0.6385763",
"0.63806564",
"0.63701975",
"0.6366722",
"0.6361512",
"0.635346",
"0.63510984",
"0.6335869",
"0.63205045",
"0.63073355",
"0.63073355",
"0.6294714",
"0.62944835",
"0.62944835",
"0.6286442",
"0.62733674",
"0.6262097",
"0.6238911",
"0.6223292",
"0.62196285",
"0.6204534",
"0.61961573",
"0.6176461",
"0.61728793",
"0.6171233",
"0.6169529",
"0.6159364",
"0.6130525",
"0.61267096",
"0.6122396",
"0.61028314",
"0.60921496",
"0.60915923",
"0.6088042",
"0.6084655",
"0.6062044",
"0.60616213",
"0.6055876",
"0.6042919",
"0.6042839",
"0.60396415",
"0.6035438",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.6032143",
"0.60301566",
"0.60285854",
"0.60269165",
"0.6026811",
"0.60241526",
"0.60188586",
"0.6013248",
"0.60111773",
"0.60087514",
"0.6000086",
"0.5998533",
"0.5995835",
"0.5994858",
"0.5990811",
"0.59884715",
"0.59809077",
"0.597093",
"0.5969813",
"0.59669137",
"0.5965574",
"0.5961231"
] | 0.0 | -1 |
/ renamed from: b | private void m20467b() {
C6502h.CamembertauCalvados unused = this.f16562a.f16549f;
C6502h a = C6502h.CamembertauCalvados.m21397a(this.f16563b);
a.mo35508e(this.f16564c);
Machecoulais.m20446b(this.f16562a.f16546c, a);
this.f16562a.m20436a(this.f16563b, a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"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 }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"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}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\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}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: a | public final /* synthetic */ Object mo34405a() {
m20467b();
return C6437ep.f17017a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | EcirdelAubrac(Machecoulais machecoulais) {
super(1);
this.f16565a = machecoulais;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\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 public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.7414769",
"0.7119613",
"0.7119613",
"0.7119613",
"0.7115359",
"0.70228904",
"0.70061016",
"0.696022",
"0.6936881",
"0.6830244",
"0.6787099",
"0.6760496",
"0.6728036",
"0.6728036",
"0.6680376",
"0.6670228",
"0.66369796",
"0.66291183",
"0.6621313",
"0.6606562",
"0.6604357",
"0.6583625",
"0.65820765",
"0.6550219",
"0.65450674",
"0.65221393",
"0.6503267",
"0.644382",
"0.6418928",
"0.64158154",
"0.64030325",
"0.6399633",
"0.6387978",
"0.6380348",
"0.6371183",
"0.63664496",
"0.63617706",
"0.6353998",
"0.6352636",
"0.63373494",
"0.6320283",
"0.6307393",
"0.6307393",
"0.6294678",
"0.6294678",
"0.6294175",
"0.6286816",
"0.627444",
"0.62610507",
"0.62387806",
"0.6224901",
"0.6219781",
"0.62047696",
"0.61992806",
"0.6177128",
"0.6173233",
"0.61710334",
"0.61705345",
"0.6161384",
"0.6131691",
"0.6126879",
"0.61226225",
"0.6104933",
"0.6092518",
"0.60922223",
"0.60899097",
"0.60852826",
"0.60620767",
"0.6061522",
"0.6057693",
"0.6044921",
"0.6044759",
"0.60388917",
"0.6035412",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.60331845",
"0.6031055",
"0.6029546",
"0.6026392",
"0.6026248",
"0.60247725",
"0.6019767",
"0.6015276",
"0.60121584",
"0.6008863",
"0.6001897",
"0.5997813",
"0.59963226",
"0.59960836",
"0.59913826",
"0.59904647",
"0.5979328",
"0.59718513",
"0.596804",
"0.596701",
"0.5966249",
"0.59619606"
] | 0.0 | -1 |
/ renamed from: a | public final /* bridge */ /* synthetic */ Object mo34409a(Object obj) {
m20469a();
return C6437ep.f17017a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | private void m20469a() {
this.f16565a.f16545b = 3;
this.f16565a.m20454g();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.58274275",
"0.5794977",
"0.57889086",
"0.57837564",
"0.5775938",
"0.57696944",
"0.57688814",
"0.5752557",
"0.5690739",
"0.5678386",
"0.567034",
"0.56661606",
"0.56595623",
"0.56588095",
"0.56576085",
"0.5654566",
"0.56445956",
"0.56401736",
"0.5638699",
"0.56305",
"0.56179273",
"0.56157446",
"0.5607045",
"0.5605239",
"0.5600648",
"0.5595156",
"0.55912733",
"0.5590759",
"0.5573802",
"0.5556659",
"0.55545336",
"0.5550466",
"0.5549409",
"0.5544484",
"0.55377364",
"0.55291194",
"0.55285007",
"0.55267704",
"0.5525843",
"0.5522067",
"0.5520236",
"0.55098593",
"0.5507351",
"0.5488173",
"0.54860324",
"0.54823226",
"0.5481975",
"0.5481588",
"0.5480086",
"0.5478032",
"0.54676044",
"0.5463578",
"0.54506475",
"0.54438734",
"0.5440832",
"0.5440053",
"0.5432095",
"0.5422814",
"0.5421934",
"0.54180306",
"0.5403851",
"0.5400144",
"0.5400042",
"0.5394655",
"0.53891194",
"0.5388751",
"0.53749055",
"0.53691155",
"0.53590924",
"0.5356525",
"0.5355397",
"0.535498",
"0.5354871",
"0.535003",
"0.5341249",
"0.5326222",
"0.53232485",
"0.53197914",
"0.5316941",
"0.5311645",
"0.5298656"
] | 0.0 | -1 |
/ renamed from: d | public static String m20449d() {
return "3.3.9-moat";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"public abstract int d();",
"private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }",
"public int d()\n {\n return 1;\n }",
"public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }",
"void mo21073d();",
"@Override\n public boolean d() {\n return false;\n }",
"int getD();",
"public void dor(){\n }",
"public int getD() {\n\t\treturn d;\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}",
"public String getD() {\n return d;\n }",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"public D() {}",
"void mo17013d();",
"public int getD() {\n return d_;\n }",
"void mo83705a(C32458d<T> dVar);",
"public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}",
"double d();",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public abstract C17954dh<E> mo45842a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"public abstract void mo56925d();",
"void mo54435d();",
"public void mo21779D() {\n }",
"public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"void mo28307a(zzgd zzgd);",
"List<String> d();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"public int getD() {\n return d_;\n }",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public void mo3749d() {\n }",
"public a dD() {\n return new a(this.HG);\n }",
"public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }",
"public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }",
"public abstract int getDx();",
"public void mo97908d() {\n }",
"public com.c.a.d.d d() {\n return this.k;\n }",
"private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }",
"public boolean d() {\n return false;\n }",
"void mo17023d();",
"String dibujar();",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public void mo2470d() {\n }",
"public abstract VH mo102583a(ViewGroup viewGroup, D d);",
"public abstract String mo41079d();",
"public void setD ( boolean d ) {\n\n\tthis.d = d;\n }",
"public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }",
"DoubleNode(int d) {\n\t data = d; }",
"DD createDD();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }",
"public int d()\r\n {\r\n return 20;\r\n }",
"float getD();",
"public static int m22546b(double d) {\n return 8;\n }",
"void mo12650d();",
"String mo20732d();",
"static void feladat4() {\n\t}",
"void mo130799a(double d);",
"public void mo2198g(C0317d dVar) {\n }",
"@Override\n public void d(String TAG, String msg) {\n }",
"private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}",
"public void d(String str) {\n ((b.b) this.b).g(str);\n }",
"public abstract void mo42329d();",
"public abstract long mo9229aD();",
"public abstract String getDnForPerson(String inum);",
"public interface ddd {\n public String dan();\n\n}",
"@Override\n public void func_104112_b() {\n \n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }",
"public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}",
"public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }",
"public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }",
"public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}",
"DomainHelper dh();",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }",
"public Double getDx();",
"public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }",
"boolean hasD();",
"public abstract void mo27386d();",
"MergedMDD() {\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Override\n public Chunk d(int i0, int i1) {\n return null;\n }",
"public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }",
"double defendre();",
"public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }",
"public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}"
] | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222",
"0.5541367",
"0.5534182",
"0.55326",
"0.550431",
"0.55041796",
"0.5500838",
"0.54946786",
"0.5475938",
"0.5466879",
"0.5449981",
"0.5449007",
"0.54464436",
"0.5439673",
"0.543565",
"0.5430978",
"0.5428843",
"0.5423923",
"0.542273",
"0.541701",
"0.5416963",
"0.54093426",
"0.53927654",
"0.53906536",
"0.53793144",
"0.53732955",
"0.53695524",
"0.5366731",
"0.53530186",
"0.535299",
"0.53408253",
"0.5333639",
"0.5326304",
"0.53250664",
"0.53214055",
"0.53208005",
"0.5316437",
"0.53121597",
"0.52979535",
"0.52763224",
"0.5270543",
"0.526045",
"0.5247397",
"0.5244388",
"0.5243049",
"0.5241726",
"0.5241194",
"0.523402",
"0.5232349",
"0.5231111",
"0.5230985",
"0.5219358",
"0.52145815",
"0.5214168",
"0.5209237",
"0.52059376",
"0.51952434",
"0.5193699",
"0.51873696",
"0.5179743",
"0.5178796",
"0.51700175",
"0.5164517",
"0.51595956",
"0.5158281",
"0.51572365",
"0.5156627",
"0.5155795",
"0.51548296",
"0.51545656",
"0.5154071",
"0.51532024",
"0.5151545",
"0.5143571",
"0.5142079",
"0.5140048",
"0.51377696",
"0.5133826",
"0.5128858",
"0.5125679",
"0.5121545"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: f | public final void m20453f() {
for (PresageSdkInitCallback onSdkInitialized : this.f16547d) {
onSdkInitialized.onSdkInitialized();
}
this.f16547d.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"@Override\n public int f() {\n return 0;\n }",
"public void f() {\n }",
"public void f() {\n }",
"public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }",
"@Override\n\tpublic void f1() {\n\n\t}",
"public int getf(){\r\n return f;\r\n}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"public abstract int mo123247f();",
"@Override\n public void func_104112_b() {\n \n }",
"void f1() {\r\n\t}",
"public void f() {\n this.f25459e.J();\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo1963f() throws cf {\r\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"private void m50367F() {\n }",
"public void furyo ()\t{\n }",
"public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }",
"public FI_() {\n }",
"public static void feec() {\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"static void feladat9() {\n\t}",
"public void f() {\n if (this instanceof b) {\n b bVar = (b) this;\n Message q_ = bVar.q_();\n e.c().a(new f(bVar.b(), q_.toByteArray()), getClass().getSimpleName(), i().a(), q_);\n return;\n }\n f a2 = a();\n if (a2 != null) {\n e.c().a(a2, getClass().getSimpleName(), i().a(), (Message) null);\n }\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract int mo9741f();",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"private stendhal() {\n\t}",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"static void feladat4() {\n\t}",
"public int func_176881_a() {\n/* */ return this.field_176893_h;\n/* */ }",
"void mo21075f();",
"public Fun_yet_extremely_useless()\n {\n\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"public abstract long f();",
"public float e()\r\n/* 20: */ {\r\n/* 21:167 */ return this.c;\r\n/* 22: */ }",
"static void feladat3() {\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"static void feladat7() {\n\t}",
"protected Context f() {\n return this.a;\n }",
"void berechneFlaeche() {\n\t}",
"public void mo21781F() {\n }",
"public int getF() {\n\t\treturn f;\n\t}",
"private final void i() {\n }",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public void method_4270() {}",
"void testMethod() {\n f();\n }",
"static void feladat6() {\n\t}",
"public void mo1406f() {\n }",
"void mo84656a(float f);",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"static void feladat5() {\n\t}",
"FunctionCall getFc();",
"public int getProF() {\n/* 42 */ return this.proF;\n/* */ }",
"public final void mo8765a(float f) {\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public abstract Object mo26777y();",
"public fv a(fv paramfv)\r\n/* 384: */ {\r\n/* 385: */ fn localfn;\r\n/* 386:403 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 387:404 */ if (this.a[i] != null)\r\n/* 388: */ {\r\n/* 389:405 */ localfn = new fn();\r\n/* 390:406 */ localfn.a(\"Slot\", (byte)i);\r\n/* 391:407 */ this.a[i].b(localfn);\r\n/* 392:408 */ paramfv.a(localfn);\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:411 */ for (i = 0; i < this.b.length; i++) {\r\n/* 396:412 */ if (this.b[i] != null)\r\n/* 397: */ {\r\n/* 398:413 */ localfn = new fn();\r\n/* 399:414 */ localfn.a(\"Slot\", (byte)(i + 100));\r\n/* 400:415 */ this.b[i].b(localfn);\r\n/* 401:416 */ paramfv.a(localfn);\r\n/* 402: */ }\r\n/* 403: */ }\r\n/* 404:419 */ return paramfv;\r\n/* 405: */ }",
"public abstract int f(int i2);",
"public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"@Test\n public void f() {\n\t \n }",
"private interface IPsi {\n public double f(int n);\n }",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface b {\n boolean f(@NonNull File file);\n }",
"@Override\n\tpublic void af(String t) {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"void mo3193f();",
"C3579d mo19694a(C3581f fVar) throws IOException;",
"void f2() {\n\t\tSystem.out.println(\"I am from F2 instance method \\n\");\n\t}",
"private void m50366E() {\n }",
"static void feladat10() {\n\t}",
"public void m23075a() {\n }",
"public void a(Float f) {\n ((b.b) this.b).a(f);\n }",
"public interface f {\n void a();\n}",
"void f1() {\n\t\tSystem.out.println(\"I am from F1 instance method \\n\");\n\t}",
"public f206(String name) {\n super(name);\n }",
"public double getF();",
"public void mo1964g() throws cf {\r\n }",
"protected void h() {}",
"@Override\n\tpublic void realFun() {\n\n\t}",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"void mo9704b(float f, float f2, int i);",
"public void g() {\n }",
"public void b() {\r\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public void m51745d() {\n this.f42403b.a();\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"void mo54440f();"
] | [
"0.7354557",
"0.70730805",
"0.69541585",
"0.68669313",
"0.68070644",
"0.6750507",
"0.6723052",
"0.66000074",
"0.64781976",
"0.6454087",
"0.6372222",
"0.63559234",
"0.6297977",
"0.6294487",
"0.6224529",
"0.60940355",
"0.60936874",
"0.6067748",
"0.60617924",
"0.6045264",
"0.6003784",
"0.5998274",
"0.5996288",
"0.59903455",
"0.59767455",
"0.5973881",
"0.597258",
"0.59667563",
"0.5957115",
"0.59427756",
"0.59388024",
"0.59258926",
"0.5920255",
"0.59179306",
"0.5916873",
"0.5915173",
"0.5890811",
"0.5885001",
"0.5880247",
"0.58642644",
"0.58486146",
"0.58485883",
"0.5845887",
"0.58392423",
"0.5837405",
"0.5830639",
"0.5826204",
"0.5822135",
"0.5821297",
"0.58202714",
"0.58171594",
"0.5816738",
"0.58134526",
"0.57874715",
"0.57864934",
"0.578389",
"0.5778481",
"0.5769221",
"0.57595253",
"0.57583827",
"0.57517534",
"0.5746255",
"0.5742915",
"0.5733801",
"0.57302904",
"0.57155216",
"0.5712036",
"0.57091534",
"0.57091534",
"0.5707343",
"0.5703881",
"0.56956744",
"0.56933975",
"0.5683182",
"0.5682721",
"0.5668811",
"0.5662692",
"0.5662692",
"0.5661663",
"0.5660278",
"0.5659034",
"0.5647527",
"0.5646715",
"0.5639009",
"0.5632715",
"0.5623767",
"0.5619134",
"0.5615937",
"0.5610178",
"0.5609821",
"0.5606526",
"0.5601427",
"0.55991066",
"0.5597907",
"0.5594741",
"0.55876803",
"0.558584",
"0.55682445",
"0.5565481",
"0.5565481",
"0.5558502"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: g | public final void m20454g() {
for (PresageSdkInitCallback onSdkInitFailed : this.f16547d) {
onSdkInitFailed.onSdkInitFailed();
}
this.f16547d.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"public void g() {\n }",
"public void gored() {\n\t\t\n\t}",
"private final zzgy zzgb() {\n }",
"public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }",
"private Gng() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void stg() {\n\n\t}",
"public void mo21782G() {\n }",
"public void method_4270() {}",
"public abstract Object mo26777y();",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"private Mgr(){\r\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public void mo21779D() {\n }",
"public void m23075a() {\n }",
"public abstract void mo70713b();",
"protected boolean func_70814_o() { return true; }",
"public abstract void mo42331g();",
"public void mo97908d() {\n }",
"private void kk12() {\n\n\t}",
"public abstract String mo118046b();",
"public abstract String mo41079d();",
"public void mo38117a() {\n }",
"public void mo21787L() {\n }",
"@Override\n protected void prot() {\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"private final void i() {\n }",
"public abstract long g();",
"private void ss(){\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"protected void h() {}",
"void mo57277b();",
"public abstract String mo13682d();",
"public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public int g()\r\n {\r\n return 1;\r\n }",
"public void mo21825b() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"void m1864a() {\r\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo23813b() {\n }",
"public abstract void mo27386d();",
"public void mo21877s() {\n }",
"public void mo6944a() {\n }",
"void mo56163g();",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public void mo56167c() {\n }",
"public final void mo51373a() {\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void mo3749d() {\n }",
"public abstract int mo123248g();",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }",
"public abstract void mo27385c();",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}",
"public void smell() {\n\t\t\n\t}",
"void mo21076g();",
"public final void mo91715d() {\n }",
"public void mo21878t() {\n }",
"private Ognl() {\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}",
"int getG();",
"private static void g() {\n h h10 = q;\n synchronized (h10) {\n h10.f();\n Object object = h10.e();\n object = object.iterator();\n boolean bl2;\n while (bl2 = object.hasNext()) {\n Object object2 = object.next();\n object2 = (g)object2;\n Object object3 = ((g)object2).getName();\n object3 = i.h.d.j((String)object3);\n ((g)object2).h((i.h.c)object3);\n }\n return;\n }\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21793R() {\n }",
"private GardenerStrategyHelpers() {\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"public void o_() {}",
"public void ganar() {\n // TODO implement here\n }",
"private test5() {\r\n\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"public void mo21789N() {\n }",
"public int getG();",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public abstract String mo9239aw();",
"public abstract void mo2624j();",
"public void mo21786K() {\n }",
"public void mo115190b() {\n }",
"public abstract Member mo23408O();",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"private abstract void privateabstract();",
"public abstract void mo30696a();",
"private Get() {}",
"private Get() {}",
"public abstract void mo6549b();",
"public String i() {\n/* 44 */ return this.a.toString();\n/* */ }",
"public vx i()\r\n/* 185: */ {\r\n/* 186:212 */ return vx.a;\r\n/* 187: */ }",
"public void mo115188a() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"void mo57278c();",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }"
] | [
"0.6939628",
"0.69079435",
"0.6668396",
"0.6617213",
"0.6605113",
"0.6560298",
"0.65401757",
"0.6302829",
"0.6283818",
"0.6273044",
"0.6209706",
"0.62009627",
"0.62005776",
"0.6162078",
"0.61204964",
"0.60923165",
"0.60627776",
"0.60428405",
"0.6033077",
"0.60315675",
"0.60223204",
"0.60102946",
"0.60077983",
"0.60015106",
"0.5996818",
"0.5994615",
"0.5989845",
"0.59859324",
"0.59735173",
"0.5970675",
"0.5969442",
"0.5961901",
"0.5959568",
"0.59452546",
"0.5936397",
"0.5934125",
"0.59331864",
"0.5930334",
"0.5929674",
"0.59280634",
"0.5917856",
"0.5892868",
"0.5888788",
"0.58882415",
"0.58832574",
"0.58674854",
"0.58606744",
"0.58535784",
"0.58525544",
"0.58425695",
"0.58407784",
"0.583229",
"0.58319724",
"0.58307415",
"0.5824983",
"0.5824983",
"0.58164227",
"0.5815285",
"0.58118725",
"0.58071256",
"0.58048165",
"0.5801859",
"0.5798985",
"0.57923424",
"0.57916826",
"0.5791323",
"0.57840776",
"0.5778408",
"0.577795",
"0.57742655",
"0.5769227",
"0.57564497",
"0.575366",
"0.5749033",
"0.57477087",
"0.57445866",
"0.57410735",
"0.5738725",
"0.57367",
"0.57325804",
"0.5731615",
"0.57255477",
"0.57253796",
"0.57226205",
"0.57193094",
"0.57192147",
"0.57174546",
"0.5714734",
"0.57134527",
"0.57118875",
"0.5711727",
"0.5711594",
"0.5711594",
"0.57095426",
"0.5707189",
"0.5706713",
"0.57004136",
"0.5699734",
"0.5698662",
"0.5698624",
"0.5687468"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: b | public static void m20446b(String str, C6502h hVar) {
if (str != null) {
hVar.mo35510f(str);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"@Override\n\tpublic void b() {\n\n\t}",
"public void b() {\r\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public void mo21825b() {\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public void mo115190b() {\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public void mo23813b() {\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract Object mo1185b();",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"@Override\n protected void prot() {\n }",
"public abstract void mo6549b();",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public final void mo51373a() {\n }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public abstract C0631bt mo9227aB();",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public static void bi() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public void m23075a() {\n }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public abstract void mo35054b();",
"public final void mo1285b() {\n }",
"private final zzgy zzgb() {\n }",
"private BigB()\r\n{\tsuper();\t\r\n}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void mo9137b() {\n }",
"public abstract Object mo26777y();",
"public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }",
"void mo2508a(bxb bxb);",
"public interface b {\n}",
"public interface b {\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }",
"public void smell() {\n\t\t\n\t}",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"protected void b(dh paramdh) {}",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"void m1864a() {\r\n }",
"public void mo38117a() {\n }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void method_4270() {}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"public void a() {\r\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"public void b() {\n ((a) this.a).b();\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void mo5251b() {\n }",
"public abstract B zzjo();",
"public abstract int b();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo45765b();",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public abstract String mo118046b();",
"public abstract void mo70702a(C30989b c30989b);",
"private void m50366E() {\n }",
"private abstract void privateabstract();",
"void mo57277b();",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\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}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"protected void h() {}"
] | [
"0.72257817",
"0.6954442",
"0.6847331",
"0.6807501",
"0.67334896",
"0.6691569",
"0.66704434",
"0.6667642",
"0.6647073",
"0.6617276",
"0.6605567",
"0.6605567",
"0.65915775",
"0.64904463",
"0.64652467",
"0.64652467",
"0.64507675",
"0.644512",
"0.6424255",
"0.64211464",
"0.6415893",
"0.64153504",
"0.63294107",
"0.6328954",
"0.62747276",
"0.62140995",
"0.621006",
"0.6153191",
"0.61497533",
"0.6139405",
"0.61198354",
"0.61058384",
"0.6095376",
"0.6094496",
"0.6088346",
"0.60865724",
"0.6078684",
"0.60698766",
"0.60686576",
"0.60571957",
"0.60540855",
"0.6040854",
"0.60335463",
"0.6029299",
"0.60222536",
"0.6021406",
"0.6012528",
"0.60116553",
"0.6011215",
"0.5992559",
"0.5988431",
"0.5982226",
"0.59765273",
"0.59706444",
"0.59681654",
"0.59651744",
"0.59644973",
"0.5962046",
"0.59609014",
"0.5956585",
"0.5956585",
"0.5955133",
"0.5952954",
"0.59495354",
"0.5943557",
"0.594227",
"0.59401256",
"0.59352756",
"0.59316486",
"0.5927117",
"0.5925612",
"0.59226626",
"0.59191334",
"0.5917876",
"0.5907514",
"0.5907457",
"0.5901903",
"0.5900236",
"0.5896612",
"0.5895363",
"0.58942336",
"0.588933",
"0.58711773",
"0.58704656",
"0.5864945",
"0.586106",
"0.5859814",
"0.5850848",
"0.584417",
"0.584417",
"0.5841612",
"0.58325136",
"0.58291596",
"0.5825186",
"0.58183885",
"0.58061177",
"0.5806084",
"0.58005977",
"0.5798549",
"0.57934266",
"0.57908964"
] | 0.0 | -1 |
/ renamed from: e | private boolean m20452e() {
return this.f16545b == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public Object element() { return e; }",
"@Override\n public void e(int i0, int i1) {\n\n }",
"@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}",
"private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}",
"void event(Event e) throws Exception;",
"Event getE();",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void onException(Exception e) {\n\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}",
"public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}",
"public void toss(Exception e);",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}",
"protected void processEdge(Edge e) {\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"void mo57276a(Exception exc);",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}",
"private void sendOldError(Exception e) {\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }",
"public <E> E getE(E e){\n return e;\n }",
"@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}",
"@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }",
"@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"void showResultMoError(String e);",
"public int E() {\n \treturn E;\n }",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@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}",
"static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"public static void error(boolean e) {\n E = e;\n }",
"public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}",
"public void m58944a(E e) {\n this.f48622a = e;\n }",
"void mo43357a(C16726e eVar) throws RemoteException;",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }",
"public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public e o() {\r\n return k();\r\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.5863486",
"0.58606255",
"0.58570576",
"0.5832809",
"0.57954526",
"0.5784194",
"0.57723534",
"0.576802",
"0.57466",
"0.57258075",
"0.5722709",
"0.5722404",
"0.57134414",
"0.56987166",
"0.5683048",
"0.5671214",
"0.5650087",
"0.56173986",
"0.56142104",
"0.56100404",
"0.5604611",
"0.55978096",
"0.5597681",
"0.55941516",
"0.55941516",
"0.55941516",
"0.5578516",
"0.55689955",
"0.5568649",
"0.5564652",
"0.5561944",
"0.5561737",
"0.5560318",
"0.555748",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5547971",
"0.55252135",
"0.5523029",
"0.55208814",
"0.5516037",
"0.5512",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118227",
"0.5509796",
"0.5509671",
"0.5503605",
"0.55015326",
"0.5499632",
"0.54921895",
"0.54892236",
"0.5483562",
"0.5483562",
"0.5482999",
"0.54812574",
"0.5479943",
"0.54787004",
"0.54778624",
"0.5472073",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.5468417",
"0.54673034",
"0.54645115"
] | 0.0 | -1 |
/ renamed from: c | public final boolean mo34577c() {
return this.f16545b == 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void c() {\n }",
"void mo17012c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo88524c();",
"void mo86a(C0163d c0163d);",
"void mo17021c();",
"public abstract void mo53562a(C18796a c18796a);",
"void mo4874b(C4718l c4718l);",
"void mo4873a(C4718l c4718l);",
"C12017a mo41088c();",
"public abstract void mo70702a(C30989b c30989b);",
"void mo72114c();",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"public interface C0335c {\n }",
"public void mo1403c() {\n }",
"public static void c3() {\n\t}",
"public static void c1() {\n\t}",
"void mo8712a(C9714a c9714a);",
"void mo67924c();",
"public void mo97906c() {\n }",
"public abstract void mo27385c();",
"String mo20731c();",
"public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }",
"public interface C0939c {\n }",
"void mo1582a(String str, C1329do c1329do);",
"void mo304a(C0366h c0366h);",
"void mo1493c();",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"java.lang.String getC3();",
"C45321i mo90380a();",
"public interface C11910c {\n}",
"void mo57277b();",
"String mo38972c();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"public static void CC2_1() {\n\t}",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public void mo56167c() {\n }",
"public interface C0136c {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}",
"C3577c mo19678C();",
"public abstract int c();",
"public abstract int c();",
"public final void mo11687c() {\n }",
"byte mo30283c();",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static void mmcc() {\n\t}",
"java.lang.String getCit();",
"public abstract C mo29734a();",
"C15430g mo56154a();",
"void mo41086b();",
"@Override\n public void func_104112_b() {\n \n }",
"public interface C9223b {\n }",
"public abstract String mo11611b();",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"String getCmt();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface C2578d {\n}",
"public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void mo72113b();",
"void mo1749a(C0288c cVar);",
"public interface C0764b {\n}",
"void mo41083a();",
"String[] mo1153c();",
"C1458cs mo7613iS();",
"public interface C0333a {\n }",
"public abstract int mo41077c();",
"public interface C8843g {\n}",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"void mo28307a(zzgd zzgd);",
"public static void mcdc() {\n\t}",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"public interface C0389gj extends C0388gi {\n}",
"C5727e mo33224a();",
"C12000e mo41087c(String str);",
"public abstract String mo118046b();",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C0938b {\n }",
"void mo80455b();",
"public interface C0385a {\n }",
"public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}",
"public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}",
"public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}"
] | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",
"0.60513836",
"0.6049069",
"0.6030368",
"0.60263443",
"0.60089093",
"0.59970635",
"0.59756917",
"0.5956231",
"0.5949343",
"0.5937446",
"0.5911776",
"0.59034705",
"0.5901311",
"0.5883238",
"0.5871533",
"0.5865361",
"0.5851141",
"0.581793",
"0.5815705",
"0.58012",
"0.578891",
"0.57870495",
"0.5775621",
"0.57608724",
"0.5734331",
"0.5731584",
"0.5728505",
"0.57239383",
"0.57130504",
"0.57094604",
"0.570793",
"0.5697671",
"0.56975955",
"0.56911296",
"0.5684489",
"0.5684489",
"0.56768984",
"0.56749034",
"0.5659463",
"0.56589085",
"0.56573",
"0.56537443",
"0.5651912",
"0.5648272",
"0.5641736",
"0.5639226",
"0.5638583",
"0.56299245",
"0.56297386",
"0.56186295",
"0.5615729",
"0.56117755",
"0.5596015",
"0.55905765",
"0.55816257",
"0.55813104",
"0.55723965",
"0.5572061",
"0.55696625",
"0.5566985",
"0.55633485",
"0.555888",
"0.5555646",
"0.55525774",
"0.5549722",
"0.5548184",
"0.55460495",
"0.5539394",
"0.5535825",
"0.55300397",
"0.5527975",
"0.55183905",
"0.5517322",
"0.5517183",
"0.55152744",
"0.5514932",
"0.55128884",
"0.5509501",
"0.55044043",
"0.54984957"
] | 0.0 | -1 |
/ renamed from: c | private final boolean m20448c(Context context) {
return !mo34576b() && !C6216ag.m20778a(context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void c() {\n }",
"void mo17012c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo88524c();",
"void mo86a(C0163d c0163d);",
"void mo17021c();",
"public abstract void mo53562a(C18796a c18796a);",
"void mo4874b(C4718l c4718l);",
"void mo4873a(C4718l c4718l);",
"C12017a mo41088c();",
"public abstract void mo70702a(C30989b c30989b);",
"void mo72114c();",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"public interface C0335c {\n }",
"public void mo1403c() {\n }",
"public static void c3() {\n\t}",
"public static void c1() {\n\t}",
"void mo8712a(C9714a c9714a);",
"void mo67924c();",
"public void mo97906c() {\n }",
"public abstract void mo27385c();",
"String mo20731c();",
"public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }",
"public interface C0939c {\n }",
"void mo1582a(String str, C1329do c1329do);",
"void mo304a(C0366h c0366h);",
"void mo1493c();",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"java.lang.String getC3();",
"C45321i mo90380a();",
"public interface C11910c {\n}",
"void mo57277b();",
"String mo38972c();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"public static void CC2_1() {\n\t}",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public void mo56167c() {\n }",
"public interface C0136c {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}",
"C3577c mo19678C();",
"public abstract int c();",
"public abstract int c();",
"public final void mo11687c() {\n }",
"byte mo30283c();",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static void mmcc() {\n\t}",
"java.lang.String getCit();",
"public abstract C mo29734a();",
"C15430g mo56154a();",
"void mo41086b();",
"@Override\n public void func_104112_b() {\n \n }",
"public interface C9223b {\n }",
"public abstract String mo11611b();",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"String getCmt();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface C2578d {\n}",
"public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void mo72113b();",
"void mo1749a(C0288c cVar);",
"public interface C0764b {\n}",
"void mo41083a();",
"String[] mo1153c();",
"C1458cs mo7613iS();",
"public interface C0333a {\n }",
"public abstract int mo41077c();",
"public interface C8843g {\n}",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"void mo28307a(zzgd zzgd);",
"public static void mcdc() {\n\t}",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"public interface C0389gj extends C0388gi {\n}",
"C5727e mo33224a();",
"C12000e mo41087c(String str);",
"public abstract String mo118046b();",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C0938b {\n }",
"void mo80455b();",
"public interface C0385a {\n }",
"public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}",
"public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}",
"public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}"
] | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",
"0.60513836",
"0.6049069",
"0.6030368",
"0.60263443",
"0.60089093",
"0.59970635",
"0.59756917",
"0.5956231",
"0.5949343",
"0.5937446",
"0.5911776",
"0.59034705",
"0.5901311",
"0.5883238",
"0.5871533",
"0.5865361",
"0.5851141",
"0.581793",
"0.5815705",
"0.58012",
"0.578891",
"0.57870495",
"0.5775621",
"0.57608724",
"0.5734331",
"0.5731584",
"0.5728505",
"0.57239383",
"0.57130504",
"0.57094604",
"0.570793",
"0.5697671",
"0.56975955",
"0.56911296",
"0.5684489",
"0.5684489",
"0.56768984",
"0.56749034",
"0.5659463",
"0.56589085",
"0.56573",
"0.56537443",
"0.5651912",
"0.5648272",
"0.5641736",
"0.5639226",
"0.5638583",
"0.56299245",
"0.56297386",
"0.56186295",
"0.5615729",
"0.56117755",
"0.5596015",
"0.55905765",
"0.55816257",
"0.55813104",
"0.55723965",
"0.5572061",
"0.55696625",
"0.5566985",
"0.55633485",
"0.555888",
"0.5555646",
"0.55525774",
"0.5549722",
"0.5548184",
"0.55460495",
"0.5539394",
"0.5535825",
"0.55300397",
"0.5527975",
"0.55183905",
"0.5517322",
"0.5517183",
"0.55152744",
"0.5514932",
"0.55128884",
"0.5509501",
"0.55044043",
"0.54984957"
] | 0.0 | -1 |
/ renamed from: b | public final boolean mo34576b() {
return this.f16545b == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"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 }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"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}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\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}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: b | public final void m20444b(Context context) {
Goudaauxepices.CamembertauCalvados camembertauCalvados = Goudaauxepices.f16532a;
Goudaauxepices.CamembertauCalvados.m20425a(new AbbayedeTimadeuc(this, context)).mo34564b(new AbbayeduMontdesCats(this, context));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"@Override\n\tpublic void b() {\n\n\t}",
"public void b() {\r\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public void mo21825b() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public void mo115190b() {\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public void mo23813b() {\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract Object mo1185b();",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"@Override\n protected void prot() {\n }",
"public abstract void mo6549b();",
"public final void mo51373a() {\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public abstract C0631bt mo9227aB();",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public static void bi() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public void m23075a() {\n }",
"public abstract void mo35054b();",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public final void mo1285b() {\n }",
"private final zzgy zzgb() {\n }",
"private BigB()\r\n{\tsuper();\t\r\n}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void mo9137b() {\n }",
"public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }",
"void mo2508a(bxb bxb);",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface b {\n}",
"public interface b {\n}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"protected void b(dh paramdh) {}",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"void m1864a() {\r\n }",
"public void mo38117a() {\n }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public void method_4270() {}",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"public void a() {\r\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"public void b() {\n ((a) this.a).b();\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo5251b() {\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public abstract B zzjo();",
"public abstract int b();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo45765b();",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public abstract String mo118046b();",
"public abstract void mo70702a(C30989b c30989b);",
"private void m50366E() {\n }",
"private abstract void privateabstract();",
"void mo57277b();",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\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}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"protected void h() {}"
] | [
"0.7224839",
"0.69518054",
"0.68448514",
"0.68045336",
"0.6729634",
"0.66892576",
"0.6667949",
"0.6666382",
"0.66440094",
"0.6614186",
"0.66016066",
"0.66016066",
"0.6589728",
"0.6487956",
"0.6466085",
"0.6466085",
"0.645071",
"0.6444203",
"0.6424545",
"0.64207315",
"0.64160943",
"0.6414322",
"0.6328003",
"0.6327414",
"0.62732816",
"0.62140226",
"0.6206746",
"0.6153523",
"0.6149558",
"0.6139187",
"0.61167544",
"0.6105347",
"0.6098345",
"0.6094454",
"0.60885423",
"0.6087932",
"0.6078157",
"0.60696363",
"0.6069193",
"0.6055342",
"0.60527724",
"0.6038868",
"0.60326576",
"0.60306174",
"0.60212743",
"0.60198337",
"0.60137844",
"0.6011094",
"0.6009061",
"0.5992609",
"0.5988389",
"0.598014",
"0.59780216",
"0.5971663",
"0.5965223",
"0.59651285",
"0.5964735",
"0.59584355",
"0.5957915",
"0.5955441",
"0.5953412",
"0.5953412",
"0.59503615",
"0.59496933",
"0.59433514",
"0.5942441",
"0.59363157",
"0.5933126",
"0.5931375",
"0.5928882",
"0.59262604",
"0.59236795",
"0.5919878",
"0.5916655",
"0.5908729",
"0.5906255",
"0.5903017",
"0.58993715",
"0.58946365",
"0.5894542",
"0.58909625",
"0.5885613",
"0.5872216",
"0.5871274",
"0.58612293",
"0.58611935",
"0.5858143",
"0.5847258",
"0.5845622",
"0.5845622",
"0.5841156",
"0.5832988",
"0.58289605",
"0.58240587",
"0.58197",
"0.5807641",
"0.5805498",
"0.5797393",
"0.5796352",
"0.57937944",
"0.5790913"
] | 0.0 | -1 |
/ access modifiers changed from: private / renamed from: b | public static void m20445b(C6556j jVar, Context context) {
if (jVar != null && jVar.mo35579d()) {
C6417dw.m21285a(context);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"@Override\n\tpublic void b() {\n\n\t}",
"public void b() {\r\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public void mo21825b() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public void mo115190b() {\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public void mo23813b() {\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract Object mo1185b();",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"@Override\n protected void prot() {\n }",
"public abstract void mo6549b();",
"public final void mo51373a() {\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public abstract C0631bt mo9227aB();",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public static void bi() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public void m23075a() {\n }",
"public abstract void mo35054b();",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public final void mo1285b() {\n }",
"private final zzgy zzgb() {\n }",
"private BigB()\r\n{\tsuper();\t\r\n}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public void mo9137b() {\n }",
"public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }",
"void mo2508a(bxb bxb);",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface b {\n}",
"public interface b {\n}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"protected void b(dh paramdh) {}",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"void m1864a() {\r\n }",
"public void mo38117a() {\n }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public void method_4270() {}",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"public void a() {\r\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"public void b() {\n ((a) this.a).b();\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo5251b() {\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public abstract B zzjo();",
"public abstract int b();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo45765b();",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public abstract String mo118046b();",
"public abstract void mo70702a(C30989b c30989b);",
"private void m50366E() {\n }",
"private abstract void privateabstract();",
"void mo57277b();",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\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}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"protected void h() {}"
] | [
"0.7224839",
"0.69518054",
"0.68448514",
"0.68045336",
"0.6729634",
"0.66892576",
"0.6667949",
"0.6666382",
"0.66440094",
"0.6614186",
"0.66016066",
"0.66016066",
"0.6589728",
"0.6487956",
"0.6466085",
"0.6466085",
"0.645071",
"0.6444203",
"0.6424545",
"0.64207315",
"0.64160943",
"0.6414322",
"0.6328003",
"0.6327414",
"0.62732816",
"0.62140226",
"0.6206746",
"0.6153523",
"0.6149558",
"0.6139187",
"0.61167544",
"0.6105347",
"0.6098345",
"0.6094454",
"0.60885423",
"0.6087932",
"0.6078157",
"0.60696363",
"0.6069193",
"0.6055342",
"0.60527724",
"0.6038868",
"0.60326576",
"0.60306174",
"0.60212743",
"0.60198337",
"0.60137844",
"0.6011094",
"0.6009061",
"0.5992609",
"0.5988389",
"0.598014",
"0.59780216",
"0.5971663",
"0.5965223",
"0.59651285",
"0.5964735",
"0.59584355",
"0.5957915",
"0.5955441",
"0.5953412",
"0.5953412",
"0.59503615",
"0.59496933",
"0.59433514",
"0.5942441",
"0.59363157",
"0.5933126",
"0.5931375",
"0.5928882",
"0.59262604",
"0.59236795",
"0.5919878",
"0.5916655",
"0.5908729",
"0.5906255",
"0.5903017",
"0.58993715",
"0.58946365",
"0.5894542",
"0.58909625",
"0.5885613",
"0.5872216",
"0.5871274",
"0.58612293",
"0.58611935",
"0.5858143",
"0.5847258",
"0.5845622",
"0.5845622",
"0.5841156",
"0.5832988",
"0.58289605",
"0.58240587",
"0.58197",
"0.5807641",
"0.5805498",
"0.5797393",
"0.5796352",
"0.57937944",
"0.5790913"
] | 0.0 | -1 |
/ renamed from: a | public final void mo34572a(Context context, String str) {
m20435a(context);
Maroilles.m20471a(context);
int i = this.f16545b;
if (i == 0 || i == 3) {
this.f16545b = 2;
if (!(str == null || str.length() == 0)) {
FourmedeMontbrison.CamembertauCalvados.m20398a(new CamembertdeNormandie(this, context, str)).mo34554a((C6482gg<? super Throwable, C6437ep>) new EcirdelAubrac(this)).mo34555a((C6481gf<C6437ep>) new AbbayedeTamie(this, context));
return;
}
Log.e("Presage", "PresageSdk.init() error", new IllegalArgumentException("The api key is null empty. Please provide a valid api key"));
this.f16545b = 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | private final void m20435a(Context context) {
try {
this.f16555l.mo34731a(context);
} catch (Throwable unused) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.58274275",
"0.5794977",
"0.57889086",
"0.57837564",
"0.5775938",
"0.57696944",
"0.57688814",
"0.5752557",
"0.5690739",
"0.5678386",
"0.567034",
"0.56661606",
"0.56595623",
"0.56588095",
"0.56576085",
"0.5654566",
"0.56445956",
"0.56401736",
"0.5638699",
"0.56305",
"0.56179273",
"0.56157446",
"0.5607045",
"0.5605239",
"0.5600648",
"0.5595156",
"0.55912733",
"0.5590759",
"0.5573802",
"0.5556659",
"0.55545336",
"0.5550466",
"0.5549409",
"0.5544484",
"0.55377364",
"0.55291194",
"0.55285007",
"0.55267704",
"0.5525843",
"0.5522067",
"0.5520236",
"0.55098593",
"0.5507351",
"0.5488173",
"0.54860324",
"0.54823226",
"0.5481975",
"0.5481588",
"0.5480086",
"0.5478032",
"0.54676044",
"0.5463578",
"0.54506475",
"0.54438734",
"0.5440832",
"0.5440053",
"0.5432095",
"0.5422814",
"0.5421934",
"0.54180306",
"0.5403851",
"0.5400144",
"0.5400042",
"0.5394655",
"0.53891194",
"0.5388751",
"0.53749055",
"0.53691155",
"0.53590924",
"0.5356525",
"0.5355397",
"0.535498",
"0.5354871",
"0.535003",
"0.5341249",
"0.5326222",
"0.53232485",
"0.53197914",
"0.5316941",
"0.5311645",
"0.5298656"
] | 0.0 | -1 |
/ renamed from: a | public final void mo34574a(String str) {
this.f16546c = str;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\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 AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\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 C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\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 C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\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}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.