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
/ This method verifies the user is created with the correct input values
@Test(priority = 1) public void validUserTest() { AdminDashboardPage adminPage=new AdminDashboardPage(driver); adminPage.clickUsersTab(); UsersListViewPage ulPage=new UsersListViewPage(driver); ulPage.clickNewUser(); CreateNewUserPage crUserPage=new CreateNewUserPage(driver); crUserPage.enterUserDetails("Kathy","pass","Kathy@noreply.com"); crUserPage.clickCreateUser(); adminPage.clickUsersTab(); String actUserCreated=ulPage.verifyCreatedUser(); Assert.assertEquals(actUserCreated,"Kathy"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validCreateInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameCreateField.getText().equals(\"\") || abbrevationCreateField.getText().equals(\"\")\n || chooseCityBoxCreate.getValue() == null || chooseLeagueBoxCreate.getValue() == null\n ...
[ "0.6936043", "0.6890363", "0.6814142", "0.6638148", "0.6534651", "0.65035194", "0.6432388", "0.64003325", "0.640028", "0.6387946", "0.6382979", "0.6381269", "0.628255", "0.6280149", "0.6279504", "0.6272875", "0.6258173", "0.62496126", "0.622272", "0.6192119", "0.61838883", ...
0.63995975
9
Test of appartentMagnitude method, of class SceneControl.
@Test public void testAppartentMagnitude() { System.out.println("appartentMagnitude"); // Test case one. System.out.println("Test case #1"); double magnitude = 12; double distance = 200; SceneControl instance = new SceneControl(); double expResult = 0.0003; double result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case two. System.out.println("Test case #2"); magnitude = 13; distance = -50; expResult = -999999; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case three. System.out.println("Test case #3"); magnitude = 56; distance = 20; expResult = -999999; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, -999999); // Test case four. System.out.println("Test case #4"); magnitude = 56; distance = 20; expResult = -999999; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case five. System.out.println("Test case #5"); magnitude = 14; distance = 0; expResult = -999999; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case six. System.out.println("Test case #6"); magnitude = -50; distance = 12; expResult = -0.3472; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case seven. System.out.println("Test case #7"); magnitude = 50; distance = 20; expResult = 0.125; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); // Test case eight. System.out.println("Test case #8"); magnitude = 13; distance = 1; expResult = 13; result = instance.appartentMagnitude(magnitude, distance); assertEquals(expResult, result, 0.0001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getMagnitude();", "public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }", "public void setMagnitude(int magnitude)\r\n {\r\n this.magnitude = magnitude; \r\n }", "boolean testMag(Tester t) {\n retu...
[ "0.6853062", "0.6609667", "0.6405914", "0.6302039", "0.6279324", "0.61680806", "0.614427", "0.6122344", "0.6015766", "0.5897673", "0.5850116", "0.5737296", "0.57209593", "0.5701913", "0.5606538", "0.55434924", "0.5532285", "0.55090547", "0.54978484", "0.5452859", "0.5439392",...
0.721168
0
Test of gallonsCauldronHolds method, of class SceneControl.
@Test public void gallonsCauldronHolds() { System.out.println("gallonsCauldronHolds"); //Test #1 System.out.println("Test case #1"); double diameter = 50; double depth = 25; SceneControl instance = new SceneControl(); double expResult = 212.500; double result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #2 System.out.println("Test case #2"); diameter = 15; depth = -12; expResult = -1; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #3 System.out.println("Test case #3"); diameter = -5; depth = 20; expResult = -1; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #4 System.out.println("Test case #4"); diameter = 0; depth = 30; expResult = -1; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #5 System.out.println("Test case #5"); diameter = 14; depth = 0; expResult = -1; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #6 System.out.println("Test case #6"); diameter = 1; depth = 12; expResult = .041; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); //Test #7 System.out.println("Test case #7"); diameter = 20; depth = 1; expResult = 1.36; result = instance.gallonsCauldronHolds(diameter, depth); assertEquals(expResult, result, 0.0001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void intersectsWithAutoCarPolygon() {\n // creating the needed movement vector\n radar.loop();\n radar.loop();\n List<WorldObject> list = radar.getRelevantObjectsForAEB();\n assertTrue(list.stream().anyMatch(t -> t.getId().equals(\"roadsign_speed_40_1\")));\n ...
[ "0.55687433", "0.5456505", "0.5434472", "0.5421635", "0.5332907", "0.530323", "0.5278628", "0.5228328", "0.5221731", "0.5174403", "0.5167739", "0.51557666", "0.5120114", "0.5116343", "0.5112534", "0.5110472", "0.5108289", "0.5085215", "0.50818366", "0.50804365", "0.5074613", ...
0.6018449
0
Test of averageAcceleration method, of class SceneControl.
@Test public void testAverageacceleration() { System.out.println("Average Acceleration"); // Test case one. System.out.println("Test case #1"); double distance = 200; long time = 16; SceneControl instance = new SceneControl(); double expResult = 0.78125; double result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case two. System.out.println("Test case #2"); distance = 80; time = 200; expResult = .002; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case three. System.out.println("Test case #3"); distance = 0; time = 15; expResult = 0; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case four. System.out.println("Test case #4"); distance = 12; time = 1; expResult = 12; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case five. System.out.println("Test case #5"); distance = 1; time = 1; expResult = 1; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case six. System.out.println("Test case #6"); distance = 3; time = 8; expResult = .046875; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); // Test case seven. System.out.println("Test case #7"); distance = 200; time = 1; expResult = 200; result = instance.averageAcceleration(distance, time); assertEquals(expResult, result, -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getAvgControl();", "public double getAverageAcceleration() {\n return (leftEnc.getAcceleration() + rightEnc.getAcceleration()) / 2;\n }", "double average();", "public void calcAcceleration() {\n double firstSpeed = get(0).distanceTo(get(1)) / ((get(1).getTime() - get(0).getTime()) * I...
[ "0.66056293", "0.6174682", "0.6151902", "0.61412513", "0.6102245", "0.6089179", "0.6089068", "0.597496", "0.5947487", "0.59473354", "0.5868061", "0.58514696", "0.5751024", "0.57479674", "0.57239825", "0.5699564", "0.5693196", "0.56767625", "0.5664518", "0.5663241", "0.5654534...
0.7839627
0
TODO Autogenerated method stub
@Override public void handleMessage(Message msg) { super.handleMessage(msg); switch(msg.what){ case baglanti: ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj); Toast.makeText(getApplicationContext(), "Baglandi",Toast.LENGTH_LONG).show(); String s = "successfully connected"; break; case mesajoku: byte[] readBuf = (byte[])msg.obj; String string = new String(readBuf); Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show(); break; } }
{ "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
Gibt die ID der FreizeitaktivitaetenEntität zurück.
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdFornecedor(){\n\t return idFornecedor;\n\t}", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "@Override\n public long getId() {\n return this.id;\n }", "public int getId(){\r\n ...
[ "0.676648", "0.669053", "0.66383946", "0.6580873", "0.6573247", "0.6567599", "0.656066", "0.65450156", "0.6540743", "0.6540743", "0.6538931", "0.65317744", "0.65317744", "0.65317744", "0.6528891", "0.6528481", "0.65083605", "0.65076935", "0.65041924", "0.6503667", "0.6503667"...
0.0
-1
Gibt den Namen der FreizeitaktivitaetenEntität zurück.
public String getNameAktivitaet() { return nameAktivitaet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFel...
[ "0.58799505", "0.58753806", "0.56338274", "0.557459", "0.55537766", "0.5527154", "0.5487499", "0.54562795", "0.54248935", "0.5414929", "0.5382085", "0.5374242", "0.5348321", "0.531559", "0.52808475", "0.5272642", "0.52723277", "0.5248247", "0.5230659", "0.52159727", "0.521522...
0.55189234
6
TODO Autogenerated method stub
@Override public int compare(Integer o1, Integer o2) { return o2.compareTo(o1); }
{ "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
i ai < ak < aj
public boolean find132Pattern(int [] nums){ if(nums.length < 3) return false; int [] min = new int [nums.length]; Stack<Integer> stack = new Stack<>(); min[0] = nums[0]; // compute the min till ith for (int i = 1 ; i < nums.length; i ++){ min[i] = Math.min(min[i], min[i-1]); } for(int j = nums.length-1; j>=0 ; j--){ if(nums[j] > min[j]){ while(!stack.isEmpty() && stack.peek() <= min[j]){ // pop from the stack stack.pop(); } if(!stack.isEmpty() && stack.peek() < nums[j]){ return true; } stack.push(nums[j]); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean less(int i, int j)\n {\n return pq[i].compareTo(pq[j]) < 0;\n }", "private static boolean less(Comparable[] pq, int i, int j) {\n return pq[i-1].compareTo(pq[j-1]) < 0;\n }", "private boolean isSmallLexi(String curr, String ori) {\n if (curr.length() != ori.lengt...
[ "0.6179703", "0.5971671", "0.57449764", "0.5508003", "0.5394107", "0.53884757", "0.53659856", "0.5221616", "0.52038395", "0.51623863", "0.51309395", "0.51280683", "0.511664", "0.5098226", "0.50913614", "0.5089749", "0.5070156", "0.50696915", "0.5051577", "0.50344", "0.5032524...
0.0
-1
Find sum of square
public boolean judgeSquare(int c){ for(long a = 0 ; a*a<c; a++){ double b = Math.sqrt(c-a*a); if(b == (int) b){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static long sumSquares(long n) {\n\t\tBigInteger nBI = BigInteger.valueOf(n);\n\t\tBigInteger sum = nBI.multiply(nBI.add(BigInteger.ONE));\n\t\tsum = sum.multiply(nBI.shiftLeft(1).add(BigInteger.ONE));\n\t\tsum = sum.divide(BigInteger.valueOf(6)).mod(BigInteger.valueOf(mod));\n\t\treturn sum.longValue();\n...
[ "0.7602877", "0.7368626", "0.7139606", "0.6696331", "0.666194", "0.666194", "0.65807855", "0.65199584", "0.64714617", "0.64502466", "0.63943756", "0.6384997", "0.6334627", "0.62782127", "0.62517446", "0.62122613", "0.6200332", "0.6195179", "0.6164966", "0.60947883", "0.608516...
0.0
-1
Smallest range in the sortest array
public int [] smallestRange(int [][] nums){ int minx = 0, miny = Integer.MAX_VALUE, max = Integer.MIN_VALUE; int [] next = new int [nums.length]; boolean flag = true; PriorityQueue<Integer> minQ = new PriorityQueue<Integer>((i, j)->nums[i][next[i]]-nums[j][next[j]]); for(int i = 0 ; i < nums.length; i ++){ minQ.offer(i); max = Math.max(max, nums[i][0]); } for(int i = 0 ; i < nums.length && flag; i++){ for(int j = 0 ; j < nums[i].length&& flag; j++){ int minI = minQ.poll(); if(miny-minx > max-nums[minI][next[minI]]){ minx = nums[minI][next[minI]]; miny = max; } next[minI]++; if(next[minI] == nums[minI].length){ flag = false; break; } minQ.offer(minI); max = Math.max(max, nums[minI][next[minI]]); } } return new int [] {minx, miny}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t...
[ "0.7365356", "0.6970576", "0.6867583", "0.68033415", "0.6788977", "0.67875105", "0.6741711", "0.6723977", "0.66963476", "0.6660035", "0.66593003", "0.6656657", "0.6641523", "0.66362184", "0.6634702", "0.66315764", "0.661111", "0.6606092", "0.6605282", "0.65854424", "0.6579604...
0.70000404
1
Average of linked list
public void average(TreeNode t, int i , List<Double> sum, List<Integer> count){ if(t == null) return; if(i < sum.size()){ sum.set(i, sum.get(i)+t.data); count.set(i, count.get(i)+1); }else{ sum.add(1.0 * t.data); count.add(1); } average(t.left, i+1, sum, count); average(t.right, i+1, sum, count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}", "private double average(Lin...
[ "0.70636004", "0.7025735", "0.70056194", "0.6907382", "0.68804556", "0.68741894", "0.6869409", "0.68451625", "0.6733791", "0.66993445", "0.6565076", "0.6560183", "0.6506461", "0.6447442", "0.6443713", "0.64120275", "0.6411727", "0.6410811", "0.6328707", "0.63110423", "0.63088...
0.57024384
83
Tree Serialization or Tree to String
public String tree2Str(TreeNode t){ if(t == null) return ""; Stack<TreeNode> stack = new Stack<>(); stack.push(t); Set<TreeNode> visited = new HashSet<>(); StringBuilder s = new StringBuilder(); while(!stack.isEmpty()){ t = stack.peek(); if(visited.contains(t)){ stack.pop(); s.append(")"); }else{ visited.add(t); s.append("(" + t.data); if(t.left == null && t.right != null){ s.append("()"); } if(t.right != null){ stack.push(t.right); } if(t.left != null){ stack.push(t.left); } } } return s.substring(1, s.length()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String serialize(TreeNode root) {\n StringBuilder builder = new StringBuilder();\n serialize(root, builder);\n return builder.toString();\n }", "public String serialize(TreeNode root) {\n StringBuffer rst = preorderTraversal(root, new StringBuffer());\n return rst.toString();\n\n ...
[ "0.74804384", "0.7478977", "0.7437193", "0.743172", "0.742871", "0.742871", "0.742871", "0.74251664", "0.7405431", "0.74045146", "0.7402151", "0.7387429", "0.7384447", "0.7380271", "0.73762476", "0.7375569", "0.73551035", "0.73284113", "0.7326634", "0.7272023", "0.7265359", ...
0.6848718
62
Short distance in maze
public int shortestDistance(int [][] maze, int [] start, int [] dest){ int [][] distance = new int [maze.length][maze[0].length]; for(int [] row: distance){ java.util.Arrays.fill(row, Integer.MAX_VALUE); } distance[start[0]][start[1]]= 0; distanceDFS(maze, start, distance); return distance[dest[0]][dest[1]] == Integer.MAX_VALUE ? -1 : distance[dest[0]][dest[1]]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int CalcDistance ( )\r\n\t{\r\n\t\tfor ( int i = 0; i<size; i++ )\r\n\t\t{\r\n\t\t\tfor ( int offR = 0; offR <= size/2; offR++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].se...
[ "0.67247385", "0.6312163", "0.62332577", "0.6171112", "0.61599725", "0.61452097", "0.61370176", "0.6090865", "0.6090003", "0.6041414", "0.60384387", "0.60266185", "0.60080326", "0.6004812", "0.59710974", "0.59695154", "0.59653664", "0.59529424", "0.5937811", "0.59027874", "0....
0.54553294
78
find the longest string from the dictionary
public boolean isSubSequence(String x, String y){ int j = 0; for(int i = 0 ; i < x.length() && j< y.length(); i++){ if(x.charAt(j) == y.charAt(i)){ j++; } } return j == x.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int longestString(List<String> arr) {\n\t\tList<String> ll=new ArrayList();\r\n\t\tlongestString(arr,0,\"\",ll);\r\n\t\tint max=0;\r\n\t\tfor(String a:ll) {\r\n\t\t\tint len=a.length();\r\n\t\t\tif(len>max) {\r\n\t\t\t\tmax=len;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "private static int l...
[ "0.70038635", "0.6984744", "0.69818014", "0.697605", "0.69741195", "0.6931862", "0.687387", "0.6823949", "0.68109953", "0.6799728", "0.6792556", "0.6784123", "0.67582107", "0.6750486", "0.6744416", "0.6720144", "0.67097557", "0.6685123", "0.6669647", "0.66380143", "0.65995574...
0.0
-1
Longest common subseq with dynamic programming
public int minDistanceDP(String s1, String s2){ int [][] dp = new int [s1.length()+1][s2.length()+1]; for(int i = 0 ; i <= s1.length(); i ++){ for(int j = 0; j <= s2.length(); j++){ if (s1.charAt(i) == s2.charAt(j)){ dp[i][j] = 1 + dp[i-1][j-1]; }else{ dp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]); } } } return s1.length() + s2.length() - 2*dp[s1.length()][s2.length()]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int longestCommonSubsequence(String text1, String text2) {\n Map<Character, List<Integer>> characterListMap = new HashMap<>();\n char[] cA = text1.toCharArray();\n for (int i = 0; i < cA.length; i++) {\n if (characterListMap.get(cA[i]) == null) {\n List<...
[ "0.71050197", "0.7084067", "0.7042276", "0.7012286", "0.6924448", "0.6813975", "0.67620593", "0.6757631", "0.67079365", "0.6542386", "0.6436459", "0.63034374", "0.6298623", "0.6272861", "0.6258559", "0.6254266", "0.6250029", "0.6240256", "0.61735535", "0.61549705", "0.612907"...
0.0
-1
+/ to get a given sum
public int findTargetSubWays(int [] nums, int s){ int count = 0; return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSum();", "double getSum();", "@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }", "public static double sum() {\n System.out.println(\"Enter augend\");\n double a = getNumber();\n System.out.println(\"Enter addend\");\n ...
[ "0.7460313", "0.7460313", "0.67755955", "0.6754929", "0.669857", "0.64800054", "0.63939166", "0.6377139", "0.6375201", "0.63615364", "0.6355616", "0.6337115", "0.63339514", "0.6326965", "0.63143075", "0.63083327", "0.62638366", "0.62632066", "0.62519926", "0.62446433", "0.623...
0.0
-1
Next permutation greater than given number
public void nextPermutation(int [] nums){ int i = nums.length - 2; while(i >= 0 && nums[i+1] <= nums[i]) // from right i--; if(i >= 0){ int j = nums.length-1; while(j>=0 && nums[j] <= nums[i]){ j--; } swapInArr(nums, i, j); } reverseArray(nums, i+1, nums.length-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void nextPermutation(int[] num) {\n int rindex, index;\n for (rindex = num.length - 1; rindex > 0 && num[rindex] <= num[rindex - 1]; rindex--);\n if (rindex > 0) {\n for (index = num.length - 1; num[index] <= num[rindex - 1]; index--);\n swap(num, index, rin...
[ "0.6960524", "0.692094", "0.6699153", "0.6644969", "0.6419097", "0.6372537", "0.6335488", "0.62912667", "0.62309253", "0.62279284", "0.6199248", "0.60513955", "0.60485107", "0.5976122", "0.5915776", "0.5855151", "0.5749922", "0.566041", "0.5644235", "0.5567239", "0.5492607", ...
0.5733051
17
Check whether it is a subset problem
public boolean isSubSetSumProblem(int [] set, int n , int sum){ if (sum == 0) return true; if(n == 0 && sum != 0) return false; if(set[n-1] > sum) return isSubSetSumProblem(set, n-1, sum); return isSubSetSumProblem(set, n-1, sum) || isSubSetSumProblem(set, n-1, sum-set[n-1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\...
[ "0.8014027", "0.7826032", "0.77582407", "0.77582407", "0.769139", "0.75042367", "0.74412453", "0.7287281", "0.7201392", "0.7193531", "0.70889163", "0.69333804", "0.69073385", "0.68805194", "0.6838746", "0.68057305", "0.68006355", "0.66242325", "0.6598595", "0.659153", "0.6546...
0.54923725
64
Print string with condition
public String printString(String str, char ch, int count){ int occ = 0, i ; if (count == 0){ return str; } for (i = 0 ; i < str.length(); i ++){ if(str.charAt(i) == ch){ occ++; } if(occ == count){ break; } } return str.substring(i+1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\r\n {\r\n return String.format(getTexto()+\"|\"+getCondition());\r\n }", "private void myPrint(String x) {\n if (printOn) {\n System.out.println(x);\n }\n }", "@Override\n\tpublic void printOn(PrintStream out, int depth) {\n\t\tIndentable.printInde...
[ "0.6751988", "0.60939646", "0.60892797", "0.606916", "0.5963797", "0.59301203", "0.59056383", "0.58858347", "0.5875541", "0.5875128", "0.5869162", "0.5861111", "0.58131933", "0.57793045", "0.57781065", "0.57693374", "0.5765468", "0.5708079", "0.57006836", "0.5695731", "0.5693...
0.0
-1
returns char count array
public int [] getCharCount(String str){ int CHAR_ARRAY = 26; int [] count = new int [CHAR_ARRAY]; for(char c: str.toCharArray()){ count[c-'a']++; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void getCharCountArray(String str) {\n for (int i = 0; i < str.length(); i++)\n count[str.charAt(i)]++;\n }", "public static int [] countChar(String str) {\n char data [] = str.toCharArray();\n \n int count [] = new int [2];\n \n for (int i = 0; i < ...
[ "0.7325778", "0.6963379", "0.67997384", "0.66378236", "0.66193086", "0.6584698", "0.6517234", "0.65145814", "0.650242", "0.64883137", "0.6472403", "0.6436124", "0.6432087", "0.63845974", "0.63845974", "0.63342977", "0.6327975", "0.63222384", "0.6264205", "0.62492585", "0.6236...
0.7235604
1
Gets the result of the search.
public String getResult() { return bashCommand.getStdOutString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Search getSearch();", "public MatchResult getResult() {\n return result;\n }", "public String extractresult(String search) {\n\t\tfd.findElement(By.id(\"sb_form_q\")).sendKeys(search);\r\n\t\tfd.findElement(By.id(\"sb_form_go\")).click();\r\n\t\t\r\n\t\treturn fd.findElement(By.className(\"sb_count\"...
[ "0.69122934", "0.6813273", "0.6751091", "0.67284685", "0.6715351", "0.66403306", "0.65917504", "0.6585495", "0.6578209", "0.65661937", "0.6552144", "0.65084225", "0.6483926", "0.6471427", "0.6469811", "0.6469402", "0.64668846", "0.6425226", "0.6421671", "0.638933", "0.6385902...
0.0
-1
TODO: 02.03.2018 a bit weird, but makes view more passive
private void setRestaurantList(List<RestaurantModel> restaurants) { restaurantsAdapter.setRestaurants(restaurants); view().hideLoader(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void view() {\n\t\t\n\t}", "void mo12147a(View view);", "public abstract void mo8519a(View view);", "StableView view();", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "public interface View {\n\t\n\tpublic DifferenceOp...
[ "0.6765727", "0.61577135", "0.6101042", "0.6016399", "0.6005994", "0.6005994", "0.6001563", "0.59406525", "0.59133947", "0.5903978", "0.59013337", "0.5896046", "0.5877498", "0.586365", "0.586365", "0.58351725", "0.58135337", "0.58051205", "0.5796406", "0.57926595", "0.5766218...
0.0
-1
Created by Administrator on 2019/4/23.
public interface RoleServiceI { List<Role> getAllRoles(); List<Role> getRoleByUserId(Integer userId); void updateUserAndRole(Integer uid,int[] rid); PageInfo<Role> getPageRoles(Integer pageNum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Date getCreated()\n {\n return null;\n }", "private stendhal() {\n\t}", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "CreationData creationData(...
[ "0.5980366", "0.59758157", "0.58906573", "0.58577377", "0.5851664", "0.5818762", "0.58137393", "0.5806208", "0.58044213", "0.5798093", "0.57533866", "0.57274544", "0.5709842", "0.5699327", "0.5693214", "0.5689864", "0.5677251", "0.56755286", "0.5659936", "0.56520075", "0.5638...
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_personal_infomation, 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.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Constructs a prototypical Event.
public LogEvent(Object source, String message) { super(source); this.message = message + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "BasicEvent createBasicEvent();", "public Event() {}", "BasicEvents createBasicEvents();", "public Event() {\r\n\r\n\t}", "public\n CreateEvent()\n {}", "public Event() {\n\t}", "public Event(){\n \n }", "public Event(){\n\n }", "public ...
[ "0.76908594", "0.76908594", "0.75281155", "0.7197754", "0.7001196", "0.695871", "0.6946532", "0.69160366", "0.6910357", "0.68885505", "0.6885849", "0.68744165", "0.68744165", "0.6871053", "0.67088133", "0.6532806", "0.652504", "0.65150064", "0.6464161", "0.640194", "0.6342035...
0.0
-1
Sets the text that will be printed on the checkbox. The checkbox width will resize to accommodate the text.
public void setCheckBoxText(String text) { if (text == null) { Log.warning("Attempted to set checkbox text to a null string."); return; } synchronized (this) { checkBoxText = text; textHeight = 0; textWidth = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public I18nCheckbox(String text) {\n super(text);\n }", "public void setCaption(String caption) {\n\t // Note how we use the use composition of the contained widgets to provide\n\t // only the methods that we want to.\n\t checkBox.setText(caption);\n\t }", "@Override\r\n\tpublic voi...
[ "0.64895874", "0.6350647", "0.6284992", "0.62187463", "0.61413836", "0.6139777", "0.61070585", "0.6067058", "0.60241127", "0.60195893", "0.5999471", "0.59891135", "0.59846383", "0.59257567", "0.5911929", "0.5902916", "0.5897069", "0.5887889", "0.5887541", "0.58810586", "0.586...
0.771186
0
Sets the height of the checkbox. If not set, the height defaults to the default GUI elements height, i.e. approx one line. Note: The width is calculated automatically using the checkbox text. The minimum height is 10 pixels. If an attempt is made to set it lower then a warning will be logged and the height will be unaffected.
public void setHeight (int height) { if (height < 10) { Log.warning("Attempted to set a checkbox height of less than 10 pixels."); return; } synchronized (this) { this.height = height; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "@Override\n public int heightHint() {\n return isMultiline() ? 45 : 15;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setFitH...
[ "0.59462655", "0.59462655", "0.58816504", "0.5832186", "0.58308357", "0.58308357", "0.5753495", "0.5749773", "0.57227015", "0.57154965", "0.5699752", "0.56989264", "0.5637794", "0.5614962", "0.55924827", "0.55767745", "0.5561542", "0.5561493", "0.55485827", "0.5314754", "0.52...
0.7103692
0
Sets the corner arc radius in pixels. This generally does not have to be set as the default value of 5 pixels looks good in most circumstances.
public void setCornerArcRadius (int cornerArcRadius) { if (cornerArcRadius <= 0) { Log.warning("Attempted to set a checkbox corner arc radius of less than or equal to 0."); } synchronized (this) { this.cornerArcRadius = cornerArcRadius; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setCornerRadii(float cornerRadius) {\n setCornerRadii(new float[] { cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius });\n }", "public MyProgress setCornerRadius(float radius) {\n mCornerRadius = radius;\n ret...
[ "0.6615468", "0.6566146", "0.65485483", "0.6461927", "0.64117837", "0.63979346", "0.633324", "0.6305054", "0.6262144", "0.62211597", "0.6206309", "0.61954457", "0.6189201", "0.6181955", "0.60550094", "0.6044072", "0.5989271", "0.5977587", "0.5945559", "0.5862043", "0.5855742"...
0.7030004
0
Toggles the state of the checkbox when it is clicked.
@Override public void clicked(int localX, int localY) { synchronized (this) { if (state == State.CHECKED) { state = State.UNCHECKED; } else { state = State.CHECKED; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void toggle() {\n checkBox.toggle();\n }", "public void toggle() {\n setChecked(!checked);\n }", "@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}", "public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}", "@Override\r\n\t\t\t public void onClick(V...
[ "0.83585274", "0.7964216", "0.7884131", "0.7193046", "0.71246636", "0.6943655", "0.6915967", "0.6913919", "0.68698245", "0.6862972", "0.682268", "0.6797244", "0.6707398", "0.6625252", "0.6602092", "0.65840536", "0.65305203", "0.6527546", "0.649043", "0.64622647", "0.6415458",...
0.63561314
26
Allows the user to explicitly set the state of the checkbox.
public void setState (State state) { synchronized (this) { this.state = state; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChecked()\n\t{\n\t\tchecked = true;\n\t}", "void setManualCheck (boolean value);", "public abstract void setCheck(Boolean check);", "@Override\n\tpublic void setChecked(boolean checked) {\n\t\tthis.checked = checked;\n\t}", "public void toggle() {\n setChecked(!checked);\n }", "public ...
[ "0.7671271", "0.71352726", "0.71002513", "0.70291615", "0.70017934", "0.6986671", "0.6956375", "0.6907865", "0.69064426", "0.6899888", "0.6870094", "0.6868827", "0.6805446", "0.67581433", "0.67174333", "0.67157423", "0.67021984", "0.6693599", "0.6669051", "0.666876", "0.66345...
0.0
-1
Allows the user to query the state of the checkbox.
public State getState () { synchronized (this) { return state; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getCheckState();", "boolean getIsChecked();", "boolean isChecked();", "boolean isChecked();", "CheckBox getCk();", "public Boolean getCheckBox() {\n return (Boolean) getAttributeInternal(CHECKBOX);\n }", "public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}", "void onCheckedTriS...
[ "0.7408912", "0.7179708", "0.649945", "0.649945", "0.648841", "0.64736027", "0.6459183", "0.6434097", "0.63838047", "0.63218033", "0.631825", "0.6317086", "0.6317086", "0.6317086", "0.6300116", "0.62597775", "0.6196506", "0.61519027", "0.6136637", "0.6085563", "0.60718083", ...
0.0
-1
Draws the checkbox on the screen. Called by the graphics loop on the graphics thread.
@Override public void draw(Graphics2D g2) { synchronized (this) { // Recalculate the text/button size is this is the first time since changing the button text. if (textHeight == 0) { FontMetrics metrics = g2.getFontMetrics(); textHeight = metrics.getAscent(); textWidth = metrics.stringWidth(checkBoxText); // Calculate the button width with padding (on either side). width = textWidth + 3 * TEXT_MARGIN + CHECK_BOX_SIZE; } // Draw the background and outline. g2.setColor(Color.WHITE); g2.fillRoundRect(xPos, yPos, width, height, cornerArcRadius, cornerArcRadius); g2.setColor(Color.BLACK); g2.draw(new RoundRectangle2D.Double(xPos, yPos, width, height, cornerArcRadius, cornerArcRadius)); // Draw the text on the checkbox. g2.drawString(checkBoxText, xPos + TEXT_MARGIN + CHECK_BOX_SIZE + TEXT_MARGIN, yPos + (height / 2) + (textHeight / 2)); // Draw the outside of the checkbox, then the inside. g2.draw(new Rectangle2D.Double(xPos + TEXT_MARGIN, yPos + (height / 2.0) - (CHECK_BOX_SIZE / 2.0), CHECK_BOX_SIZE, CHECK_BOX_SIZE)); if (state == State.CHECKED) { g2.fillRect(xPos + TEXT_MARGIN, yPos + (height / 2) - (CHECK_BOX_SIZE / 2), CHECK_BOX_SIZE, CHECK_BOX_SIZE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawCheck(Graphics2D g2, boolean enabled, int x, int y, int width, int height)\r\n/* 97: */ {\r\n/* 98:140 */ g2.setColor(enabled ? UIManager.getColor(\"CheckBox.check\") : MetalLookAndFeel.getControlDisabled());\r\n/* 99: */ \r\n/* 100: */ \r\n/* 101:143 */ int right...
[ "0.73362184", "0.7096759", "0.66625607", "0.65082246", "0.63902783", "0.62663454", "0.61780787", "0.6041029", "0.6010572", "0.59995514", "0.59603626", "0.5953541", "0.5914777", "0.58859974", "0.5878191", "0.5855012", "0.5841652", "0.5723132", "0.568189", "0.5677226", "0.56708...
0.7224827
1
Returns the App path for the given kubernetes service or controller id or null if it cannot be found
protected String getAppPath(String serviceId) { if (Strings.isNullOrBlank(serviceId)) { return null; } MBeanServer beanServer = getMBeanServer(); Objects.notNull(beanServer, "MBeanServer"); if (!beanServer.isRegistered(KUBERNETES_OBJECT_NAME)) { LOG.warn("No MBean is available for: " + KUBERNETES_OBJECT_NAME); return null; } String branch = "master"; Object[] params = { branch, serviceId }; String[] signature = { String.class.getName(), String.class.getName() }; if (LOG.isDebugEnabled()) { LOG.debug("About to invoke " + KUBERNETES_OBJECT_NAME + " appPath" + Arrays.asList(params) + " signature" + Arrays.asList(signature)); } try { Object answer = beanServer.invoke(KUBERNETES_OBJECT_NAME, "appPath", params, signature); if (answer != null) { return answer.toString(); } } catch (Exception e) { LOG.warn("Failed to invoke " + KUBERNETES_OBJECT_NAME + " appPath" + Arrays.asList(params) + ". " + e, e); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getApplicationContextPath();", "public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new Ru...
[ "0.524579", "0.5225141", "0.5209254", "0.5191666", "0.50885624", "0.50687927", "0.500607", "0.48777416", "0.48448628", "0.48309112", "0.4803507", "0.47664863", "0.47652978", "0.47601047", "0.47592396", "0.4757802", "0.474592", "0.47437227", "0.47363204", "0.47319713", "0.4724...
0.7616593
0
Inserts a new row in the nomina_puesto table.
public NominaPuestoPk insert(NominaPuesto dto) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCo...
[ "0.6897643", "0.65593565", "0.6557037", "0.6545986", "0.65027", "0.64797974", "0.6445501", "0.6420198", "0.6391535", "0.6373449", "0.63631856", "0.63497055", "0.6334034", "0.6293743", "0.62830526", "0.62771934", "0.62617964", "0.6226657", "0.62255234", "0.6215868", "0.6173560...
0.5796345
63
Updates a single row in the nomina_puesto table.
public void update(NominaPuestoPk pk, NominaPuesto dto) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(Pessoa p) {\n\t\tdb.save(p);\t\t\n\t}", "public int modificarPresidente(int idpresi,int idcam,int idequipo, String nombre, String paterno,String materno,String dni,String fecNac,String fechaDirect,String telefono){\n sql=\"UPDATE presidente set idCampeonato='\"+idcam+\"', idEquipo='\"+idequ...
[ "0.69035137", "0.6513556", "0.6423762", "0.6287141", "0.62596357", "0.6225623", "0.619357", "0.6169434", "0.61420524", "0.6098271", "0.6079899", "0.60687655", "0.601193", "0.6006638", "0.5994352", "0.59398174", "0.5937116", "0.5931121", "0.5880075", "0.58753216", "0.58677155"...
0.59853435
15
Deletes a single row in the nomina_puesto table.
public void delete(NominaPuestoPk pk) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n ...
[ "0.68224066", "0.68167484", "0.6724714", "0.6714496", "0.67066765", "0.6650904", "0.6646385", "0.6579647", "0.65451324", "0.65223145", "0.65158796", "0.6503946", "0.6498855", "0.647048", "0.6457865", "0.6443701", "0.6426635", "0.6401057", "0.63649297", "0.63616806", "0.635843...
0.7048514
0
Returns the rows from the nomina_puesto table that matches the specified primarykey value.
public NominaPuesto findByPrimaryKey(NominaPuestoPk pk) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto findByPrimaryKey(int idPuesto) throws NominaPuestoDaoException;", "public NominaPuesto[] findWhereIdPuestoEquals(int idPuesto) throws NominaPuestoDaoException;", "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws Pro...
[ "0.678517", "0.61810535", "0.61513233", "0.6138926", "0.61341095", "0.6042555", "0.59772635", "0.59762275", "0.59662366", "0.59551126", "0.5869591", "0.58648914", "0.58411795", "0.57978463", "0.5797733", "0.57292247", "0.56568885", "0.55928046", "0.5587759", "0.5577089", "0.5...
0.71114814
0
Returns all rows from the nomina_puesto table that match the criteria 'ID_PUESTO = :idPuesto'.
public NominaPuesto findByPrimaryKey(int idPuesto) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto[] findWhereIdPuestoEquals(int idPuesto) throws NominaPuestoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_pdv = ?\",\r\...
[ "0.7341222", "0.6364182", "0.61311084", "0.61147875", "0.6019425", "0.600201", "0.5975221", "0.5963406", "0.5961483", "0.59589005", "0.5955417", "0.5886785", "0.5857977", "0.5842744", "0.5805303", "0.5788141", "0.5758916", "0.57431054", "0.57266235", "0.5713728", "0.57042295"...
0.6902933
1
Returns all rows from the nomina_puesto table that match the criteria ''.
public NominaPuesto[] findAll() throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é ...
[ "0.6367314", "0.6236885", "0.6192462", "0.6083201", "0.6001438", "0.59374714", "0.5836809", "0.583163", "0.57980317", "0.5794998", "0.57833594", "0.5730823", "0.5718727", "0.5711152", "0.57066846", "0.5706506", "0.5703773", "0.5678075", "0.56738997", "0.56681126", "0.56485254...
0.5526602
28
Returns all rows from the nomina_puesto table that match the criteria 'ID_PUESTO = :idPuesto'.
public NominaPuesto[] findWhereIdPuestoEquals(int idPuesto) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto findByPrimaryKey(int idPuesto) throws NominaPuestoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_pdv = ?\",\r\n ...
[ "0.6901963", "0.63648546", "0.6129456", "0.61138785", "0.60187155", "0.6002914", "0.5974218", "0.59640205", "0.59616876", "0.59586453", "0.5956098", "0.58852965", "0.58570534", "0.58422464", "0.58052087", "0.5786003", "0.5758696", "0.57426", "0.57255566", "0.5712879", "0.5703...
0.73416173
0
Returns all rows from the nomina_puesto table that match the criteria 'ID_EMPRESA = :idEmpresa'.
public NominaPuesto[] findWhereIdEmpresaEquals(int idEmpresa) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é ...
[ "0.676013", "0.6625794", "0.6612312", "0.6456805", "0.6432571", "0.63883936", "0.6327635", "0.62884915", "0.6261395", "0.62170976", "0.6155594", "0.6152594", "0.6144464", "0.61279106", "0.60992885", "0.60597885", "0.60585976", "0.602786", "0.6027268", "0.6014866", "0.6006697"...
0.71148676
0
Returns all rows from the nomina_puesto table that match the criteria 'ID_ESTATUS = :idEstatus'.
public NominaPuesto[] findWhereIdEstatusEquals(int idEstatus) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensBanco[] findWhereIdEstatusEquals(int idEstatus) throws SgfensBancoDaoException;", "public SmsAgendaGrupo[] findWhereIdEstatusEquals(int idEstatus) throws SmsAgendaGrupoDaoException;", "public Cliente[] findWhereIdEstatusEquals(int idEstatus) throws ClienteDaoException;", "public SgfensPedidoProd...
[ "0.66826403", "0.6618329", "0.6590854", "0.6571382", "0.6359162", "0.63029516", "0.62832135", "0.59922874", "0.58018744", "0.5766408", "0.57651466", "0.5741001", "0.5658876", "0.54940873", "0.54727393", "0.54579586", "0.5452562", "0.5418771", "0.5416564", "0.53964037", "0.538...
0.7617799
0
Returns all rows from the nomina_puesto table that match the criteria 'NOMBRE = :nombre'.
public NominaPuesto[] findWhereNombreEquals(String nombre) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CrGrupoFormulario[] findWhereNombreEquals(String nombre) throws CrGrupoFormularioDaoException;", "public List<Usuario> buscarPorNombre(String nombre) throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(USUARIOS_POR_NOMBRE);\n preSt.setString(1, \"%\" + nombre + \"%\...
[ "0.6911942", "0.6699221", "0.6694586", "0.6559514", "0.6443709", "0.6402769", "0.6387682", "0.6382782", "0.6367667", "0.63022316", "0.6301422", "0.62649906", "0.62628907", "0.6242025", "0.6229561", "0.62272775", "0.61442685", "0.61399406", "0.61020964", "0.60922855", "0.60809...
0.7604883
0
Returns all rows from the nomina_puesto table that match the criteria 'DESCRIPCION = :descripcion'.
public NominaPuesto[] findWhereDescripcionEquals(String descripcion) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Pais findByNombre(String descripcion) {\n\t\treturn (Pais) getSession().createQuery(\"from Pais where descripcion = :descripcion\").setParameter(\"descripcion\", descripcion).uniqueResult();\n\t}", "public SgfensPedidoProducto[] findWhereDescripcionEquals(String descripcion) throws SgfensPedi...
[ "0.7172471", "0.6497752", "0.63417876", "0.6176738", "0.59311926", "0.579845", "0.5774888", "0.57156795", "0.56819206", "0.5674638", "0.56738234", "0.5668262", "0.5658617", "0.56223756", "0.5608329", "0.5595044", "0.55867565", "0.5572945", "0.5550732", "0.5508578", "0.5499819...
0.71311885
1
Returns all rows from the nomina_puesto table that match the criteria 'SUELDO_DIARIO_INTEGRADO = :sueldoDiarioIntegrado'.
public NominaPuesto[] findWhereSueldoDiarioIntegradoEquals(double sueldoDiarioIntegrado) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereComentariosEquals(String comentarios) throws SgfensPedidoProductoDaoException;", "@Override\n\tpublic Ingrediente buscarIngredientePorNombre(String nombre) {\n\t...
[ "0.62932765", "0.60930765", "0.58966655", "0.58941215", "0.58637416", "0.5829792", "0.5809633", "0.57623136", "0.5751389", "0.5682331", "0.56400126", "0.56330305", "0.5597545", "0.5557373", "0.5551534", "0.55204034", "0.5518953", "0.5516073", "0.5510546", "0.54948217", "0.548...
0.7025143
0
Sets the value of maxRows
public void setMaxRows(int maxRows);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;\n\t}", "public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;...
[ "0.87787557", "0.87787557", "0.87161684", "0.87161684", "0.87161684", "0.8707965", "0.8707965", "0.8358402", "0.8312648", "0.82936466", "0.7996199", "0.7944771", "0.760557", "0.760557", "0.755075", "0.755075", "0.7532389", "0.7532389", "0.7522595", "0.7461296", "0.74321204", ...
0.8893311
16
Gets the value of maxRows
public int getMaxRows();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}", "public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}", "public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}", "public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}", "public int getMaxRows() {\n\t\treturn maxRows;\n\t}", "public...
[ "0.89268667", "0.89268667", "0.8919737", "0.8919737", "0.89009005", "0.89009005", "0.8418783", "0.8381294", "0.8103122", "0.79800224", "0.7852489", "0.77319413", "0.76905364", "0.76470834", "0.75391483", "0.75391483", "0.75257224", "0.74832594", "0.74832594", "0.74832594", "0...
0.8692703
22
Returns all rows from the nomina_puesto table that match the specified arbitrary SQL statement
public NominaPuesto[] findByDynamicSelect(String sql, Object[] sqlParams) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto[] findByDynamicWhere(String sql, Object[] sqlParams) throws NominaPuestoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByDynamicWhere(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ...
[ "0.5991721", "0.5836434", "0.5822242", "0.57292885", "0.56665254", "0.56199425", "0.55719316", "0.55698454", "0.55567646", "0.5538269", "0.5492736", "0.54475945", "0.5436484", "0.54347646", "0.5427084", "0.54264927", "0.5420784", "0.5406569", "0.54061824", "0.5399115", "0.537...
0.6022499
0
Returns all rows from the nomina_puesto table that match the specified arbitrary SQL statement
public NominaPuesto[] findByDynamicWhere(String sql, Object[] sqlParams) throws NominaPuestoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto[] findByDynamicSelect(String sql, Object[] sqlParams) throws NominaPuestoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByDynamicWhere(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ...
[ "0.6022851", "0.583716", "0.58236533", "0.57296675", "0.5666005", "0.56200284", "0.557266", "0.55706376", "0.5557734", "0.5539579", "0.5493194", "0.54490614", "0.5437658", "0.543355", "0.5427892", "0.5427641", "0.54216677", "0.54069966", "0.5406936", "0.5399567", "0.53783697"...
0.59925264
1
/ Convert logical page number to physical frame number.
public int accessMemory(int id, int pageNumber) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPageFrameNum(PageFrame pageFrame) {\n int frameNumber = -1;\n for (int x = 0; x < 16; x++) {\n if (ram[x][0] == pageFrame) {\n frameNumber = x;\n }\n }\n return frameNumber;\n }", "public long pageNumber(MemRef r) {\n return...
[ "0.5619073", "0.52169037", "0.50791603", "0.49170697", "0.48825005", "0.48577622", "0.48544833", "0.48171994", "0.47182897", "0.46784484", "0.46669608", "0.46525493", "0.46514508", "0.46208093", "0.46119896", "0.4596526", "0.4582204", "0.45788503", "0.45548564", "0.4529078", ...
0.41871208
59
/ Set the frames allocated to the calling thread to free
public void releaseMemory(int id) { // TODO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void freePage(FrameDesc fdesc) {\n fdesc.state = AVAILABLE;\n //add frame since page is deallocated\n availableFrames.add(fdesc.index);\n }", "public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();...
[ "0.60466015", "0.6020103", "0.5909399", "0.5866342", "0.58508176", "0.58366585", "0.57795554", "0.57246786", "0.5719051", "0.5702832", "0.5699518", "0.5696889", "0.56535965", "0.5652598", "0.5645445", "0.5628716", "0.56148136", "0.55702543", "0.5558545", "0.5542893", "0.55271...
0.0
-1
user_id, post_parent_id, cat_id, post_gender, post_title, post_description, post_city, post_image, post_video, post_end_date, post_location, post_lat, post_long
@Override public TaskResponse<AddPostResponse> loadInBackground() { response = new TaskResponse(); try { response.data = Communication.addParentPost(AppConstant.METHOD_ADD_POST, bean, dataT, title, desc); } catch (Exception e) { response.error = e; } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadPosts(final List<AnipalAbstractPost> posts){\n Query q1 = FirebaseDatabase.getInstance().getReference(\"UserPosts\")\n .child(MainActivity.currentUser.getUserUUID()).orderByChild(\"timestamp\")\n .limitToLast(5);\n q1.addListenerForSingleValueEvent(new V...
[ "0.5446795", "0.5059888", "0.5052213", "0.500111", "0.49721497", "0.49579102", "0.49424982", "0.49299055", "0.48543113", "0.48157775", "0.4801957", "0.4760772", "0.47359556", "0.47264138", "0.47128633", "0.4653018", "0.46450156", "0.4624269", "0.45962963", "0.458913", "0.4579...
0.0
-1
/ Public methods Remove references to View components to avoid memory leak
public void release() { mPhoneNumberInput.removeTextChangedListener(this); mPhoneNumberInput = null; mCountryCodeInput = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }", "@Override\r\n\tpublic void disposeView() {\n\t\t\r\n\t}", "private void clearViews()\n {\n prepareNumbers();\n }", "private void m125722q() {\n if (this.f88309g != null) {\n...
[ "0.76233", "0.69840425", "0.6950754", "0.6941718", "0.69256276", "0.6925481", "0.6895575", "0.68318325", "0.6800778", "0.6744201", "0.67315024", "0.6673045", "0.66421145", "0.66077095", "0.66077095", "0.6590137", "0.65737337", "0.6570803", "0.6554169", "0.6533904", "0.6507953...
0.0
-1
Clear phone number data
public void reset() { mCurrentPhoneNumber = null; mPhoneNumberInput.setText(""); mCountryCodeInput.setVisibility(View.GONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.politrons.avro.AvroPerson.Builder clearPhoneNumber() {\n phone_number = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "public Builder clearPhoneNumber() {\n\n phoneNumber_ = getDefaultInstance().getPhoneNumber();\n onChanged();\n return this;\n }"...
[ "0.7873484", "0.7372401", "0.7283053", "0.7223562", "0.7163364", "0.6764139", "0.6662766", "0.6630364", "0.6528272", "0.6502193", "0.65004003", "0.6426821", "0.64138514", "0.6309463", "0.62703955", "0.6243813", "0.6196956", "0.6193986", "0.61755615", "0.61747557", "0.6148642"...
0.6898286
5
Reformat current phone number according to the new country code + set new country code
public void setCountryCode(final String newCountryCode) { if (TextUtils.isEmpty(mPhoneNumberInput.getText())) { updateCountryCode(newCountryCode); } else { // Clear old prefix from phone before assigning new one String updatedPhone = mPhoneNumberInput.getText().toString(); if (mCurrentPhonePrefix != null && updatedPhone.startsWith(mCurrentPhonePrefix)) { updatedPhone = updatedPhone.substring(mCurrentPhonePrefix.length()); } updateCountryCode(newCountryCode); if (!TextUtils.isEmpty(updatedPhone)) { formatPhoneNumber(updatedPhone); } else if (mCountryCodeInput.getVisibility() == View.VISIBLE) { initPhoneWithPrefix(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void formatPhoneNumber(final String rawPhoneNumber) {\n if (!TextUtils.isEmpty(mCountryCode)) {\n try {\n mCurrentPhoneNumber = PhoneNumberUtil.getInstance().parse(rawPhoneNumber.trim(), mCountryCode);\n final String formattedNumber = PhoneNumberUtil.getInsta...
[ "0.69417506", "0.6730166", "0.6717426", "0.63012826", "0.5941027", "0.58938366", "0.5849374", "0.5759624", "0.57552385", "0.57391846", "0.5700095", "0.56892127", "0.5675681", "0.5665876", "0.5627464", "0.55841935", "0.5557405", "0.5443786", "0.5376807", "0.53614277", "0.53555...
0.6906366
1
Check whether the current phone number is a valid for the current country code
public boolean isPhoneNumberValidForCountry() { return mCurrentPhoneNumber != null && PhoneNumberUtil.getInstance().isValidNumberForRegion(mCurrentPhoneNumber, mCountryCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isValid(PhoneNumber phoneNumber) {\n String number = phoneNumber.getNumber();\n return isPhoneNumber(number) && number.startsWith(\"+380\") && number.length() == 13;\n }", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is b...
[ "0.71203864", "0.6923682", "0.6814953", "0.68119633", "0.6705937", "0.6705937", "0.66692495", "0.6625792", "0.6613884", "0.6558112", "0.6550836", "0.65148914", "0.64855695", "0.6444249", "0.64255244", "0.64199305", "0.6408773", "0.64083946", "0.6401708", "0.63518083", "0.6344...
0.75990385
0
Get the current phone number
public Phonenumber.PhoneNumber getPhoneNumber() { return mCurrentPhoneNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "public String getMyPhoneNumber() {\n return ...
[ "0.80743945", "0.79219943", "0.78703374", "0.7723069", "0.7650237", "0.76464134", "0.76464134", "0.76464134", "0.7645317", "0.76226664", "0.7605863", "0.759429", "0.75627536", "0.75295085", "0.7504359", "0.7500219", "0.7478356", "0.7449865", "0.7449865", "0.74434006", "0.7433...
0.72713983
40
Get the phone number in E164 format
public String getE164PhoneNumber() { return mCurrentPhoneNumber == null ? null : PhoneNumberUtils.getE164format(mCurrentPhoneNumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "@ApiModelProperty(required = true, value = \"Phone number in e.164 format\")\n public String getPhoneNumber() {\n return phoneNumber;\n }", "String formatPhoneNumber(String phoneNumber);",...
[ "0.6636865", "0.6636865", "0.6636865", "0.6336007", "0.6225181", "0.6216601", "0.6150877", "0.6103845", "0.60454726", "0.59666216", "0.5931534", "0.59067523", "0.58831584", "0.5827981", "0.5822564", "0.5738076", "0.5722742", "0.56981903", "0.5691417", "0.5682242", "0.5654977"...
0.77725136
0
Get the country code of the current phone number
public String getCountryCode() { // Always extract from phone number object instead of using mCurrentRegionCode just in case return mCurrentPhoneNumber == null ? null : PhoneNumberUtil.getInstance().getRegionCodeForCountryCode(mCurrentPhoneNumber.getCountryCode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCountryCallingCode() {\n return countryCallingCode;\n }", "java.lang.String getCountryCode();", "java.lang.String getCountryCode();", "public String countryCode() {\n return countryCode;\n }", "String getCountryCode();", "public int getCountryCode() {\r\n\t\treturn count...
[ "0.7718025", "0.7571125", "0.7571125", "0.7560384", "0.75356865", "0.7350667", "0.7173912", "0.7163201", "0.7163201", "0.71506387", "0.7148905", "0.7122095", "0.7112316", "0.7105136", "0.7056293", "0.6868405", "0.6868405", "0.6744435", "0.6721686", "0.67088884", "0.6666228", ...
0.7557739
4
/ Private methods Set the current country code and update the country code field and the prefix
private void updateCountryCode(final String newCountryCode) { if (!TextUtils.isEmpty(newCountryCode) && !newCountryCode.equals(mCountryCode)) { mCountryCode = newCountryCode; switch (mDisplayMode) { case DISPLAY_COUNTRY_FULL_NAME: mCountryCodeInput.setText(PhoneNumberUtils.getHumanCountryCode(mCountryCode)); break; case DISPLAY_COUNTRY_ISO_CODE: mCountryCodeInput.setText(mCountryCode); break; } // Update the prefix final int prefix = PhoneNumberUtil.getInstance().getCountryCodeForRegion(mCountryCode); if (prefix > 0) { mCurrentPhonePrefix = "+" + prefix; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setcountryCode(String countryCode) {\n this.countryCode = countryCode;\n }", "public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}", "public void setCountryCode(final String newCountryCode) {\n if (TextUtils.isEmpty(mPhoneNumberInput.g...
[ "0.72385883", "0.7131477", "0.7079182", "0.7049986", "0.6962764", "0.6955126", "0.6913327", "0.6897957", "0.68101865", "0.6747304", "0.67197967", "0.6693374", "0.6693374", "0.66188467", "0.65111303", "0.6499155", "0.6414631", "0.6414631", "0.6414631", "0.63866454", "0.6369443...
0.70056003
4
Init the phone number field with the country prefix (ie. "+33" for country code "FR")
private void initPhoneWithPrefix() { if (!TextUtils.isEmpty(mCurrentPhonePrefix)) { mPhoneNumberInput.setText(mCurrentPhonePrefix); mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}", "public Phone(String countryCode, String areaCode, String number) {\n this.countryCode = countryCode;\n this.area...
[ "0.6423926", "0.6335136", "0.6232576", "0.6170306", "0.6151015", "0.6025933", "0.5978246", "0.59598994", "0.5895052", "0.5895052", "0.5895052", "0.5865223", "0.5857685", "0.5838289", "0.5803931", "0.58014154", "0.5798507", "0.5757757", "0.5753665", "0.5732474", "0.5724841", ...
0.70548934
0
Format the given string according to the expected format for the current country code
private void formatPhoneNumber(final String rawPhoneNumber) { if (!TextUtils.isEmpty(mCountryCode)) { try { mCurrentPhoneNumber = PhoneNumberUtil.getInstance().parse(rawPhoneNumber.trim(), mCountryCode); final String formattedNumber = PhoneNumberUtil.getInstance().format(mCurrentPhoneNumber, PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL); if (!TextUtils.equals(formattedNumber, mPhoneNumberInput.getText())) { // Update field with the formatted number mPhoneNumberInput.setText(formattedNumber); mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length()); } } catch (NumberParseException e) { mCurrentPhoneNumber = null; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String formatPhoneNumber(String phoneNumber);", "java.lang.String getCountryCode();", "java.lang.String getCountryCode();", "public static String formatLabel(String lbl){\n\t\t\n\t\t// XXX There is be a better way to do this...\n\t\tlbl = lbl.replaceAll(\",\", \"COMMA\");\n\t\tlbl = lbl.replaceAll(\"\\\\$\",...
[ "0.59608454", "0.5923973", "0.5923973", "0.58671284", "0.58290005", "0.5787036", "0.57277375", "0.56888276", "0.5683111", "0.566739", "0.561533", "0.56133634", "0.55833346", "0.5581311", "0.55792874", "0.55792874", "0.55718637", "0.5562608", "0.55135024", "0.5499404", "0.5498...
0.6074807
0
Initialize all menu according to is logged in, menu access control, & menu tree
private void initializeMenu(){ root = new TreeField(new TreeFieldCallback() { public void drawTreeItem(TreeField treeField, Graphics graphics, int node, int y, int width, int indent) { // TODO Auto-generated method stub String text = treeField.getCookie(node).toString(); graphics.drawText(text, indent, y); } }, Field.FOCUSABLE){ protected boolean navigationClick(int status, int time) { // TODO Auto-generated method stub if(!isAnimating()){ MenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode()); if(menu.isChild()){ onMenuSelected(menu); return true; } } return super.navigationClick(status, time); } protected boolean keyDown(int keycode, int time) { if(!isAnimating()){ if(keycode == 655360){ MenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode()); if(menu.isChild()){ onMenuSelected(menu); return true; } } } return super.keyDown(keycode, time); } }; root.setDefaultExpanded(false); //home MenuModel home = new MenuModel("Home", MenuModel.HOME, true); home.setId(root.addChildNode(0, home)); int lastRootChildId = home.getId(); //menu tree if(Singleton.getInstance().getMenuTree() != null){ JSONArray menuTree = Singleton.getInstance().getMenuTree(); if(menuTree.length() > 0){ for (int i = 0; i < menuTree.length(); i++) { if(!menuTree.isNull(i)){ JSONObject node; try { node = menuTree.getJSONObject(i); //root menu tree (pria, wanita) boolean isChild = false; String name = node.getString("name"); String url = node.getString("url"); MenuModel treeNode = new MenuModel( name, url, MenuModel.JSON_TREE_NODE, isChild); treeNode.setId(root.addSiblingNode(lastRootChildId, treeNode)); lastRootChildId = treeNode.getId(); try { if(!node.isNull("child")){ JSONArray childNodes = node.getJSONArray("child"); if(childNodes.length() > 0){ for (int j = childNodes.length() - 1; j >= 0; j--) { if(!childNodes.isNull(j)){ addChildNode( treeNode.getId(), childNodes.getJSONObject(j)); } } } } } catch (Exception e) { // TODO: handle exception } } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } } if(Singleton.getInstance().getIsLogin()){ //akun saya MenuModel myAccount = new MenuModel("Akun Saya", MenuModel.MY_ACCOUNT, false); myAccount.setId(root.addSiblingNode(lastRootChildId, myAccount)); lastRootChildId = myAccount.getId(); //akun saya->detail akun MenuModel profile = new MenuModel("Detail Akun", MenuModel.PROFILE, true); profile.setId(root.addChildNode(myAccount.getId(), profile)); //akun saya->daftar pesanan MenuModel myOrderList = new MenuModel( "Daftar Pesanan", MenuModel.MY_ORDER, true); myOrderList.setId(root.addSiblingNode(profile.getId(), myOrderList)); //logout MenuModel logout = new MenuModel("Logout", MenuModel.LOGOUT, true); logout.setId(root.addSiblingNode(lastRootChildId, logout)); lastRootChildId = logout.getId(); } else{ //login MenuModel login = new MenuModel("Login", MenuModel.LOGIN, false); login.setId(root.addSiblingNode(lastRootChildId, login)); lastRootChildId = login.getId(); //login->login MenuModel loginMenu = new MenuModel("Login", MenuModel.LOGIN_MENU, true); loginMenu.setId(root.addChildNode(login.getId(), loginMenu)); //login->register MenuModel register = new MenuModel("Register", MenuModel.REGISTER, true); register.setId(root.addSiblingNode(loginMenu.getId(), register)); } MenuUserModel menu = Singleton.getInstance().getMenu(); if(menu != null){ //sales if(menu.getMenuSalesOrder() || menu.isMenuSalesRetur()){ MenuModel sales = new MenuModel("Sales", MenuModel.SALES, false); sales.setId(root.addSiblingNode(lastRootChildId, sales)); lastRootChildId = sales.getId(); //sales retur if(menu.isMenuSalesRetur()){ MenuModel salesRetur = new MenuModel( "Sales Retur", MenuModel.SALES_RETUR, true); salesRetur.setId(root.addChildNode(sales.getId(), salesRetur)); } //sales order if(menu.getMenuSalesOrder()){ MenuModel salesOrder = new MenuModel( "Sales Order", MenuModel.SALES_ORDER, true); salesOrder.setId(root.addChildNode(sales.getId(), salesOrder)); } } //cms product if(menu.getMenuCmsProduct() || menu.getMenuCmsProductGrosir()){ MenuModel cmsProduct = new MenuModel( "Produk", MenuModel.CMS_PRODUCT, false); cmsProduct.setId( root.addSiblingNode(lastRootChildId, cmsProduct)); lastRootChildId = cmsProduct.getId(); //product retail if(menu.getMenuCmsProduct()){ MenuModel productRetail = new MenuModel( "Produk Retail", MenuModel.CMS_PRODUCT_RETAIL, true); productRetail.setId( root.addChildNode(cmsProduct.getId(), productRetail)); } //product grosir if(menu.getMenuCmsProductGrosir()){ MenuModel productGrosir = new MenuModel( "Produk Grosir", MenuModel.CMS_PRODUCT_GROSIR, true); productGrosir.setId( root.addChildNode(cmsProduct.getId(), productGrosir)); } } } //service MenuModel service = new MenuModel("Layanan", MenuModel.SERVICE, false); service.setId(root.addSiblingNode(lastRootChildId, service)); lastRootChildId = service.getId(); Vector serviceList = Singleton.getInstance().getServices(); try { for (int i = serviceList.size() -1; i >= 0; i--) { MenuFooterModel footer = (MenuFooterModel) serviceList.elementAt(i); MenuModel serviceMenu = new MenuModel( footer.getCatTitle(), footer.getCatTautan(), MenuModel.SERVICE_MENU, true); serviceMenu.setId(root.addChildNode(service.getId(), serviceMenu)); } } catch (Exception e) { } //about MenuModel about = new MenuModel("Tentang Y2", MenuModel.ABOUT, false); about.setId(root.addSiblingNode(service.getId(), about)); lastRootChildId = service.getId(); Vector aboutList = Singleton.getInstance().getAbouts(); try { for (int i = aboutList.size() -1; i >= 0; i--) { MenuFooterModel footer = (MenuFooterModel) aboutList.elementAt(i); MenuModel aboutMenu = new MenuModel( footer.getCatTitle(), footer.getCatTautan(), MenuModel.SERVICE_MENU, true); aboutMenu.setId(root.addChildNode(service.getId(), aboutMenu)); } } catch (Exception e) { // TODO: handle exception } container.add(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.set...
[ "0.70397615", "0.70060873", "0.6976303", "0.68306077", "0.6800748", "0.6788373", "0.67164284", "0.66368663", "0.65910006", "0.64997214", "0.6491693", "0.6476048", "0.6460584", "0.64303684", "0.64044267", "0.63703895", "0.6370235", "0.63695365", "0.636447", "0.63388383", "0.62...
0.72491676
0
TODO Autogenerated method stub
public void drawTreeItem(TreeField treeField, Graphics graphics, int node, int y, int width, int indent) { String text = treeField.getCookie(node).toString(); graphics.drawText(text, indent, y); }
{ "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
protected boolean navigationClick(int status, int time) { if(!isAnimating()){ MenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode()); if(menu.isChild()){ onMenuSelected(menu); return true; } } return super.navigationClick(status, time); }
{ "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
public void onOK() { logout(); }
{ "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
public void onCancel() { }
{ "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
public void run() { showLoading(); UserModel accountUser = CacheUtils.getInstance().getAccountCache(); System.out.println(accountUser.getToken()); GenericConnection.sendPostRequestAsync( Utils.BASE_URL + Utils.GET_LOGOUT_URL, "token="+accountUser.getToken(), "post", new ConnectionCallback() { public void onSuccess(Object result) { // TODO Auto-generated method stub Singleton.getInstance().clearAllData(); initializeDataWithMessage("Anda berhasil logout"); Singleton.getInstance().setIsLogin(false); } public void onProgress(Object progress, Object max) { // TODO Auto-generated method stub } public void onFail(Object object) { // TODO Auto-generated method stub hideLoading(); System.out.println("error : " + object.toString()); AlertDialog.showAlertMessage("Logout gagal.\nPeriksa " + "kembali koneksi internet anda."); } public void onBegin() { // TODO Auto-generated method stub } }); }
{ "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
public void onSuccess(Object result) { Singleton.getInstance().clearAllData(); initializeDataWithMessage("Anda berhasil logout"); Singleton.getInstance().setIsLogin(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
public void onProgress(Object progress, Object max) { }
{ "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
public void onFail(Object object) { hideLoading(); System.out.println("error : " + object.toString()); AlertDialog.showAlertMessage("Logout gagal.\nPeriksa " + "kembali koneksi internet anda."); }
{ "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
public void onBegin() { }
{ "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
public void onUnFinishFetching() { initializeDataWithMessage(message); }
{ "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
public void onSuccessFetching(String method, Object data) { }
{ "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
public void onFinishFetching() { hideLoading(); UiApplication.getUiApplication().invokeLater( new Runnable() { public void run() { // TODO Auto-generated method stub try { AlertDialog.showInformMessage(message); } catch (Exception e) { // TODO: handle exception } UiApplication.getUiApplication().pushScreen(new HomeScreen()); } }); }
{ "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
public void run() { try { AlertDialog.showInformMessage(message); } catch (Exception e) { // TODO: handle exception } UiApplication.getUiApplication().pushScreen(new HomeScreen()); }
{ "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
public void onFailure(String method, Object data) { }
{ "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
public void onUnFinishFetching() { hideLoading(); UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { // TODO Auto-generated method stub UiApplication.getUiApplication().pushScreen(new HomeScreen()); } }); }
{ "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
public void run() { UiApplication.getUiApplication().pushScreen(new HomeScreen()); }
{ "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
public void onSuccessFetching(String method, Object data) { }
{ "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
public void onFinishFetching() { hideLoading(); UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { // TODO Auto-generated method stub UiApplication.getUiApplication().pushScreen(new HomeScreen()); } }); }
{ "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
public void run() { UiApplication.getUiApplication().pushScreen(new HomeScreen()); }
{ "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
public void onFailure(String method, Object data) { }
{ "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
don't call super, so parent menu won't added
public void initMenu(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.parent_menu, menu);\r\n return true;\r\n }", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "public void menu(){\n super.goToMenuScreen();\n }", "void setParent(IMenu menuItem)...
[ "0.75466347", "0.75233525", "0.719792", "0.714006", "0.7097909", "0.7095658", "0.70845014", "0.7024287", "0.7019643", "0.7018869", "0.7018739", "0.7012479", "0.69688547", "0.6960578", "0.6945612", "0.6893953", "0.68860817", "0.68819964", "0.6880175", "0.6865742", "0.6861075",...
0.6940395
15
TODO Autogenerated method stub
private void kk12() { }
{ "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
private void yy() { }
{ "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
Basic constructor which generates an Srt composed only by an unique SrtLine.
public Srt(List<TranscriptedWord> list) { //Version 2.0 //This constructor creates only one line StringBuilder first = new StringBuilder(); for (int i = 0 ; i< list.size();i++) { TranscriptedWord transcriptedWord = list.get(i); first.append(transcriptedWord.word); if(i!=list.size()-1) first.append(" "); } this.lines = new ArrayList<SrtLine>(); this.lines.add(new SrtLine(first.toString(), null,list.get(0).start_time,list.get(list.size()-1).end_time)); /* * Version 1.1 * More advanced implementation: * Splits into two strings the list passed * by minimizing their size difference in * terms of number of characters. */ /* int total_size = SrtBuilder.getCharacterNumber(list); int half_size = total_size/2; //number of character written into the first line: int num_wri_fir = 0; int list_counter = 0; StringBuilder first = new StringBuilder(); // I write all the transcripted words until // the half_size if reached while(num_wri_fir<half_size){ TranscriptedWord word = list.get(list_counter++); first.append(word.word); num_wri_fir+=word.word.length(); if(num_wri_fir<half_size){ first.append(" "); num_wri_fir+=1; } } //I flush all the remaining transcripted word //not written yet into the second line StringBuilder second = new StringBuilder(); while(list_counter<list.size()){ second.append(list.get(list_counter).word); list_counter++; if(list_counter<list.size()) second.append(" "); } this.lines = new ArrayList<SrtLine>(); this.lines.add(new SrtLine(first.toString(), second.toString(),list.get(0).start_time,list.get(list.size()-1).end_time)); */ //version 1.0: //OLD IMPLEMENTATION: /* //basic implementation that splits //into two the list based on the number of words //for better results it must be changed. int half = (int)(((double)list.size())/2.0); StringBuilder f = new StringBuilder(); StringBuilder s = new StringBuilder(); int i = 0; for (TranscriptedWord word : list) { if(i<half){ f.append(word.word); f.append(" "); } else{ s.append(word.word); s.append(" "); } i++; } this.lines = new ArrayList<SrtLine>(); this.lines.add(new SrtLine(f.toString(),s.toString(),list.get(0).start_time,list.get(list.size()-1).end_time)); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Line(){\n\t\t\n\t}", "public static Line CreateLine(String id) { return new MyLine(id); }", "Line createLine();", "public BSPLine() {\n super();\n }", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "public Line(final Pos first, final Pos second) {\n this(first, second, ne...
[ "0.694755", "0.682687", "0.6811789", "0.6637624", "0.66335547", "0.6225425", "0.612676", "0.6082164", "0.6042301", "0.6037074", "0.60097045", "0.5969358", "0.595569", "0.5952754", "0.5938834", "0.591929", "0.59081084", "0.5898795", "0.5896279", "0.58319485", "0.57395387", "...
0.5188314
56
Gets an iterator over this collection
public Iterator<T> iterator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "public Iterator getIterator() {\n return myElements.iterator();\n }", "public Iterator<T> getIterator()...
[ "0.81648713", "0.7679856", "0.76607895", "0.76527697", "0.7648004", "0.7583779", "0.7574877", "0.7562643", "0.7562643", "0.7562643", "0.7536069", "0.7518498", "0.7484287", "0.74432987", "0.74422693", "0.7399972", "0.7394774", "0.7391933", "0.73893815", "0.73863775", "0.737007...
0.75018454
14
Created by deddy on 4/25/16.
public interface DirektoratRepository extends JpaRepository<Direktorat,Long> { @Query(value = "select d from Direktorat d where d.nama like :cariNama") List<Direktorat> findByNama(@Param("cariNama")String cariNama); List<Direktorat> findByKode(String kode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n...
[ "0.5918126", "0.5912756", "0.57926756", "0.576766", "0.5735339", "0.57110405", "0.57110405", "0.57053787", "0.5695334", "0.5691757", "0.56743443", "0.5652934", "0.5647385", "0.5617372", "0.5600153", "0.5587018", "0.55728596", "0.55728596", "0.55728596", "0.55728596", "0.55728...
0.0
-1
/ access modifiers changed from: packageprivate
public final boolean zzc() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public final int zza(Object[] objArr, int i) { System.arraycopy(this.zzb, 0, objArr, 0, this.zzc); return this.zzc + 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Extracts necessary data from message.
public static void extract(final Message from, final Msg msg) { final Set<Urn> names = new TreeSet<Urn>(); for (Participant dude : from.bout().participants()) { names.add(dude.identity().name()); } msg.put(BundledPred.BUNDLE, Logger.format("%[list]s", names)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object extractMessage(Message message) {\n\t\tif (serializer != null) {\n\t\t\treturn serializer.deserialize(message.getBody());\n\t\t}\n\t\treturn message.getBody();\n\t}", "byte[] getStructuredData(String messageData);", "private static byte[] messageDataAndMetadata(Message message) {\n Byte...
[ "0.6935298", "0.6696774", "0.64270604", "0.6406607", "0.63202083", "0.61318785", "0.60277003", "0.5977174", "0.5911774", "0.59073144", "0.58991677", "0.5895006", "0.5889798", "0.5860553", "0.57875013", "0.5704149", "0.57027894", "0.56791484", "0.566657", "0.56572896", "0.5620...
0.0
-1
Creates new form EmpresaEditView
public EmpresaEditView(String codigo, JDesktopPane index) { super("EDITAR EMPRESA"); index.add(this); initComponents(); EmpresaDAO dao = new EmpresaDAO(); EmpresaBEAN empresas = dao.get(codigo); txtNome.setText(empresas.getNome()); txtEndereco.setText(empresas.getEndereco()); txtBairro.setText(empresas.getBairro()); txtCodigo.setText(empresas.getCodigo()); txtCnpj.setText(empresas.getCnpj()); txtTelefone.setText(empresas.getTelefone()); txtLogradouro.setText(empresas.getLogradouro()); selectEstado.setSelectedItem(empresas.getEstado()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CriarEditarUsuarioView() {\n initComponents();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "@FXML...
[ "0.66705185", "0.62910944", "0.6184999", "0.6160609", "0.6113358", "0.6073867", "0.5967843", "0.5951682", "0.59427977", "0.5911509", "0.59062415", "0.58931684", "0.589158", "0.588574", "0.58775073", "0.5858771", "0.5847466", "0.5825979", "0.5801648", "0.5762697", "0.5755455",...
0.6867068
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); txtNome = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtEndereco = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); selectEstado = new javax.swing.JComboBox(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtBairro = new javax.swing.JTextField(); btnExcluir = new javax.swing.JButton(); btnSalvar = new javax.swing.JButton(); jLabel8 = new javax.swing.JLabel(); txtCnpj = new javax.swing.JFormattedTextField(); txtTelefone = new javax.swing.JFormattedTextField(); txtLogradouro = new javax.swing.JFormattedTextField(); txtCodigo = new javax.swing.JFormattedTextField(); jLabel12 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); setClosable(true); setIconifiable(true); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Editar Empresa\n", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Lucida Calligraphy", 0, 14))); // NOI18N jLabel2.setText("Nome:"); jLabel1.setText("Código:"); jLabel9.setText("Telefone:"); jLabel4.setText("Cnpj:"); jLabel7.setText("Estado:"); selectEstado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione", "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO" })); jLabel5.setText("Endereço:"); jLabel6.setText("Bairro:"); btnExcluir.setText("EXCLUIR"); btnExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnExcluirActionPerformed(evt); } }); btnSalvar.setText("SALVAR"); btnSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSalvarActionPerformed(evt); } }); jLabel8.setText("Logradouro:"); try { txtCnpj.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("###.###.###/####-##"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } try { txtTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##-#####-####"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } txtLogradouro.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0")))); txtCodigo.setEditable(false); txtCodigo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0")))); jLabel12.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N jLabel12.setText("BY WELLINGTON"); jLabel10.setText("Simples Conferência"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(71, 71, 71) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(txtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel10)))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(63, 63, 63) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27)) .addComponent(btnExcluir)) .addGap(18, 18, 18) .addComponent(btnSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(69, 69, 69) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(selectEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtLogradouro, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(83, 83, 83) .addComponent(jLabel4)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtBairro, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE) .addComponent(txtCnpj)))) .addComponent(jLabel12)) .addContainerGap(72, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(27, 27, 27) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(txtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel10))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(txtCnpj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addGap(11, 11, 11) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtBairro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(txtLogradouro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(selectEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 70, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnExcluir) .addComponent(btnSalvar)) .addGap(12, 12, 12) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
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_loyalty_coin, 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.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
shortcut for i/2, round down
int left(int i) { return i<<1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double roundDown(double i, int v) {\n return Math.floor(i / v) * v;\n }", "static int roundUpPower2(int i) {\n i--;\n i |= i >> 1;\n i |= i >> 2;\n i |= i >> 4;\n i |= i >> 8;\n return (i | (i >> 16)) + 1;\n }", "public static double roundUp(...
[ "0.72763216", "0.6893536", "0.67369455", "0.6666619", "0.63734317", "0.6113411", "0.6097631", "0.607567", "0.59620976", "0.59004563", "0.57500726", "0.57233393", "0.56578046", "0.5656757", "0.5636729", "0.5610303", "0.5600349", "0.55528694", "0.55422425", "0.55192745", "0.551...
0.0
-1
shortcut for 2i + 1
void shiftUp(int i) { while(i>1&&patients.get(parent(i)).compareTo(patients.get(i))<0){ Patient p=patients.get(i); patients.set(i,patients.get(parent(i))); queueMap.put(patients.get(parent(i)).getName(), i); patients.set(parent(i),p); queueMap.put(p.getName(), parent(i)); i=parent(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo63039b(int i, int i2);", "void m15861b(int i, int i2);", "void m15859a(int i, int i2);", "void mo63037a(int i, int i2);", "void mo7304b(int i, int i2);", "void mo54407a(int i, int i2);", "public void mo9257i(int i, int i2) {\n }", "void mo17017a(int i, int i2);", "void mo7308d(int i, int ...
[ "0.7023377", "0.6967319", "0.6904441", "0.6846568", "0.68448746", "0.6821721", "0.67825794", "0.67801017", "0.6753037", "0.6725489", "0.6712981", "0.669774", "0.66968155", "0.6690974", "0.6687546", "0.66747355", "0.6673734", "0.6660969", "0.6645367", "0.66302305", "0.6624932"...
0.0
-1
do not alter this method
void run() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); int numCMD = Integer.parseInt(br.readLine()); // note that numCMD is >= N while (numCMD-- > 0) { StringTokenizer st = new StringTokenizer(br.readLine()); int command = Integer.parseInt(st.nextToken()); switch (command) { case 0: ArriveAtHospital(st.nextToken(), Integer.parseInt(st.nextToken())); break; case 1: UpdateEmergencyLvl(st.nextToken(), Integer.parseInt(st.nextToken())); break; case 2: Treat(st.nextToken()); break; case 3: pr.println(Query()); break; } } pr.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n ...
[ "0.7381414", "0.72239566", "0.720894", "0.71488535", "0.71488535", "0.7076486", "0.70245117", "0.690796", "0.68928707", "0.68883175", "0.68883175", "0.68828917", "0.6782535", "0.6765391", "0.67571634", "0.67344195", "0.67211324", "0.6682169", "0.66751057", "0.667389", "0.6671...
0.0
-1
do not alter this method
public static void main(String[] args) throws Exception { EmergencyRoom ps1 = new EmergencyRoom(); ps1.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n ...
[ "0.7381414", "0.72239566", "0.720894", "0.71488535", "0.71488535", "0.7076486", "0.70245117", "0.690796", "0.68928707", "0.68883175", "0.68883175", "0.68828917", "0.6782535", "0.6765391", "0.67571634", "0.67344195", "0.67211324", "0.6682169", "0.66751057", "0.667389", "0.6671...
0.0
-1