query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This sets the data inside of a current node | public void setNodeData(Node node, String data) {
node.setData(data);
} | [
"private static void setData(Node root, List<Integer> data) {\r\n\r\n\t\t// Searches for the next available spot to put data\r\n\t\troot.left = new Node();\r\n\t\troot.left.index = data.get(0);\r\n\t\troot.right = new Node();\r\n\t\troot.right.index = data.get(1);\r\n\r\n\t}",
"void setNode(Node node);",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// View Drawing. // Do the subclassspecific parts of drawing for this element. This method is called on the thread of the containing SuraceView. Subclasses should override this to do their drawing. | @Override
protected final void drawBody(Canvas canvas, Paint paint, long now) {
// Since drawBody may be called more often than we get audio
// data, it makes sense to just draw the buffered image here.
synchronized (this) {
canvas.drawBitmap(specBitmap, dispX, dispY, null);
}
} | [
"@Override\n\tpublic void viewDrawComplete() {\n\t}",
"public interface View {\n /**\n * Make the view visible (for the first time).\n */\n void makeVisible();\n\n /**\n * Signal the view to draw itself again.\n */\n void refresh();\n\n /**\n * Handles the action listeners of the features from the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: AHTUNG!!!! ATTENTION!!!! SHOULD BE REFACTORED TO USE TEST BUCKED!!!! | private void cleanupBucket(){
if(s3service.isInitialized()){
ObjectListing objectListing = s3service.getS3().listObjects(new ListObjectsRequest().withBucketName(S3Service.IMSU_PLAY_BUCKET));
for (S3ObjectSummary objectSummary : objectListing.getObjectSummaries()) {
s3service.remove(objectSummary.getKey());
}
s3service.getS3().deleteBucket(S3Service.IMSU_PLAY_BUCKET);
}
} | [
"private void doTest() {\r\n\r\n\t}",
"@Test\n\tpublic void testFindHotNewses() {\n\t}",
"public void testSchedbotFF() {\n\t}",
"private void testing() {\n\t}",
"@Ignore\n @Test\n public void testOrgStructureRequestMT() throws Exception {\n }",
"@Test\n\t\tpublic void test()\n\t\t{\n\t\t}",
"@T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 11 /Coverage entropy=1.2195745472732102 | @Test(timeout = 4000)
public void test011() throws Throwable {
StringReader stringReader0 = new StringReader("<<");
stringReader0.mark(32);
JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 406, 406);
JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);
MockPrintStream mockPrintStream0 = new MockPrintStream(javaParserTokenManager0.debugStream);
javaParserTokenManager0.setDebugStream(mockPrintStream0);
javaParserTokenManager0.getNextToken();
assertEquals(1, javaCharStream0.bufpos);
assertEquals(407, javaCharStream0.getColumn());
} | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ calcPopTotals uses the number of population counts to create an array and calculate and return an array of population totals. | public static int[] calcPopTotals(int targetStateCode) throws FileNotFoundException {
Scanner input = new Scanner(new File(DATA_FILE_NAME));
input.useDelimiter("\t|\r\n|\n|\r");
int[] popTotal = new int[NUM_POPULATION_COUNTS];
while (input.hasNext()) {
input.next();
int stateCode = input.nextInt();
if (stateCode == targetStateCode){
for (int i = 0; i < NUM_POPULATION_COUNTS; i++) {
popTotal[i] += input.nextInt();
}
}
}
return popTotal;
} | [
"public static int totalPopulation(ArrayList<Integer> populations){\n int sum = 0;\n for(int statepop : populations){\n sum += statepop;\n }\n return sum;\n }",
"public int getGuppyPopulation() {\n int totalGuppies = 0;\n for (Pool pool : pools) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Launch the application. Create the application. | public VentanaResultados() throws IOException {
initialize();
this.frame.setVisible(true);
} | [
"private static void launchApplication(String[] args) {\r\n\t\t\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Create application base model\r\n\t\t\t\t\tMApplication mapp = new MApplication();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Give controller access to the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<RTask> getIDbyContent(String content) {
return find("from RTask as r where r.content = ?0", content);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled. | public void disabledInit() {
System.out.println("Disabled Intitiated");
} | [
"@Override\n public void disabledInit() {\n // drivetrain.resetSubsystem();\n // shooter.resetSubsystem();\n // intakeStorage.resetSubsystem();\n }",
"@Override\n public void disabledInit() {\n System.out.println(\"[code] Robot disabled\");\n }",
"@Override\n public void disabledInit() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method returns a vector of this Object taken from a 2D object Array | public static Vector getVector(JTable j){
Vector v = new Vector();
for(int i=0;i<j.getRowCount();i++){
v.addElement(new ChemListData(j.getValueAt(i,0).toString(),j.getValueAt(i,1).toString()));
}
return v;
} | [
"public Object[] aVector() {\n if (this.esVacia()) {\n return (null);\n }\n Object vector[] = new Object[this.getTamanio()];\n Iterator<T> it = this.iterator();\n int i = 0;\n while (it.hasNext()) {\n vector[i++] = it.next();\n }\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sleep for the given number of milliseconds | public void sleep(long ms); | [
"static void sleep(int milliseconds) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void sleep(long millis) throws InterruptedException;",
"private void sleep(long milliseconds) {\n\t\t// synchronized (s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para agregar un descuento a un producto dado | public void cambiarDescuento(String nombre,String descuento,String fecha) {
Producto aux=repProducto.findByNombre(nombre);
aux.setDescuento(descuento);
aux.setFecha(fecha);
repProducto.save(aux);
} | [
"public void aplicarDescuento(){\r\n\t\tif(getNota().getTipo().equals(\"V\")){\t\t\t\r\n\t\t\tfor(NotasDeCreditoDet det:getPartidas()){\r\n\t\t\t\tfinal Venta factura=det.getFactura();\r\n\t\t\t\tdouble desc=0;\r\n\t\t\t\tif(getNota().getBonificacion().equals(ConceptoDeBonificacion.FINANCIERO))\r\n\t\t\t\t\t desc=N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
ToStringTest tt1 = new ToStringTest();
ToStringTest tt2 = new ToStringTest("최말자", 18);
Test1 test1 = new Test1();
System.out.println(tt1); //~(tt1.toString)과 동일
System.out.println(tt2);
System.out.println(test1);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_add_car) {
Toast.makeText(getApplicationContext(), "add car", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(MainActivity.this, AddNewLeaseActivity.class);
startActivity(intent);
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'ip' field | public com.voole.dungbeetle.ad.record.avro.PlayLog.Builder clearIp() {
ip = null;
fieldSetFlags()[15] = false;
return this;
} | [
"public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000020);\n ip_ = getDefaultInstance().getIp();\n onChanged();\n return this;\n }",
"public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000004);\n ip_ = g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column growth_planning_comment.option_comment | public void setOptionComment(String optionComment) {
this.optionComment = optionComment == null ? null : optionComment.trim();
} | [
"public abstract void setComment(Comment comment);",
"public abstract void setComment(String c);",
"void setProductionDateComment(String productionDateComment);",
"public void setComment(java.lang.String param){\r\n \r\n if (param != null){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert the method's description here. Creation date: (13.02.2002 10:25:36) | public void initRecord(javax.servlet.http.HttpServletRequest request) throws Exception {
setSalDate(null);
setSum2Zero();
} | [
"@Override\n }",
"public void mo5201a() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void method_5557() {}",
"public void mo9609a() {\n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"protected void method... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
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() {
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenu2 = new javax.swing.JMenu();
Main_Menu_Bar = new javax.swing.JPanel();
jLabel_Main_Menu_Title = new javax.swing.JLabel();
jButton_Simulation_Return = new javax.swing.JButton();
jButton_Simulation_Pause = new javax.swing.JButton();
jPanel_Simulation_Status = new javax.swing.JPanel();
jLabel_Simulation_Status_Title = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jPanel_Simulation_Area = new javax.swing.JPanel();
jMenu1.setText("File");
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setPreferredSize(new java.awt.Dimension(1024, 768));
setResizable(false);
Main_Menu_Bar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
Main_Menu_Bar.setName("jpanel_menuBar"); // NOI18N
jLabel_Main_Menu_Title.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
jLabel_Main_Menu_Title.setForeground(new java.awt.Color(0, 0, 153));
jLabel_Main_Menu_Title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel_Main_Menu_Title.setText("Simulator");
jButton_Simulation_Return.setForeground(new java.awt.Color(0, 0, 102));
jButton_Simulation_Return.setText("Return to main menu");
jButton_Simulation_Return.setMaximumSize(new java.awt.Dimension(240, 23));
jButton_Simulation_Return.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
backToMM(evt);
}
});
jButton_Simulation_Pause.setForeground(new java.awt.Color(0, 0, 102));
jButton_Simulation_Pause.setText("Pause simulation");
jButton_Simulation_Pause.setToolTipText("");
jButton_Simulation_Pause.setMaximumSize(new java.awt.Dimension(240, 23));
javax.swing.GroupLayout Main_Menu_BarLayout = new javax.swing.GroupLayout(Main_Menu_Bar);
Main_Menu_Bar.setLayout(Main_Menu_BarLayout);
Main_Menu_BarLayout.setHorizontalGroup(
Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Main_Menu_BarLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel_Main_Menu_Title, javax.swing.GroupLayout.DEFAULT_SIZE, 986, Short.MAX_VALUE)
.addContainerGap())
.addGroup(Main_Menu_BarLayout.createSequentialGroup()
.addGap(232, 232, 232)
.addComponent(jButton_Simulation_Return, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(55, 55, 55)
.addComponent(jButton_Simulation_Pause, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
Main_Menu_BarLayout.setVerticalGroup(
Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Main_Menu_BarLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel_Main_Menu_Title, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(Main_Menu_BarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton_Simulation_Return, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)
.addComponent(jButton_Simulation_Pause, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))
.addContainerGap())
);
jPanel_Simulation_Status.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jLabel_Simulation_Status_Title.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
jLabel_Simulation_Status_Title.setForeground(new java.awt.Color(0, 51, 204));
jLabel_Simulation_Status_Title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel_Simulation_Status_Title.setText("Simulation Log");
jLabel_Simulation_Status_Title.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout jPanel_Simulation_StatusLayout = new javax.swing.GroupLayout(jPanel_Simulation_Status);
jPanel_Simulation_Status.setLayout(jPanel_Simulation_StatusLayout);
jPanel_Simulation_StatusLayout.setHorizontalGroup(
jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel_Simulation_StatusLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel_Simulation_Status_Title, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE))
.addContainerGap())
);
jPanel_Simulation_StatusLayout.setVerticalGroup(
jPanel_Simulation_StatusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel_Simulation_StatusLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel_Simulation_Status_Title)
.addGap(18, 18, 18)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 565, Short.MAX_VALUE)
.addContainerGap())
);
jPanel_Simulation_Area.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jPanel_Simulation_Area.setName("Simulation Area"); // NOI18N
javax.swing.GroupLayout jPanel_Simulation_AreaLayout = new javax.swing.GroupLayout(jPanel_Simulation_Area);
jPanel_Simulation_Area.setLayout(jPanel_Simulation_AreaLayout);
jPanel_Simulation_AreaLayout.setHorizontalGroup(
jPanel_Simulation_AreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jPanel_Simulation_AreaLayout.setVerticalGroup(
jPanel_Simulation_AreaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Main_Menu_Bar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel_Simulation_Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel_Simulation_Status, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(Main_Menu_Bar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel_Simulation_Status, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel_Simulation_Area, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
pack();
} | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column MTL_SYSTEM_ITEMS_B.START_DATE_ACTIVE | public Date getStartDateActive() {
return startDateActive;
} | [
"@Temporal(TemporalType.DATE)\n @Column(name=\"START_DATE\", length=10)\n public Date getStartDate() {\n return this.startDate;\n }",
"public Date getStartDate() {\r\n\t\tsuper.tryFetch();\r\n\t\treturn startDate;\r\n\t}",
"public java.util.Date getActiveDate () {\r\n\t\t\treturn activeDate;\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of include. | String getInclude(); | [
"public boolean getInclude() {\n return include;\n }",
"java.lang.String getIncludeObject();",
"@Override\n public String[] getIncludes() {\n return this.includes;\n }",
"public java.lang.String getIncludeObject() {\n java.lang.Object ref = includeObject_;\n if (ref instanceof... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The postHandle method runs always in the main application thread. | public Node postHandle(final Node arg0,
final Message<Event, Object> message) {
// runs in FX application thread
if (!message.messageBodyEquals(FXUtil.MessageUtil.INIT)) {
name.setText(message.getTypedMessageBody(String.class));
}
return this.pane;
} | [
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tlog.info(\"==============执行顺序: 2、\" + this.getClass().getName() + \" postHandle================\");\r\n\r\n\t}",
"@Override\r\n\tpublic void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void setController(MainControllerOperations controller) {
pagar.addActionListener((event) -> {
if(!nombreText.getText().isEmpty()){
controller.pagar();
}else {
JOptionPane.showMessageDialog(this, "campos vacios");
}
});
gastar.addActionListener((event) -> {
// System.out.println(Integer.valueOf(gastarfield.getText()));
if (!gastarfield.getText().isEmpty() && esDouble(gastarfield.getText())) {
controller.gastar(Double.valueOf(gastarfield.getText()));
} else {
JOptionPane.showMessageDialog(this, "Caracter invalido o vacio");
}
});
balance.addActionListener((event) -> {
if(!dineroText.getText().isEmpty() || !deudaText.getText().isEmpty()){
controller.balance();
}else {
JOptionPane.showMessageDialog(this, "campos vacios");
}
});
limpiar.addActionListener((event) -> {
if(!nombreText.getText().isEmpty()){
controller.limpiar();
}else {
JOptionPane.showMessageDialog(this, "campos vacios");
}
});
baigorria.addActionListener((event)->{
controller.setEmpleadoBaigorria();
});
galvan.addActionListener((event)->{
controller.setEmpleadoGalvan();
});
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
save a couple of customers | @Override
public void run(String... args) throws Exception {
Record r = new Record("record first");
//rep.save(r);
// fetch all customers
log.info("Users found with findAll():");
log.info("-------------------------------");
/*List<Record> records = rep.findAll();
for (Record rep : records) {
log.info(rep.toString());
}
log.info("");
// fetch an individual customer by ID
Record rr = rep.findById(r.getId()).orElse(null);
log.info("Record found with find(1L):");
log.info("--------------------------------");
System.out.println(rr);
log.info("");*/
System.out.println("Done!");
} | [
"public void save(Customer customer) {\n\t}",
"static void saveCustomer() {\n\t\tfileController.writeCustomersToFile(manager.getCustomers());\n\t}",
"public List<Customer> saveCustomers(List<Customer> customers) {\n\t\treturn customerRepo.saveAll(customers);\n \t \n\t}",
"public Customers save(Customers cu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of findByNamePhase method, of class ActivityDAOImpl. | @Test
public void test06FindByNamePhase() {
ActivityDAO dao = ActivityFactory.create(Activity.class);
List<Activity> lista = dao.findByNamePhase("evaluacion");
for (Activity activity : lista) {
assertEquals(activity.getActivityPK().getNamePhase(), "evaluacion");
}
System.out.println("objetos" + lista);
} | [
"@Test\n public void testFindByName() {\n assertEquals(0, service.findByName(\"NOT_FOUND\").size());\n assertEquals(1, service.findByName(city.getName()).size());\n }",
"@Test\n\tpublic void findRuleByNameTest() {\n\t\tRule rule = createRule();\n\t\truleDAO.persistRule(rule);\n\t\tassertNotNul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the parent token of a given annotation | public Token getParent(Annotation anno){
for(Dependency d : dependencies){
if(d.getDependent().getBegin() == anno.getBegin() &&
d.getDependent().getEnd() == anno.getEnd()){
return d.getGovernor();
}
}
return null;
} | [
"private AnnotatedElement getParentOf(AnnotatedElement e) {\n if (e instanceof Member)\n return ((Member)e).getDeclaringClass();\n if (e instanceof Class)\n return ((Class)e).getPackage();\n /*\n if (e instanceof Package)\n it is not possible to make rec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Buffer store for stream | public void run() {
byte[] buffer = new byte[1024];
int bytes;
String readMessage;
StringBuffer forwardBuffer = new StringBuffer();
char c;
// Keep listening to the InputStream until an exception occurs
while (true) {
try {
//Read from the InputStream
bytes = mmInStream.read(buffer);
readMessage = new String(buffer, 0, (bytes != -1) ? bytes : 0 );
for(int i = 0; i < readMessage.length(); i++) {
c = readMessage.charAt(i);
if(c == START_FLAG) {
//Don't do anything with start flag
}
else if(c == ACK_FLAG) {
Log.w("forwardbuffer", forwardBuffer.toString());
forwardBuffer = new StringBuffer();
}
else {
forwardBuffer.append(c);
}
}
//Create an key press intent
//Intent intent = new Intent("");
//intent.putExtra(key, value);
//Broadcast it
//m_context.sendBroadcast(intent);
} catch (IOException e) {
break;
}
}
} | [
"public synchronized byte[] getBuffer() \n\t{\n\t\treturn this.buf;\n\t}",
"public byte[] buffer() {\n return buffer;\n }",
"public TemporaryBuffer getBuffer() {\n\t\treturn buffer;\n\t}",
"private Buffer getBuffer() {\n return getSample().getBuffer();\n }",
"public byte[] getBuffer() {\n\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
No_of_Touches++;
if (event.getX() > 0 && event.getX() <= (width / 3)
&& event.getY() <= (height / 3) && event.getY() >= 0)
cell = temp = 1;
else if (event.getX() > (width / 3)
&& event.getX() <= (2 * width / 3)
&& event.getY() <= (height / 3) && event.getY() >= 0)
cell = temp = 2;
else if (event.getX() > (2 * width / 3) && event.getX() <= width
&& event.getY() <= (height / 3) && event.getY() >= 0)
cell = temp = 3;
else if (event.getX() > 0 && event.getX() <= width / 3
&& event.getY() <= (2 * (height) / 3)
&& event.getY() > (height / 3))
cell = temp = 4;
else if (event.getX() > (width / 3)
&& event.getX() <= (2 * width / 3)
&& event.getY() <= (2 * height / 3)
&& event.getY() > height / 3)
cell = temp = 5;
else if (event.getX() > (2 * width / 3) && event.getX() <= width
&& event.getY() <= (2 * height / 3)
&& event.getY() > height / 3)
cell = temp = 6;
else if (event.getX() > 0 && event.getX() <= (width / 3)
&& event.getY() <= (height)
&& event.getY() > 2 * height / 3)
cell = temp = 7;
else if (event.getX() > (width / 3)
&& event.getX() <= (2 * width / 3)
&& event.getY() > (2 * height / 3)
&& event.getY() <= height)
cell = temp = 8;
else if (event.getX() > (2 * width / 3) && event.getX() <= width
&& event.getY() > (2 * height / 3)
&& event.getY() <= height)
cell = temp = 9;
confirmPassword += selectedCell[temp - 1] + page[No_of_Touches - 1];
if (No_of_Touches == 5) {
if (confirmPassword.contentEquals(SetPass.password)) {
set = true;
SaveText();
if(!Work.done){
Intent startwork = new Intent(
"project.minor.screenlocker.WORK");
startActivity(startwork);
}
else
finish();
} else {
Toast.makeText(this, "Mismatch!! Enter Again!!",
Toast.LENGTH_LONG).show();
Intent starthome = new Intent(
"project.minor.screenlocker.SETPASS");
startActivity(starthome);
}
} else {
if (touch[cell - 1] != 1) {
cell = flag;
flag++;
}
drawView.setBackgroundResource(id[cell]);
touch[temp - 1]++;
}
}
return super.onTouchEvent(event);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used object in the method argument and had override annotation. | @Override
public boolean equals(Object obj) {
// Compared reference to this.
if(this == obj) {
return true;
}
// Check against proper type.
if(!(obj instanceof PhoneNumber)) {
return false;
}
// Typecast to proper type.
PhoneNumber pn = (PhoneNumber)obj;
// Checked all the significant fields.
return pn.lineNum == lineNum && pn.areaCode == areaCode;
} | [
"public void setOverride(boolean arg0) {\n\r\n\t}",
"Override createOverride();",
"private void addOverrides() \n\t{\n\t}",
"void setOverridden() {\r\n\r\n isOverridden = true;\r\n\r\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public boolean annotationMethodOverride() {\n A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtem o Ip do vendedor | public String getIp(){
return ip;
} | [
"byte[] getRemoteIP();",
"int getGameIp();",
"public String getIp() {\n\t return ip;\n\t}",
"@Override\r\n\tprotected String getIP() {\n\t\treturn this.ip;\r\n\t}",
"public abstract String getServerIP();",
"public void setIp(String tmp) {\n this.ip = tmp;\n }",
"public String myIpAddressEx();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated setter method | public void setEducationLevel(java.lang.String param){
if (param != null){
//update the setting tracker
localEducationLevelTracker = true;
} else {
localEducationLevelTracker = true;
}
this.localEducationLevel=param;
} | [
"abstract protected void set(Object value);",
"@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }",
"@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use DEFAULTHRULEWIDTH for the default. | public int getWidth() {
return (Integer) getStructElement("Width");
} | [
"public int getDefaultWidth() {\n return 150;\n }",
"public void setNilMaxWidth()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlShort target = null;\r\n target = (org.apache.xmlbeans.XmlShort)get_store().find_e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes with a description and the time that deadline should be completed by. | public Deadline(String desc, String by) {
super(desc);
this.type = TaskType.DEADLINE;
this.time = by;
parseDate(by);
} | [
"public TaskDeadline(String description, LocalDateTime deadline) {\n super(description);\n this.deadline = deadline;\n }",
"public Deadline(String description, String deadlineDate) {\n super(description);\n this.deadlineDate = deadlineDate;\n }",
"public Task(String title, Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stores this journalist in XML. | @Override
public boolean saveToXML(File file) {
// Instanciamos el motor de XML
XMLHandler xml = new XMLHandler();
try{
OutputFormat format = new OutputFormat(xml.engine);
format.setIndenting(true);
XMLSerializer serializerTofile = new XMLSerializer(
new FileOutputStream(file)
, format);
serializerTofile.serialize(this.getElement(xml));
return true;
} catch(IOException ie) {
ie.printStackTrace();
}
return false;
} | [
"public void save() throws Exception {\n XStream xstream = new XStream(new DomDriver());\n ObjectOutputStream out = xstream.createObjectOutputStream(new FileWriter(\"scouts.xml\"));\n out.writeObject(scouts);\n out.close();\n }",
"public void salvar()\n {\n ArrayList<Abstr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pointer index table to update after a BuildToRun Conversion. | public int[] getNewPointers() {
return conversionTable;
} | [
"protected int tableIndexToDataIndex(int tableIndex) {\n if (tableIndex >= indexArray.size()) {\n return 0;\n }\n\n return indexArray.get(tableIndex);\n }",
"long makeIndex(long time) throws T2Exception;",
"@Override\r\n\tpublic void addtIndex() {\n\r\n\t}",
"private void bu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public User getUserById() {
return userMapper.selectByPrimaryKey(1);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Same as next_token but also prints the token to standard out for debugging. | public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {
java_cup.runtime.Symbol s = next_token();
System.out.println( "line:" + (yyline+1) + " col:" + (yycolumn+1) + " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
return s;
} | [
"private void next()\n {\n token=tokenizer.next();\n }",
"private String next() {\n\t\t\t\n\t\t\treturn tokens.get(tokenIndex++);\n\t\t}",
"private void printToken(Token token)\n {\n if (token.specialToken != null)\n {\n printToken(token.specialToken);\n }\n\n _outStream.print(tok... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Each Arraylist has a linked List of trials who temperature and pulse parameters are the same | Step2and3Calc(double LOther)
{
this.LOther=LOther;
Step23Table= new ArrayList<>();
} | [
"@Test\n public void testTABRMulti() {\n for (int x = 1; x != 30; x++) {\n ArrayList<Float> parametres = new ArrayList<>();\n Information i = new Information();\n Information wanted = new Information();\n parametres.add((float) x);\n parametres.add(1f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The base interface that defines a presenter in the MVP patterns. | public interface MvpPresenter<V extends MvpView> {
/**
* Sets the view to this presenter instance.
*
* @param view the view to be attached to this presenter
*/
@UiThread
void attachView(V view);
/**
* This method will be called when the view is destroyed.
* If the view is an activity, it will be invoked from <code>Activity.onDestroy()</code>.
* If the view is a fragment, it will be invoked from <code>Fragment.onDestroyView()</code>.
*/
@UiThread
void detachView();
} | [
"public interface Presenter {\r\n\r\n\t/**\r\n\t * Binds the view with its presenter\r\n\t */\r\n\tpublic void bind();\r\n}",
"interface Presenter {\n\n }",
"public interface MvpPresenter<V extends MvpView> {\n //绑定view\n public void attachView(V view);\n //解除view绑定\n public void detachView();\n}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setup the config manager | public void setup() {
// Reload the global config
reloadGlobalConfig();
// Reload the world configs
reloadWorldConfigs();
} | [
"protected void setUp() throws Exception {\r\n ConfigManager manager = ConfigManager.getInstance();\r\n manager.add(CONFIG_FILE);\r\n }",
"public static void initConfig(ModelManagerFactory.Impl modelManagerImplementation) throws IOException {\n configDir = loadConfigDirectory(CONFIG_DIR_NA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
No args constructor for use in serialization | public CertmanagerSchema() {
} | [
"private Serializer() {\n }",
"public BPlusTree() {\n //Pedro -- I need an empty constructor to Jgroups deserialize the object\n }",
"public User() {\n //no arg constructor for serializable\n }",
"private NonSerializables() {\n\t}",
"private SerializationUtils() {\n throw new E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the height of the status bar. | private int getStatusBarHeight(Context context) {
int height = 0;
int resourceId = context.getResources()
.getIdentifier("status_bar_height", "dimien", "android");
if(resourceId > 0) {
height = context.getResources().getDimensionPixelSize(resourceId);
}
return height;
} | [
"public static int getStatusBarHeight() {\n int result = 0;\n int resourceId = IM.resources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = IM.resources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns current shelter or ghost shelter | public Apartment getCurrentShelter() {
return currentShelter == null ? ghostHouse : currentShelter;
} | [
"public com.ictti.orrs.business.entity.Shelter getShelter () {\n\t\treturn shelter;\n\t}",
"public Shelter getShelter() {\n return Shelter.getShelter(shelterId);\n }",
"public java.lang.String getShelterName () {\n\t\treturn shelterName;\n\t}",
"public void setShelter (com.ictti.orrs.business.entity... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the java script for edit massive table. | public Return getJavaScript4EditMassiveTable(final Parameter _parameter)
throws EFapsException
{
final Return retVal = new Return();
retVal.put(ReturnValues.SNIPLETT,
getTableDeactivateScript(_parameter, "inventoryTable", true, true).toString());
return retVal;
} | [
"void getFormTable1(){\n web.evaluateJavascript(getcmd(\"var rows=document.getElementsByTagName('table')[1].rows;var c;for(c=0;c<rows.length;c++){if(rows[c].cells.length==15){rows[c].deleteCell(0)}}\"), new ValueCallback<String>() {\n @Override\n public void onReceiveValue(String value)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
clears all visual background noise from minimap w/out opening it (via javascript) | public void configureMiniMap(){
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('cities');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('own_town');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('forts');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('fort_allied');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('own_char');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleLayer('quests');"); } catch (Exception e) {e.printStackTrace();}
try {((JavascriptExecutor) driver).executeScript("WMinimap.toggleBackgroundImages(this);"); } catch (Exception e) {} //this always throws exc. //e.printStackTrace();}
this.toggleMiniMap(); //is this needed?
try {
//if pin is set to be pinned_on, then click the pin image to set it to off
driver.findElement(By.className("minimap_e_pin_pinned_on")).click();
wait4.until(Web.classNameExists("minimap_e_pin_pinned_off"));
}catch (Exception e){}
this.toggleMiniMap(); //is this needed?
// <a title="" class="minimap_e_pin_pinned_on" id="minimap_e_pin" href="javascript:WMinimap.togglePin()"></a>
} | [
"static void clearBackground() {\n backgrounds.clear();\n }",
"public void clearScreen() {\r\n\t\tfor (Tile itr : tileset)\r\n\t\t\tnew SimpleTile(itr.getPos()).drawTile(tileManager, bp);\r\n\t}",
"public void clear() {\n\t\tfor (int i = 0; i < pixels.length; i++) {\n\t\t\tpixels[i] = 0x000000;\n\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
} | [
"public Controller(){\t\n\t}",
"public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}",
"public MainController(){\n \n }",
"public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}",
"public MainController() {\n try {\n log.debug(\"Starting Mai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
"hh:mma MMM dd, yyyy" | PATTERN_FRIENDLY_TIME_AM_PM_DATE_YEAR | public abstract ZoneId defaultZoneId(); | [
"private final String getDateTimePattern(String dt, boolean toTime) throws Exception {\n/* 2679 */ int dtLength = (dt != null) ? dt.length() : 0;\n/* */ \n/* 2681 */ if (dtLength >= 8 && dtLength <= 10) {\n/* 2682 */ int dashCount = 0;\n/* 2683 */ boolean isDateOnly = true;\n/* */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implementa el metodo ordenar del repositorio que permite a un usuario/a dar la orden de subscribirse a un torneo (item). El usuario/a y el item/torneo ya existen en la bbdd (NO has de crearlos). El metodo devuelve la orden de subscripcion de tipo Orden creada. Guarda la orden en la base de datos. | @Test
@Transactional
public void test_ordenar_ok() throws NotEnoughProException {
assertNotNull(repo);
Orden orden = repo.ordenar("McCracken", "Murfreesboro Strike and Spare");
assertNotNull(orden);
assertNotNull(orden.getId());
assertEquals("McCracken", orden.getUser().getNombre());
assertEquals("Murfreesboro Strike and Spare", orden.getItem().getNombre());
} | [
"public static void registrarAuditoria(Connexion connexion,Long idUsuario,TipoRequisicion tiporequisicion,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TipoRequisicionConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tiporequisicion.getIsNew()) {\r\n\t\t\t\t\t////... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Permite generar aplicaciones para la list de cuentas por pagar indicada | public void aplicar(List<Cargo> cuentas){
if(cuentas.isEmpty())
return;
for(Cargo cuenta:cuentas){
AplicacionDeNota aplicacion=AbstractNotasRules.generarAplicaionParaNotaDeBonificacion(getNota(), cuenta);
aplicacion=atenderAltaDeAplicacion(aplicacion);
if(aplicacion!=null)
aplicaciones.add(aplicacion);
}
actualizar();
} | [
"Page<Conta> listar( Pageable pageable);",
"public List<Noticia> generarListadoCompletoNoticias(Context context);",
"private void listar(HttpPresentationComms comms, String _operacion) throws HttpPresentationException, KeywordValueException {\n/* 264 */ activarVista(\"consulta\");\n/* */ \n/* 266 */... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this graph is empty; otherwise, returns false. | boolean isFull(); | [
"public boolean isEmpty() {\n return nodeSize == 0;\n }",
"public boolean isEmpty() {\n\t\t\n\t\t//Bag is empty if there are no nodes\n\t\tif (size == 0) return true;\n\t\telse return false;\n\t}",
"public boolean isEmpty() {\n return edgeSet().isEmpty() && vertexSet().isEmpty();\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find out how many brick bricks | public Integer[] CalculateNumberBrick(){
numBrick[0] = getWidth()/brickDimension[0];// column
numBrick[1] = getHeight()/brickDimension[1];// row
System.out.println(getNumBrick()[0]+"000"+getNumBrick()[1]);//delete
return numBrick;
} | [
"int getBagOfTricksCount();",
"public int availableBalls() {\r\n\t\tint availableBalls = 15;\r\n\t\t\r\n\t\tfor (Boule ball : myBall) {\r\n\t\t\tif (ball.isOnBoard()) {\r\n\t\t\t\tavailableBalls--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn availableBalls;\r\n\t}",
"public void setBrickCounter () {\n BRIC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if a number is a valid double | public static boolean validateDouble(TextInputLayout txt, String error) {
try {
Double.valueOf(txt.getEditText().getText().toString().trim());
return true;
} catch (Exception e) {
txt.setError(error);
txt.setErrorEnabled(true);
return false;
}
} | [
"public boolean valiadateDouble(String digit) {\n\t\treturn digit.matches(DOUBLE_REGEX);\n\t}",
"boolean isTypeDouble();",
"private boolean isDouble()\n {\n try\n {\n Double.parseDouble(my_field.getText());\n }\n catch (NumberFormatException exception)\n {\n return false;\n }\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method is used to close the program or come back to the main menu | public void quit() {
boolean close = false;
do { // this loop runs when the user does not type the input showed on the screen
System.out.println("Would like to close the program?");
System.out.println("yes [y] no [n]");
try { // try to do something
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String quit = br.readLine();
if(quit.equalsIgnoreCase("y")){
System.out.println("Thank you");
System.exit(0); // is used to close the program
}
else if (quit.equalsIgnoreCase("n")) {
menu(); // method
}
} catch(Exception e){close = false;} //catch any error
System.out.println("[Not Found] type the right letter");
} while(close!= true);
} | [
"private void closeProgram(){\r\n\t\tBoolean answer = ConfirmBox.display(\"Quit\", \"Are you Sure\");\r\n\t\tif(answer)\r\n\t\t\tPlatform.exit();\r\n\t}",
"private void exit() {\n\t\tgui.exitApp();\n\t\tfrmMain.setVisible(false);\n\t\tfrmMain.dispose();\n\t}",
"@Override\r\n\tprotected void _menu() {\n\t\tfinis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implementation of the XmlModelListener interface. | public void fileSaved(XmlModel sourceXmlModel) {} | [
"public interface Listener\n {\n /**\n * Called whenever the model associated to this observable has been\n * modified.\n */\n void onModelChange();\n }",
"public ModelListener getModelListener() { return ev; }",
"public abstract Document getModelXML();",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the current instance of PertGraf to an empty one. | static void resetInstance() {
pertInstance = new PertGraf();
} | [
"public void reset(){\n\t\tthis.graph = null;\n\t\tsetPatillscript(null);\n\t\tthis.graph = null;\n\t\tthis.feedbackContainer = null;\n\t\tthis.sessSetting = null;\n\t}",
"public void reset() {\n clear();\n grid.randomGeneration(random);\n }",
"public void reset() {\n\t\tclear();\n\t\t\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. repeated .google.cloud.compute.v1.HttpRouteRuleMatch match_rules = 376200701; | public com.google.cloud.compute.v1.HttpRouteRuleMatch.Builder addMatchRulesBuilder(int index) {
return getMatchRulesFieldBuilder()
.addBuilder(index, com.google.cloud.compute.v1.HttpRouteRuleMatch.getDefaultInstance());
} | [
"public RequestSchemeMatchConditionParameters withMatchValues(\n List<RequestSchemeMatchConditionParametersMatchValuesItem> matchValues) {\n this.matchValues = matchValues;\n return this;\n }",
"@Override\r\n\tpublic String getMatchRules() {\n\t\treturn matchRules;\r\n\t}",
"public Remot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.com.elarian.hera.proto.Cash available = 2; | @java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAvailable(com.elarian.hera.proto.CommonModel.Cash value) {
value.getClass();
if (available_ != null &&
available_ != com.elarian.hera.proto.CommonModel.Cash.getDefaultInstance()) {
available_ =
com.elarian.hera.proto.CommonModel.Cash.newBuilder(available_).mergeFrom(value).buildPartial();
} else {
available_ = value;
}
} | [
"public int getMoney(){\r\n return localMoney;\r\n }",
"public interface Account extends AccountState {\n\n /** The constant DEFAULT_NONCE. */\n long DEFAULT_NONCE = 0L;\n /** The constant MAX_NONCE. */\n long MAX_NONCE = -1; // per twos compliment rule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads a Parameter within a Configuration file | public String ReadConfigValue ( String aConfigFile , String aConfigParameter )
{
Properties aProperty = new Properties();
String aValue = "";
try
{
InputStream resourceStream = getClass().getClassLoader().getResourceAsStream( aConfigFile );
if ( resourceStream == null )
{
throw new FileNotFoundException( "The properties file '" + aConfigFile + "' was not found." );
}
aProperty.load( resourceStream );
if ( aProperty.isEmpty() )
{
throw new Exception( "Configuration File is empty" );
}
aValue = aProperty.getProperty( aConfigParameter );
}
catch ( Exception e )
{
e.printStackTrace();
}
return aValue;
} | [
"public static void initializeParameters(String parParameterFile){\t\t\n\t\ttry{\n\t\t\t// Open the file to be read\n\t\t\tFileInputStream fstream = new FileInputStream(parParameterFile);\n\t\t\t// Create an object of DataInputStream\n\t\t\tDataInputStream in = new DataInputStream(fstream);\n\t\t\tBufferedReader bu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column oc_cust_grp_member.update_date | public String getUpdateDate() {
return updateDate;
} | [
"public java.sql.Timestamp getUpdateDate() {\n return dto.getUpdateDate();\n }",
"public long getUpdateDate() { return this.updateDate; }",
"public Date getUpdateDate() {\n\t\treturn this.UpdateDate;\n\t}",
"@Temporal(TemporalType.TIMESTAMP)\n\t@Column(name = \"DATEUPDATED\", length = 19)\n public Date... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Infor of a viewpoint missing for a view. Inform once. | private void informOfViewpointMissing(FMLRTVirtualModelInstanceResourceImpl viewResource) {
if (viewResource.getVirtualModelResource() == null && !vmiWithoutVM.contains(viewResource)) {
informOfViewPointMissing(viewResource);
vmiWithoutVM.add(viewResource);
}
} | [
"private void viewIncomplete() {\n int i = 1;\n for (Task task : list) {\n if (!task.isComplete()) {\n System.out.println(i + \". \" + task.getTitle());\n i++;\n }\n }\n if (i == 1) {\n output.noTask();\n }\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Windows__Group__3" $ANTLR start "rule__Windows__Group__3__Impl" InternalTargetPlatform.g:1338:1: rule__Windows__Group__3__Impl : ( ( ';' )? ) ; | public final void rule__Windows__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalTargetPlatform.g:1342:1: ( ( ( ';' )? ) )
// InternalTargetPlatform.g:1343:1: ( ( ';' )? )
{
// InternalTargetPlatform.g:1343:1: ( ( ';' )? )
// InternalTargetPlatform.g:1344:2: ( ';' )?
{
before(grammarAccess.getWindowsAccess().getSemicolonKeyword_3());
// InternalTargetPlatform.g:1345:2: ( ';' )?
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0==22) ) {
alt10=1;
}
switch (alt10) {
case 1 :
// InternalTargetPlatform.g:1345:3: ';'
{
match(input,22,FOLLOW_2);
}
break;
}
after(grammarAccess.getWindowsAccess().getSemicolonKeyword_3());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__GlobalNamespace__Group_3_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSeronetGw.g:1573:1: ( rule__GlobalNamespace__Group_3_3__1__Impl )\n // InternalSeronetGw.g:1574:2: rule__GlobalNamespac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
These tests are timesensitive, so preload the configuration | @BeforeClass
public static void setUpClass() throws Exception {
log.debug("loading configuration");
ConfigurationHolder.instance();
log.debug("configuration loaded"); // logs time also!
} | [
"@Before\r\n public void setUp() throws Exception {\r\n config = TestsHelper.getConfig();\r\n }",
"@Test\n public void configTest() throws Exception {\n }",
"@BeforeTest(alwaysRun = true)\n\tpublic void initialSetup() {\n\t\t// Read conf file\n\t\ttry {\n\t\t\tconfig = ConfigFactory.load(\"de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.proto.Game game = 2; | private com.google.protobuf.SingleFieldBuilderV3<
triathlon.network.protobuffprotocol.TriathlonProto.Game, triathlon.network.protobuffprotocol.TriathlonProto.Game.Builder, triathlon.network.protobuffprotocol.TriathlonProto.GameOrBuilder>
getGameFieldBuilder() {
if (gameBuilder_ == null) {
gameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
triathlon.network.protobuffprotocol.TriathlonProto.Game, triathlon.network.protobuffprotocol.TriathlonProto.Game.Builder, triathlon.network.protobuffprotocol.TriathlonProto.GameOrBuilder>(
getGame(),
getParentForChildren(),
isClean());
game_ = null;
}
return gameBuilder_;
} | [
"proto.Game getVersionParent();",
"proto.Car getCar();",
"proto.GameStatusEnum getStatus();",
"proto.GameMessageProto.GameMessage getGameMessage();",
"public Game getGame(){return _game;}",
"public IGame getGame()\n ;",
"proto.GameOrBuilder getParentGameOrBuilder();",
"protobuf.clazz.coin.CoinProto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void use3(String search, String filepath) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public <T> AnnotatedBindingBuilder<T> bind(Class<T> type) {
return this.mBinder.bind(type);
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Signal that the action GetNetInterface is supported. The action's availability will be published in the device's service.xml. GetNetInterface must be overridden if this is called. | protected void enableActionGetNetInterface()
{
Action action = new Action("GetNetInterface");
action.addOutputParameter(new ParameterRelated("InterfaceNum", iPropertyNumber));
action.addOutputParameter(new ParameterRelated("CurrentUse", iPropertyInterFace));
action.addOutputParameter(new ParameterRelated("InterfaceList", iPropertyInterFace));
iDelegateGetNetInterface = new DoGetNetInterface();
enableAction(action, iDelegateGetNetInterface);
} | [
"@Override\r\n public void networkNotAvailable() {\n }",
"private boolean isSupportedInternal() {\n boolean z = false;\n if (this.DBG) {\n Log.d(TAG, \"isSupportedInternal\");\n }\n synchronized (this.mLock) {\n if (this.mServ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set xformer branch model | public void setXfrBranchModel(ODMAclfNetMapper.XfrBranchModel xfrBranchModel) {
this.xfrBranchModel = xfrBranchModel;
} | [
"void setBizModel(BiexObject bizModel);",
"public void setModelAs(StsModel m)\n {\n model = m;\n//\t\tString dirname = model.project.getRootDirString();\n//\t\tString filename = \"vws.\" + model.getName();\n//\t\tobjectFilename = new String(dirname + File.separator + \"BinaryFiles\" + File.separator + f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check AOP in log mode with 3 complex parameters (JoinPoint) | @Test
public void logTest3Complex() {
// @formatter:off
final String expectedLog = EXPECTED_TEXT
+ "((String[])[p1],"
+ " (String[])[p2_0, p2_1, p2_2, p2_3, p2_4, p2_5, p2_6, p2_7, p2_8, p2_9…],"
+ " (String[])[],"
+ " (ArrayList)[p4],"
+ " (ArrayList)[],"
+ " (Itr)[p6_0, p6_1, p6_2, p6_3, p6_4, p6_5, p6_6, p6_7, p6_8, p6_9…],"
+ " (HashMap)[key=p7],"
+ " (TreeMap)[key01=1, key02=2, key03=3, key04=4, key05=5, key06=6, key07=7, key08=8, key09=9, key10=10…],"
+ " (HashMap)[])";
// @formatter:on
AOPObservable target = new AOPObservable();
AspectJProxyFactory factory = new AspectJProxyFactory(target);
LoggingAspect aspect = new LoggingAspect();
factory.addAspect(aspect);
AOPObservable proxy = factory.getProxy();
this.stream.reset();
String[] p1 = new String[1];
p1[0] = "p1";
String[] p2 = new String[11];
p2[0] = "p2_0";
p2[1] = "p2_1";
p2[2] = "p2_2";
p2[3] = "p2_3";
p2[4] = "p2_4";
p2[5] = "p2_5";
p2[6] = "p2_6";
p2[7] = "p2_7";
p2[8] = "p2_8";
p2[9] = "p2_9";
p2[10] = "p2_10";
String[] p3 = new String[0];
List<String> p4 = new ArrayList<>();
p4.add("p4");
List<String> p5 = new ArrayList<>();
List<String> p6 = new ArrayList<>();
p6.add("p6_0");
p6.add("p6_1");
p6.add("p6_2");
p6.add("p6_3");
p6.add("p6_4");
p6.add("p6_5");
p6.add("p6_6");
p6.add("p6_7");
p6.add("p6_8");
p6.add("p6_9");
p6.add("p6_10");
Map<String, String> p7 = new HashMap<>();
p7.put("key", "p7");
Map<String, String> p8 = new TreeMap<>();
p8.put("key01", "1");
p8.put("key02", "2");
p8.put("key03", "3");
p8.put("key04", "4");
p8.put("key05", "5");
p8.put("key06", "6");
p8.put("key07", "7");
p8.put("key08", "8");
p8.put("key09", "9");
p8.put("key10", "10");
p8.put("key11", "11");
Map<String, String> p9 = new HashMap<>();
proxy.test(p1, p2, p3, p4, p5, p6.iterator(), p7, p8, p9);
try {
String outputLog = this.stream.toString(EncodingUtils.ENCODING_UTF_8);
assertEquals(expectedLog, outputLog);
} catch (IOException e) {
fail("Errors occurred in AspectTest#logTest3Complex()\n" + e);
}
} | [
"@Before(\"execution(public void showMessage())\")\n public void log(JoinPoint joinPoint){\n System.out.println(\"Method called\");\n System.out.println(joinPoint.getTarget().getClass().getName());\n }",
"@Before(\"com.jonjazzy.demo.aspect.CommonJoinPointConfig.dataLayerExecutionPointcut()\") ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bytes attach_data = 20; | public Builder setAttachData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
attachData_ = value;
return this;
} | [
"void addAttachment(byte[] bytes, String fileName, String description);",
"void setAttachmentContent(AttachmentReference attachmentReference, byte[] attachmentData) throws Exception;",
"public void setAttachment(byte[] value) {\n this.attachment = value;\n }",
"public LinkedHashMap appendDataToAttac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int64 confirmedSeqNr = 1; | public long getConfirmedSeqNr() {
return confirmedSeqNr_;
} | [
"public long getSeqno();",
"long getStartSeqNo();",
"long getCurrentSequenceNumber();",
"String getSequenceNumber();",
"String GetSeqNo() {\n\n String a = \"0001\";\n return (a);\n }",
"int getFromSequenceNumber();",
"public Long getSeqNum()\r\n/* 130: */ {\r\n/* 131:127 */ ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of montoMaximoCobroTdcModified | public void setMontoMaximoCobroTdcModified(boolean montoMaximoCobroTdcModified)
{
this.montoMaximoCobroTdcModified = montoMaximoCobroTdcModified;
} | [
"public void setDtCobro(DataTable dtCobro)\r\n/* 172: */ {\r\n/* 173:271 */ this.dtCobro = dtCobro;\r\n/* 174: */ }",
"public void setOrdenServicioMantenimiento(OrdenServicioMantenimiento ordenServicioMantenimiento)\r\n/* 143: */ {\r\n/* 144:218 */ this.ordenServicioMantenimiento = ordenSer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__WebModel__Group__1__Impl" $ANTLR start "rule__WebModel__Group__2" InternalWappm.g:528:1: rule__WebModel__Group__2 : rule__WebModel__Group__2__Impl rule__WebModel__Group__3 ; | public final void rule__WebModel__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalWappm.g:532:1: ( rule__WebModel__Group__2__Impl rule__WebModel__Group__3 )
// InternalWappm.g:533:2: rule__WebModel__Group__2__Impl rule__WebModel__Group__3
{
pushFollow(FOLLOW_5);
rule__WebModel__Group__2__Impl();
state._fsp--;
pushFollow(FOLLOW_2);
rule__WebModel__Group__3();
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__WebApplication__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSwml.g:160:1: ( rule__WebApplication__Group__2__Impl rule__WebApplication__Group__3 )\n // InternalSwml.g:161:2: rule__WebAp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will save to sharepref | public void saveToSharePref(String theUsername){
if (isCheck()&& mTemp) {
mPrefs.edit().putString(getString(R.string.UserName),theUsername).apply();
}
} | [
"@Override\n public void saveSharedPrefDoing()\n {\n }",
"private void saveToPrefs() {\n\n SharedPreferences.Editor editor=pref.edit();\n editor.putString(\"Name\",name_string );\n editor.putString(\"Occupation\",occupation_string);\n editor.putString(\"Vehicle\",vehicle_strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the x, y, z, and w components to the supplied value. | public Vector4d set(double d) {
this.x = d;
this.y = d;
this.z = d;
this.w = d;
return this;
} | [
"void set(double x, double y, double z, double w);",
"public Vector4 set (float x, float y, float z, float w) {\n this.x = x;\n this.y = y;\n this.z = z;\n this.w = w;\n return this;\n }",
"public final void set(int x, int y, int z, int value) {\r\n data.setInt((z * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method that adds student to wait list | public void addToWaitList(Student s){
System.out.println("You will be added to the waitlist for this timeslot. Number of students ahead of you: " + waitList.size());
waitList.add(s);
} | [
"public void addWaitList(Student student) { \n\t\twaitList.add(student);\n\t}",
"private void addFromWaitList(){\r\n if (waitList.size() > 0) {\r\n Student toEnroll = waitList.remove(0);\r\n classRoster.add(toEnroll);\r\n toEnroll.enrollIn(this);\r\n }\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get list of the business categories | public List<LabelValueBean> getBusCategories() throws Exception {
DBStuff dbs = null;
String csql = "select business_category_id, category_name from business_category";
List<LabelValueBean> busCategories = new ArrayList<LabelValueBean>();
try {
session = HibernateUtil.currentSession();
dbs = new DBStuff(HibernateUtil.getConnection(session));
ResultSet rs = dbs.getFromDB(csql);
while (rs.next()) {
busCategories.add(new LabelValueBean(rs.getString("category_name"), rs.getString("business_category_id")));
}
return busCategories;
} finally {
dbs.close();
close();
}
} | [
"private void getCategories(String business_id) {\n this.trueCategories.clear();\n Query query = this.businessIndexSearch.getTermQuery(\"business_id\", business_id);\n int count = 0;\n\n try {\n count = this.businessIndexSearch.getCount(query);\n } catch (IOException e)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CMST_TRANSFDEVICE.DEVICETYPE | public void setDevicetype(String devicetype) {
this.devicetype = devicetype == null ? null : devicetype.trim();
} | [
"public void setDeviceType(int tempDeviceType) {\n\t\tthis.deviceType = tempDeviceType;\n\t\tthis.lastUpdated = Calendar.getInstance().getTime();\n\t}",
"public void setDeviceType(String[] deviceType) {\n this.deviceType = deviceType;\n }",
"public void setDeviceTypeId(String device_type_id) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method performs API request as per the Https method | private Response makeAPIRequestAsPerHTTPMethod(String url, HttpMethod httpMethod, RequestSpecification requestSpecification) {
Response response = null;
switch (httpMethod) {
case GET:
response = requestSpecification.get(url);
break;
case POST:
response = requestSpecification.post(url);
break;
case PUT:
response = requestSpecification.put(url);
break;
case PATCH:
response = requestSpecification.patch(url);
break;
case DELETE:
response = requestSpecification.delete(url);
}
return response;
} | [
"public void run() {\n clientInstance.executeAsStringAsync(request, new APICallBack<HttpResponse>() {\r\n public void onSuccess(HttpContext context, HttpResponse response) {\r\n try {\r\n //Error handling using HTTP status codes\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for detachable entities in a | public static ArrayList<Entity> findHangingEntities(final Block block) {
ArrayList<Entity> entities = new ArrayList<Entity>();
Collection<Entity> foundEntities = block.getLevel().getChunk(block.getChunkX(), block.getChunkZ()).getEntities().values();
if (foundEntities.size() > 0) {
for(Entity e : foundEntities){
// Some modded servers seems to list entities in the chunk
// that exists in other worlds. No idea why but we can at
// least check for it.
// https://snowy-evening.com/botsko/prism/318/
if (!block.getLevel().equals(e.getLevel())) continue;
// Let's limit this to only entities within 1 block of the current.
if( block.getLocation().distance( e.getLocation() ) < 2 && isHangingEntity(e) ){
entities.add(e);
}
}
}
return entities;
} | [
"Collection<Attachment> findAll();",
"@Override\n\tpublic List<Feeder> find(DetachedCriteria detachedCriteria) {\n\t\treturn this.getHibernateDaoHelper().findByCriteria(detachedCriteria);\n\t}",
"public void testAllDetach() throws Exception {\n OpenJPAEntityManagerFactorySPI emf =\n (OpenJPAE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que sera llamado si la aplicacion se encuentra en primer plano. Pondra a la escucha el servicio de notificaciones a traves de un BroadcastReciver. Tambiene stablecera una variable estatica para el apoyo de este | @Override
public void onResume() {
super.onResume();
Servicio_notificaciones.ESTADOAPP=false;
LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver, new IntentFilter("EVENT_SNACKBAR"));
} | [
"public void setLeyendo(){\n leyendo = true;\n //localService.errorMessage(\"leyendo TRUE | delay 0\");\n new Thread(new Runnable() { // Se crea un nuevo hilo\n public void run() {\n try {\n Thread.sleep(100);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the food in the restaurant | public List<FoodReturnVo> getFoodListByRestaurant(int restaurantId) {
List<FoodReturnVo> foodReturnVoList = new ArrayList<>();
Set<Food> foodList = foodDataService.getFoodListByRestaurant(restaurantId);
for (Food food : foodList) {
FoodReturnVo foodReturnVo = new FoodReturnVo(food.getId(), food.getName(), food.getPosition(), food.getPrice(), food.getUrl(), food.getMaximum(), food.isHasChoice(), food.getChoice(), Convertor.restaurantToRestaurantReturnVo(food.getRestaurant()), foodDataService.getFoodAlreadyOrdered(food.getId()));
foodReturnVoList.add(foodReturnVo);
}
return foodReturnVoList;
} | [
"Restaurant getRestaurant(String restaurant);",
"List<FavoriteFood> getAllFood();",
"String getFavFood();",
"private void getFavoriteRestaurant() {\n final Query refResto = RestaurantsFavorisHelper.\n getAllRestaurantsFromWorkers (Objects.requireNonNull (getCurrentUser ()).getDisplayName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootview = inflater.inflate(R.layout.fragment_abrir_chamado, container, false);
btnAbrirChamado = (Button)rootview.findViewById(R.id.botaoContinuarChamado);
btnAbrirChamado.setOnClickListener(this);
if (container == null) {
return null;
}
return rootview;
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }",
"@Override\n\tprotected View initView(LayoutInflater inflate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TC015Verify user can edit category | @Test(priority = 12, dataProvider = "CreateData", dataProviderClass = DataProviderClass.class)
public void TC015_VerifyUserCanEditCategory(HashMap<String, String> data) throws InterruptedException {
PantryForGoodHomePage p4gPage = new PantryForGoodHomePage(driver);
PantryForGoodSignInPage p4gSignIn = new PantryForGoodSignInPage(driver);
PantryForGoodInventoryPage p4gInventory = new PantryForGoodInventoryPage(driver);
//Navigate to URL
p4gSignIn.navigateToURL(baseURL);
//Sign In
p4gSignIn.logInToHomePage(data.get("username"), data.get("password"));
sleep(3000);
//Go to Inventory page
p4gInventory.goToInventoryPage();
//Edit a category
p4gInventory.editCategory(data.get("editcategoryname"), data.get("updatedcategoryname"));
//Log out
p4gPage.signOut();
} | [
"public void editCategory(Category category) {\n\t\t\r\n\t}",
"public static Status editCategory(int id, String category, AuthToken authToken, Connection con) {\n\t\tif (authToken.getType() == Status.MANAGER || authToken.getType() == Status.STOCK_EMPLOYEE) {\n\t\t\tsynchronized (con) {\n\t\t\t\ttry {\n\t\t\t\t\tc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests checking the required name | public void testCheckRequiredName() throws Exception {
SerializationContext ctx = new SerializationContext(writer, null, null);
assertEquals("listing", AbstractWriter.checkRequiredName(ctx, "listing"));
} | [
"private boolean verifyName() {\n\n\n return true;\n }",
"@Test\n public void allowAnyNameTest() {\n // TODO: test allowAnyName\n }",
"@Test\n void invalidName() {\n markName(entity, \"This is a test string that will be used to validate \" +\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'date' field has been set. | public boolean hasDate() {
return fieldSetFlags()[2];
} | [
"public boolean isSetDate() {\n return (this.mEntryIsSetFieldsSetBitMask & DATE_FIELD_MASK) == DATE_FIELD_MASK;\n }",
"public boolean hasDate() {\n return fieldSetFlags()[1];\n }",
"public boolean isSetDateUpdate() {\n return this.dateUpdate != null;\n }",
"boolean isSetDepartdate();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread. The general contract of the method run is that it may take any action whatsoever. This Method calls the controller that created it to set its beat to 0, ie, jump to start | @Override
public void run() {
super.cb.setBeat(0);
} | [
"public void start() {\n\trunner = new Thread(this);\n\trunner.start();\n }",
"public synchronized void start() {\n running = true;\n thread = new Thread(this);\n thread.start(); \n \n \n //IT IS ACTUALLY CALL FOE RUN METHOD\n }",
"public void run() {\n\t\tDebug.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean hasStableIds()
{
return false;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use bean update without parameters. | @Test
public void testErr2() throws Throwable {
this.expectedException(UnknownPropertyInJQLException.class);
buildDataSourceProcessorTest(Err2UpdateDataSource.class, Err2UpdateDAO.class, Person.class);
} | [
"@Override\n\tpublic PostBean update(PostBean obj) {\n\t\treturn null;\n\t}",
"public void beforeUpdate(B bean)throws DaoException;",
"@Override\r\n\tpublic int update(Entity bean) throws Exception {\n\t\treturn 0;\r\n\t}",
"public void updateBean(JETABean jbean) {\r\n\t\t// no op\r\n\t}",
"@EasymisDataSour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View v)
{
if (v.getId() == R.id.button1)
{
//login
AppSettings.buttonSound(getBaseContext());
String user = username.getText().toString();
String pass = password.getText().toString();
AppVariable.setUsername(user);
AppVariable.setPassword(pass);
String str = appendString(user, pass);
edit.putString("data", str);
edit.commit();
String url = "http://" + AppVariable.getIP() + ":8080/dqms/LoginApiAndroid?u=" + user.trim() + "&p=" + pass.trim();
url.replaceAll("//s+", "%20");
if (AppSettings.isNetworkAvailable(this))
{
if (user != null && pass != null)
{
//login in asyncTask
new LoginAsync(url, AppVariable.LOGINFLAG, this).execute();
}
else
{
Toast.makeText(this, "Please add required details", Toast.LENGTH_LONG).show();
}
}
else
{
//network Unavailable dialog box
CustomDialog dialog = new CustomDialog(this);
dialog.show();
AppVariable.setDialog(dialog);
}
}
if (v.getId() == R.id.button2)
{
//sign out all account
String user = username.getText().toString();
String pass = password.getText().toString();
String url = "http://" + AppVariable.getIP() + ":8080/dqms/LoginApiAndroid?u=" + user.trim() + "&p=" + pass.trim() + "&l=1";
Log.e("url....",""+url);
new LoginAsync(url, AppVariable.TREATFLAG, this).execute();
AppSettings.buttonSound(getBaseContext());
}
if (v.getId() == R.id.ipconfig)
{
AppSettings.buttonSound(getBaseContext());
IpConfigDialog Ip = new IpConfigDialog(this, "Password");
Ip.show();
AppVariable.setDialog1(Ip);
}
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a client socket connected to the specified host and port and writes out debugging info | public Socket createSocket(String host, int port)
throws IOException {
return new Socket(host, port);
} | [
"public TCPClient(String address, int port)\r\n {\r\n this.ip = address;\r\n this.port = port;\r\n this.clientSocket = new Socket(address, port); \r\n }",
"SocketInstanse(Socket socket) throws IOException {\r\n\t this.socket = socket;\r\n\t out = new BufferedWriter(new PrintWrite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: Code restructure failed: missing block: B:2:0x000a, code lost: r1 = getDetail(r3); / Code decompiled incorrectly, please refer to instructions dump. | public org.simpleframework.xml.core.ContactList getMethods(java.lang.Class r3) throws java.lang.Exception {
/*
r2 = this;
org.simpleframework.xml.util.Cache<org.simpleframework.xml.core.ContactList> r0 = r2.methods
java.lang.Object r0 = r0.fetch(r3)
org.simpleframework.xml.core.ContactList r0 = (org.simpleframework.xml.core.ContactList) r0
if (r0 != 0) goto L_0x0014
org.simpleframework.xml.core.Detail r1 = r2.getDetail(r3)
if (r1 == 0) goto L_0x0014
org.simpleframework.xml.core.ContactList r0 = r2.getMethods(r3, r1)
L_0x0014:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: org.simpleframework.xml.core.DetailExtractor.getMethods(java.lang.Class):org.simpleframework.xml.core.ContactList");
} | [
"@Override\n public final void a() {\n block12 : {\n block11 : {\n block10 : {\n try {\n var2_1 = f0.b(this.e, this.f);\n var3_2 = null;\n if (var2_1) {\n var4_3 = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the section name | @Override
protected int buildFlow(ClassFlow classFlow, ClassFlowContext flowContext) {
Class<?> flowInterface = flowContext.getFlowInterfaceType();
classFlow.addAnnotation(new SectionNameAnnotation(flowInterface.getSimpleName()));
// Build the flow
return classFlow.build().getIndex();
} | [
"public static void addSection(String name){\n Section section = new Section(name);\n storeMap.put(name, section);\n allSections.add(name);\n }",
"void addSection(Section sectionName) {\n\t\tif (!sectionList.contains(sectionName)) {\n\t\t\tsectionList.add(sectionName);\n\t\t\tLogger.addEvent(\"LocationM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Establece el objeto que puede proporcionarnos mas información sobre el porque sucedió esta excepción. | public void setObject(Object object)
{
this.m_object = object;
} | [
"@Test\n\tpublic void deveRetornarDataObrigatorio() {\n\t\tString mensagem = null;\n\t\ttry {\n\t\t\thistorico = new Historico(null, 1000.0, 4000.0, TipoHistorico.SAIDA);\n\t\t} catch (Exception e) {\n\t\t\tmensagem = e.getMessage();\n\t\t}\n\t\tAssert.assertEquals(\"Data é obrigatória\", mensagem);\n\t}",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor to initialize an object of this class. | public CustomLinkedList() {
head = null;
} | [
"protected ExampleObject() {\n super();\n }",
"protected GeometricObject() {\r\n\r\n\t}",
"public Tanh() {\n\t}",
"public Semaforo() {\n this(0);\n }",
"public Kakuro() {\n\t}",
"private Child()\n {\n // Give a default name (to be filled out later)\n firstName = \"Firs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Convert all occurrences of the symbols in the symbols list to an apply tag | private void convert() {
NodeList nl = doc.getElementsByTagName("mo");
List<Node> multSigns = new ArrayList<Node>();
for (int i = 0; i < nl.getLength(); i++) {
String s = nl.item(i).getTextContent().toLowerCase();
if(symbols.contains(s))
multSigns.add(nl.item(i));
}
for(int i = 0; i < multSigns.size(); i ++) {
Node mult = multSigns.get(i);
mult.setTextContent(null);
doc.renameNode(mult, null, "apply");
mult.appendChild(doc.createElement("times"));
mult.appendChild(mult.getPreviousSibling());
mult.appendChild(mult.getNextSibling());
try {
while(mult.getNextSibling().equals(multSigns.get(i + 1))) {
Node nullMult = mult.getNextSibling();
mult.appendChild(nullMult);
mult.removeChild(nullMult);
mult.appendChild(mult.getNextSibling());
i++;
if(mult.getNextSibling() == null)
break;
}
}catch (NullPointerException| IndexOutOfBoundsException e) {
// Expected to catch the last element to be multiplied and the last multiplication
}
}
} | [
"private void processSymbol(String token) {\n Element symbol = doc.createElement(\"symbol\");\n symbol.appendChild(doc.createTextNode(\" \" + token + \" \"));\n rootElement.appendChild(symbol);\n }",
"public void buildSymbols() {\n \t\t/** COMPLETE THIS METHOD **/\n \tarrays=new Arra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we need to print the nano seconds | public static void main(String[] args){
long timeInMilliSeconds = Calendar.getInstance().getTimeInMillis();
//Math.random()*10 + 1;
for(int i=0; i<10; i++)
System.out.println((int) ( Math.random()*100 ));
Set<Integer> randomSet = new HashSet<>();
int a = (int) randomSet.toArray()[0];
} | [
"private void printSecAndNano() {\n OffsetTime current = OffsetTime.now();\n Duration time = Duration.ofSeconds(current.getSecond());\n time = Duration.ofNanos(current.getNano());\n long milliseconds = time.toMillis();\n long nanoSec = time.getNano();\n System.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
run to get help | private static void Run(){
System.out.println("She runs and escapes through the door");
System.out.println("Karen decides to go to one of her neighbor's houses.");
System.out.println("Lights are on at the Morses' and screaming is coming from the Green's.");
System.out.println("Which House?");
System.out.println("1:Green 2:Morse 3:none");
Scanner userinput = new Scanner(System.in);
useractions=userinput.nextInt();
if(useractions==1){
greenhouse();
}else if(useractions==2){
morsehouse();
}else{
none();
}
//Running away from zombie
} | [
"HelpDoc help();",
"private void doHelp() {\r\n\t\tnew HelpCommand().executeCommand(this);\r\n\t}",
"private static void help() {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"Main\", options);\n System.exit(0);\n }",
"public void showHelp() {\n \t\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the numLives attribute. | public int getNumLives() {
return numLives;
} | [
"public int getNumLives(){\n return numLives;\n }",
"public int getNumberOfLives() {\n\t\treturn realGameWorld.getNumberOfLives();\n\t}",
"public String getLivesNum() {\n return livesNum;\n }",
"public abstract int getNumLives();",
"public int getLives()\r\n {\r\n return this.l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the list is empty or not. | @Override
public boolean isEmpty() {
return numElem == 0;
} | [
"public boolean isEmpty()\r\n {\r\n return list == null;\r\n }",
"public synchronized boolean isEmpty() {\r\n return (list.isEmpty());\r\n }",
"public boolean isEmpty()\n {\n return listSize == 0;\n }",
"public boolean isEmpty() {\n\t\treturn list == null;\n\t}",
"public boolean isEm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public HashSet<Long> getAnsweredFormIDsWithUsername(String username) {
String queryForGetingAnsweredFormIDsWithUsername ="select distinct formID " +
"from questions where ID in " +
"(select json_value(answerJson, '$.questionID') as questionID from answers where json_value(answerJson, '$.username') = ?) "
+ "AND formID in (select ID from forms); " ;
List<Long> formIDList = getJdbcTemplate().queryForList(queryForGetingAnsweredFormIDsWithUsername,new Object[]{username},Long.class);
return new HashSet<Long>(formIDList);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get DividendYield | public double getDividendYield(Stock stock){
double divYield = 0;
try{
//Market Price must be greater than zero, because it will be divided
if(stock.getMarketPrice() <= 0){
throw new Exception("Stock '" + stock.getStockSymbol() + "' must have a Market Price greater than zero");
}
if( stock.getType().equals(StockConstants.PREFERRED)){
divYield = (stock.getFixedDividend() * stock.getParValue()) / stock.getMarketPrice();
}else{
divYield = stock.getLastDividend() / stock.getMarketPrice();
}
System.out.println("Result Dividend Yield: " + divYield);
System.out.println("");
System.out.println("");
}catch(Exception e){
System.out.println("Stock: " + stock.getStockSymbol() + " - Error calculating dividendYield : " + e.getMessage());
System.out.println("");
System.out.println("");
}
return divYield;
} | [
"@Test\r\n public void testGetDividendYield() {\r\n System.out.println(\"getDividendYield\");\r\n StockSummary instance;\r\n instance = master;\r\n int expResult = 1;\r\n int result = instance.getDividendYield();\r\n assertEquals(expResult, result);\r\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a node in the database is moved. Value is the moved node. | @Override
public void onChildMoved(DataSnapshot ds, String string) {
} | [
"@Override\n public void onChildMoved(DataSnapshot arg0, String arg1) {\n\n }",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"public void NodeMoved(JNode node);",
"@Override\n publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |