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
Created by jipeng on 2018/12/20.
public interface IAllCircleView { String circlelisttype(); String page(); void CircleListData(CricleBean bean); void LoadmoreCirlceListData(CricleBean bean); void CircleAdv(CircleAdvertisementBean bean); void collectSuccess(int returncode,String mess); void DelectCircleSuccess(int returncode); void payT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.617905", "0.6038571", "0.58381724", "0.5835614", "0.58141196", "0.58141196", "0.57991236", "0.5749828", "0.57117957", "0.5694252", "0.56853384", "0.5668305", "0.5665014", "0.56509745", "0.5643295", "0.5640292", "0.5624332", "0.56216365", "0.5612453", "0.56085575", "0.55939...
0.0
-1
data at timestamp [1,2] has been deleted and should not be kept in result
@Test public void selectAllDeletedColumns() { String[] retArray = { "3,30000.0,null,30000", "4,4.0,4,null", }; String[] columnNames = {"root.sg1.d1.s1", "root.sg1.d1.s2", "root.sg1.d1.s3"}; try (Connection connection = EnvFactory.getEnv().getConnection(); Statement statement = connecti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void removeOldData() {\n if (!storage.isEmpty()) {\n long timeLowerbound = storage.lastKey() - maxStorageTime;\n while (!storage.isEmpty() && storage.firstKey() < timeLowerbound) {\n storage.pollFirstEntry();\n } \n }\n }", "public ...
[ "0.6328164", "0.62867165", "0.6276257", "0.62461334", "0.60266", "0.60077125", "0.5988746", "0.59145445", "0.587152", "0.58039206", "0.57012355", "0.56274086", "0.56265897", "0.5613689", "0.5605489", "0.5580146", "0.5574409", "0.55705976", "0.5552633", "0.55492765", "0.551894...
0.0
-1
String graph = "src/main/resources/yes_graph.txt";
private static int getNumberClusters(String graph) throws IOException { ReadFile rf = new ReadFile(); String[] lines = rf.readLines(graph); Set<Double> clusters = new HashSet<>(); int n = lines.length; for (int i = 0; i < n; i++) { String[] line = lines[i].split(" ")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readGraphFromFile();", "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\...
[ "0.682534", "0.662184", "0.60012925", "0.59127945", "0.58328325", "0.5716438", "0.57081556", "0.5677533", "0.564641", "0.56185746", "0.5605377", "0.5603391", "0.55941045", "0.5586896", "0.5563827", "0.55356133", "0.55253786", "0.54887", "0.54843813", "0.5468337", "0.54365927"...
0.0
-1
add the nodes from the a file created with coocurrencegraph.java, and returns the graph
private static WeightedUndirectedGraph addNodesGraph(WeightedUndirectedGraph g, int k, String graph, NodesMapper<String> mapper) throws IOException { ReadFile rf = new ReadFile(); String[] lines = rf.readLines(graph); // map the words into id for g stilo //NodesMapper<String> mapper = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readGraphFromFile();", "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.addCh...
[ "0.7251931", "0.69497323", "0.6937159", "0.6873796", "0.6775889", "0.6727764", "0.66067046", "0.6603148", "0.65608436", "0.6539929", "0.64760524", "0.64209634", "0.6372956", "0.62944204", "0.62527835", "0.6249021", "0.62404656", "0.62196183", "0.62082815", "0.62012285", "0.61...
0.0
-1
normalize the weights of the edges Normalize the weights
private static WeightedUndirectedGraph normalizeGraph(WeightedUndirectedGraph g) { double suma = 0; // go in each node for (int i = 0; i < g.size - 1; i++) { suma = 0; // calculate the sum of the weights of this node with the neighbours for (int j = 0; j < g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void normalize()\n {\n int sum;\n\n for(int i=0;i<12;i++)\n {\n for(int j=0;j<12;j++) {\n sum = sumAll(i,j);\n if (sum != 0)\n for (int n = 0; n < 12; n++)\n weights[i][j][n] /= sum;\n ...
[ "0.6951713", "0.6677203", "0.62297416", "0.620094", "0.61742604", "0.6056644", "0.60422945", "0.6009", "0.5881636", "0.5859252", "0.5851726", "0.5840871", "0.58039767", "0.5768625", "0.57312137", "0.5728146", "0.5691853", "0.56282365", "0.5573548", "0.5572963", "0.55183977", ...
0.68812925
1
calculates the kcore and returns a graph. Now its not working who knows why
private static WeightedUndirectedGraph kcore(WeightedUndirectedGraph g) throws InterruptedException { WeightedUndirectedGraph g1 = UnionDisjoint.copy(g, runner); Core cc = CoreDecomposition.getInnerMostCore(g1, runner); System.out.println("Kcore"); System.out.println("Minimum degree: " +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void extractKCoreAndConnectedComponent(double threshold) throws IOException, ParseException, Exception {\n String[] prefixYesNo = {\"yes\", \"no\"};\n for (String prefix : prefixYesNo) {\n\n // Get the number of clusters\n int c = getNumberClusters(RESOURCES_LOCATI...
[ "0.6666956", "0.5985351", "0.59271795", "0.58943164", "0.57301325", "0.5674401", "0.56337774", "0.5584701", "0.5556028", "0.55250686", "0.5512139", "0.5502057", "0.550019", "0.548791", "0.54839164", "0.5477154", "0.54711366", "0.54664475", "0.54585516", "0.5455562", "0.542767...
0.7357034
0
this get the largest component of the graph and returns a graph too System.out.println(Arrays.deepToString(g.weights));
private static WeightedUndirectedGraph getLargestCC(WeightedUndirectedGraph g) throws InterruptedException { int[] all = new int[g.size]; for (int i = 0; i < g.size; i++) { all[i] = i; } System.out.println("CC"); Set<Set<Integer>> comps = ConnectedComponents.rootedCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/max_weight_dag\", method = RequestMethod.GET)\r\n @ResponseBody\r\n public DirectedGraph getMaxWeightDAG() {\n UndirectedGraph graph = new UndirectedGraph(5);\r\n graph.addEdge(0, 1, 10.0);\r\n graph.addEdge(1, 2, 11.0);\r\n graph.addEdge(2, 3, 13.0);\r\...
[ "0.7284324", "0.65455633", "0.653334", "0.63902915", "0.62029445", "0.6031668", "0.59638363", "0.5963608", "0.595858", "0.5854925", "0.584261", "0.5805332", "0.5794992", "0.57882774", "0.5760657", "0.5750888", "0.5734146", "0.5725796", "0.57126033", "0.56935906", "0.5685841",...
0.6818163
1
/ iterate through all the edges, recovering the terms. 'edges' is a matrix, in which each row is a termID1, and in each column is another termID2 that has an edge with termID1. Ex: [0] = [1, 5, 6] [1] = [0, 8] ... Map back each termID to the term string and save to the edges in the following format: term1 term2 cluster...
private static void saveGraphToFile(PrintWriter pw, NodesMapper<String> mapper, int[][] edges, int clusterID) throws IOException { String term1 = "", term2 = ""; for (int i = 0; i < edges.length; i++) { if (edges[i] != null) { term1 = mapper.getNode(i + 1); f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildIndex(Collection<Edge> edges) {\n\t\tfor (Edge e : edges) {\r\n\t\t\tList<Integer> ids = getCells(e);\r\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\r\n\t\t\t\tList<Edge> list = dict.get(ids.get(j));\r\n\t\t\t\tif (list == null) {\r\n\t\t\t\t\tlist = new ArrayList<Edge>();\r\n\t\t\t\t\tdict.put(...
[ "0.5790334", "0.5657735", "0.5623859", "0.55472094", "0.53227746", "0.52552754", "0.52467173", "0.5227756", "0.5171593", "0.513506", "0.50688547", "0.5046754", "0.5024879", "0.5004761", "0.49931076", "0.49419072", "0.49358004", "0.49289477", "0.49190778", "0.49167025", "0.489...
0.55068105
4
do the same analysis for the yesgroup and nogroup
public static void extractKCoreAndConnectedComponent(double threshold) throws IOException, ParseException, Exception { String[] prefixYesNo = {"yes", "no"}; for (String prefix : prefixYesNo) { // Get the number of clusters int c = getNumberClusters(RESOURCES_LOCATION + prefix + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean applyCommonGroupingMeasuringRule() {\n\t\t\n\t if(isApplicableSameGroupingMeasuringRule() == false) {\n\t \tSystem.out.println(\"ERROR: Failure to apply Same Grouping Rewriting Rule\");\n\t \treturn false;\n\t }\n\t \n\t\tthis.rset = new HashMap<Integer, Query>();\n\t\tthis.rtype = RT...
[ "0.52809626", "0.5257295", "0.5255412", "0.5247417", "0.511777", "0.5057693", "0.505281", "0.49550053", "0.49490455", "0.49448326", "0.49131593", "0.49006686", "0.488877", "0.482734", "0.48127815", "0.48122552", "0.48109108", "0.4800391", "0.4780603", "0.47340345", "0.4724423...
0.0
-1
extract the subgraph induced by the users that mentioned the politicians
public static MappedWeightedGraph extractLargestCCofM(WeightedDirectedGraph g, int[] usersIDs, LongIntDict mapLong2Int) throws InterruptedException, IOException { System.out.println("Extracting the subgraph induced by M"); g = SubGraph.extract(g, usersIDs, runner); // The SubGraph.extract() cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void buildHierarchicalGraphs() {\n \tLOG.info(\"Begin building of hierarchical graph for each user.\");\n \t\n \tDBUtil.open();\n \t\n \t// Create a reader for users\n \tLOG.debug(\"Create a UserReader.\");\n \tUserReader userReader = (UserReader) ReaderFactory.instance().getUse...
[ "0.58314556", "0.57073116", "0.5683787", "0.5451508", "0.542934", "0.5356858", "0.5269458", "0.5198523", "0.51750356", "0.51575357", "0.51471823", "0.5050974", "0.5036462", "0.5009153", "0.49568054", "0.49381924", "0.49369183", "0.4929191", "0.4923178", "0.49159896", "0.48689...
0.0
-1
/ The method receives a graph, extract the nodes that have a degree higher than threshold, and finally calculate their reachability using the KppNeg algorithm. The top 500 players are saved in disk
public static List<ImmutablePair> getTopKPlayers(WeightedDirectedGraph g, int[] nodes, LongIntDict mapLong2Int, int topk, int threshold) throws InterruptedException, IOException, ParseException { ArrayList<Integer> subGraphNodes = new ArrayList<>(); // extract just the graph induced by nodes. g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Double> MinimaxAlgorithm(MinimaxNode<GameState> node, int dataCount){\n if(node.getNumberOfChildren() == 0){ //checks to see if terminal node\n List<Double> heuristics = new ArrayList();\n heuristics.addAll(calculateHeuristic(node.getState()));\n return heuristi...
[ "0.56887215", "0.560646", "0.55566084", "0.55183077", "0.54597753", "0.54472643", "0.5399393", "0.5374545", "0.53715676", "0.5366467", "0.53536814", "0.5336108", "0.53195375", "0.53185886", "0.5289952", "0.5288244", "0.52453154", "0.52353984", "0.5233493", "0.52303267", "0.51...
0.67861205
0
mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); mCompassEnabled = true;
public void getLocationInfo() { startLocationService(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initSensor(){\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n registerListeners();\n }", "public void setSensorOn() {\n\n }", "private void initSensorManager() {\n\t\ttry {\n\t\t\tSensorManager sensorManage = (SensorManager) getSystemService(Context.SENS...
[ "0.7788782", "0.7561399", "0.7353428", "0.72288597", "0.7161139", "0.7161139", "0.71512526", "0.69492054", "0.69106925", "0.6907527", "0.68123484", "0.6803214", "0.67986053", "0.67691934", "0.67654943", "0.67196333", "0.6711753", "0.66983944", "0.6671582", "0.6646694", "0.661...
0.0
-1
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Sydney and move the camera LatLng sydney = new LatLng(-34, 151); mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney")); mMap.moveCamera(CameraUpdateFactory.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ...
[ "0.8187546", "0.8042755", "0.8036704", "0.80329096", "0.799835", "0.7976621", "0.7957813", "0.7957434", "0.7954165", "0.79424477", "0.79364526", "0.7930287", "0.7915275", "0.79044753", "0.78887856", "0.787773", "0.78447074", "0.78279424", "0.78194594", "0.7812703", "0.7796219...
0.7885022
18
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof RegistroRevision)) { return false; } RegistroRevision other = (RegistroRevision) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
/ Imagine you have a party and need to form the list of the guests. (Assume you have at least one guest) Ask for the first guest name. Then ask does user want to enter one more guest. If yes take input from. If not finish the program and print list of the guests. Example of the program: Please enter guest name: Nick Do...
public static void main(String[] args) { Scanner input = new Scanner(System.in); // your code System.out.println("Please enter guest name:"); String guestName1 = input.next(); String guestList = guestName1; System.out.println("Do you want to enter new guest name:"); String answer = input.next(); whi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addExtraGuests(Room room) {\n\t\tkeyboard.nextLine();\t\t\t\t\t\t\t\t\t\t\t\t//decide here(This option is only called if room... \n\t\tif(room.isNotFull(room)) {//if Room has a guest\t\t\t\t\t\t\t\t\t\t\t\t...is Suite or Double)\n\t\t\tSystem.out.println(\"Do you wish to add extra guests to this \"+roo...
[ "0.6501866", "0.60273737", "0.59550714", "0.5913725", "0.59065396", "0.584714", "0.58291787", "0.58092517", "0.57623416", "0.5674665", "0.56541663", "0.5636582", "0.56190497", "0.55965877", "0.55444646", "0.55333483", "0.552004", "0.55177", "0.5516847", "0.55033606", "0.55003...
0.7738304
0
needed if there is a middle initial/middle name (of the person) is given
public Person(String first, String middle, String last) { this.firstNames = first+ " " +middle; this.lastName = last; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMiddleName(String middleName);", "public void setMiddleName(String middleName) {\n if(middleName.length()>0)\n this.middleName = middleName;\n else this.middleName =\"undefined\";\n\n }", "public void setMiddleName(String s) {\r\n\t\tmiddleName = s;\t\t\r\n\t}", "@...
[ "0.7266706", "0.7226535", "0.68357265", "0.68346876", "0.6796049", "0.67712486", "0.671257", "0.67009807", "0.6693008", "0.665704", "0.66435164", "0.6641058", "0.64805543", "0.6472216", "0.6457735", "0.6428895", "0.6425473", "0.641568", "0.6367252", "0.6354184", "0.6332345", ...
0.64475155
15
setters not needed for this class
public String getFirstNames() { return firstNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n protected void getExras() {\n }", "public void setupProperties() {\n // left empty for subclass to overrid...
[ "0.6693914", "0.63981897", "0.62217265", "0.6170616", "0.6147838", "0.6141415", "0.6137366", "0.6112343", "0.61084855", "0.61084855", "0.61084855", "0.61084855", "0.61084855", "0.61084855", "0.6078282", "0.607608", "0.6070079", "0.60483617", "0.60358393", "0.6035434", "0.6031...
0.0
-1
/ compareTo method that was used for an example found here Author: Marta Koutny Params: Person p The Person we want "this" Person's last name to be compared to. Return: int, Returns an int describing if "this" persons last is equal to, less than, or greater than the last name of Person p. Used to compare "this" person'...
public int compareLastName(Person p) { int lnCmp = lastName.compareTo(p.lastName); return lnCmp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\treturn o1.getLastname().compareTo(o2.getLastname());\n\t\t\t}", "public int compareToByName(String first, String last){\r\n // Checks if the names are equal\r\n if(this.getFirstName().equals(first) && this.getLastName().equals(last)){\r\n...
[ "0.7760156", "0.7681348", "0.75815237", "0.7141385", "0.71133655", "0.7060955", "0.70598274", "0.6806424", "0.6790318", "0.6707195", "0.663787", "0.6585719", "0.6580588", "0.65012753", "0.6493981", "0.64780706", "0.64733016", "0.6415611", "0.64139456", "0.6333405", "0.6313676...
0.8166053
0
/ Params: Person p the Person who's firstNames and lastName "this" Person's firstNames and lastName are going to be compared to. Return: boolean, Returns if "this" person has the same firstNames and lastName as Person p This method checks to see if "this" person has the same firstNames and lastName as Person p. Since n...
public boolean personEquals(Person p) { return (this.firstNames.equals(p.firstNames) && this.lastName.equals(p.getLastName())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Person p) {\n if (this.name == p.getName() && this.surname == p.getSurname())\n return true;\n else\n return false;\n }", "@Override\n public boolean equals(Object other) {\n /* Check this and other refer to the same object */\n if (this == other) {\n ...
[ "0.73776895", "0.6954767", "0.68903404", "0.68451023", "0.6679338", "0.65802866", "0.65663177", "0.64784116", "0.64472705", "0.64405787", "0.6418844", "0.6283475", "0.6271046", "0.6247007", "0.6243863", "0.6212006", "0.6197665", "0.61692965", "0.61427724", "0.61127806", "0.60...
0.77825093
0
model.addAttribute("request", request); service = new BWriteService(); service.excute(model);
@RequestMapping("/write") public String write(HttpServletRequest request, Model model) { dao.write(request.getParameter("bName"), request.getParameter("bTitle"), request.getParameter("bContent")); return "redirect:list"; //redirect를 쓰게되면 list.jsp가 아니라 위 @RequestMapping("/list")로 가게된다 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/processFormVersion2\")\n public String letShoutDude(HttpServletRequest request, Model model)\n {\n //read the request paramether\n String theName=request.getParameter(\"studentName\");\n //convert data to uppercase\n theName=theName.toUpperCase();\n //cre...
[ "0.6557579", "0.65068495", "0.64892215", "0.6343039", "0.6304448", "0.6294711", "0.62412685", "0.62395024", "0.62035394", "0.6193592", "0.6131498", "0.61170864", "0.6109747", "0.6066063", "0.6057964", "0.6047075", "0.6044794", "0.60132873", "0.60122716", "0.59874856", "0.5974...
0.63041943
5
model.addAttribute("request",request); service = new BDeleteService(); service.excute(model);
@RequestMapping("/delete") public String delete(HttpServletRequest request, Model model) { dao.delete(request.getParameter("bId")); return "redirect:list"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/deleteemployee\")\npublic ModelAndView deleteEmployeeRecord(@RequestParam int employee_id)\n{\n\tergserv.delEmployee(employee_id);\n\tModelAndView mv= new ModelAndView();\n\tmv.addObject(\"msg\",\"RECORD DELETED\");\n\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\treturn mv;\n}", "@PostMappi...
[ "0.68849295", "0.68555987", "0.68054456", "0.660869", "0.6591092", "0.6572073", "0.6505731", "0.64886755", "0.644432", "0.64369756", "0.64158523", "0.6407389", "0.63471943", "0.6336726", "0.63250375", "0.63122696", "0.6281044", "0.62318105", "0.62103003", "0.6209276", "0.6194...
0.72943467
0
model.addAttribute("request", request); service = new BModifyService(); service.excute(model);
@RequestMapping(value = "/modify", method=RequestMethod.POST) //보낼때 post로 보낸다..............용량 크거나 아이다 패스워드같은 public String modify(HttpServletRequest request, Model model) { dao.modify(request.getParameter("bId"), request.getParameter("bName"), request.getParameter("bTitle"), request.getParameter("bCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"teste2\");\n int id = Integer.parseInt(request.getParameter(\"id\"));\n\n ProductBsn bsn = new ProductBsn();\n\n Product p = bsn.ge...
[ "0.6710948", "0.6387179", "0.63610625", "0.6332718", "0.63299614", "0.6269974", "0.6183468", "0.61807126", "0.61804193", "0.6096765", "0.6084665", "0.6071083", "0.6066332", "0.6059237", "0.60533506", "0.60444987", "0.60168505", "0.6010813", "0.5980166", "0.5953335", "0.593869...
0.6145406
9
model.addAttribute("request", request); service = new BReplyService(); service.excute(model);
@RequestMapping("/reply") public String reply(HttpServletRequest request, Model model) { dao.reply(request.getParameter("bId"), request.getParameter("bName"), request.getParameter("bTitle"), request.getParameter("bContent"), request.getParameter("bGroup"), request.getParameter("bStep"), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/processFormVersion2\")\n public String letShoutDude(HttpServletRequest request, Model model)\n {\n //read the request paramether\n String theName=request.getParameter(\"studentName\");\n //convert data to uppercase\n theName=theName.toUpperCase();\n //cre...
[ "0.64101046", "0.6317397", "0.620344", "0.6192285", "0.60984313", "0.60612375", "0.6035808", "0.5936263", "0.5917174", "0.5894929", "0.58744466", "0.58714813", "0.5850439", "0.58235025", "0.58020955", "0.57929343", "0.5783223", "0.5780973", "0.5764783", "0.57569563", "0.57432...
0.63323265
1
service = new BReplyViewService(); service.excute(model);
@RequestMapping("/reply_view") public String reply_view(HttpServletRequest request, Model model) { BDto dto = dao.reply_view(request.getParameter("bId")); model.addAttribute("reply_view", dto); return "reply_view"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MyAttentionView extends BaseView {\n void attentionsuccess(MyAttentionBean myAttentionBean);\n void attentionerror();\n}", "public interface ForgetView {\n void forgetPassWord(ForgetPassWordBean bean);\n\n}", "public interface IScenicServiceView extends MvpView {\n void showTicketL...
[ "0.5964039", "0.58058816", "0.57929486", "0.5781209", "0.57665986", "0.5765687", "0.5752729", "0.5704392", "0.56845826", "0.56708264", "0.56602937", "0.5615825", "0.5601087", "0.55820155", "0.55805385", "0.55459464", "0.55395246", "0.55322546", "0.5526299", "0.55259484", "0.5...
0.5932413
1
Makes a new UserPass combo that only contains username and password
public UserPass(String username, String password) { super(); this.username = username; this.password = password; role = "user"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPassword(String pass);", "String getUserPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String ge...
[ "0.6855249", "0.6486294", "0.6436276", "0.6436276", "0.6436276", "0.6436276", "0.6436276", "0.6436276", "0.6436276", "0.6428587", "0.6263201", "0.62375814", "0.6232188", "0.6232188", "0.62316686", "0.62215215", "0.62215215", "0.62215215", "0.62208277", "0.62013596", "0.620135...
0.65468884
1
Full instantiation with associated acount string for easy database access.
public UserPass(String username, String password, String role) { super(); this.username = username; this.password = password; this.role = role; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Countable(){\n counter++;\n objectName = \"Countable \" + counter;\n// System.out.println(objectName);\n }", "public Ad() {\r\n Ad.adsCount++;\r\n this.ID = Ad.adsCount;\r\n }", "private Count() {}", "private Count() {}", "public AggCountRecord() {\n s...
[ "0.6545211", "0.6290342", "0.6049058", "0.6049058", "0.59556186", "0.58311284", "0.57404226", "0.5685628", "0.568366", "0.56657666", "0.5617544", "0.5611899", "0.5577775", "0.55381316", "0.550558", "0.54127216", "0.54071504", "0.5377666", "0.53723735", "0.5362532", "0.5362043...
0.0
-1
Firebase auth sign in method
public void signin(String emailaddress, String password) { if (emailaddress.isEmpty() || emailaddress == null) { email.setError("Email address required "); email.requestFocus(); } else if (!emailaddress.contains("@")) { email.setError("Not a valid Email address "); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpFirebaseAuthentication() {\n authentication = FirebaseAuth.getInstance();\n authStateListener = firebaseAuth -> {\n currentUser = firebaseAuth.getCurrentUser();\n if (currentUser != null) {\n Log.d(TAG, \"Success\");\n Intent inten...
[ "0.7476617", "0.7474868", "0.7412473", "0.7409705", "0.73569614", "0.7324916", "0.722012", "0.7196614", "0.7129489", "0.7129489", "0.7129489", "0.7129489", "0.7083476", "0.70722395", "0.7071208", "0.70410055", "0.69955415", "0.699097", "0.6948878", "0.6948878", "0.6948878", ...
0.0
-1
Implementations of this interface used for creation IExecutors.
public interface IExecutorBuilder { /** * Build IExecutor implementation. * @return IExecutor */ IExecutor build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "public abstract ScheduledExecutorService getWorkExecutor();", "public interface ThreadExecutor extends Executor {\n}", "public interface ...
[ "0.706182", "0.7038934", "0.69358593", "0.68279374", "0.67349935", "0.67056465", "0.6586353", "0.6550703", "0.6517055", "0.6510526", "0.6485334", "0.64477843", "0.64199644", "0.6382212", "0.636556", "0.63482803", "0.6313864", "0.6236505", "0.62089103", "0.6183013", "0.6150223...
0.63040566
17
/ Function to Validate Apply for a number plate page is available
public void validateApplyForaNumberPlatePage() throws InterruptedException { sFunName = "validateApplyForaNumberPlatePage"; System.out.println("Inside : validateApplyForaNumberPlatePage"); String currentURL = driver.getCurrentUrl(); System.out.println(sFunName + " : Current URL : " + currentURL); util.waitFor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validate() {\n\n String plate = _licensePlate.getText().toString();\n\n if(plate.isEmpty() || plate.length() < 8)\n return false;\n\n else if(plate.charAt(2) == '-' || plate.charAt(5) == '-') {\n\n if (Character.isUpperCase(plate.charAt(0)) && Character.isU...
[ "0.59038603", "0.56041825", "0.5553337", "0.5540921", "0.5539794", "0.5458444", "0.54334533", "0.54329497", "0.5432054", "0.54300445", "0.54239666", "0.5391458", "0.53626895", "0.5361875", "0.53601146", "0.534639", "0.5342363", "0.5340585", "0.5329858", "0.532562", "0.5325043...
0.6482175
0
/ Function to click on FInd LOcations to open search Location page
public void clickOnFindlocations() { sFunName = "clickOnFindlocations"; Logger.info("Inside : clickOnFindlocations"); Logger.info(sFunName + " : Verify and Click on Find Locations link"); bStatus = util.explicitlyWaitUntilElementIsPresent(findLlocationsLink); Assert.assertTrue(bStatus, "Service Search Text fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ClickSearch() {\r\n\t\tsearch.click();\r\n\t\t\tLog(\"Clicked the \\\"Search\\\" button on the GIS Locator page\");\r\n\t}", "private void clickContactLookup() {\n contactLookupIcon.click();\n }", "@Override\n public void onClick(View v) {\n if (!mTrackingLocatio...
[ "0.73178256", "0.6788523", "0.6630237", "0.659198", "0.65765834", "0.6552593", "0.65455306", "0.6528941", "0.65188116", "0.6514023", "0.6466567", "0.6441209", "0.6347381", "0.63020337", "0.626491", "0.6256632", "0.62129205", "0.61997277", "0.61948717", "0.6193173", "0.6192449...
0.7257314
1
Unlock the "current_location" radio button if we have permission to access the user's location. If we don't, then we will ask.
private void requestPermissionAccessLocation() { int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION); Log.d(TAG, "permissionCheck: " + permissionCheck); if (permissionCheck == PackageManager.PERMISSION_GRANTED) { updateFragmentOnL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n m...
[ "0.65317625", "0.644454", "0.64330953", "0.64330953", "0.64330953", "0.641965", "0.6321686", "0.63167286", "0.6240004", "0.6182415", "0.6159675", "0.61423236", "0.61203986", "0.61203986", "0.6077174", "0.60738087", "0.60601497", "0.60589015", "0.6048733", "0.6044931", "0.6044...
0.54714024
74
Communicate with the settings fragment to unlock the "current_location" button
private void updateFragmentOnLocationSuccess() { int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION); if (permissionCheck == PackageManager.PERMISSION_GRANTED) { fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateLocationUi() {\n if (mMap == null) {\n return;\n }\n try {\n if (mPermissionCheck.locationPermissionGranted()) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } els...
[ "0.6500056", "0.63201725", "0.6316058", "0.6294653", "0.6280443", "0.6272876", "0.6272876", "0.6272876", "0.6247307", "0.6193474", "0.6191483", "0.6135798", "0.60766107", "0.6039375", "0.60321045", "0.5985006", "0.5979853", "0.5965769", "0.5959674", "0.59577465", "0.5941359",...
0.0
-1
/ These methods are used for Fragment to Activity communications
@Override public void onTitleChange(String title) { poll.setTitle(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentDataObserver {\n void getDataFromActivity(Str...
[ "0.7158811", "0.688497", "0.6776401", "0.6565048", "0.65484554", "0.65144575", "0.6467498", "0.6467498", "0.6467498", "0.6452328", "0.64338684", "0.64178854", "0.639809", "0.63904124", "0.6384612", "0.63680816", "0.6358583", "0.63481885", "0.6339302", "0.63257277", "0.6323615...
0.0
-1
Price would be in Yelp's price level format ($, $$, $$$, $$$$) but the API uses integer (1,2,3,4) instead. We convert it to an intge String, a value that Yelp api requires
@Override public void onPriceChange(String price) { poll.setPrice(YelpPriceLevel.fromYelpString(price)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPrice();", "String getPrice() {\n return Double.toString(price);\n }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public int getPrice() {\n\t\tString regex = \"\\\"price\\\":(.*?)},\\\"\";\n...
[ "0.6577659", "0.6576018", "0.6481352", "0.6372632", "0.63206667", "0.63206667", "0.6311451", "0.62910545", "0.62910545", "0.6261474", "0.6261474", "0.6261474", "0.6261474", "0.62525314", "0.6242744", "0.6242744", "0.6242744", "0.6242744", "0.623507", "0.62081665", "0.62059045...
0.63258606
4
We either use zip code as our location to OR the geolocation to make an API call to Yelp, so we set one of to null to know which one to use. We check coordinte first, then zipCode
@Override public void onUseCoordinate(boolean useCoordinate) { if (useCoordinate) { poll.setZipCode(null); poll.setCoordinate(coordinate); } else { poll.setCoordinate(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setZipCode(String zipCode) {\n this.zipCode = zipCode == null ? null : zipCode.trim();\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n\n// GeoCoderUtils.getCountryCode(3.152194, 10...
[ "0.59554696", "0.5916729", "0.5848574", "0.5825493", "0.5779413", "0.5779413", "0.5754467", "0.5706164", "0.57002336", "0.5678251", "0.56708026", "0.56226575", "0.5585293", "0.55688024", "0.5560445", "0.5559931", "0.55302626", "0.55181867", "0.5513721", "0.55135214", "0.55069...
0.5547452
16
Created by Frederik on 14.11.2014. Handler for Actor, needed for callback, after response is there
public interface EventActorListener { public void onFinished(ActorDet actor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Response callback() throws Exception;", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr);", "void receiveResponse(String invocationId, HttpResponse response);", "@Override\n public void onResponse(Result appResponse, Inv...
[ "0.6627442", "0.6599281", "0.63820314", "0.6352316", "0.6251357", "0.6224803", "0.62173855", "0.6195608", "0.6195608", "0.61897844", "0.6163222", "0.6155856", "0.6115903", "0.60701054", "0.60675937", "0.605146", "0.6036139", "0.6036106", "0.6028599", "0.6025519", "0.60197866"...
0.0
-1
endregion region UI events
@Override protected void initView() { view.setVideoThumbnail(model.getThumbnail()); if (isInFocus) { playOrPauseVideoIfMomentIsInFocus(); } view.setMomentTitle(model.getTitle()); view.setCounterTimeText("" + Math.round((model.getEndTimeMs() - model.getStartTimeM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@...
[ "0.73427325", "0.73103255", "0.73103255", "0.7265643", "0.72571784", "0.7141189", "0.7141189", "0.7089885", "0.70581", "0.70482916", "0.70047295", "0.70047295", "0.70047295", "0.69819653", "0.69819653", "0.69819653", "0.69819653", "0.69819653", "0.69441015", "0.6862275", "0.6...
0.0
-1
Since we didn't alter the table, there's nothing else to do here.
@Override public void migrate(@NonNull SupportSQLiteDatabase database) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "private void processAlterTable() throws H...
[ "0.68393713", "0.67911476", "0.6730802", "0.6531808", "0.634007", "0.62462384", "0.61541253", "0.61414987", "0.6075768", "0.60574424", "0.6045356", "0.59548116", "0.5931592", "0.5928572", "0.5919531", "0.5868113", "0.58537644", "0.58489", "0.58320683", "0.58269197", "0.580374...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(datimReport.class.getName()).log(Level.SEVERE, null, ex); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(datimReport.class.getName()).log(Level.SEVERE, null, ex); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.8762916", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.87315136", "0.869834", "0.869834", "0.869834", "0.869834", "0.869834", "0.869834", "0.85301465", "0.85301465", "0.8527069", "0.8527069...
0.0
-1
Container Activity must implement this interface
public interface OnTaskLineItemSelected { public void onTaskLineItemSelected(TaskLineItemViewModel taskLineItemViewModel); public void onTaskLineItemShopPhoto(TaskViewModel taskViewModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}", "public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}", "public interface ActivityInterface {\n\n int getLayout();\n\n voi...
[ "0.70040697", "0.6847563", "0.67235523", "0.67232347", "0.6701236", "0.6540011", "0.6525925", "0.6517209", "0.64843005", "0.6483125", "0.6465365", "0.64381146", "0.64175296", "0.64067775", "0.6395508", "0.6385796", "0.63736796", "0.63626945", "0.63592637", "0.6353325", "0.634...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Admin_MainActivity mainActivity = (Admin_MainActivity) getActivity(); DatabaseHelper dbHelper = new DatabaseHelper(mainActivity); taskforshopphoto=dbHelper.getTaskInfo(String.valueOf(Shared.SelectedTask.I...
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { MainActivity mainActivity = (MainActivity) getActivity(); DatabaseHelper dbHelper = new DatabaseHelper(mainActivity); taskforshopphoto = dbHelper.getTaskInfo(String.valueOf(Shared.SelectedTask.ID)); ...
{ "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 getExr...
[ "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.608016...
0.0
-1
Yes button clicked, do something
public void onClick(DialogInterface dialog, int which) { SharedPreferences.Editor editor = mainClassCall.edit(); editor.putString("mainClassCall", "True"); // Storing string editor.commit(); TaskViewModel taskViewModel = Sha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickYes ();", "public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void yes() {\n\t\tyes = new JButton(\"Yes\");\n...
[ "0.8248637", "0.75501144", "0.74997723", "0.7464653", "0.7324396", "0.72154105", "0.7198648", "0.71546584", "0.7095984", "0.70398426", "0.7018257", "0.6996719", "0.69559944", "0.69127905", "0.6904185", "0.6880159", "0.6804938", "0.6797371", "0.67797583", "0.6748856", "0.67427...
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.1.7b01 Generated source version: 2.1
@WebService(name = "WSConcat", targetNamespace = "http://david.bromberg.fr/service/concat") @SOAPBinding(style = SOAPBinding.Style.RPC) public interface WSConcat { /** * * @param str1 * @param str2 * @return * returns java.lang.String */ @WebMethod @WebResult(partName = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName ...
[ "0.6560624", "0.64579475", "0.6279857", "0.62450695", "0.62298584", "0.62203985", "0.62132335", "0.62116295", "0.6201239", "0.61907953", "0.61866516", "0.6183057", "0.61737597", "0.6173508", "0.6173291", "0.6170299", "0.6162913", "0.6150034", "0.6139671", "0.6137394", "0.6136...
0.0
-1
Inicializa las Views de las tareas
private void initTaskViews(){ for (Task t : taskManager.getTasksList()){ submit(t.getName(), t.getIdInView(), t.getTimeForTask(), t.isFinished()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initViews() {\n\n\t}", "private void initViews() {\n\n }", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findVie...
[ "0.74076676", "0.7226848", "0.72203094", "0.72203094", "0.7211871", "0.7200709", "0.71964127", "0.7194857", "0.7139766", "0.7066863", "0.70353794", "0.6934607", "0.68703675", "0.6859726", "0.6739548", "0.6720315", "0.67145777", "0.66927963", "0.6681234", "0.6674882", "0.66651...
0.64709365
43
Cambia una tarea en el layout cuando se hace un cambio
public void updateTaskViews(){ for (Task task : taskManager.getTasksList()){ TextView textToChange = (TextView) root.findViewById(task.getIdInView()); if (textToChange == null){ submit(task.getName(), task.getIdInView(), task.getTimeForTask(), task.isFinished()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n public void cambiarEstadoSinAbastecimiento(int indiceLayoutHose){\n txt_Estado_abastecimiento = (TextView) layoutsHose.get(indiceLayoutHose).inflater.findViewById(R.id.txt_Estado_abastecimiento);\n i...
[ "0.6838648", "0.62647915", "0.62404424", "0.606392", "0.60012335", "0.5994883", "0.5990155", "0.5959926", "0.5952214", "0.5946751", "0.5945812", "0.59372216", "0.59094465", "0.589797", "0.5890512", "0.5887151", "0.5883701", "0.5880368", "0.58724284", "0.5855197", "0.58415616"...
0.0
-1
Limpia las listas de tareas
public void clearFinishedTasks(){ todayLayout.removeAllViewsInLayout(); tomorrowLayout.removeAllViewsInLayout(); weekLayout.removeAllViewsInLayout(); laterLayout.removeAllViewsInLayout(); expiredLayout.removeAllViewsInLayout(); tasksNumber = 0; taskManager.updateT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Todoist()\n {\n tareas = new ArrayList<String>();\n }", "public Todoist()\n {\n tareas = new ArrayList<String>();\n }", "public void setTareas(ArrayList<Tarea> tareas) {\n this.tareas = tareas;\n }", "private void cargaLista() {\n this.getTipoApelacionSelecio...
[ "0.6728934", "0.6728934", "0.66149276", "0.63182294", "0.61547726", "0.61431235", "0.6098329", "0.6066016", "0.6052395", "0.6042544", "0.6008411", "0.5977762", "0.59597975", "0.59334767", "0.59276676", "0.5920829", "0.5897639", "0.584024", "0.5819793", "0.5791761", "0.578325"...
0.0
-1
Finaliza una tarea: cambia su boolean y la marca
private void finishTask(int idOfTask, boolean finished){ Task taskToEdit = taskManager.getTaskById(idOfTask); taskToEdit.setFinished(finished); updateTaskInDatabase(taskToEdit); TextView taskText = (TextView) getView().findViewById(idOfTask); if (finished){ taskText.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void completarTarea()\n {\n tareaCompletada = true;\n }", "public void setFinalizado(boolean finalizado) {\r\n this.finalizado = finalizado;\r\n }", "boolean finalise();", "public void funcFinalizaAtd(){ \n \n \n AtendimentosDAO atd = new AtendimentosDAO()...
[ "0.7231035", "0.6496143", "0.6464351", "0.64514947", "0.6236173", "0.619279", "0.6080534", "0.6076144", "0.601965", "0.60074395", "0.59943974", "0.59622866", "0.58761966", "0.58514065", "0.58243304", "0.5806573", "0.5803724", "0.57386667", "0.5722736", "0.5717605", "0.5687083...
0.0
-1
region Getters & Setters
public String getIsbn() { return isbn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "public String getName () { return this.name; }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=D...
[ "0.64590466", "0.6413907", "0.64065903", "0.6182264", "0.6065517", "0.6056233", "0.6033703", "0.60268164", "0.6021465", "0.60073954", "0.59957683", "0.5945904", "0.5936703", "0.59325814", "0.5930079", "0.5923839", "0.5923839", "0.5923839", "0.5923839", "0.5908648", "0.590813"...
0.0
-1
Created by yangshiyou on 2016/11/27.
public interface RecyclerViewInterface { public void bindData(List<Active> activeList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Over...
[ "0.6119934", "0.6000229", "0.59842867", "0.59483486", "0.59032685", "0.5895132", "0.5895132", "0.58232766", "0.57651323", "0.5762096", "0.5761943", "0.5760168", "0.57569236", "0.57366216", "0.57365036", "0.5715195", "0.5710273", "0.56856716", "0.56848025", "0.56848025", "0.56...
0.0
-1
POST /projects : Create a new project.
@PostMapping("/projects") @Timed public ResponseEntity<ProjectDTO> createProject(@Valid @RequestBody ProjectDTO projectDto) throws URISyntaxException, NotAuthorizedException { log.debug("REST request to save Project : {}", projectDto); var org = projectDto.getOrganization(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.ge...
[ "0.7528121", "0.75224704", "0.71735376", "0.70770437", "0.68544877", "0.6824961", "0.66474694", "0.66474694", "0.66474694", "0.62958145", "0.62687045", "0.6146737", "0.6084183", "0.6069979", "0.60654306", "0.6029558", "0.60235727", "0.6000165", "0.5974099", "0.59520054", "0.5...
0.69878435
4
GET /projects : get all the projects.
@GetMapping("/projects") @Timed public ResponseEntity<?> getAllProjects( @PageableDefault(size = Integer.MAX_VALUE) Pageable pageable, @RequestParam(name = "minimized", required = false, defaultValue = "false") Boolean minimized) throws NotAuthorizedException { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/getAll\")\r\n\tpublic List<Project> getAllProjects() {\r\n\t\treturn persistenceService.getAllProjects();\r\n\t}", "@GetMapping(value = \"/projects\", produces = \"application/json\")\n public ResponseEntity<?> listAllProjects()\n {\n List<Project> projectList = projectService.findAll...
[ "0.8423762", "0.8186107", "0.8110359", "0.8082613", "0.7960895", "0.79431945", "0.7749603", "0.70632946", "0.70458513", "0.69365126", "0.6932468", "0.6918805", "0.6811537", "0.6784978", "0.6775209", "0.6760667", "0.6757105", "0.67395574", "0.66790956", "0.66153705", "0.655103...
0.74767447
7
GET /projects/:projectName : get the project with this name.
@GetMapping("/projects/{projectName:" + Constants.ENTITY_ID_REGEX + "}") @Timed public ResponseEntity<ProjectDTO> getProject(@PathVariable String projectName) throws NotAuthorizedException { checkPermission(token, PROJECT_READ); log.debug("REST request to get Project : {}", projectNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/byProjectName/{projectName}\")\r\n\tpublic Project getProjectDetails(@PathVariable String projectName) {\r\n\t\treturn persistenceService.getProjectDetails(projectName);\r\n\t}", "public Project getProjectByName(String name);", "@GetMapping(\"/byName\")\r\n\tpublic List<Project> getProject(Princ...
[ "0.81027627", "0.7550302", "0.7350987", "0.7301999", "0.72683287", "0.7166704", "0.71555644", "0.7142895", "0.70746267", "0.6945012", "0.69347936", "0.6902314", "0.6863241", "0.6861169", "0.682664", "0.68083525", "0.6782674", "0.67255414", "0.6724426", "0.67189676", "0.671896...
0.7840049
1
GET /projects/:projectName : get the "projectName" project.
@GetMapping("/projects/{projectName:" + Constants.ENTITY_ID_REGEX + "}/source-types") @Timed public List<SourceTypeDTO> getSourceTypesOfProject(@PathVariable String projectName) throws NotAuthorizedException { checkPermission(token, PROJECT_READ); log.debug("REST request to get Proje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/byProjectName/{projectName}\")\r\n\tpublic Project getProjectDetails(@PathVariable String projectName) {\r\n\t\treturn persistenceService.getProjectDetails(projectName);\r\n\t}", "@GetMapping(\"/projects/{projectName:\" + Constants.ENTITY_ID_REGEX + \"}\")\n @Timed\n public ResponseEntity<Pr...
[ "0.816795", "0.80501246", "0.74440724", "0.7419492", "0.7399054", "0.73862386", "0.72889817", "0.7287218", "0.724015", "0.71933377", "0.7100313", "0.707669", "0.70496064", "0.7034686", "0.70118046", "0.69730896", "0.6911775", "0.68764067", "0.6864734", "0.6864734", "0.6849578...
0.0
-1
DELETE /projects/:projectName : delete the "projectName" project.
@DeleteMapping("/projects/{projectName:" + Constants.ENTITY_ID_REGEX + "}") @Timed public ResponseEntity<?> deleteProject(@PathVariable String projectName) throws NotAuthorizedException { checkPermission(token, PROJECT_DELETE); log.debug("REST request to delete Project : {}", project...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteProject(Long projectId);", "@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}", "void deleteProject(String projectKey);", "void deleteByProjectId(Long projectId);", ...
[ "0.84592974", "0.83792084", "0.8219511", "0.7924521", "0.78411275", "0.75757575", "0.7541877", "0.7510419", "0.74822015", "0.7151854", "0.7013132", "0.69488555", "0.68832254", "0.6840359", "0.68251723", "0.6795678", "0.67527163", "0.6737733", "0.6721762", "0.6623958", "0.6405...
0.83520144
2
private Hospitalisation hospitalisation; private Docteur soigne;
public RendezVous() { this.no_rdv = 0; this.date_arr = ""; this.date_dep = ""; this.motif = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Person getDoctor(){\n return doctor;\n }", "public String getHospital() {\r\n return hospital;\r\n }", "public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucurs...
[ "0.66291374", "0.64064854", "0.6112775", "0.6092493", "0.60635424", "0.6029011", "0.60092604", "0.6007112", "0.599351", "0.5991883", "0.5991087", "0.59156793", "0.5915235", "0.5888021", "0.58799064", "0.5864763", "0.5846615", "0.5845442", "0.5840907", "0.5827742", "0.58145833...
0.0
-1
This method modifies the master's configuration in order to inject backuprelated features (TESTs only)
public static void decorateMasterConfiguration(Configuration conf) { if (!isBackupEnabled(conf)) { return; } // Add WAL archive cleaner plug-in String plugins = conf.get(HConstants.HBASE_MASTER_LOGCLEANER_PLUGINS); String cleanerClass = BackupLogCleaner.class.getCanonicalName(); if (!plugi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeTest(groups= {\"smoke test\", \"regression test\"})\r\n\t public void configBT() {\n\t }", "@AfterTest(groups= {\"smoke test\", \"regression test\"})\r\n\t public void configAT() {\n\t }", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the proper...
[ "0.5831686", "0.5738875", "0.5721908", "0.5681184", "0.56645054", "0.56604624", "0.5628192", "0.5498518", "0.5454875", "0.5448581", "0.54459625", "0.54032534", "0.53558415", "0.53491086", "0.53157616", "0.5310594", "0.52894014", "0.52849627", "0.5242833", "0.5230337", "0.5222...
0.6245969
0
This method modifies the Region Server configuration in order to inject backuprelated features TESTs only.
public static void decorateRegionServerConfiguration(Configuration conf) { if (!isBackupEnabled(conf)) { return; } String classes = conf.get(ProcedureManagerHost.REGIONSERVER_PROCEDURE_CONF_KEY); String regionProcedureClass = LogRollRegionServerProcedureManager.class.getName(); if (classes ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterTest(groups= {\"smoke test\", \"regression test\"})\r\n\t public void configAT() {\n\t }", "@Override\n public void saveBootstrapState ()\n {\n service.getServerConfiguration().saveBootstrapState(evCustomers);\n }", "@BeforeTest(groups= {\"smoke test\", \"regression test\"})\r\n\t public void confi...
[ "0.56035846", "0.54968846", "0.5396764", "0.52895516", "0.52116185", "0.520334", "0.51883847", "0.51411104", "0.51101494", "0.508887", "0.50809824", "0.5064459", "0.5061457", "0.5048536", "0.50343907", "0.50236505", "0.50081027", "0.49992996", "0.49956712", "0.4978394", "0.49...
0.6173844
0
Stop all the work of backup.
@Override public void close() { if (systemTable != null) { try { systemTable.close(); } catch (Exception e) { LOG.error(e.toString(), e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop(boolean save) {}", "public void stop() {\n\t\texec.stop();\n\t}", "public void stop()\n {\n storage.stop();\n command.stop();\n }", "public void stopWork() {\n stopWork = true;\n }", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null...
[ "0.6581817", "0.6458503", "0.6443894", "0.64183134", "0.63994074", "0.63557476", "0.6329642", "0.6327765", "0.6304301", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551", "0.629551"...
0.0
-1
Creates a backup info based on input backup request.
public BackupInfo createBackupInfo(String backupId, BackupType type, List<TableName> tableList, String targetRootDir, int workers, long bandwidth) throws BackupException { if (targetRootDir == null) { throw new BackupException("Wrong backup request parameter: target backup root directory"); } if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String backup(String request) throws RemoteException;", "public yandex.cloud.api.operation.OperationOuterClass.Operation backup(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.BackupClusterRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getBackupM...
[ "0.6622899", "0.63009953", "0.621813", "0.6145517", "0.6101161", "0.5903829", "0.53847355", "0.53329396", "0.52860594", "0.52603334", "0.52481997", "0.5236082", "0.52314085", "0.5205096", "0.5194305", "0.510369", "0.5101053", "0.5088559", "0.50816125", "0.5075196", "0.503922"...
0.5795013
6
Check if any ongoing backup. Currently, we only reply on checking status in backup system table. We need to consider to handle the case of orphan records in the future. Otherwise, all the coming request will fail.
private String getOngoingBackupId() throws IOException { ArrayList<BackupInfo> sessions = systemTable.getBackupInfos(BackupState.RUNNING); if (sessions.size() == 0) { return null; } return sessions.get(0).getBackupId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasBackup();", "public boolean hasBackup() {\n return msgCase_ == 10;\n }", "public boolean hasBackup() {\n return msgCase_ == 10;\n }", "boolean hasBackupSchedule();", "boolean hasBackupConfig();", "@Override\n\tpublic boolean gcGetAutoBackupStatus(BluetoothDevice device) {\n...
[ "0.677977", "0.661156", "0.6556528", "0.61722493", "0.58806926", "0.5818721", "0.565044", "0.558957", "0.5463694", "0.54230565", "0.5367501", "0.53268886", "0.5315787", "0.53140044", "0.52796185", "0.5195644", "0.51822835", "0.51378137", "0.51375985", "0.50968325", "0.5080947...
0.0
-1
Start the backup manager service.
public void initialize() throws IOException { String ongoingBackupId = this.getOngoingBackupId(); if (ongoingBackupId != null) { LOG.info("There is a ongoing backup {}" + ". Can not launch new backup until no ongoing backup remains.", ongoingBackupId); throw new BackupException("There is ong...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startServices(){\n\t\t\n\t\tIntent intent = new Intent(mContext, BatterySaverService.class);\n\t\tmContext.startService(intent);\n\t}", "protected void startService() throws Exception {\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(t...
[ "0.61478704", "0.5998294", "0.57163495", "0.5591784", "0.5568329", "0.5480071", "0.54646397", "0.5442788", "0.5372825", "0.5348039", "0.53459", "0.5335363", "0.5303049", "0.528658", "0.52527463", "0.5211469", "0.52011347", "0.51875824", "0.51597047", "0.5133676", "0.5116627",...
0.0
-1
Get direct ancestors of the current backup.
public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo) throws IOException { LOG.debug("Getting the direct ancestors of the current backup {}", backupInfo.getBackupId()); ArrayList<BackupImage> ancestors = new ArrayList<>(); // full backup does not have ancestor if (backupInfo.getType() == B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo, TableName table)\n throws IOException {\n ArrayList<BackupImage> ancestors = getAncestors(backupInfo);\n ArrayList<BackupImage> tableAncestors = new ArrayList<>();\n for (BackupImage image : ancestors) {\n if (image.hasTable(table))...
[ "0.70268804", "0.69265765", "0.69085574", "0.69009537", "0.6863426", "0.6705659", "0.58811045", "0.58609635", "0.578311", "0.5656953", "0.56029576", "0.5588161", "0.54814005", "0.5474023", "0.5424179", "0.54063916", "0.5400484", "0.53909", "0.53604096", "0.52174455", "0.52085...
0.7090951
0
Get the direct ancestors of this backup for one table involved.
public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo, TableName table) throws IOException { ArrayList<BackupImage> ancestors = getAncestors(backupInfo); ArrayList<BackupImage> tableAncestors = new ArrayList<>(); for (BackupImage image : ancestors) { if (image.hasTable(table)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Liste<? extends Binarbre<E>> ancestors();", "public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo) throws IOException {\n LOG.debug(\"Getting the direct ancestors of the current backup {}\", backupInfo.getBackupId());\n\n ArrayList<BackupImage> ancestors = new ArrayList<>();\n\n // full back...
[ "0.6883547", "0.67056334", "0.6588251", "0.65815145", "0.6570501", "0.6424786", "0.59502834", "0.58196", "0.57043725", "0.5678288", "0.56420434", "0.5481962", "0.5462014", "0.54343903", "0.53953934", "0.53571624", "0.5339757", "0.5275104", "0.5263479", "0.5241729", "0.5219697...
0.7605502
0
/ backup system table operations Updates status (state) of a backup session in a persistent store
public void updateBackupInfo(BackupInfo context) throws IOException { systemTable.updateBackupInfo(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveState() {\n table.saveState(store);\n }", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_s...
[ "0.65043265", "0.586812", "0.5726671", "0.5681904", "0.56540155", "0.5618334", "0.56056964", "0.55770344", "0.55635065", "0.55050915", "0.5504837", "0.54874337", "0.5455175", "0.54502654", "0.5448805", "0.5369457", "0.53636277", "0.5343201", "0.53422564", "0.53389174", "0.532...
0.578244
2
Starts new backup session
public void startBackupSession() throws IOException { long startTime = EnvironmentEdgeManager.currentTime(); long timeout = conf.getInt(BACKUP_EXCLUSIVE_OPERATION_TIMEOUT_SECONDS_KEY, DEFAULT_BACKUP_EXCLUSIVE_OPERATION_TIMEOUT) * 1000L; long lastWarningOutputTime = 0; while (EnvironmentEdgeManager...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n ...
[ "0.62129706", "0.5849824", "0.5826432", "0.55890375", "0.5551577", "0.5463802", "0.5453239", "0.54526776", "0.542099", "0.54186195", "0.5400666", "0.53718513", "0.53044033", "0.52903825", "0.5280243", "0.5178902", "0.5174996", "0.5174222", "0.5163157", "0.51355714", "0.511671...
0.6230996
0
Finishes active backup session
public void finishBackupSession() throws IOException { systemTable.finishBackupExclusiveOperation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finishSession() {\n \t\trunning = false;\n \t}", "protected void exit() {\n (new CSVFile(bankDB)).writeCSV();\n try{\n FileUtil.writeTransactions(bankDB.getTransactions());\n }catch(IOException e){\n AlertBox.display(ERROR, \"There was an error printing the ...
[ "0.62393695", "0.59447247", "0.5910387", "0.58960044", "0.5785096", "0.5769929", "0.5727005", "0.56740004", "0.56655747", "0.5658574", "0.5638244", "0.5637953", "0.5629085", "0.559241", "0.5587791", "0.5548848", "0.55177957", "0.54783094", "0.54719687", "0.5459075", "0.544672...
0.7447339
0
Read the last backup start code (timestamp) of last successful backup. Will return null if there is no startcode stored in backup system table or the value is of length 0. These two cases indicate there is no successful backup completed so far.
public String readBackupStartCode() throws IOException { return systemTable.readBackupStartCode(backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected long getLastCleanedRow() {\n List<String> res = dbconnector.execRead(\"SELECT value FROM MS_DataCleaning_conf \" +\n \"WHERE name='sample_last_cleaned_row'\").get(0);\n return Long.parseLong(res.get(0));\n }", "public String getMinSeqNo() throws Exception {\n retu...
[ "0.5056188", "0.5032633", "0.5009935", "0.5003876", "0.48905605", "0.48624188", "0.48239756", "0.48108697", "0.48069248", "0.4760794", "0.4734465", "0.47314623", "0.47291517", "0.47290513", "0.47178966", "0.47060394", "0.4678559", "0.467729", "0.46702936", "0.46672803", "0.46...
0.7036495
0
Write the start code (timestamp) to backup system table. If passed in null, then write 0 byte.
public void writeBackupStartCode(Long startCode) throws IOException { systemTable.writeBackupStartCode(startCode, backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void writeStart(Transaction t) {\n\t\tpw.println(t.transactionId() + \" start\");\n\t}", "public String readBackupStartCode() throws IOException {\n return systemTable.readBackupStartCode(backupInfo.getBackupRootDir());\n }", "public abstract long startTimestamp();", "public void setS...
[ "0.5293698", "0.5267739", "0.498807", "0.49643123", "0.4939222", "0.49195445", "0.48786542", "0.48169532", "0.47966933", "0.476726", "0.46707198", "0.46680945", "0.46673092", "0.46418113", "0.45593777", "0.4535587", "0.45079082", "0.45047802", "0.45019415", "0.44875148", "0.4...
0.73562074
0
Get the RS log information after the last log roll from backup system table.
public HashMap<String, Long> readRegionServerLastLogRollResult() throws IOException { return systemTable.readRegionServerLastLogRollResult(backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getLastLogIndex();", "private String fetchLogEntry(int i) {\n\t\tif (log.size() >= i) {\n\t\t\tLog logEntry = log.get(log.size()-i);\n\t\t\tif (logEntry.getStatus() == Status.ALARM) {\n\t\t\t\treturn logEntry.getTimeStamp()+\"* \"+logEntry.getMessage();\n\t\t\t} else {\n\t\t\t\treturn logEntry.getTimeStamp(...
[ "0.6049544", "0.56711936", "0.56161135", "0.55928785", "0.5573888", "0.55708164", "0.5517294", "0.55129963", "0.5492441", "0.5479172", "0.5471258", "0.5470791", "0.54615945", "0.5421216", "0.54208374", "0.5411624", "0.5371264", "0.52773565", "0.5262159", "0.5229811", "0.52259...
0.6876142
0
Get all completed backup information (in desc order by time)
public List<BackupInfo> getBackupHistory() throws IOException { return systemTable.getBackupHistory(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "yandex.cloud.api.ydb.v1.BackupOuterClass.Backup getBackups(int index);", "public Long get_backuplist() throws Exception {\n\t\treturn this.backuplist;\n\t}", "java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> \n getBackupsList();", "edu.usfca.cs.dfs.StorageMessages.BackUp getBackup();", ...
[ "0.63408345", "0.63313496", "0.63053924", "0.59242886", "0.579105", "0.5696296", "0.5675015", "0.56382924", "0.55910593", "0.5526661", "0.54404527", "0.5422247", "0.5411147", "0.5395029", "0.5390466", "0.5355409", "0.53089464", "0.5307428", "0.5291173", "0.5282715", "0.523873...
0.6642444
0
Write the current timestamps for each regionserver to backup system table after a successful full or incremental backup. Each table may have a different set of log timestamps. The saved timestamp is of the last log file that was backed up already.
public void writeRegionServerLogTimestamp(Set<TableName> tables, Map<String, Long> newTimestamps) throws IOException { systemTable.writeRegionServerLogTimestamp(tables, newTimestamps, backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void backup() throws IOException {\n long startTime = System.currentTimeMillis();\n\n this.backupTempDirPath = Files.createTempDirectory(BACKUP_TEMP_DIR_PREFIX).toString();\n Map<UUID, String> streamIdToTableNameMap = getStreamIdToTableNameMap();\n for (UUID streamId : streamsTo...
[ "0.6268771", "0.5403078", "0.53375185", "0.5333209", "0.5297353", "0.5206794", "0.5146533", "0.5116474", "0.5098883", "0.5091245", "0.50838035", "0.50683236", "0.50269747", "0.5021174", "0.5018176", "0.5009759", "0.5003042", "0.5001336", "0.5001126", "0.49750084", "0.49597257...
0.65210074
0
Read the timestamp for each region server log after the last successful backup. Each table has its own set of the timestamps.
public Map<TableName, Map<String, Long>> readLogTimestampMap() throws IOException { return systemTable.readLogTimestampMap(backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, Long> readRegionServerLastLogRollResult() throws IOException {\n return systemTable.readRegionServerLastLogRollResult(backupInfo.getBackupRootDir());\n }", "public void writeRegionServerLogTimestamp(Set<TableName> tables, Map<String, Long> newTimestamps)\n throws IOException {\n ...
[ "0.6390223", "0.5563609", "0.53370607", "0.5269748", "0.5257034", "0.5158785", "0.51286054", "0.50450015", "0.50418", "0.49915373", "0.497533", "0.49706498", "0.49431357", "0.48875278", "0.48626196", "0.48012695", "0.47969946", "0.47891745", "0.47615033", "0.4761377", "0.4742...
0.66029614
0
Return the current tables covered by incremental backup.
public Set<TableName> getIncrementalBackupTableSet() throws IOException { return systemTable.getIncrementalBackupTableSet(backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getBaseTable();", "List<TargetTable> retrieveBackgroundTargetTable(TargetTable ttable);", "public List<BackupInfo> getBackupHistory() throws IOException {\n return systemTable.getBackupHistory();\n }", "public void addIncrementalBackupTableSet(Set<TableName> tables) throws IOException {\n syste...
[ "0.5473332", "0.54692644", "0.54529583", "0.54001904", "0.5367205", "0.5365065", "0.530254", "0.5267778", "0.52651757", "0.52569646", "0.52322716", "0.51937544", "0.51918584", "0.5178829", "0.5177349", "0.5165958", "0.5162216", "0.510824", "0.5090668", "0.507703", "0.50735873...
0.7224701
0
Adds set of tables to overall incremental backup table set
public void addIncrementalBackupTableSet(Set<TableName> tables) throws IOException { systemTable.addIncrementalBackupTableSet(tables, backupInfo.getBackupRootDir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<TableName> getIncrementalBackupTableSet() throws IOException {\n return systemTable.getIncrementalBackupTableSet(backupInfo.getBackupRootDir());\n }", "protected abstract void addTables();", "private void inserts() {\n DBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n ...
[ "0.6618394", "0.6583517", "0.60465306", "0.5917683", "0.5842071", "0.5764697", "0.5658902", "0.5571039", "0.5552388", "0.553926", "0.5460932", "0.5408202", "0.53671974", "0.53358966", "0.5335323", "0.5312377", "0.5293038", "0.52631146", "0.52417016", "0.5237427", "0.5176141",...
0.8244133
0
Click handler that responds to user taps by drawing an increasingly smaller rectangle until it runs out of room. Then it draws a circle with the text "Done!". Demonstrates basics of drawing on canvas. 1. Create bitmap. 2. Associate bitmap with view. 3. Create canvas with bitmap. 4. Draw on canvas. 5. Invalidate the vie...
public void drawSomething(View view) { int screenWidth = view.getWidth(); int screenHeight = view.getHeight(); if (mOffset == OFFSET) { // is this our first click? Create the canvas object only once mBitmap = Bitmap.createBitmap(screenWidth, screenHeight, Bitmap.Config.ARGB_8888); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdrawView.startNew();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\n public void onDraw(Canvas canv) {\n canv.drawColor(Color.argb(255, 255, 0, 255));\n\n // Draw the bitmap leaving small outside border to see background\n ...
[ "0.5990986", "0.5931604", "0.59273094", "0.5895583", "0.5791514", "0.578526", "0.5767815", "0.5764507", "0.57616746", "0.56948614", "0.5684593", "0.56383294", "0.5638228", "0.5617639", "0.56143093", "0.55897665", "0.5581386", "0.5570552", "0.5567845", "0.5567845", "0.5554594"...
0.7876147
0
Special case for startup where FacesContext is not yet available
public SiteBeanDao( AplosContextListener aplosContextListener, Website website, Class<? extends AplosSiteBean> beanClass) { super( beanClass ); if( !aplosContextListener.isAplosSiteBeanDisabled( beanClass ) ) { if( website != null ) { this.setWebsiteId(website.getId()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void init(){\r\n\t\tfacesContext = FacesContext.getCurrentInstance();\r\n\t externalContext = facesContext.getExternalContext();\r\n\t response = (HttpServletResponse) externalContext.getResponse();\r\n\t}", "protected void setUpFacesContext() throws Exception\n {\n facesContextFac...
[ "0.6972951", "0.6719948", "0.6163008", "0.61574227", "0.61015534", "0.60943556", "0.60841346", "0.60363376", "0.59978807", "0.59862626", "0.59788257", "0.59711957", "0.59711957", "0.5905098", "0.58980006", "0.5893038", "0.5865449", "0.58293813", "0.58118594", "0.5804815", "0....
0.0
-1
Method for create new User.
@RequestMapping(value = "/users", method = RequestMethod.POST) public ResponseEntity create(@RequestBody final UserDto userDto) { final User userToSave = dozerBeanMapper.map(userDto, User.class); final User savedUser = userService.create(userToSave); final UserDto response = dozerBeanMapp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user) {\n\n\t}", "public void createUser(User user);", "UserCreateResponse createUser(UserCreateRequest request);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "CreateUserResult...
[ "0.8031611", "0.79626226", "0.79316336", "0.7910914", "0.7813146", "0.7621377", "0.74967694", "0.7463335", "0.74627715", "0.74499243", "0.74381053", "0.74298435", "0.73508596", "0.7329122", "0.7315158", "0.7303251", "0.7302183", "0.72463524", "0.7240277", "0.7214501", "0.7198...
0.0
-1
Method for update User from database.
@RequestMapping(value = "/users", method = RequestMethod.PUT) public ResponseEntity update(@RequestBody final UserDto userDto) { final User userToUpdate = dozerBeanMapper.map(userDto, User.class); final User userToResponse = userService.update(userToUpdate); final UserDto response = dozer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\...
[ "0.8248944", "0.8052191", "0.8005423", "0.7969811", "0.7956763", "0.79252356", "0.78852195", "0.7865338", "0.78336614", "0.7817093", "0.7811258", "0.78021955", "0.7776377", "0.7751968", "0.7751105", "0.77450913", "0.77312255", "0.7712698", "0.770009", "0.7695948", "0.7681239"...
0.0
-1
Method for fetch user by Id.
@RequestMapping(value = "/users/{userId}", method = RequestMethod.GET) public ResponseEntity fetch(@PathVariable final Integer userId) { final User userToResponse = userService.fetch(userId); final UserDto response = dozerBeanMapper.map(userToResponse, UserDto.class); return ResponseEntit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}", "User getUserById(Long id);", "User getUserById(Long id);", "@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n ...
[ "0.79224914", "0.785353", "0.785353", "0.78454465", "0.78374326", "0.78102493", "0.77987194", "0.77744156", "0.7753415", "0.77519274", "0.7746164", "0.77435154", "0.7723171", "0.7699498", "0.7696621", "0.7692203", "0.76661927", "0.76628745", "0.76547706", "0.7628204", "0.7615...
0.0
-1
Method for delete user by Id.
@RequestMapping(value = "/users/{userId}", method = RequestMethod.DELETE) public ResponseEntity delete(@PathVariable final Integer userId) { final User userToResponse = userService.fetch(userId); userService.delete(userId); final UserDto response = dozerBeanMapper.map(userToResponse, User...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteUserById(Long id);", "void deleteUserById(Integer id);", "void deleteUser(int id);", "public void deleteUser(Integer id) throws BadRequestException;", "public void deleteUser(long userId);", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteUser(...
[ "0.8761692", "0.8657495", "0.8413401", "0.8343554", "0.83200157", "0.83199275", "0.83044606", "0.82923305", "0.8266744", "0.8213135", "0.8206995", "0.817559", "0.8149617", "0.8141599", "0.8098357", "0.8080751", "0.8064969", "0.8043832", "0.78731346", "0.7860943", "0.7857005",...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static DetailsPersonFragment newInstance(Person person) { DetailsPersonFragment fragment = new DetailsPersonFragment(); Bundle args = new Bundle(); args.putSerializable(ARG_PARAM1, person); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_details_person, container, false); }
{ "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...
[ "0.67412704", "0.6726197", "0.672271", "0.6699313", "0.669242", "0.6689314", "0.6688617", "0.6686282", "0.66776836", "0.66766965", "0.6668088", "0.6667029", "0.66656464", "0.6662109", "0.66548616", "0.66512775", "0.66439325", "0.66397613", "0.6638282", "0.6634949", "0.6626262...
0.0
-1
Opens a connection to a gzipped file.
public static ExternalExp<Connection> gzfile(@Current final Context context, final String path, String open, String encoding, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedReader createReaderForGz(String gzFileName) throws IOException\r\n\t{\r\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(gzFileName));\r\n\t\tGzipCompressorInputStream gzIn = new GzipCompressorInputStream(in);\r\n\t\tBufferedReader rd = new BufferedReader(new InputStreamRead...
[ "0.5943567", "0.57149094", "0.5607046", "0.55222577", "0.52670395", "0.5120221", "0.50893253", "0.50126326", "0.49826843", "0.49603042", "0.49518716", "0.49467203", "0.48704037", "0.48575604", "0.48183358", "0.4786245", "0.47825637", "0.47478968", "0.47308972", "0.47102097", ...
0.7416901
0
Opens a connection to a file.
public static ExternalExp<Connection> file(@Current final Context context, final String path, String open, boolean blocking, String ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void open(String fileName);", "public void\topen(File path) throws IOException;", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public void connect(File file, long position, long size) throws FileNotFoundException;", "public void openFile()\r\n {\r\n ...
[ "0.6546936", "0.6446358", "0.6439575", "0.64059734", "0.6349794", "0.63059956", "0.6230837", "0.62105227", "0.62072426", "0.6206317", "0.61644185", "0.60839164", "0.6058948", "0.5969758", "0.59215885", "0.58639383", "0.58601683", "0.5857844", "0.5811704", "0.57992995", "0.579...
0.6800879
0
Reload datasets written with the function save.
public static SEXP loadFromConn2(@Current Context context, Connection conn, Environment env) throws IOException { DatafileReader reader = new DatafileReader(context, env, conn.getInputStream()); HasNamedValues data = EvalException.checkedCast(reader.readFile()); StringVector.Builder names = new Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "private void saveData() {\n }", "public void save()\n\t{\n\t\tfor(PlayerData pd : dataMap.values())\n\t\t\tpd.save();\n\t}", "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext(...
[ "0.64879376", "0.63591963", "0.6251665", "0.62101305", "0.6197989", "0.6186533", "0.6050564", "0.60076153", "0.60068035", "0.59762096", "0.5953154", "0.59252423", "0.59252423", "0.59252423", "0.591647", "0.5853057", "0.5846411", "0.5819493", "0.5778618", "0.5745876", "0.57403...
0.0
-1
at the moment, we assume the encoding is ASCII. We can't easily use an InputStreamReader here because it uses a buffer which messes up subsequent calls to read() on the underlying input stream
public static String readChar(Connection conn, int nchars, @Recycle(false) boolean useBytes) throws IOException { InputStream in = conn.getInputStream(); byte buffer[] = new byte[nchars]; int bytesRead; int totalBytesRead =0; while(totalBytesRead < nchars && (bytesRead=in.re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String readString(InputStream in) throws IOException {\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in, \"iso-8859-1\"));\r\n\t\tString inputLine;\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\twhile ((inputLine = reader.readLine()) != null) {\r\n\t\t\tresponse.append(...
[ "0.68391997", "0.6715328", "0.66225517", "0.6532713", "0.65213495", "0.639226", "0.6328088", "0.62357455", "0.6224001", "0.61653256", "0.61515397", "0.6047323", "0.6020216", "0.5979147", "0.59419125", "0.5936038", "0.59341705", "0.590704", "0.58372", "0.5808445", "0.5777217",...
0.0
-1
Retrieves a sequence of bytes as specified by a position/length key from a file, optionally decompresses, and unserializes the bytes. If the result is a promise, then the promise is forced.
public static SEXP lazyLoadDBfetch(@Current final Context context, @Current final Environment rho, IntVector key, String file, int compression, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ByteSequence getByteSequence(Key key) throws IOException;", "private Promise<byte[]> resolveApduFile(ApduFile file) {\n return new Promise<>(settlement -> {\n while (!file.isComplete()) {\n try {\n chunkWaitingLock.acquire();\n } catch (Interrupt...
[ "0.6547359", "0.56209964", "0.54881024", "0.54351085", "0.52458155", "0.5087721", "0.507874", "0.5015507", "0.50110286", "0.49853826", "0.49774268", "0.49715897", "0.4954139", "0.49268335", "0.49262536", "0.49119183", "0.4854208", "0.48126164", "0.48035386", "0.47875148", "0....
0.0
-1
Constructs the list of Budget Periods. Each entry in the list is a pair, where the "key" is the unique status code and the "value" is the textual description that is viewed by a user. The list is obtained from the BudgetDocument if any are defined there. Otherwise, it is obtained from a lookup of the BUDGET_PERIOD data...
public List<KeyLabelPair> getKeyValues() { List<KeyLabelPair> matchingAwardFnARateTypes = filterRateTypes(); matchingAwardFnARateTypes.add(0, new KeyLabelPair("", "select")); return matchingAwardFnARateTypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<GLJournalApprovalVO> getPeriod(String OrgId, String ClientId, String PeriodId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELEC...
[ "0.62195504", "0.6197837", "0.56417274", "0.5454064", "0.536286", "0.52657086", "0.5252162", "0.52189374", "0.51998985", "0.51589715", "0.5157428", "0.51254064", "0.5097785", "0.50675243", "0.50532186", "0.5033436", "0.5005457", "0.5000704", "0.49998286", "0.495689", "0.49418...
0.0
-1
adds a node to the end of the list
public boolean addNode(ListNode node){ if(firstNode == null) { firstNode = node; // length++; return true; } if(exists(node)) return false; ListNode temp = firstNode; while(temp.getNextNode() != null){ temp = temp.getNextNode(); } temp.setNext(node); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void addNodeAtEnd() {\n\t\tSystem.out.println(\"Adding a node at the End of the list\");\n\t\tdll.append(1);\n\t\tdll.append(2);\n\t\tdll.append(3);\n\t\tdll.print();\n\t}", "public Node<E> addToEnd(Node<E> node){\n Node<E> previous = tail.getPrevious();\n\n previous.setNext(node);\...
[ "0.7832105", "0.772599", "0.7518552", "0.7452348", "0.7379495", "0.7331516", "0.73161876", "0.72823536", "0.7256868", "0.725513", "0.7200875", "0.7198454", "0.7184081", "0.71319395", "0.7119079", "0.708151", "0.7070149", "0.7045265", "0.70231414", "0.7019252", "0.7018673", ...
0.0
-1
adds a location node to the list with a given ID, distance, and cost
public boolean addNode(int id, int distance, int cost){ return addNode(new ListNode(id, distance, cost)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String addNewNode(Double lat, Double lon);", "void addDistance(float distanceToAdd);", "public void addLocationToPath(Location location)\n {\n if(this.path.peek() != null)\n {\n this.totalTripCost += this.cost*location.distanceTo(this.path.peek());\n }\n this.path.add(...
[ "0.6436303", "0.6095529", "0.6054666", "0.60403174", "0.594302", "0.5812844", "0.5797958", "0.5733125", "0.568767", "0.56453896", "0.56077254", "0.55753225", "0.5569262", "0.5563591", "0.5561725", "0.5551505", "0.5539054", "0.5506927", "0.54894054", "0.54593056", "0.54146963"...
0.76161826
0
removes a specified node from the list, and returns it. If the node does not exist already, the function will return a null object.
public ListNode remove(ListNode node){ if(firstNode == null) return null; if(firstNode.equals(node)){ ListNode ret = firstNode; firstNode = firstNode.getNextNode(); // length--; return ret; } ListNode temp = firstNode; while(temp.getNextNode() != null){ if(temp.getNextNode().equals(node)){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\n\t}", "private E remove(Node node) {\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != node) {\n\n\t\t\tq ...
[ "0.7182513", "0.71595263", "0.708372", "0.68837583", "0.6858517", "0.68530846", "0.6844104", "0.678576", "0.6768211", "0.6697124", "0.667193", "0.66539395", "0.6638251", "0.66368455", "0.66326964", "0.6600791", "0.6598611", "0.65857023", "0.6581602", "0.6566391", "0.6558566",...
0.7167474
1
removes a node with a specified location ID from the list and returns it. If the node does not exist already, the function will return a null object.
public ListNode remove(int nodeID){ return remove(new ListNode(nodeID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "Node delete(int location){\n int test = location;\n ...
[ "0.6459226", "0.64431566", "0.6292609", "0.60585105", "0.5978855", "0.5953475", "0.5953475", "0.59430814", "0.5927904", "0.59045863", "0.5900938", "0.5900479", "0.5882526", "0.5878129", "0.5829372", "0.5829372", "0.5826481", "0.58214945", "0.58208424", "0.581782", "0.58126307...
0.68810016
0
returns if a given node already exists in this list
public boolean exists(ListNode node){ if(firstNode == null) return false; ListNode temp = firstNode; while(temp != null){ if(temp.equals(node)) return true; temp = temp.getNextNode(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsNode(Node n);", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.get...
[ "0.7151967", "0.7123834", "0.70298964", "0.6992523", "0.69282246", "0.69282246", "0.68276757", "0.6826758", "0.67193145", "0.66956806", "0.6673939", "0.66436875", "0.6601552", "0.65670395", "0.6523557", "0.6467579", "0.6453166", "0.6447278", "0.6403711", "0.63772875", "0.6365...
0.7448559
0
returns if a node with a given ID already exists in the list
public boolean exists(int nodeID){ return exists(new ListNode(nodeID)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean hasNode(int ID) {\n\t\treturn nodes.containsKey(ID);\n\t}", "public boolean containsNode(String id){\n\t\tfor(CircosNode check : nodes){\n\t\t\tif(check.getID() == id)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean usedByNode(Long id);", "public boolean IDUsed(int id){\n ...
[ "0.7380233", "0.7167609", "0.7161565", "0.7062337", "0.69626397", "0.6923229", "0.6780799", "0.6776593", "0.6772401", "0.6666149", "0.6629315", "0.6625267", "0.65141505", "0.64647406", "0.64615303", "0.6455413", "0.64548934", "0.644345", "0.64354205", "0.6433864", "0.6416075"...
0.775078
0
returns the length of the list
public int length(){ int length = 0; ListNode temp = firstNode; while(temp!=null){ length++; temp = temp.getNextNode(); } return length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size(){\n\t\treturn list.size();\n\t}", "public int size(){\n\t\treturn list.size();\n\t}", "public int size() {\n\t return list.size();\n }", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size()\n\t{\n\t\treturn list.size();\n\t}", "public int size(){\n\n \tretur...
[ "0.8355132", "0.8355132", "0.8332247", "0.82986945", "0.82986945", "0.82515335", "0.8239088", "0.8228235", "0.8196662", "0.81965905", "0.8193786", "0.8174291", "0.81699395", "0.8132762", "0.8115286", "0.81115144", "0.8096415", "0.80837274", "0.79867065", "0.79806066", "0.7972...
0.74118406
60
Returns the first node of the LinkedList
public ListNode getFirstNode(){ return firstNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedListNode<T> getFirstNode() {\n\t\t//return the head node of the list\n\t\treturn head;\t\t\n\t}", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn this.head;\n\t}", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn head;\n\t}", "public Node<E> getFirst(){\n Node<E> toRetu...
[ "0.82663625", "0.8121257", "0.81041896", "0.7733346", "0.7636137", "0.75129455", "0.73537624", "0.7150609", "0.7105886", "0.70394003", "0.7026324", "0.70221496", "0.69845414", "0.6960808", "0.69561946", "0.6913015", "0.6907059", "0.6901397", "0.68969595", "0.6891658", "0.6877...
0.7536104
5
gets a specified node contained within this list, or null otherwise
public ListNode getNode(ListNode node){ if(firstNode == null) return null; ListNode temp = firstNode; while(temp!=null){ if(temp.equals(node)) return temp; temp = temp.getNextNode(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node get(String tag)\n {\n if(_list!=null)\n {\n for(int i=0;i<_list.size();i++)\n {\n Object o=_list.get(i);\n if(o instanceof Node)\n {\n Node n=(Node)o;\n ...
[ "0.7297351", "0.6697463", "0.6665578", "0.66605073", "0.66377085", "0.6449757", "0.6417776", "0.6349364", "0.63454515", "0.632801", "0.632801", "0.632801", "0.632801", "0.6302375", "0.6296799", "0.6294093", "0.62596107", "0.62484884", "0.6224876", "0.6222152", "0.6198144", ...
0.6444653
6