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
Pre: Validar que se haya ingresado un numero. Post: Determinar si se debe almacenar el numero en el vector o se debe hacer una operacion.
@Override public String Calculo(String expresion) throws ArithmeticException { while(!stack.empty()){ stack.pop(); } try { for(int i = 0; i<expresion.length(); i++){ //Obtener cada caracter del string. char op = expresion.charAt(i); //Determinar si es un operador, operando o un termino no valido. if(nums.contains(Character.toString(op))){ stack.push(Character.getNumericValue(op)); } else if(ops.contains(Character.toString(op))){ postFixEvalution(op); } else if(op != ' '){ return "Error: No se pudo realizar la operacion por invalidez de simbolos"; } } //Al finalizar, se debe validar que el stack tenga un solo dato dentro, el cual sera //probablemente el resultado de la operacion. if(stack.empty() || stack.size() > 1){ return "Error: Expresion invalida"; } else{ return stack.pop().toString(); } } catch (ArithmeticException e){ throw new ArithmeticException(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this,...
[ "0.63264334", "0.61987555", "0.61731607", "0.60982263", "0.6034192", "0.59903663", "0.59496963", "0.5895289", "0.5856514", "0.5854275", "0.5760446", "0.57510674", "0.57312936", "0.5725633", "0.5720568", "0.57024765", "0.5695146", "0.5682232", "0.5630967", "0.5628507", "0.5604...
0.0
-1
Metodo que permite realizar las operaciones determinadas por los operadores de la expresion postfix.
private boolean postFixEvalution(char operator) throws ArithmeticException{ //Pre: Validar que el stack no este vacio y que los operandos sean numeros. //Post: Realizar la operacion indicada try{ if(!stack.empty()){ //Se obtienen los dos operandos mas recientes del stack. Integer op2 = stack.pop(); Integer op1 = stack.pop(); //Se determina la operacion por hacer. if(op1 != null && op2 != null){ switch (operator){ case '+': stack.push(op1 + op2); break; case '-': stack.push(op1 - op2); break; case '*': stack.push(op1 * op2); break; case '/': stack.push(op1 / op2); break; } return true; } else return false; } else{ return false; } } catch (ArithmeticException e){ String ex = "Error: Division por 0"; throw new ArithmeticException(ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n ...
[ "0.691784", "0.6902183", "0.69002986", "0.66268253", "0.66050875", "0.65210795", "0.64659333", "0.6384588", "0.63377297", "0.629186", "0.6260479", "0.6215877", "0.6200629", "0.61924565", "0.61779183", "0.616699", "0.61587363", "0.615683", "0.6133577", "0.6117543", "0.61141247...
0.62708414
10
TODO Autogenerated method stub
public static void main(String[] args) { int num=5; int fact=1; for(int i=1;i<=num;i++) { fact=fact*i; } System.out.println("The factorial of " + num + " is " + fact); fact obj=new fact(); int a=obj.facto(num); System.out.println("The factorial of " + num + " is " + a); }
{ "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
deduplication is required for overridden setters
private List<SuperSetterBasedBuilderField> deduplicateByName(List<SuperSetterBasedBuilderField> fields) { List<SuperSetterBasedBuilderField> result = new ArrayList<>(); for (SuperSetterBasedBuilderField field : fields) { if (!alreadyContainsField(result, field)) { result.add(field); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "private SetProperty(Builder builder) {\n super(builder);\n }", "protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}", "@Override\n protected void updateProperties() {\n }", "public Value makeSetter() {\n Value...
[ "0.66144586", "0.6269116", "0.6181637", "0.609356", "0.6076955", "0.5981466", "0.58930844", "0.5886541", "0.5870999", "0.5797894", "0.57884127", "0.57551223", "0.57457656", "0.5739328", "0.57305235", "0.5728474", "0.5717291", "0.56823", "0.5665915", "0.56475616", "0.5615118",...
0.0
-1
The constructor specifies the layout of the panel calls method to create sensors checkboxes, connect to database, and shows the area of selection
public BuildingConfigPanel() { this.setLayout(new BorderLayout()); this.setOpaque(true); Dimension size = new Dimension(1200, 700); this.setMaximumSize(size); this.setPreferredSize(size); this.setMinimumSize(size); this.setAlignmentX(LEFT_ALIGNMENT); this.setBorder(BorderFactory.createLineBorder(Color.blue)); this.setBackground(Color.WHITE); this.setLayout(null); font = new Font("Serif", Font.BOLD, 18); font1 = new Font("Serif", Font.PLAIN, 15); // method to create sensors checkboxes, date and time fields createSensors(); // method to connect to database createJDBCConnection(); // method to highlight the area of selection areaTracker(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSensors() {\n\t\t// calculates the height and width of the screen\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint width = (int) screenSize.getWidth();\n\t\tint height = (int) screenSize.getHeight();\n\n\t\t// color for border\n\t\tint red = 33;\n\t\tint green = 6...
[ "0.7179116", "0.7030144", "0.6898493", "0.6886026", "0.6873621", "0.68441945", "0.6775486", "0.67435354", "0.6683511", "0.6673777", "0.6653199", "0.662658", "0.6607947", "0.65929604", "0.6588343", "0.65726024", "0.6566168", "0.6543552", "0.65415037", "0.6540112", "0.65354276"...
0.72639996
0
the following method defines the rendition of fire,burglary sensors checkboxes, date, time fields save button and activate button
public void createSensors() { // calculates the height and width of the screen Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = (int) screenSize.getWidth(); int height = (int) screenSize.getHeight(); // color for border int red = 33; int green = 65; int blue = 114; Color myBlue = new Color(red, green, blue); // title label titleLabel = new JLabel("CONFIGURATION PANEL"); titleLabel.setFont(font); titleLabel.setBounds(600, 7, 417, 50); titleLabel.setForeground(myBlue); this.add(titleLabel, BorderLayout.NORTH); this.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(20.0f), myBlue)); // label the displays the selected area sectionLabel = new JLabel(""); sectionLabel.setFont(font3); sectionLabel.setBounds(40, 145, 200, 50); sectionLabel.setForeground(Color.RED); this.add(sectionLabel); // fire sensor check box fireSensor = new JCheckBox("Fire Sensor"); fireSensor.setFont(font); fireSensor.setBounds(35, 195, 115, 50); fireSensor.setForeground(Color.BLACK); fireSensor.setBackground(Color.WHITE); this.add(fireSensor); // fire bell icon is displayed using the following label fetchfireBell(); fireBellLabel = new JLabel(new ImageIcon(fireBellScaledImg)); fireBellLabel.setBounds(150, 205, 25, 25); this.add(fireBellLabel); // burglary sensor check box burglarySensor = new JCheckBox("Burglary Sensor"); burglarySensor.setFont(font); burglarySensor.setBounds(35, 245, 150, 50); burglarySensor.setForeground(Color.BLACK); burglarySensor.setBackground(Color.WHITE); this.add(burglarySensor); // burglary bell icon is displayed using the following label fetchBurglaryBell(); burglaryBellLabel = new JLabel(new ImageIcon(burglaryBellScaledImg)); burglaryBellLabel.setBounds(189, 254, 25, 25); this.add(burglaryBellLabel); // date label dateLabel = new JLabel("Date: "); dateLabel.setFont(font); dateLabel.setBounds(1106, 153, 150, 50); dateLabel.setForeground(Color.BLACK); dateLabel.setBackground(Color.WHITE); this.add(dateLabel); // from date text field dateFromTf = new JTextField(); dateFromTf.setFont(font1); dateFromTf.setBounds(1106, 193, 75, 30); dateFromTf.setForeground(Color.BLACK); dateFromTf.setBackground(Color.WHITE); this.add(dateFromTf); // to date text field dateToTf = new JTextField(); dateToTf.setFont(font1); dateToTf.setBounds(1186, 193, 75, 30); dateToTf.setForeground(Color.BLACK); dateToTf.setBackground(Color.WHITE); this.add(dateToTf); // Weekdays label WDaysLbl = new JLabel("Time: Weekdays "); WDaysLbl.setFont(font); WDaysLbl.setBounds(1106, 243, 150, 50); WDaysLbl.setForeground(Color.BLACK); WDaysLbl.setBackground(Color.WHITE); this.add(WDaysLbl); // util.date is converted to sql.date for compatibility with database java.util.Date date = new java.util.Date(); long t = date.getTime(); java.sql.Time endTime = new java.sql.Time(t); // From time during week days text field WDFromTf = new JTextField(endTime.toString()); WDFromTf.setFont(font1); WDFromTf.setBounds(1106, 293, 70, 30); WDFromTf.setForeground(Color.BLACK); WDFromTf.setBackground(Color.WHITE); this.add(WDFromTf); // To time during week days text field WDToTf = new JTextField(endTime.toString()); WDToTf.setFont(font1); WDToTf.setBounds(1186, 293, 70, 30); WDToTf.setForeground(Color.BLACK); WDToTf.setBackground(Color.WHITE); this.add(WDToTf); // from time during week ends text field WEndsLbl = new JLabel("Time: Weekends"); WEndsLbl.setFont(font); WEndsLbl.setBounds(1106, 343, 150, 50); WEndsLbl.setForeground(Color.BLACK); WEndsLbl.setBackground(Color.WHITE); this.add(WEndsLbl); // from time during week ends text field WEndsFrom = new JTextField(endTime.toString()); WEndsFrom.setFont(font1); WEndsFrom.setBounds(1106, 393, 70, 30); WEndsFrom.setForeground(Color.BLACK); WEndsFrom.setBackground(Color.WHITE); this.add(WEndsFrom); // to time during week ends text field WEndsTo = new JTextField(endTime.toString()); WEndsTo.setFont(font1); WEndsTo.setBounds(1186, 393, 70, 30); WEndsTo.setForeground(Color.BLACK); WEndsTo.setBackground(Color.WHITE); this.add(WEndsTo); // save sensors selection button saveSensorsButton = new JButton("Save"); saveSensorsButton.setFocusPainted(false); saveSensorsButton.setFont(font1); saveSensorsButton.setBounds(35, 295, 100, 30); saveSensorsButton.setForeground(Color.BLACK); this.add(saveSensorsButton); // activate sensors button to activate the schedule of the sensors // configured activateSensorsButton = new JButton("Activate"); activateSensorsButton.setFocusPainted(false); activateSensorsButton.setFont(font1); activateSensorsButton.setBounds(1105, 443, 100, 30); activateSensorsButton.setForeground(Color.BLACK); this.add(activateSensorsButton); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void uIFeaturesSetting() {\n etDsrRefNum.setEnabled(false);\n etDsrRefNum.setFocusable(false);\n\n etDSRDate.setFocusable(false);\n etDSRDate.setEnabled(false);\n etDSRTime.setFocusable(false);\n etDSRTime.setEnabled(false);\n\n etDateReachedCustom.setEnable...
[ "0.62569904", "0.6154461", "0.6046733", "0.60251915", "0.5846285", "0.5828521", "0.580602", "0.5805813", "0.5804299", "0.5798989", "0.5794319", "0.5771036", "0.5769999", "0.5750954", "0.57276845", "0.5699279", "0.56913936", "0.5691377", "0.56865364", "0.5667343", "0.5661285",...
0.5955365
4
method to fetch the fire bell image, file path is read to a bufferedImage
public void fetchfireBell() { fireBellUrl = ClassLoader.getSystemClassLoader().getResource( "res/fireBell.png"); // file path is read to the buffered image try { fireBellIcon = ImageIO.read(fireBellUrl); } catch (IOException e) { e.printStackTrace(); } // buffered image is scaled fireBellScaledImg = fireBellIcon.getScaledInstance(25, 25, java.awt.Image.SCALE_SMOOTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fetchBurglaryBell() {\n\t\tburglaryBellUrl = ClassLoader.getSystemClassLoader().getResource(\n\t\t\t\t\"res/bell1.png\");\n\t\t// file path is read to the buffered image\n\t\ttry {\n\t\t\tburglaryBellIcon = ImageIO.read(burglaryBellUrl);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\...
[ "0.7368252", "0.6560481", "0.6515991", "0.65136844", "0.6371502", "0.63500565", "0.6346033", "0.6263568", "0.62226415", "0.6190758", "0.6180472", "0.61262816", "0.6109034", "0.6099006", "0.6065911", "0.6035353", "0.6028044", "0.6027634", "0.60246164", "0.59958285", "0.599255"...
0.78380054
0
method to fetch the burglary bell image, file path is read to a bufferedImage
public void fetchBurglaryBell() { burglaryBellUrl = ClassLoader.getSystemClassLoader().getResource( "res/bell1.png"); // file path is read to the buffered image try { burglaryBellIcon = ImageIO.read(burglaryBellUrl); } catch (IOException e) { e.printStackTrace(); } // buffered image is scaled burglaryBellScaledImg = burglaryBellIcon.getScaledInstance(25, 25, java.awt.Image.SCALE_SMOOTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fetchfireBell() {\n\t\tfireBellUrl = ClassLoader.getSystemClassLoader().getResource(\n\t\t\t\t\"res/fireBell.png\");\n\t\t// file path is read to the buffered image\n\t\ttry {\n\t\t\tfireBellIcon = ImageIO.read(fireBellUrl);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// bu...
[ "0.70119095", "0.66046876", "0.65326816", "0.63129455", "0.6130726", "0.6130375", "0.6074778", "0.6046232", "0.60310125", "0.597063", "0.5965341", "0.5930002", "0.5855567", "0.5816795", "0.57703155", "0.57702434", "0.57683253", "0.57576555", "0.5753175", "0.5732875", "0.57162...
0.79297644
0
paint method to draw the floor plan image
@Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g.create(); // checks for the buffered image if (icon1 != null) { // draws the floor plan at the respective x and y axis g2d.drawImage(icon1, 214, 61, null); g2d.setColor(Color.RED); g2d.setStroke(new BasicStroke(5)); if (section != null) { g2d.draw(section); } } // iterates through the key set and draws the fire bell icon and // burglary bell icon on // the rooms that are configured with fire ,burglary sensors for (Integer idVal : map.keySet()) { // if the id value of the room has value 1 for fire sensor then the // fire bell is drawn on the room if (map.get(idVal).isFireSensor()) { if (idVal == 1) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 244, 256, null); repaint(); } if (idVal == 2) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 339, 473, null); repaint(); } if (idVal == 3) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 514, 245, null); repaint(); } if (idVal == 4) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 636, 551, null); repaint(); } if (idVal == 5) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 663, 374, null); repaint(); } if (idVal == 6) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 864, 372, null); repaint(); } if (idVal == 7) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 700, 469, null); repaint(); } if (idVal == 8) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 1026, 243, null); repaint(); } if (idVal == 9) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 1025, 551, null); repaint(); } if (idVal == 10) { fetchfireBell(); g2d.drawImage(fireBellScaledImg, 958, 151, null); repaint(); } } // if the id value of the room has value 1 for burglary sensor then // the burglary bell is drawn on the room if (map.get(idVal).isBurglarySensor()) { if (idVal == 1) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 271, 256, null); repaint(); } if (idVal == 2) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 366, 473, null); repaint(); } if (idVal == 3) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 487, 245, null); repaint(); } if (idVal == 4) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 663, 551, null); repaint(); } if (idVal == 5) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 690, 374, null); repaint(); } if (idVal == 6) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 891, 372, null); repaint(); } if (idVal == 7) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 727, 469, null); repaint(); } if (idVal == 8) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 1053, 243, null); repaint(); } if (idVal == 9) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 1052, 551, null); repaint(); } if (idVal == 10) { fetchBurglaryBell(); g2d.drawImage(burglaryBellScaledImg, 985, 151, null); repaint(); } } } g2d.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTra...
[ "0.6953479", "0.68881536", "0.6794463", "0.6751964", "0.6708885", "0.6653442", "0.6620057", "0.6540956", "0.653337", "0.64828783", "0.64563304", "0.644192", "0.6440555", "0.6439567", "0.6433062", "0.6428131", "0.6400845", "0.6365753", "0.6349508", "0.63437855", "0.63395005", ...
0.6751859
4
x and y points on the window is stored in the following integer values.
public void mouseClicked(MouseEvent e) { int x = e.getX(); int y = e.getY(); // selected area is highlighted by drawing a rectangle around it // areaLabel flashes the name of the area selected if ((x >= 230 && x <= 329) && (y >= 155 && y <= 295)) { section = new Rectangle(230, 155, 99, 140); repaint(); sectionLabel.setText("TOILET 1"); id = 1; } else if ((x >= 319 && x <= 480) && (y >= 225 && y <= 507)) { section = new Rectangle(319, 225, 161, 282); repaint(); sectionLabel.setText("BEDROOM 1"); sectionLabel.revalidate(); id = 2; } else if ((x >= 478 && x <= 651) && (y >= 226 && y <= 437)) { section = new Rectangle(478, 226, 173, 211); repaint(); sectionLabel.setText("LIVING ROOM"); sectionLabel.revalidate(); id = 3; } else if ((x >= 478 && x <= 686) && (y >= 450 && y <= 581)) { section = new Rectangle(478, 450, 208, 131); repaint(); sectionLabel.setText("DINING ROOM"); sectionLabel.revalidate(); id = 4; } else if ((x >= 654 && x <= 779) && (y >= 227 && y <= 405)) { section = new Rectangle(654, 227, 125, 178); repaint(); sectionLabel.setText("KITCHEN"); sectionLabel.revalidate(); id = 5; } else if ((x >= 776 && x <= 929) && (y >= 225 && y <= 404)) { section = new Rectangle(776, 225, 153, 179); repaint(); sectionLabel.setText("BEDROOM 2"); sectionLabel.revalidate(); id = 6; } else if ((x >= 688 && x <= 782) && (y >= 460 && y <= 589)) { section = new Rectangle(688, 460, 94, 129); repaint(); sectionLabel.setText("TOILET 2"); sectionLabel.revalidate(); id = 7; } else if ((x >= 929 && x <= 1094) && (y >= 226 && y <= 486)) { section = new Rectangle(929, 224, 165, 262); repaint(); sectionLabel.setText("MASTER BEDROOM"); sectionLabel.revalidate(); id = 8; } else if ((x >= 958 && x <= 1095) && (y >= 489 && y <= 590)) { section = new Rectangle(958, 489, 137, 101); repaint(); sectionLabel.setText("TOILET 3"); sectionLabel.revalidate(); id = 9; } else if ((x >= 346 && x <= 1095) && (y >= 138 && y <= 223)) { section = new Rectangle(346, 138, 748, 85); repaint(); sectionLabel.setText("BALCONY"); sectionLabel.revalidate(); id = 10; } else { section = null; sectionLabel.setText(""); id = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getXY(int x, int y);", "public int getXPoint() {\r\n return this.x;\r\n }", "public int getX(){ return xPosition; }", "double getXPosition();", "posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public int getXCoordinate ()\n {\n return xCoordinate;\n ...
[ "0.6449071", "0.633026", "0.6323694", "0.63154244", "0.63094354", "0.63048583", "0.62926304", "0.6253102", "0.6175685", "0.6172842", "0.6165551", "0.6131917", "0.60778064", "0.6062121", "0.6059678", "0.6040457", "0.6039841", "0.60363793", "0.60167503", "0.6014927", "0.6012785...
0.0
-1
connects to the database and fetches the values for id, fire sensor and burglary sensor the values are placed in a hash map
public void createJDBCConnection() { Connection connection = null; Statement stmt = null; ConnectDB conn = new ConnectDB(); connection = conn.getConnection(); try { stmt = connection.createStatement(); String sql = "SELECT * FROM section"; ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { // Retrieve by column name subArea = new SubArea(); subArea.setId(rs.getInt("id")); subArea.setFireSensor(rs.getBoolean("fireSensor")); subArea.setBurglarySensor(rs.getBoolean("burglarySensor")); getMap().put(rs.getInt("id"), subArea); } // from date, to date,weekdays - from time ,to time, weekends - from // time, to time values // are fetched and displayed in the respective text fields String sql4 = "SELECT fromDate, toDate, wdfromTime, wdtoTime, wendsFromTime, wendsToTime FROM systemConfig"; ResultSet rs4 = stmt.executeQuery(sql4); if (rs4.next()) { //Fetch the values from database fromDate = rs4.getDate(1); toDate = rs4.getDate(2); wDayFrom = rs4.getTime(3); wDayTo = rs4.getTime(4); wEndFrom = rs4.getTime(5); wEndTo = rs4.getTime(6); //Fetched value is populated in the respective text fields SimpleDateFormat dFormat = new SimpleDateFormat("dd.MM.yyyy"); dateFromTf.setText(dFormat.format(fromDate)); dateToTf.setText(dFormat.format(toDate)); WDFromTf.setText(wDayFrom.toString()); WDToTf.setText(wDayTo.toString()); WEndsFrom.setText(wEndFrom.toString()); WEndsTo.setText(wEndTo.toString()); } } catch (SQLException e1) { e1.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws FileNotFoundException, InterruptedException\n {\n String sensor1 = null;\n String sensor2 = null;\n String sensor1ID = \"28-03168c10ddff\";\n String sensor2ID = \"28-03168c3c82ff\";\n String sensor1data;\n String sensor2data...
[ "0.60926086", "0.6081797", "0.5790643", "0.5668168", "0.5644705", "0.5609787", "0.5578445", "0.5423027", "0.5394754", "0.53790396", "0.53737867", "0.53626007", "0.5350321", "0.53410196", "0.5340421", "0.5328442", "0.53219837", "0.5298374", "0.5294945", "0.5257559", "0.5252624...
0.5548228
7
method to fetch the url for the floor map image
public void areaTracker() { url = ClassLoader.getSystemClassLoader().getResource( "res/floor_plan.jpg"); // file path is read to the buffered image try { icon1 = ImageIO.read(url); } catch (IOException e) { e.printStackTrace(); } // mouse listener (to display the selected area) for the mouse events addMouseListener(new MouseEventAdapterA()); setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "abstract public String imageUrl ();", "@Override\n \t public URL getTileUrl(int x, int y, int zoom) {\n \t String s = String.format(\"http://my.image.server/images/%d/%d/%d.png\",\n \t zoom, x, y);\n\n \t if (!...
[ "0.6780137", "0.6706864", "0.6675828", "0.65560323", "0.6516929", "0.65029466", "0.6452148", "0.63699573", "0.63386226", "0.6323343", "0.6258804", "0.62395", "0.61986905", "0.61895293", "0.6090769", "0.6087734", "0.60858476", "0.6075826", "0.60661423", "0.6063687", "0.606353"...
0.0
-1
activate button action listener
public void activateSensorsActionListener(ActionListener listener) { activateSensorsButton.addActionListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enablButtonListener();", "public void buttonClicked();", "void configureButtonListener();", "private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }", "public void buttonChangeStatus(ActionEvent actionEvent) {\n }", "@Override\r\n\t\t\tpublic void action...
[ "0.74137515", "0.7185526", "0.7158112", "0.71139383", "0.7090283", "0.70550203", "0.70421046", "0.702957", "0.7012167", "0.70120347", "0.7004891", "0.6991787", "0.6981639", "0.69646424", "0.69646424", "0.6944049", "0.69378597", "0.69378597", "0.69378597", "0.69378597", "0.692...
0.0
-1
save button action listener
public void saveSensorsActionListener(ActionListener listener) { saveSensorsButton.addActionListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void handleSaveClicked(ActionEvent event);", "void onSaveClicked();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}", "public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}", "private void saveButtonActionPerformed(java.awt.event.ActionEvent evt...
[ "0.8385369", "0.8319507", "0.82065195", "0.80900866", "0.79336774", "0.78608286", "0.7829416", "0.77589554", "0.77543676", "0.76480514", "0.75850517", "0.75558406", "0.7531941", "0.7474987", "0.74506676", "0.74026036", "0.7343189", "0.732285", "0.7272931", "0.7238977", "0.721...
0.0
-1
Method to save date and time from text fields to database
public void saveDate() { //Get JDBC connection Connection connection = null; ConnectDB conn = new ConnectDB(); connection = conn.getConnection(); try { //Parse the date and time from text field to save it into Database SimpleDateFormat dfFormat = new SimpleDateFormat("dd.MM.yyyy"); Date fromDate = dfFormat.parse(dateFromTf.getText()); long ftime = fromDate.getTime(); java.sql.Date fdate = new java.sql.Date(ftime); Date toDate = dfFormat.parse(dateToTf.getText()); long ttime = toDate.getTime(); java.sql.Date tdate = new java.sql.Date(ttime); //Calculate the number of days for which the system is active int numOfDays = (int) ((ttime - ftime) / (1000 * 60 * 60 * 24)); System.out.println("Difference days b/w dates" + numOfDays); String time1 = WDFromTf.getText(), time2 = WDToTf.getText(), time3 = WEndsFrom .getText(), time4 = WEndsTo.getText(); Date date1 = null, date2 = null, date3 = null, date4 = null; try { date1 = new SimpleDateFormat("HH:mm:ss").parse(time1); date2 = new SimpleDateFormat("HH:mm:ss").parse(time2); date3 = new SimpleDateFormat("HH:mm:ss").parse(time3); date4 = new SimpleDateFormat("HH:mm:ss").parse(time4); } catch (ParseException e) { } Statement selectStmt = connection.createStatement(); String sql1 = "SELECT * FROM systemConfig"; ResultSet rs1 = selectStmt.executeQuery(sql1); if (rs1.next() == false) { //Insert the calculated values to database if the user is registered String query = "INSERT INTO `systemConfig`(fromDate,toDate,wdfromTime,wdtoTime,wendsFromTime,wendsToTime) VALUES (?,?,?,?,?,?)"; PreparedStatement stmt = connection.prepareStatement(query); stmt.setDate(1, fdate); stmt.setDate(2, tdate); stmt.setTime(3, new Time(date1.getTime())); stmt.setTime(4, new Time(date2.getTime())); stmt.setTime(5, new Time(date3.getTime())); stmt.setTime(6, new Time(date4.getTime())); stmt.executeUpdate(); } else { //Insert the calculated values to database if the user is new user String query = "UPDATE systemConfig SET fromDate = ? , toDate = ? ,wdfromTime= ?, wdtoTime= ? , wendsFromTime= ?, wendsToTime= ?"; PreparedStatement stmt = connection.prepareStatement(query); stmt.setDate(1, fdate); stmt.setDate(2, tdate); stmt.setTime(3, new Time(date1.getTime())); stmt.setTime(4, new Time(date2.getTime())); stmt.setTime(5, new Time(date3.getTime())); stmt.setTime(6, new Time(date4.getTime())); stmt.executeUpdate(); } } catch (SQLException e1) { e1.printStackTrace(); } catch (ParseException e1) { e1.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && ...
[ "0.6885993", "0.6245533", "0.618423", "0.61324024", "0.61022997", "0.6022561", "0.5946855", "0.59046686", "0.58036214", "0.57984185", "0.5769891", "0.576758", "0.57541806", "0.56422144", "0.56136876", "0.56025463", "0.55991364", "0.5598094", "0.5567245", "0.5486374", "0.54694...
0.6591319
1
Method saves the selected sensors on selected areas into database since the system is persistant.
public void saveSensorsDB() throws Exception { //Get JDBC connection Connection connection = null; Statement stmt = null; ConnectDB conn = new ConnectDB(); connection = conn.getConnection(); stmt = connection.createStatement(); for (int key : getMap().keySet()) { SubArea value = getMap().get(key); int fireValue = (value.isFireSensor()) ? 1 : 0; int burglaryValue = (value.isBurglarySensor()) ? 1 : 0; //Save Fire and Burglary sensors String sql = "UPDATE section SET fireSensor=" + fireValue + ", burglarySensor=" + burglaryValue + " WHERE id=" + key; stmt.executeUpdate(sql); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} ...
[ "0.63681525", "0.60895884", "0.5955368", "0.5764141", "0.56693417", "0.56597793", "0.5591477", "0.55740416", "0.55590016", "0.5547385", "0.5525817", "0.5443353", "0.53732526", "0.5333596", "0.53096277", "0.5289145", "0.5262576", "0.52374643", "0.52212507", "0.5213172", "0.521...
0.7790799
0
demo of getChars() method
public static void main(String[] args) { char [] copy = new char[20]; String misery = "I'm your number one fan."; misery.getChars(9, 23, copy, 0); System.out.println(copy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCharacterSequence();", "public String getCharacters()\n\t{\n\t\treturn characters;\n\t}", "public char[] getCharacters() {\n return characters;\n }", "public char getChar();", "char[] getCharContent() throws IOException;", "@Test\n public void testChars() {\n LOGGER.i...
[ "0.7382854", "0.6940753", "0.6918157", "0.6775234", "0.6666614", "0.6593543", "0.65081", "0.6496385", "0.64717793", "0.6417003", "0.64147145", "0.6330709", "0.63203806", "0.6317365", "0.62852603", "0.62830776", "0.6270528", "0.61897093", "0.61861736", "0.6165776", "0.61357623...
0.6261519
17
Does the initial configuration of the program window.
private void configureWindow() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); background.setBackground(Color.BLACK); setSize(initialWindowWidth, initialWindowHeight); setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow...
[ "0.69840455", "0.69583577", "0.6954577", "0.69321555", "0.69124216", "0.6888444", "0.68751496", "0.68145615", "0.6789263", "0.67838186", "0.67622346", "0.67598844", "0.6753539", "0.67123777", "0.6702086", "0.66619813", "0.664638", "0.6639767", "0.6637223", "0.66319084", "0.65...
0.72929096
0
Lets the thread sleep for the number of milliseconds provided.
private void sleepMilliseconds(long milliseconds) { try { Thread.sleep(milliseconds); } catch (InterruptedException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}", "private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }", "public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t...
[ "0.8287335", "0.82207054", "0.8062097", "0.79446197", "0.7939475", "0.7789217", "0.7697719", "0.76901937", "0.76664245", "0.76521", "0.7643823", "0.7614441", "0.7612892", "0.7607298", "0.7606592", "0.75865877", "0.75695956", "0.75666714", "0.7534564", "0.7532883", "0.74980366...
0.81660885
2
Loads the icon and returns an images which is paintable by the drawImage method.
protected Image loadIcon() { /* * Icon by http://www.artua.com/, retrieved here: * http://www.iconarchive.com/show/star-wars-icons-by-artua.html */ return new ImageLoader().loadIcon("moon.png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing =...
[ "0.6597866", "0.6553121", "0.6538083", "0.6528839", "0.65204257", "0.65171677", "0.6507633", "0.64956784", "0.6416152", "0.64157677", "0.64150167", "0.64113885", "0.6387355", "0.6381688", "0.6352471", "0.63488084", "0.6348624", "0.63406324", "0.63373876", "0.63281524", "0.632...
0.7342817
0
Stops the execution of the task immediately
public void cancel() { if( this.attachedThread != null ) { this.attachedThread.interrupt(); } else { this.attachedFuture.cancel( true ); if( this.attachedHipanFuture != null ) { this.attachedHipanFuture.fail( new InterruptedException( "Task was canceled" ) ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "public void stop(){\r\n\t\tmyTask.cancel();\r\n\t\ttimer.cancel();\r\n\t}", "public void stopTask() {\r\n\t\tquit = true...
[ "0.80250645", "0.7997876", "0.7927253", "0.7569457", "0.74177945", "0.7288319", "0.72352886", "0.7194899", "0.7182605", "0.71486104", "0.709951", "0.7093336", "0.7093336", "0.7092893", "0.70122695", "0.69986767", "0.69895434", "0.6971631", "0.6961315", "0.6872541", "0.6871165...
0.0
-1
standard thread invocation in swing apps
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { ImageAnalyzer analyzer = new ImageAnalyzer(); analyzer.initialise(); } catch (Exception e) { e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n //logic to execute in a thread \n }", "public JanelaThread() {\n initComponents();\n }", "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n ...
[ "0.66023093", "0.6570879", "0.6438516", "0.6402411", "0.6373408", "0.6343889", "0.6332259", "0.63296866", "0.6325172", "0.62662745", "0.6249486", "0.62142926", "0.62028", "0.61989856", "0.61989856", "0.61989856", "0.61989856", "0.61989856", "0.6188533", "0.6178682", "0.617685...
0.0
-1
DataHolder data = new DataHolder(s, mqttMessage); messageRecvingQueue.put(data);
@Override public void messageArrived(String s, MqttMessage mqttMessage) throws Exception { deleveryMessage(s, mqttMessage.getPayload(), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void messageArrived(String s, MqttMessage mqttMessage) {\n LoCommand command = new Gson().fromJson(new String(mqttMessage.getPayload()), LoCommand.class);\n System.out.println(\"Device command received: \" + new Gson().toJson(command));\n\n LoCommand.LoCommandResponse response = new LoC...
[ "0.6337941", "0.6265947", "0.6252806", "0.61935055", "0.61728495", "0.61093795", "0.60667324", "0.6066073", "0.60526806", "0.59460485", "0.58978957", "0.5893839", "0.5887913", "0.5864512", "0.58500814", "0.5827847", "0.5803009", "0.57896304", "0.5781119", "0.5752169", "0.5742...
0.5910723
10
Token stored in Table (Persistent_Logins)
@Bean public PersistentTokenRepository persistentTokenRepository() { JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl(); db.setDataSource(dataSource); return db; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addUserToken(String login, String token) throws SQLException;", "User setTokenForUser(String username, String token) throws DatabaseException;", "public AuthToken loginUser(){\n return null;\n }", "public String getUserByToken(String token) throws SQLException;", "public LoginToken ge...
[ "0.68347806", "0.67989314", "0.6719326", "0.6626786", "0.65943146", "0.6465084", "0.6431615", "0.63805217", "0.61765593", "0.6158934", "0.6140769", "0.60598266", "0.6018266", "0.6018266", "0.6018266", "0.600732", "0.59872466", "0.5977996", "0.5955525", "0.5951524", "0.5951524...
0.56637615
77
Returns webapp handler which is able to handle war file
private Handler getWebAppHandler(String warLocation, Server server) { WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/"); File warFile = new File(warLocation); if (!warFile.exists()) { throw new RuntimeException("Unable to find WAR File: " + warFile.getAbsolutePath()); } webapp.setWar(warFile.getAbsolutePath()); webapp.setExtractWAR(true); Configuration.ClassList classlist = Configuration.ClassList.setServerDefault(server); classlist.addBefore( "org.eclipse.jetty.webapp.JettyWebXmlConfiguration", "org.eclipse.jetty.annotations.AnnotationConfiguration"); webapp.setAttribute( "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern", ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/[^/]*taglibs.*\\.jar$"); return webapp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getStaticWebEndpoint();", "static String getHandler(HttpServletRequest request) {\n String requestURI = request.getRequestURI();\n return requestURI.substring(getDividingIndex(requestURI) + 1);\n }", "public Handler getHandler();", "public static org.jboss.management.j2ee.J2EEApplication get...
[ "0.58352", "0.5675375", "0.552102", "0.5509934", "0.5484673", "0.54564875", "0.53835636", "0.5330954", "0.5329075", "0.5313272", "0.5303819", "0.527513", "0.52380276", "0.51804626", "0.5125847", "0.5096204", "0.50642014", "0.50606996", "0.5060194", "0.50581235", "0.5017385", ...
0.8195142
0
add to (don't replace) System.getProperties()
@Override public void lifeCycleStarting(LifeCycle anyLifeCycle) { System.getProperties().putAll(toSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void registerToSystem() {\n Enumeration<?> enumeration = properties.propertyNames();\r\n while (enumeration.hasMoreElements()) {\r\n String name = (String) enumeration.nextElement();\r\n String value = properties.getProperty(name);\r\n if (value != null...
[ "0.7407177", "0.7389414", "0.6804432", "0.66235113", "0.63626045", "0.6333845", "0.63175094", "0.63038963", "0.6291544", "0.6271108", "0.62180334", "0.6184665", "0.61316967", "0.60991615", "0.60957813", "0.6024678", "0.5996721", "0.5976947", "0.5976065", "0.59718686", "0.5971...
0.6213456
11
MyThread [] myThread = new MyThread [10];
public static void main(String... args) throws InterruptedException { int counter = 0; ArrayList<MyThread> myThread = new ArrayList<MyThread>(); while (counter < 10) { myThread.add(new MyThread()); counter++; } Iterator<MyThread> iterator = myThread.iterator(); while (iterator.hasNext()) { MyThread myThread2 = (MyThread) iterator.next(); myThread2.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Thread[] newThreadArray() { \r\n\t int n_cpus = Runtime.getRuntime().availableProcessors(); \r\n\t return new Thread[n_cpus]; \r\n\t }", "public void threadsCreation(int numberOfThreads, MyArrayList myarr) throws InterruptedException {\n\t\tread = new Thread[numberOfThreads];\n\n ...
[ "0.7483302", "0.6520785", "0.6089601", "0.59907347", "0.5775709", "0.5712912", "0.5655749", "0.5580511", "0.5577919", "0.55713207", "0.5562615", "0.55399823", "0.5430685", "0.53822345", "0.5378676", "0.53756046", "0.5358955", "0.53057146", "0.5301066", "0.52675366", "0.525904...
0.5811739
4
Sends messages to this player
protected abstract void sendMessage(UUID[] players, String[] messages, IntConsumer response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "public void sendMessages(String[] messages)\r\n\t{\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tplayer.se...
[ "0.75886875", "0.7311956", "0.7060728", "0.69510293", "0.695074", "0.6860019", "0.6809579", "0.6804163", "0.6718785", "0.6702738", "0.6693653", "0.6691021", "0.6644661", "0.6637859", "0.6601052", "0.65828234", "0.6556945", "0.6548754", "0.65455335", "0.6543769", "0.65416986",...
0.617628
61
Sends messages to this player
protected abstract void sendMessage(UUID[] players, BaseComponent[][] messages, IntConsumer response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "public void sendMessages(String[] messages)\r\n\t{\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tplayer.se...
[ "0.75886875", "0.7311956", "0.7060728", "0.69510293", "0.695074", "0.6860019", "0.6809579", "0.6804163", "0.6718785", "0.6702738", "0.6693653", "0.6691021", "0.6644661", "0.6637859", "0.6601052", "0.65828234", "0.6556945", "0.6548754", "0.65455335", "0.6543769", "0.65416986",...
0.6267388
46
Transfers this player to another server
protected abstract void transfer(UUID[] players, String server, IntConsumer response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void transferTo(Player player) {\n\t\tSystem.out.println(\"Hey you are in snake mouth, Now got to tail\");\n\t\tplayer.move(getTransferFactor()); \n\t\t\n\t\t\n\t}", "public void sendPlayerToServer(Player player, String serverName) {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();...
[ "0.64347386", "0.62617147", "0.6149824", "0.60861796", "0.6072433", "0.5987527", "0.5934047", "0.58433527", "0.57728237", "0.57141006", "0.5665813", "0.5575988", "0.55618715", "0.55575085", "0.55493414", "0.5530674", "0.550605", "0.5472822", "0.5470471", "0.5464142", "0.54550...
0.6016083
5
Disconnects this player from the network
protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect(){\n\t\tif(player!=null){\n\t\t\tplayer.getConnection().close();\n\t\t\t\n\t\t\t// we get no disconnect signal if we close the connection ourself\n\t\t\tnotifyHandlers(MessageFlag.DISCONNECTED);\n\t\t}\n\t}", "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConne...
[ "0.7911925", "0.74110955", "0.71947217", "0.71198976", "0.7099764", "0.70638925", "0.704232", "0.68975383", "0.685397", "0.6818521", "0.6816034", "0.6813054", "0.68050265", "0.6690501", "0.6687098", "0.667442", "0.6635704", "0.66309834", "0.6596031", "0.65710324", "0.6556939"...
0.0
-1
Configure ViewResolvers to deliver preferred views.
@Override public void configureViewResolvers(ViewResolverRegistry registry) { InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setViewClass(JstlView.class); viewResolver.setPrefix("/WEB-INF/"); viewResolver.setSuffix(".jsp"); registry.viewResolver(viewResolver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setViewResolver(ViewResolver resolver);", "@Override\n public void configureViewResolvers(ViewResolverRegistry registry) {\n TilesViewResolver viewResolver = new TilesViewResolver();\n registry.viewResolver(viewResolver);\n }", "@Override\n public void configureViewResolvers(ViewRes...
[ "0.6658599", "0.6617889", "0.63235104", "0.614931", "0.6010611", "0.5929063", "0.589319", "0.5885471", "0.5881883", "0.57496566", "0.57334477", "0.57160103", "0.5579135", "0.54528993", "0.54293007", "0.541214", "0.5375508", "0.52898824", "0.5262794", "0.52481997", "0.5208143"...
0.5756146
9
Configure ResourceHandlers to serve static resources like CSS/ Javascript etc...
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/static/**").addResourceLocations("/static/"); registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); // swagger // registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/"); // registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n\t\tregistry.addResourceHandler(\"/static/**\").addResourceLocations(\r\n\t\t\t\t\"/static/\");\r\n\t}", "@Override\r\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n registry.addResourceHandl...
[ "0.81860864", "0.80411756", "0.7948738", "0.7862818", "0.78194386", "0.7724789", "0.7724056", "0.7701872", "0.7585216", "0.75758296", "0.75378215", "0.743405", "0.731617", "0.7275265", "0.72363126", "0.7087503", "0.7077531", "0.70596", "0.7024994", "0.6936652", "0.68862134", ...
0.7933557
3
Configure MessageSource to lookup any validation/error message in internationalized property files
@Bean public MessageSource messageSource() { ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); messageSource.setBasename("messages"); return messageSource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean\n public MessageSource messageSource() {\n ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();\n messageSource.setBasename(\"i18n/messages\");\n messageSource.setUseCodeAsDefaultMessage(true);\n return messageSource;\n }", "@Bean\r\n\tpubli...
[ "0.7267719", "0.6991213", "0.6888188", "0.68835664", "0.68513066", "0.6814605", "0.6721925", "0.66308177", "0.6551038", "0.6509439", "0.6427853", "0.6420539", "0.61256117", "0.6104698", "0.60217655", "0.5982106", "0.58258355", "0.5774415", "0.56545085", "0.56134236", "0.55955...
0.6761604
6
Marks an area of the page that a link jumps to.
public void setName(String value) { put(HtmlEnum.name.getAttributeName(), value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setAnchorOffset(int anchorOffset);", "@Override\n public void anchor_()\n {\n }", "public void setAnchor(String name)\r\n {\r\n this.anchor = name;\r\n }", "public void jumpToLine(int line) {\n setSelection(line,0);\n }", "public void gotoMark() {\n\t_source.gotoMark();...
[ "0.63303226", "0.5941876", "0.59340495", "0.57152635", "0.56129813", "0.5489167", "0.54743403", "0.54725164", "0.5447271", "0.54264086", "0.5371853", "0.53677666", "0.5353742", "0.5338032", "0.52960426", "0.52725565", "0.5268344", "0.5266179", "0.5255325", "0.5254742", "0.525...
0.0
-1
Specifies how many columns to span.
public void setSpan(String value) { put(HtmlEnum.span.getAttributeName(), value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColspan() \n {\n return 1;\n }", "private void setNoOfColumns(int noOfColumns) {\n this.noOfColumns = noOfColumns;\n }", "private void setNumColumns(int cols) {\n\t\tnumColumns = cols; \n\t}", "public abstract int getNumColumns();", "public abstract int numC...
[ "0.72811484", "0.66703355", "0.65708476", "0.6555241", "0.648922", "0.64558864", "0.64558864", "0.6451139", "0.6332456", "0.6327313", "0.6292538", "0.6192379", "0.6189929", "0.61898726", "0.6171887", "0.6166482", "0.6136334", "0.6115607", "0.6106624", "0.6100971", "0.6081829"...
0.0
-1
Width of the column.
public void setWidth(String value) { put(HtmlEnum.width.getAttributeName(), value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColumnWidth() {\n return COLUMN_WIDTH;\n }", "public int getColumnWidth() {\r\n\t\tint columnWidth = getElementColumn1().getOffsetWidth();\r\n\t\treturn columnWidth;\r\n\t}", "protected int getColumnWidth() {\n if (columnWidth == 0) {\n FontMetrics metrics = getFontMetrics(g...
[ "0.8369336", "0.79171365", "0.75568706", "0.7510536", "0.7448858", "0.7365204", "0.7356004", "0.7339847", "0.73394865", "0.73394865", "0.73394865", "0.73023224", "0.7286792", "0.72712094", "0.7249394", "0.72435266", "0.72435266", "0.7239797", "0.72193116", "0.72193116", "0.72...
0.0
-1
find eigenvectors of data set
public static Pair<ArrayList<double[]>, double[]> performPCA(ArrayList<double[]> fullData, double[] testDataArr, double[] dataAvg, int reducedDataSize) { Matrix eigenVectors = getEigenVectors(fullData, dataAvg, reducedDataSize); //use eigenvectors to calculate the reduced data set ArrayList<double[]> fullNewData = calculatePCA(fullData, eigenVectors); //use the same eigenvectors to reduce the test data to fit in the same dimensionality as the training data ArrayList<double[]> testData = new ArrayList<>(); testData.add(testDataArr); double[] testNewData = calculatePCA(testData, eigenVectors).get(0); return new Pair<ArrayList<double[]>, double[]>(fullNewData, testNewData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matrix eigenvectors(Matrix A) {\n\t\tEigenvalueDecomposition eda = A.eig();\n\t\t\n\t\tMatrix E = eda.getV();\n\t\t\n\t\treturn E;\n\t}", "public double[][] eigenVectors(){\n if(!this.pcaDone)this.pca();\n return this.eigenVectorsAsColumns;\n }", "public double[] eigenValues(){\n...
[ "0.73675275", "0.733552", "0.6653247", "0.6440525", "0.5974891", "0.5963804", "0.5939472", "0.5820305", "0.5817292", "0.5810271", "0.56725365", "0.56168723", "0.55688864", "0.55218226", "0.5433946", "0.54338855", "0.54314965", "0.53376794", "0.53285754", "0.5319566", "0.53183...
0.0
-1
Creates new RETSLogoutResponse populating the requestMap
public RETSLogoutResponse(Map m) { super(m); setReplyCode(REPLY_CODE_SUCCESS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResponseEntity<?> signOut(HttpServletRequest req, HttpServletResponse res);", "@RequestMapping(value = \"/logout/{userId}/{startTime}\", method= RequestMethod.GET)\n @ResponseBody\n public ResponseEntity logout (@PathVariable(\"userId\") Integer userId,\n @PathVariable(\"st...
[ "0.5821295", "0.5811724", "0.57887083", "0.57338095", "0.5614047", "0.55806106", "0.55715847", "0.5521186", "0.5495553", "0.53942984", "0.5374896", "0.5318584", "0.53168285", "0.52790004", "0.52566904", "0.52533376", "0.523913", "0.5182814", "0.51715297", "0.51570106", "0.513...
0.74889964
0
Builds the framework of the response and calls fillContent to add the body.
protected void buildResponse() { appendResponse("<?xml version=\"1.0\" standalone=\"no\"?>\r\n"); appendResponse("<!DOCTYPE RETS SYSTEM \"RETS-20021015.dtd\">\r\n"); appendResponse("<RETS ReplyCode=\""); appendResponse(replyCode); appendResponse("\" ReplyText=\""); appendResponse(replyText); appendResponse("\""); if (getReplyCode() != REPLY_CODE_SUCCESS) { cat.debug("*****ERROR"); appendResponse(" />"); } else { appendResponse(" >\n"); fillContent(); appendResponse("</RETS>\r\n"); } cat.debug("RESPONSE ::" + this.response.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void fillContent() {\r\n appendResponse(\"ConnectTime=\");\r\n appendResponse(getConnectTime());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"Billing=\");\r\n appendResponse(getBilling());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"SignOffMessa...
[ "0.6442907", "0.6213431", "0.6078754", "0.5945097", "0.5906375", "0.5726537", "0.57178867", "0.5689139", "0.5620764", "0.55770063", "0.5541364", "0.55317694", "0.5507965", "0.547996", "0.5453168", "0.5450242", "0.5444132", "0.5386483", "0.53744954", "0.5367589", "0.53627646",...
0.6589094
0
Fills in the response content.
protected void fillContent() { appendResponse("ConnectTime="); appendResponse(getConnectTime()); appendResponse("\n"); appendResponse("Billing="); appendResponse(getBilling()); appendResponse("\n"); appendResponse("SignOffMessage="); appendResponse(getSignOffMessage()); appendResponse("\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Response() {\n initFields();\n }", "protected void doConsumeResponse() throws Exception {\n if (response.getEntity() != null)\n response_data = EntityUtils.toByteArray(response.getEntity());\n }", "private void getResponse() {\n response = new Response();\n\n ...
[ "0.6394805", "0.63915604", "0.6361621", "0.62293386", "0.62150574", "0.6178665", "0.6026733", "0.5993538", "0.5921409", "0.59124476", "0.59086984", "0.59070486", "0.59070486", "0.5891198", "0.5891198", "0.5880895", "0.5857911", "0.58218175", "0.5751211", "0.57501465", "0.5723...
0.7995799
0
TODO just retuns null for now
String getConnectTime() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public class_1562 method_207() {\r\n return null;\r\n }", "public String method_211() {\r\n return null;\r\n }", "@Override\n\tprotected String findStatement() {\n\t\treturn null;\n\t}", "public int getM_Locator_...
[ "0.5944646", "0.5666081", "0.55891514", "0.5323747", "0.5322461", "0.5320093", "0.53096735", "0.53052807", "0.5237604", "0.5229583", "0.52132285", "0.5203987", "0.5200721", "0.51874524", "0.5176486", "0.51725775", "0.5165504", "0.5164519", "0.5164015", "0.5135661", "0.5133562...
0.0
-1
TODO just returns null for now
String getBilling() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public String method_211() {\r\n return null;\r\n }", "public class_1562 method_207() {\r\n return null;\r\n }", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null...
[ "0.58591044", "0.5536799", "0.5514602", "0.53693426", "0.5360034", "0.5359436", "0.5331576", "0.5292398", "0.5287683", "0.526879", "0.5235214", "0.520742", "0.5198053", "0.51620716", "0.5161794", "0.5160553", "0.51219606", "0.5119936", "0.51063657", "0.51024294", "0.5101502",...
0.0
-1
TODO just retuns null for now
String getSignOffMessage() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public class_1562 method_207() {\r\n return null;\r\n }", "public String method_211() {\r\n return null;\r\n }", "@Override\n\tprotected String findStatement() {\n\t\treturn null;\n\t}", "public int getM_Locator_...
[ "0.5944646", "0.5666081", "0.55891514", "0.5323747", "0.5322461", "0.5320093", "0.53096735", "0.53052807", "0.5237604", "0.5229583", "0.52132285", "0.5203987", "0.5200721", "0.51874524", "0.5176486", "0.51725775", "0.5165504", "0.5164519", "0.5164015", "0.5135661", "0.5133562...
0.0
-1
Cargamos el registro en la pantalla
private void cargarRegistro() { if (filaId != null) { Cursor bar = bdHelper.getBar(filaId); // Indicamos que queremos controlar el Cursor startManagingCursor(bar); // Obtenemos el campo categoria String categoria = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_CATEGORIA)); // Seleccionamos la categoría en el Spinner for (int i=0; i<categoriaSpinner.getCount();i++){ // Cargamos una de la opciones del listado desplegable String s = (String) categoriaSpinner.getItemAtPosition(i); // Si coindice con la que está en la BD la seleccionamos en el listado desplegable if (s.equalsIgnoreCase(categoria)){ categoriaSpinner.setSelection(i); break; } } // Obtenemos el campo relacion calidad-precio String relacion = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_RELACION)); // Seleccionamos en el Spinner la relacion c-p for (int i=0; i<relacionSpinner.getCount();i++){ // Cargamos una de la opciones del listado desplegable String s = (String) relacionSpinner.getItemAtPosition(i); // Si coindice con la que está en la BD la seleccionamos en el listado desplegable if (s.equalsIgnoreCase(relacion)){ relacionSpinner.setSelection(i); break; } } // Obtenemos el campo del acompañante String acompanante = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_ACOMPANANTE)); // Seleccionamos el formato en el Spinner for (int i=0; i<acompananteSpinner.getCount();i++){ // Cargamos una de la opciones del listado desplegable String s = (String) acompananteSpinner.getItemAtPosition(i); // Si coindice con la que está en la BD la seleccionamos en el listado desplegable if (s.equalsIgnoreCase(acompanante)){ acompananteSpinner.setSelection(i); break; } } // Rellenamos las Vistas nombreText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOMBRE))); direccionText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_DIRECCION))); notasText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOTAS))); precioText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_PRECIO))); valoracionRB.setRating(bar.getFloat(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_VALORACION))); // Tratamos las fechas del registro long fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_ULT_VIS)); primeraFecha.setTimeInMillis(fecha); fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_PRI_VIS)); if (fecha>0) { ultimaFecha=Calendar.getInstance(); ultimaFecha.setTimeInMillis(fecha); } // Dejamos de controlar el cursor de la BD stopManagingCursor(bar); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado ...
[ "0.67303056", "0.672507", "0.6713814", "0.6592654", "0.65777016", "0.64720786", "0.64505464", "0.64198893", "0.64048505", "0.63788813", "0.63609153", "0.6352981", "0.63035965", "0.62826186", "0.62761873", "0.6275856", "0.6274977", "0.6274403", "0.62654257", "0.6263831", "0.62...
0.624019
21
Constructor for primary key
public BaseMasMedicalBoardDetails (java.lang.Integer id) { this.setId(id); initialize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PrimaryKey createPrimaryKey();", "public DatasetParameterPK() {\n }", "public ParametroPorParametroPK() {\r\n\t}", "PrimaryKey getPrimarykey();", "Key getPrimaryKey();", "public TdOficioAfectacionPK() {\n }", "PrimaryKey getPrimaryKey();", "public DomainPK()\n {\n }", "public LeaguePrimar...
[ "0.7875029", "0.7489606", "0.739803", "0.7096801", "0.70711553", "0.69975173", "0.69803166", "0.69716835", "0.6964837", "0.69633687", "0.69163185", "0.67959905", "0.6758902", "0.6702319", "0.6702319", "0.6702319", "0.6699209", "0.65859973", "0.6582905", "0.65318656", "0.65293...
0.0
-1
Return the unique identifier of this class
public java.lang.Integer getId () { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "public String getUniqueID();", "public String getUniqueID ( ) { return _uniqueID; }", "String getUniqueID();", "public String getClassid() {\n return classid;\n }", "String getUniqueId()...
[ "0.8099061", "0.7793248", "0.7745005", "0.773952", "0.76971465", "0.76135826", "0.75959677", "0.75864595", "0.754388", "0.75299907", "0.75275266", "0.7500354", "0.7487855", "0.74852705", "0.74435693", "0.7425048", "0.74089086", "0.74007654", "0.73874485", "0.7354514", "0.7352...
0.0
-1
Set the unique identifier of this class
public void setId (java.lang.Integer id) { this.id = id; this.hashCode = Integer.MIN_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}", "public void setUniqueID(String uniqueID)\r\n {\r\n m_uniqueID = uniqueID;\r\n }", "@Override\n\tpublic void setUniqueId(int id) {}", "public void setUniqueId(final String uniqueId) {\n _uniqueId = uniqueId;\n }", "publi...
[ "0.7281828", "0.7188852", "0.70595604", "0.7058688", "0.69680285", "0.6883223", "0.6781155", "0.67765903", "0.67603344", "0.6737482", "0.6681386", "0.66533566", "0.6612935", "0.66081303", "0.66040903", "0.6576922", "0.657261", "0.65361136", "0.653008", "0.6522364", "0.6506520...
0.0
-1
Return the value associated with the column: SrNo
public java.lang.Integer getSrNo () { return srNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSCRSNo() {\n return sCRSNo;\n }", "public void setSrNo (java.lang.Integer srNo) {\n\t\tthis.srNo = srNo;\n\t}", "public int getSno() {\n return sno;\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public String getSeNo() {\n return seNo;\n ...
[ "0.68870366", "0.65584683", "0.6528158", "0.6283038", "0.6241876", "0.6202213", "0.6179663", "0.6179663", "0.6179663", "0.60781497", "0.60173124", "0.5991505", "0.5947724", "0.59387136", "0.5901844", "0.5833174", "0.58271796", "0.57875425", "0.57439363", "0.5719342", "0.56988...
0.71427435
0
Set the value related to the column: SrNo
public void setSrNo (java.lang.Integer srNo) { this.srNo = srNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSCRSNo(String sCRSNo) {\n this.sCRSNo = sCRSNo;\n }", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public java.lang.Integer getSrNo () {\n\t\treturn srNo;\n\t}", "public void setSBLNO(int value) {\n this.sblno = value;\n }", "publi...
[ "0.64456695", "0.63425076", "0.63291216", "0.62791955", "0.62519157", "0.62519157", "0.62519157", "0.6190178", "0.6112859", "0.60144055", "0.60127354", "0.60127354", "0.601076", "0.5990913", "0.59504294", "0.58967763", "0.5840526", "0.5840526", "0.5799255", "0.57542574", "0.5...
0.7364848
0
Return the value associated with the column: disabilities
public java.lang.String getDisabilities () { return disabilities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDisabilities (java.lang.String disabilities) {\n\t\tthis.disabilities = disabilities;\n\t}", "int getIndividualDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "AbilityDamage getAbilityDamage();...
[ "0.602172", "0.56889325", "0.5599218", "0.5599218", "0.5599218", "0.5599218", "0.5599218", "0.5599218", "0.54901415", "0.5484158", "0.548262", "0.53826743", "0.5356372", "0.5315527", "0.53148407", "0.53148407", "0.53148407", "0.5314803", "0.5314454", "0.5314454", "0.53080076"...
0.68173987
0
Set the value related to the column: disabilities
public void setDisabilities (java.lang.String disabilities) { this.disabilities = disabilities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDisabilities () {\n\t\treturn disabilities;\n\t}", "void setDiscount(BigDecimal discount);", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "public void setDamage(double d) {\n damage = d;\n }", "@Override\n\tpublic void setDefense(double defense...
[ "0.5642108", "0.56007046", "0.54884994", "0.5468753", "0.545254", "0.54256", "0.540797", "0.5355447", "0.53024095", "0.52962947", "0.52736634", "0.5263986", "0.5245139", "0.5239944", "0.5236416", "0.5225845", "0.521192", "0.520943", "0.5202531", "0.5114939", "0.50770634", "...
0.6693032
0
Return the value associated with the column: date_of_origin
public java.util.Date getDateOfOrigin () { return dateOfOrigin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDateOfOrigin (java.util.Date dateOfOrigin) {\n\t\tthis.dateOfOrigin = dateOfOrigin;\n\t}", "public StrColumn getPostRelRecvdCoordDate() {\n return delegate.getColumn(\"post_rel_recvd_coord_date\", DelegatingStrColumn::new);\n }", "public Integer getOrigin() {\n\t\treturn new Integer(or...
[ "0.5854374", "0.5775887", "0.54674363", "0.54632306", "0.5432134", "0.5382257", "0.53660655", "0.5352104", "0.5345719", "0.5337339", "0.5326154", "0.5315891", "0.53139263", "0.5301167", "0.52860945", "0.52782744", "0.527183", "0.52651507", "0.5263369", "0.5260506", "0.5245458...
0.6814513
0
Set the value related to the column: date_of_origin
public void setDateOfOrigin (java.util.Date dateOfOrigin) { this.dateOfOrigin = dateOfOrigin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }", "public void setDate(jav...
[ "0.6268803", "0.6210466", "0.61988527", "0.61730593", "0.6116776", "0.6091831", "0.60521", "0.60513866", "0.60444534", "0.597777", "0.5972355", "0.5962063", "0.5923719", "0.5899424", "0.58663696", "0.5852056", "0.58410394", "0.5828282", "0.58042437", "0.580041", "0.5778023", ...
0.69983435
0
Return the value associated with the column: place_of_origin
public java.lang.String getPlaceOfOrigin () { return placeOfOrigin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPlace() {\n\t\treturn place;\n\t}", "protected Place getPlace(int row, int col) {\n\t\treturn this.places.get(row * b.size() + col);\n\t}", "public Integer getOrigin() {\n\t\treturn new Integer(origin);\n\t}", "public int getPlaceLocation() {\n return mPlaceLocation;\n }", "Place ge...
[ "0.6121856", "0.6062335", "0.60554564", "0.5993722", "0.59816504", "0.59471077", "0.5900567", "0.58978945", "0.5897602", "0.58786404", "0.58786404", "0.58786404", "0.58786404", "0.58686805", "0.5847402", "0.5820936", "0.5774081", "0.575656", "0.5751829", "0.57441777", "0.5735...
0.6563288
0
Set the value related to the column: place_of_origin
public void setPlaceOfOrigin (java.lang.String placeOfOrigin) { this.placeOfOrigin = placeOfOrigin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrigin(java.lang.String origin)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORIGIN$16, 0);\n if (target =...
[ "0.6312269", "0.5951413", "0.5950553", "0.5915134", "0.5848654", "0.58210397", "0.5818975", "0.58144164", "0.57948554", "0.5768252", "0.5756516", "0.57490534", "0.5735086", "0.5727036", "0.5727036", "0.57048357", "0.56968176", "0.56754583", "0.56719834", "0.5667854", "0.56594...
0.64794475
0
Return the value associated with the column: previous_medical_categorisatrion
public java.lang.String getPreviousMedicalCategorisatrion () { return previousMedicalCategorisatrion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPreviousMedicalCategorisatrion (java.lang.String previousMedicalCategorisatrion) {\n\t\tthis.previousMedicalCategorisatrion = previousMedicalCategorisatrion;\n\t}", "public java.util.Date getPreviousMedicalCategorisationDate () {\n\t\treturn previousMedicalCategorisationDate;\n\t}", "public E pr...
[ "0.69402194", "0.6584466", "0.6090974", "0.59932965", "0.5637102", "0.5389329", "0.53103125", "0.5296769", "0.52511066", "0.52239007", "0.52195066", "0.5169258", "0.5164732", "0.51634693", "0.51124024", "0.5108489", "0.5104374", "0.5103194", "0.5086882", "0.5077572", "0.50670...
0.7571161
0
Set the value related to the column: previous_medical_categorisatrion
public void setPreviousMedicalCategorisatrion (java.lang.String previousMedicalCategorisatrion) { this.previousMedicalCategorisatrion = previousMedicalCategorisatrion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getPreviousMedicalCategorisatrion () {\n\t\treturn previousMedicalCategorisatrion;\n\t}", "public void setPreviousMedicalCategorisationDate (java.util.Date previousMedicalCategorisationDate) {\n\t\tthis.previousMedicalCategorisationDate = previousMedicalCategorisationDate;\n\t}", "publi...
[ "0.67645913", "0.6579075", "0.606515", "0.5533968", "0.54040337", "0.53420484", "0.5291627", "0.51667416", "0.5151826", "0.51484996", "0.5104414", "0.5100208", "0.509045", "0.5056788", "0.50334877", "0.48926947", "0.4857783", "0.4817934", "0.4774913", "0.47644266", "0.4760374...
0.7353521
0
Return the value associated with the column: previous_medical_categorisation_date
public java.util.Date getPreviousMedicalCategorisationDate () { return previousMedicalCategorisationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getPreviousMedicalCategorisatrion () {\n\t\treturn previousMedicalCategorisatrion;\n\t}", "public void setPreviousMedicalCategorisationDate (java.util.Date previousMedicalCategorisationDate) {\n\t\tthis.previousMedicalCategorisationDate = previousMedicalCategorisationDate;\n\t}", "publi...
[ "0.7000819", "0.6883038", "0.64978427", "0.5812968", "0.57832456", "0.57697034", "0.5734068", "0.57205516", "0.5703741", "0.5620503", "0.55048937", "0.55023885", "0.5501943", "0.5364199", "0.53326565", "0.5211235", "0.51322055", "0.5107456", "0.50832635", "0.5056786", "0.5044...
0.7645187
0
Set the value related to the column: previous_medical_categorisation_date
public void setPreviousMedicalCategorisationDate (java.util.Date previousMedicalCategorisationDate) { this.previousMedicalCategorisationDate = previousMedicalCategorisationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getPreviousMedicalCategorisationDate () {\n\t\treturn previousMedicalCategorisationDate;\n\t}", "public void setPreviousMedicalCategorisatrion (java.lang.String previousMedicalCategorisatrion) {\n\t\tthis.previousMedicalCategorisatrion = previousMedicalCategorisatrion;\n\t}", "public java...
[ "0.72352225", "0.66820437", "0.6137713", "0.562924", "0.55958027", "0.54335064", "0.5383974", "0.5368799", "0.5350598", "0.5321041", "0.5239869", "0.52376133", "0.52045035", "0.5197587", "0.51361716", "0.50893164", "0.50883657", "0.50282556", "0.49987164", "0.49924046", "0.49...
0.7408941
0
Return the value associated with the column: next_medical_categorisation_due
public java.util.Date getNextMedicalCategorisationDue () { return nextMedicalCategorisationDue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNextMedicalCategorisationDue (java.util.Date nextMedicalCategorisationDue) {\n\t\tthis.nextMedicalCategorisationDue = nextMedicalCategorisationDue;\n\t}", "public java.lang.String getPreviousMedicalCategorisatrion () {\n\t\treturn previousMedicalCategorisatrion;\n\t}", "public int getDueDatePrio...
[ "0.693634", "0.52297133", "0.515681", "0.51207244", "0.5064239", "0.50453585", "0.4992835", "0.4992835", "0.4891795", "0.48653013", "0.48593885", "0.48392224", "0.48267266", "0.48228917", "0.48206407", "0.48100102", "0.47971305", "0.47872236", "0.47677982", "0.475901", "0.474...
0.7519562
0
Set the value related to the column: next_medical_categorisation_due
public void setNextMedicalCategorisationDue (java.util.Date nextMedicalCategorisationDue) { this.nextMedicalCategorisationDue = nextMedicalCategorisationDue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getNextMedicalCategorisationDue () {\n\t\treturn nextMedicalCategorisationDue;\n\t}", "public void setDueDate(String dueDate) {\n }", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "public void setDue(LocalDate due) {\n this.due = ...
[ "0.70153624", "0.600027", "0.58406115", "0.5806019", "0.5773756", "0.57328236", "0.57070005", "0.5593243", "0.5593243", "0.5289368", "0.52423984", "0.5235755", "0.52240616", "0.5203153", "0.5197853", "0.5121682", "0.5104552", "0.51004654", "0.5079945", "0.50581706", "0.501262...
0.7494873
0
Return the value associated with the column: board_proceedings_id
public jkt.hms.masters.business.MasMedicalBoardProceedings getBoardProceedings () { return boardProceedings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBoard_id(){\n return Board_id;\n }", "int getNumber(int x, int y){\n return board[x][y].getNumber();\n }", "String getValue(String column, int row);", "public int getValue(int row, int col, int dep) {\n\t\treturn board[row][col][dep];\n\t}", "@Override\n\tpublic Map boardS...
[ "0.54523104", "0.5089538", "0.4771347", "0.47314298", "0.47186705", "0.46993348", "0.46782503", "0.466599", "0.46507543", "0.46430287", "0.46353018", "0.46327257", "0.4616622", "0.46158946", "0.46119097", "0.46095192", "0.46047178", "0.4595975", "0.45951492", "0.45808643", "0...
0.51692426
1
Set the value related to the column: board_proceedings_id
public void setBoardProceedings (jkt.hms.masters.business.MasMedicalBoardProceedings boardProceedings) { this.boardProceedings = boardProceedings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBoard_id(int Board_id){\n this.Board_id=Board_id;\n }", "public void setBoard(int[][] board) {\n this.board = board;\n }", "public void setQuestion(int questionId) {\n\n if (questionId < 10) {\n TextView questionNumber = (TextView) findViewById(R.id.Question...
[ "0.5731974", "0.5298814", "0.51546305", "0.5110024", "0.50879145", "0.5056721", "0.5047096", "0.50128424", "0.50128424", "0.49569646", "0.4933384", "0.4916515", "0.48661464", "0.48622468", "0.48617935", "0.48598439", "0.48476055", "0.4844782", "0.48420614", "0.4838152", "0.48...
0.53220594
1
Constructs an incomplete AzureDataLakeConf from Hadoop configuration that can be used to initialize an AsyncHttpClientManager.
public static AzureDataLakeConf fromConfiguration(URI storeUri, Configuration conf) { final AzureDataLakeConf outputConf = new AzureDataLakeConf(); outputConf.accountName = storeUri.getHost(); final int periodPos = outputConf.accountName.indexOf('.'); if (periodPos != -1) { outputConf.accountName = outputConf.accountName.substring(0, periodPos); } outputConf.mode = ADLAuth.CLIENT_KEY; for (Map.Entry<String, String> prop : conf) { if (outputConf.propertyList == null) { outputConf.propertyList = new ArrayList<>(); } outputConf.propertyList.add(new Property(prop.getKey(), prop.getValue())); switch (prop.getKey()) { case AdlConfKeys.AZURE_AD_CLIENT_ID_KEY: case "dfs.adls.oauth2.client.id": outputConf.clientId = prop.getValue(); break; case AdlConfKeys.AZURE_AD_CLIENT_SECRET_KEY: case "dfs.adls.oauth2.credential": outputConf.clientKeyPassword = prop.getValue(); break; case AdlConfKeys.AZURE_AD_TOKEN_PROVIDER_TYPE_KEY: outputConf.mode = "RefreshToken".equals(prop.getValue()) ? ADLAuth.REFRESH_TOKEN : ADLAuth.CLIENT_KEY; break; case AdlConfKeys.AZURE_AD_REFRESH_URL_KEY: case "dfs.adls.oauth2.refresh.url": outputConf.clientKeyRefreshUrl = prop.getValue(); break; case AdlConfKeys.AZURE_AD_REFRESH_TOKEN_KEY: case "dfs.adls.oauth2.refresh.token": outputConf.refreshTokenSecret = prop.getValue(); break; default: // Do nothing. } } Preconditions.checkNotNull(outputConf.accountName, "Account name must be set."); Preconditions.checkNotNull(outputConf.clientId, "Client ID must be set."); Preconditions.checkNotNull(outputConf.mode, "Authentication mode must be set."); return outputConf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Configuration getHDFSConfig(String serviceId);", "public AzureDataLakeStoreDataset() {\n }", "public AsyncHttpClientConfig buildAHCConfig(CONFIG config)\n {\n return buildAHCConfig(config,\n new AsyncHttpClientConfig.Builder()\n .setCompressionEnabled(false)\n ...
[ "0.5489691", "0.49783447", "0.48868108", "0.48700953", "0.4869722", "0.4771648", "0.47451544", "0.4742382", "0.4722165", "0.4703569", "0.46837598", "0.46747246", "0.4673769", "0.4649612", "0.46301228", "0.45455894", "0.45373377", "0.45281917", "0.45241344", "0.44942856", "0.4...
0.7132126
0
adds a new user to Firestore using GoogleAccountInfo properties after they log in
public void addUserToFirestore() { if (isSignedIn()) { getUserTask().addOnCompleteListener( new OnCompleteListener<DocumentSnapshot>() { @Override public void onComplete(@NonNull Task<DocumentSnapshot> task) { if (task.isSuccessful() && !task.getResult().exists()) { setUser(userMap(false)); setAnalysis(analysisMap(new ArrayList<String>())); setSlouches(slouchMap(new ArrayList<Date>(), new ArrayList<Double>())); } } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUserAccount(String email, String password, final String userId, final SignUpInterface listner) {\n collectionReference = db.collection(\"Users\");\n firebaseAuth = FirebaseAuth.getInstance();\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .add...
[ "0.7126764", "0.7050093", "0.6829684", "0.66874814", "0.65724576", "0.6568313", "0.65525156", "0.64954615", "0.64777994", "0.64637774", "0.63752687", "0.63665617", "0.63096637", "0.62899625", "0.6276932", "0.6275857", "0.62597233", "0.624324", "0.62197036", "0.6209568", "0.62...
0.742579
0
adds slouches to the slouches collection, document
public void addSlouchesToFirestoreForUser(final String id, final HashMap<String, Object> data) { Log.i("DAILY SYNC", id); //if(isSignedIn()){ getUserSlouchesTask(id).addOnCompleteListener( new OnCompleteListener<DocumentSnapshot>() { @Override public void onComplete(@NonNull Task<DocumentSnapshot> task) { if (task.isSuccessful() && task.getResult().exists()) updateSlouches(id, data); } }); getUserTask(id).addOnCompleteListener( new OnCompleteListener<DocumentSnapshot>() { @Override public void onComplete(@NonNull Task<DocumentSnapshot> task) { if (task.isSuccessful() && task.getResult().exists()) updateUser(id, userMap(true)); } }); //} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.landxml.schema.landXML11.SpeedsDocument.Speeds addNewSpeeds();", "org.landxml.schema.landXML11.RoadsideDocument.Roadside insertNewRoadside(int i);", "protected void addPartsToShard(Shard shard) {\n elementIterator = document.childrenIterator(element, elementIterator);\n for (; elementIterator...
[ "0.5434247", "0.53683", "0.53672856", "0.5364978", "0.5207543", "0.5169021", "0.51210105", "0.50129265", "0.498687", "0.4986821", "0.49795848", "0.49625435", "0.49490952", "0.49194285", "0.49027753", "0.48944703", "0.48575118", "0.48486266", "0.4838937", "0.48375368", "0.4835...
0.53511983
4
FIRESTORE SETTERS sets user in firestore
private void setUser(Map<String, Object> data) { this.setUser(ID(), data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData = new HashMap<>();\n userData.put(\"name\", FieldValue.delete());\n userData.put(\"updated\", new Timestamp(new Date()));\n\n db.collection(\"users\")\n ...
[ "0.698681", "0.65006614", "0.64675665", "0.6436945", "0.64150107", "0.6359064", "0.6359064", "0.6276226", "0.6210258", "0.6180728", "0.61357945", "0.609945", "0.5937593", "0.5929915", "0.5913797", "0.5912963", "0.59032285", "0.5881573", "0.58791786", "0.58727336", "0.58727336...
0.0
-1
creates a user map from GoogleAccountInfo
private Map<String, Object> userMap(boolean synced) { Map<String, Object> user = new HashMap<>(); user.put(IS_SYNCED, synced); if(!synced) { user.put(FIRST, sUserInfo.getFirstName()); user.put(LAST, sUserInfo.getLastName()); user.put(EMAIL, sUserInfo.getEmail()); } return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getStr...
[ "0.597387", "0.5898364", "0.589429", "0.5630354", "0.5581545", "0.5544781", "0.5469406", "0.53501034", "0.53244406", "0.5308969", "0.5304562", "0.52433956", "0.52381366", "0.52282894", "0.5219922", "0.5154891", "0.51390594", "0.507691", "0.507006", "0.5064103", "0.5047992", ...
0.53084147
10
creates a user map from GoogleAccountInfo
private Map<String, Object> analysisMap(ArrayList<String> data) { Map<String, Object> map = new HashMap<>(); map.put(DAILY, data); return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getStr...
[ "0.597387", "0.5898364", "0.589429", "0.5630354", "0.5581545", "0.5544781", "0.5469406", "0.53501034", "0.53244406", "0.5308969", "0.53084147", "0.5304562", "0.52433956", "0.52381366", "0.52282894", "0.5219922", "0.5154891", "0.51390594", "0.507691", "0.507006", "0.5064103", ...
0.0
-1
creates a user map from GoogleAccountInfo
private Map<String, Object> slouchMap(ArrayList<Date> times, ArrayList<Double> slouches) { Map<String, Object> map = new HashMap<>(); map.put(USER_SLOUCHES, slouches); map.put(TIMES, slouches); return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getStr...
[ "0.597387", "0.5898364", "0.589429", "0.5630354", "0.5581545", "0.5544781", "0.5469406", "0.53501034", "0.53244406", "0.5308969", "0.53084147", "0.5304562", "0.52433956", "0.52381366", "0.52282894", "0.5219922", "0.5154891", "0.51390594", "0.507691", "0.507006", "0.5064103", ...
0.0
-1
Instantiates a new couch db iterator.
protected CouchDbIterator( String view, List<String> keys, Map<String,String> parameters, Transformer<T> transformer, PageDecorator<T> pageDecorator, CouchDbClient couchDbClient){ super(); this.view = view; this.keys = keys; this.couchDbClient = couchDbClient; this.transformer = transformer; this.pageDecorator = pageDecorator; this.parameters = parameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DBIterator NewIterator(ReadOptions options);", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "private DocumentOrderIterator() {}", "public DbIterator iterator() {\n // some code goes here\n ...
[ "0.7018208", "0.6285676", "0.58220726", "0.57929474", "0.57769555", "0.5635143", "0.56256866", "0.56072366", "0.5602175", "0.5602175", "0.5602175", "0.5524159", "0.54779804", "0.546119", "0.54445446", "0.5393284", "0.53900284", "0.5336142", "0.5327663", "0.5323836", "0.529505...
0.56858695
5
Gets the limit skip map.
private Map<String,String> getLimitSkipMap(int limit, int skip){ Map<String,String> map = new HashMap<String,String>(); map.put(LIMIT_PARAM, Integer.toString(limit)); map.put(SKIP_PARAM, Integer.toString(skip)); return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSkipCount ()\n {\n return skipCount;\n }", "public int getSkipCount()\n {\n return skipCount;\n }", "protected Limit getLimit() {\n return new Limit(skip, limit);\n }", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t...
[ "0.64775217", "0.6391532", "0.5928832", "0.5829648", "0.57868373", "0.53966296", "0.5203642", "0.5185217", "0.518421", "0.5183506", "0.516541", "0.516541", "0.5091623", "0.5091623", "0.5091623", "0.50901955", "0.506959", "0.5062828", "0.50581795", "0.50340086", "0.5029134", ...
0.8324486
0
Sets the body object of this body
public HttpBody setBody(String body) { this.body = body; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBody(Object body) {\n this.body = body;\n }", "public void setBody(Body body) {\n this.body = body;\n }", "void setBody(final Body body);", "@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}", "public void setBody(BodyType _body) {\n ...
[ "0.8733128", "0.86317325", "0.8620397", "0.82942754", "0.8109248", "0.8000913", "0.79059106", "0.7693484", "0.76592547", "0.7600288", "0.7543684", "0.75080395", "0.74876946", "0.74810797", "0.7475645", "0.73460805", "0.7343901", "0.7309289", "0.7239773", "0.7106363", "0.70537...
0.706828
20
If this body is implicit content type or not
public boolean isImplicitContentType() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isContentType()\n {\n return !hasChanges;\n }", "public boolean isStringBody() throws IOException {\n\t\treturn !this.wrappedOut.hasData() || ServletUtil.isStringBody(getContentType());\n\t}", "private Boolean canHaveContent(){\n\t\t\treturn (getRequestType() == RequestType.POST || ...
[ "0.71326876", "0.66108876", "0.6474849", "0.6350984", "0.6290963", "0.6274892", "0.61826813", "0.61509067", "0.61417675", "0.61394656", "0.6059689", "0.6041653", "0.6041653", "0.59958756", "0.59958756", "0.59958756", "0.5976366", "0.59617674", "0.590791", "0.590791", "0.59079...
0.76601833
0
Used to retrieve the error message corresponding to the validator.
public String getMessage() { return mErrorMessageString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getValidatorMessage() {\n \n return this.validatorMessage;\n }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String...
[ "0.8044343", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.76701695", "0.7474525", "0.73941225", "0.73941225", "0.73941225", "0.73941123", "0.73941123", "0.73941123", ...
0.72308433
42
Used to retrieve the error drawable to display on an error.
public Drawable getErrorDrawable() { return mErrorDrawable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Paint getErrorIndicatorPaint() { return this.errorIndicatorPaint; }", "public BufferedImage getTrayiconError() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_ERROR);\n }", "public Stroke getErrorIndicatorStroke() { return this.errorIndicatorStroke; }", "@SuppressWarnings(\"MissingSuper...
[ "0.6756954", "0.67489403", "0.62928873", "0.6140597", "0.6026784", "0.6007299", "0.6007299", "0.6007299", "0.59728", "0.59534097", "0.59333813", "0.59236234", "0.5874436", "0.58597577", "0.5853674", "0.5849181", "0.5832413", "0.5811958", "0.58115417", "0.57916194", "0.5774182...
0.83569187
0
Sets the Context of the validator. Useful if we want to switch Context after a Configuration Change
public void setContext(Context c) { this.mContext = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValidatorInput(String validatorProperty, String contextProperty) {\n super();\n setValidatorProperty(validatorProperty);\n setContextProperty(contextProperty);\n }", "@Override\n public GeneralValidator getContext(Class<?> type) {\n return this.validator;\n }", "public void valida...
[ "0.63611746", "0.6213316", "0.60681295", "0.5876633", "0.57650197", "0.57586074", "0.57119244", "0.5711813", "0.5711413", "0.5700277", "0.56312186", "0.5594072", "0.5562308", "0.5538116", "0.55195695", "0.55000454", "0.54899144", "0.5480683", "0.5480305", "0.5449302", "0.5396...
0.0
-1
Gets the textview's context
public Context getContext() { return mContext; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContextCharacters() {\r\n return this.text.toString();\r\n }", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "abstract TextView getTextView();", "@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}", "public String getContext() {\n\t\treturn ...
[ "0.6388279", "0.62311506", "0.62106436", "0.6200181", "0.6192722", "0.61770844", "0.61770844", "0.61770844", "0.61575365", "0.6155749", "0.6141376", "0.61287165", "0.608381", "0.6024443", "0.6024443", "0.60097855", "0.60021836", "0.6001258", "0.5981747", "0.59761935", "0.5960...
0.60626876
13
Applications for the current client. repeated .google.cloud.talent.v4beta1.Application applications = 1;
java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder>\n getApplicationsOrBuilderList();", "public void setAppli...
[ "0.78441346", "0.7738883", "0.7446924", "0.6606531", "0.6494704", "0.6370667", "0.6305089", "0.6161887", "0.5989826", "0.5970737", "0.5869665", "0.5868774", "0.5777693", "0.5710196", "0.57055265", "0.56150407", "0.5496102", "0.5439714", "0.5352061", "0.53190273", "0.53096825"...
0.76806784
2
Applications for the current client. repeated .google.cloud.talent.v4beta1.Application applications = 1;
com.google.cloud.talent.v4beta1.Application getApplications(int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder>\n getApplicationsOrBuilderList();", "public vo...
[ "0.78441346", "0.76806784", "0.7446924", "0.6606531", "0.6494704", "0.6370667", "0.6305089", "0.6161887", "0.5989826", "0.5970737", "0.5869665", "0.5868774", "0.5777693", "0.5710196", "0.57055265", "0.56150407", "0.5496102", "0.5439714", "0.5352061", "0.53190273", "0.53096825...
0.7738883
1
Applications for the current client. repeated .google.cloud.talent.v4beta1.Application applications = 1;
int getApplicationsCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "java.util.List<? extends com.google.cloud.talent.v4beta...
[ "0.78441346", "0.7738883", "0.76806784", "0.7446924", "0.6606531", "0.6494704", "0.6370667", "0.6305089", "0.6161887", "0.5989826", "0.5970737", "0.5869665", "0.5868774", "0.5777693", "0.5710196", "0.57055265", "0.56150407", "0.5496102", "0.5439714", "0.5352061", "0.53190273"...
0.4995497
39
Applications for the current client. repeated .google.cloud.talent.v4beta1.Application applications = 1;
java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder> getApplicationsOrBuilderList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);", "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "public void setApplications(int applications) {\r\n ...
[ "0.78446716", "0.7739711", "0.7680207", "0.6607289", "0.64947486", "0.6370992", "0.63061136", "0.6162913", "0.59898317", "0.59705883", "0.5869338", "0.5868592", "0.57776606", "0.57094824", "0.57062364", "0.5615249", "0.5496022", "0.5439575", "0.53536385", "0.53202975", "0.531...
0.74464685
3
Applications for the current client. repeated .google.cloud.talent.v4beta1.Application applications = 1;
com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.Application getApplications(int index);", "java.util.List<com.google.cloud.talent.v4beta1.Application> getApplicationsList();", "java.util.List<? extends com.google.cloud.talent.v4beta1.ApplicationOrBuilder>\n getApplicationsOrBuilderList();", "public void setApplications...
[ "0.7738883", "0.76806784", "0.7446924", "0.6606531", "0.6494704", "0.6370667", "0.6305089", "0.6161887", "0.5989826", "0.5970737", "0.5869665", "0.5868774", "0.5777693", "0.5710196", "0.57055265", "0.56150407", "0.5496102", "0.5439714", "0.5352061", "0.53190273", "0.53096825"...
0.78441346
0
A token to retrieve the next page of results. string next_page_token = 2;
java.lang.String getNextPageToken();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static StringBuilder searchNextPage(String nextToken){\r\n\t\tHttpURLConnection conn = null;\r\n\t\tStringBuilder jsonResults = new StringBuilder();\r\n\t\ttry{\r\n\t\t\tStringBuilder request = new StringBuilder(PLACES_API_SOURCE);\r\n\t\t\trequest.append(typeSearch);\r\n\t\t\trequest.append(JSON_OUT);\r\n...
[ "0.6996296", "0.6775412", "0.6696699", "0.6696699", "0.6696699", "0.6696699", "0.6696699", "0.6630955", "0.6412576", "0.6412576", "0.6412576", "0.6412576", "0.63661736", "0.63152665", "0.6287006", "0.62519944", "0.62519944", "0.62519944", "0.62271476", "0.61917233", "0.619172...
0.6545284
19
A token to retrieve the next page of results. string next_page_token = 2;
com.google.protobuf.ByteString getNextPageTokenBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static StringBuilder searchNextPage(String nextToken){\r\n\t\tHttpURLConnection conn = null;\r\n\t\tStringBuilder jsonResults = new StringBuilder();\r\n\t\ttry{\r\n\t\t\tStringBuilder request = new StringBuilder(PLACES_API_SOURCE);\r\n\t\t\trequest.append(typeSearch);\r\n\t\t\trequest.append(JSON_OUT);\r\n...
[ "0.6996296", "0.6775412", "0.6696699", "0.6696699", "0.6696699", "0.6696699", "0.6696699", "0.6630955", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6545284", "0.6412576", "...
0.58416706
73
Additional information for the API invocation, such as the request tracking id. .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;
boolean hasMetadata();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();", "com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder();", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? or...
[ "0.80808055", "0.78477234", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71640193", "0.71244186", "0.7061845", "0.7061845", "0.7061845", ...
0.0
-1
Additional information for the API invocation, such as the request tracking id. .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;
com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder();", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstan...
[ "0.7847054", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71639156", "0.71246773", "0.7061691", "0.7061691", "0.7061691", "0.7061691", "...
0.8080465
0
Additional information for the API invocation, such as the request tracking id. .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3;
com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\...
[ "0.80810684", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7163572", "0.7124111", "0.7060668", "0.7060668", "0.7060668", "0.7060668", "0.7060668", ...
0.78477997
1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.add_new, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Creates new form HomePanel
public HomePanel() { initComponents(); setTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimensio...
[ "0.7185834", "0.6991601", "0.6794595", "0.67204505", "0.6417316", "0.6399066", "0.63580865", "0.63493764", "0.6348725", "0.62968665", "0.6162168", "0.61452407", "0.61452407", "0.61452407", "0.6144495", "0.61328727", "0.6127292", "0.6036977", "0.60357696", "0.6028579", "0.5998...
0.64853144
4
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() { jXPanel1 = new org.jdesktop.swingx.JXPanel(); jXMonthView1 = new org.jdesktop.swingx.JXMonthView(); lblTime = new org.jdesktop.swingx.JXLabel(); jXLabel2 = new org.jdesktop.swingx.JXLabel(); jXLabel1 = new org.jdesktop.swingx.JXLabel(); jXPanel2 = new org.jdesktop.swingx.JXPanel(); setLayout(null); jXPanel1.setBackground(new java.awt.Color(0, 0, 0)); jXPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jXMonthView1.setBackground(new java.awt.Color(255, 255, 255)); jXMonthView1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jXPanel1.add(jXMonthView1, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 130, -1, 180)); lblTime.setForeground(new java.awt.Color(255, 255, 255)); lblTime.setFont(new java.awt.Font("Tahoma", 0, 48)); // NOI18N jXPanel1.add(lblTime, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 10, 290, 80)); jXLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lk/ijse/sellingsystem/view/image/background-blur.png"))); // NOI18N jXPanel1.add(jXLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 0, 1140, 560)); jXLabel1.setBackground(new java.awt.Color(0, 135, 135)); jXLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lk/ijse/sellingsystem/view/image/new-vehicle-prices-in-Sri-Lanka.jpg"))); // NOI18N jXPanel1.add(jXLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -150, 2050, 880)); javax.swing.GroupLayout jXPanel2Layout = new javax.swing.GroupLayout(jXPanel2); jXPanel2.setLayout(jXPanel2Layout); jXPanel2Layout.setHorizontalGroup( jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 280, Short.MAX_VALUE) ); jXPanel2Layout.setVerticalGroup( jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 60, Short.MAX_VALUE) ); jXPanel1.add(jXPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 480, 280, 60)); add(jXPanel1); jXPanel1.setBounds(0, 0, 2050, 730); }
{ "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.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
End of variables declaration//GENEND:variables
private void setTime() { new Timer(0, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { Date d=new Date(); SimpleDateFormat time=new SimpleDateFormat("hh:mm:ss a"); lblTime.setText(time.format(d)); } }).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
create a list of all comments and attach to root node
private void collectComments(JSParseRootNode result) { List<Symbol> sDocComments = fScanner.getSDocComments(); List<Symbol> vsDocComments = fScanner.getVSDocComments(); List<Symbol> singleLineComments = fScanner.getSingleLineComments(); List<Symbol> multiLineComments = fScanner.getMultiLineComments(); List<JSCommentNode> comments = new ArrayList<JSCommentNode>(sDocComments.size() + vsDocComments.size() + singleLineComments.size() + multiLineComments.size()); for (Symbol symbol : sDocComments) { comments.add(new JSCommentNode(IJSNodeTypes.SDOC_COMMENT, symbol.getStart(), symbol.getEnd())); } for (Symbol symbol : vsDocComments) { comments.add(new JSCommentNode(IJSNodeTypes.VSDOC_COMMENT, symbol.getStart(), symbol.getEnd())); } for (Symbol symbol : singleLineComments) { comments.add(new JSCommentNode(IJSNodeTypes.SINGLE_LINE_COMMENT, symbol.getStart(), symbol.getEnd())); } for (Symbol symbol : multiLineComments) { comments.add(new JSCommentNode(IJSNodeTypes.MULTI_LINE_COMMENT, symbol.getStart(), symbol.getEnd())); } result.setCommentNodes(comments.toArray(new IParseNode[comments.size()])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void serializeComments(OMElement parent, List<String> commentList) {\n OMFactory fac = OMAbstractFactory.getOMFactory();\n for (String comment : commentList) {\n OMComment commendNode = fac.createOMComment(parent, \"comment\");\n commendNode.setValue(comment);\n ...
[ "0.6573297", "0.6425127", "0.62407386", "0.61082023", "0.60585177", "0.5969365", "0.5880875", "0.5854013", "0.58481497", "0.58475846", "0.58307004", "0.58186805", "0.5805141", "0.57904047", "0.5774259", "0.57739645", "0.57709223", "0.5750073", "0.5729383", "0.5683168", "0.567...
0.66520697
0
Log this exception with context
private static void logException(Throwable t ,String user ,HttpSession session ,Hashtable parameters ,PrintWriter out ,HttpServletRequest request ,HttpServletResponse response ) { AppObjects.error("GlobalExceptionHandler", "\n********************"); AppObjects.error("GlobalExceptionHandler", "Serving URL:%s",ServletCompatibility.getRequestURL(request)); AppObjects.error("GlobalExceptionHandler", "User is: %s",user); AppObjects.error("GlobalExceptionHandler", "Parameters are: %s",parameters); AppObjects.log(AppObjects.LOG_ERROR,t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "private void logException(java.lang.Exception e) {\n }", "default RuntimeException rethrowWithContext(Object context, Throwable e) {\n if (this instanceof Log) {\n ((Log)this).log(getClass(), LogLevel.DEBUG, \"Rethrowing with context\", cont...
[ "0.6355593", "0.63429785", "0.63189363", "0.6250421", "0.61992276", "0.6107429", "0.60469455", "0.6008768", "0.59625363", "0.58668214", "0.58661985", "0.5841666", "0.5824793", "0.5821349", "0.58004284", "0.5794802", "0.5782516", "0.5774225", "0.5771864", "0.5760337", "0.57579...
0.6002135
8
default constructor that will set the values to their default settings
public Appointments(){ setDate(0); setTime(0); setClient(null); appointmentStatus = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initDefaultValues() {\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();...
[ "0.74683195", "0.73321337", "0.72597075", "0.6949916", "0.6839616", "0.6826176", "0.68201655", "0.67097855", "0.66903293", "0.6680746", "0.6645238", "0.66396624", "0.66366833", "0.66344684", "0.6633398", "0.66246545", "0.66212845", "0.66208524", "0.6615597", "0.66094244", "0....
0.0
-1
constructor that takes in values that will set the private fields
public Appointments(int date, int time, String client){ this.date = date; this.time = time; this.client = client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RequestValues() {\n //mUserId = userId;\n }", "@Test\n public void billEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmoun...
[ "0.6384981", "0.6042779", "0.6036289", "0.59917384", "0.5980714", "0.596915", "0.5958945", "0.59567285", "0.59548926", "0.59523875", "0.5945164", "0.5940978", "0.59214616", "0.5907594", "0.5902917", "0.5898634", "0.58766854", "0.5847739", "0.58459646", "0.58453196", "0.583498...
0.0
-1
the setters and getters for the private fields of this class
public int getDate() { return date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "private FundInfo() {\n initFields();\n }", "public FieldM...
[ "0.65483266", "0.6306308", "0.6174374", "0.58363134", "0.58357376", "0.5812661", "0.5775732", "0.5772459", "0.57456094", "0.5695323", "0.56708264", "0.5656668", "0.56499213", "0.5637439", "0.5632635", "0.56301916", "0.5608193", "0.5606451", "0.5601538", "0.5584183", "0.551308...
0.0
-1
Metodo....: findByMsisdnResposta Descricao.: Consulta o registro do assinante na tabela do Filtro de MSISDN/Tempo
public static FiltroMsisdnTempoWig findByMsisdnResposta(Session session, String msisdn, int codResposta) { Query query = session.createQuery(" FROM br.com.brasiltelecom.ppp.portal.entity.FiltroMsisdnTempoWig a " + "WHERE (a.codResposta = ?) " + " AND (a.msisdn = ?) " ); query.setInteger(0, codResposta); query.setString (1, msisdn); return (FiltroMsisdnTempoWig)query.uniqueResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<TonKho> findTonkhoByDmThuocMaso(Integer dmtMaso) {\n List<TonKho> result = null;\n try {\n Query q = getEm().createQuery(\"Select Distinct tk from TonKho tk Where tk.dmthuocMaso.dmthuocMaso = :dmthuocMaso \");\n q.setParameter(\"dmthuocMaso\", dmtMaso);\n ...
[ "0.6184555", "0.5780315", "0.5762103", "0.57505596", "0.57366836", "0.5722176", "0.5682716", "0.5677439", "0.557996", "0.5561706", "0.5528642", "0.55250955", "0.55156183", "0.5510591", "0.55079365", "0.5474337", "0.54502875", "0.5431382", "0.542372", "0.54012036", "0.5385661"...
0.73729116
0
Metodo....: incluiFiltroMsisdnTempoWig Descricao.: Realiza a inclusao no Banco de Dados das informacoes do Assinante/Filtro
public static void incluiFiltroMsisdnTempoWig(Session session, FiltroMsisdnTempoWig filtro) { session.save(filtro); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void atualizaFiltroMsisdnTempoWig(Session session, FiltroMsisdnTempoWig filtro)\r\n\t{\r\n\t\tsession.saveOrUpdate(filtro);\r\n\t}", "@Command\n\t@NotifyChange(\"*\")\n\tpublic void aplicarFiltro(){\n\t\tcambiarAnalistas(0, null, null);\n\t}", "public void inativarMovimentacoes() {\n\n\t\ttry {\n...
[ "0.5656784", "0.55230975", "0.5355572", "0.529841", "0.5290331", "0.523103", "0.5152016", "0.5151344", "0.5151115", "0.51241314", "0.5123256", "0.5120356", "0.51156145", "0.51120687", "0.511081", "0.50900227", "0.5089237", "0.50644", "0.50078046", "0.49993545", "0.49990535", ...
0.6423771
0