query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Created by sergeybaranov on 24/1/18. | public interface CustomerService {
LinkedList getCustomers();
HashMap getCustomersReports(List ids);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@O... | [
"0.59097266",
"0.57188267",
"0.5668903",
"0.56641924",
"0.565465",
"0.56514484",
"0.56494474",
"0.5586877",
"0.5586877",
"0.5505066",
"0.5501554",
"0.5475003",
"0.5473314",
"0.5463251",
"0.54627043",
"0.54411995",
"0.543866",
"0.5429439",
"0.5427567",
"0.54213005",
"0.5409168... | 0.0 | -1 |
/ Validation class will check the error and display the error on respective fields but it won't resist the form submission, so we need to check again before submit | @Override
public void onClick(View view) {
if ( checkValidation () )
submitForm();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Ema... | [
"0.7294829",
"0.7278774",
"0.69437015",
"0.6890023",
"0.6802563",
"0.6780016",
"0.6732316",
"0.6701406",
"0.6683618",
"0.6670243",
"0.65955734",
"0.6590196",
"0.657837",
"0.65719426",
"0.6495409",
"0.6472526",
"0.6434879",
"0.64332306",
"0.6420357",
"0.63922465",
"0.6371007",... | 0.59267795 | 65 |
Submit your form here. your form is valid Toast.makeText(this, "Registering...", Toast.LENGTH_LONG).show(); | private void submitForm() {
final Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.dialogbox);
dialog.setTitle("Sucess!");
dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(false);
TextView txt = (TextView) dialog.findViewById(R.id.errorlog);
txt.setText("Registration Successfull.");
Button dialogButton = (Button) dialog.findViewById(R.id.release);
dialogButton.setOnClickListener(new OnClickListener() {
public void onClick(View vd) {
change.setEnabled(true);
dialog.dismiss();
}
});
dialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\... | [
"0.9254906",
"0.74238396",
"0.73249286",
"0.73176754",
"0.7244194",
"0.7224126",
"0.71993023",
"0.71088004",
"0.69922984",
"0.69154876",
"0.6849908",
"0.68218046",
"0.68144095",
"0.6796135",
"0.6768154",
"0.67516196",
"0.67454183",
"0.67172015",
"0.6691107",
"0.66908926",
"0.... | 0.74479675 | 1 |
TODO Autogenerated method stub | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request,response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO: mit in getDataByMode implementieren? | public String[] getDataArray(String name){
String[] string = new String[5];
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.rawQuery("SELECT * FROM gericht WHERE name='"+name+"';", null);
if(cursor.moveToFirst()){
do{
for(int i=0; i<5; i++){
string[i]=cursor.getString(i);
}
}while(cursor.moveToNext());
}
cursor.close();
db.close();
return string;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getData();",
"Object getData();",
"public abstract Object getData();",
"public Object getData();",
"Object getCurrentData();",
"java.lang.String getData();",
"public Data getData(HelperDataType type);",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"String getData();",
"protected a... | [
"0.68094575",
"0.68094575",
"0.67982984",
"0.6660376",
"0.6504651",
"0.64806175",
"0.6454144",
"0.64157856",
"0.6314685",
"0.6257617",
"0.62356746",
"0.6132241",
"0.61049926",
"0.6084013",
"0.60732746",
"0.6062363",
"0.6040942",
"0.6024691",
"0.60176593",
"0.5999994",
"0.5985... | 0.0 | -1 |
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() {
jLabel1 = new javax.swing.JLabel();
txtName = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
txtDes = new javax.swing.JTextArea();
btnCreate = new javax.swing.JButton();
btnUpdate = new javax.swing.JButton();
btnDelete = new javax.swing.JButton();
spnFunction = new javax.swing.JScrollPane();
tblFunction = new javax.swing.JTable();
jButton6 = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Name");
jLabel2.setText("Description");
txtDes.setColumns(20);
txtDes.setRows(5);
jScrollPane2.setViewportView(txtDes);
btnCreate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/icon/hospital-symbol.png"))); // NOI18N
btnCreate.setText("Create");
btnCreate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCreateActionPerformed(evt);
}
});
btnUpdate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/icon/tick-mark.png"))); // NOI18N
btnUpdate.setText("Update");
btnUpdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnUpdateActionPerformed(evt);
}
});
btnDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/icon/delete-cross.png"))); // NOI18N
btnDelete.setText("Delete");
btnDelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnDeleteActionPerformed(evt);
}
});
tblFunction.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
tblFunction.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
tblFunctionMouseClicked(evt);
}
});
spnFunction.setViewportView(tblFunction);
jButton6.setText("Close");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jButton1.setText("Back");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(spnFunction, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addGap(73, 73, 73)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(btnCreate)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnUpdate)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnDelete))
.addComponent(jScrollPane2)
.addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton6)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(spnFunction, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jScrollPane2, 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(btnCreate)
.addComponent(btnUpdate)
.addComponent(btnDelete))
.addGap(24, 24, 24)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton6)
.addComponent(jButton1))
.addGap(6, 6, 6))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.6945... | 0.0 | -1 |
End of variables declaration//GENEND:variables | private void loadTable(List<Functions> readAll) {
Vector cols = new Vector();
cols.add("Name");
cols.add("Description");
Vector rows = new Vector();
for (Functions f : readAll) {
Vector row = new Vector();
row.add(f.getName());
row.add(f.getDes());
rows.add(row);
}
tblFunction.setModel(new DefaultTableModel(rows, cols));
tblFunction.updateUI();
spnFunction.setViewportView(this.tblFunction);
} | {
"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.6359672",
"0.62805766",
"0.6188898",
"0.6094004",
"0.60918343",
"0.6070505",
"0.6051442",
"0.6051194",
"0.60025513",
"0.59884185",
"0.59703076",
"0.5967403",
"0.59663707",
"0.5965261",
"0.5961392",
"0.5940802",
"0.59082854",
"0.5895613",
"0.58904797",
"0.5881886",
"0.58808... | 0.0 | -1 |
ArrayList lista= new ArrayList (); | public FormPanel(){
Dimension dim = getPreferredSize();
dim.width=250;
setPreferredSize(dim);
nameLabel=new JLabel("Nombre: ");
nameField =new JTextField(10);
ocupattionLabel=new JLabel("Ocupattion: ");
occupationField=new JTextField(10);
okBtn=new JButton("OK");
okBtn.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e){
//TODO Auto-generated method stub
String name=nameField.getText();
String occupation=occupationField.getText();
FormEvent eve= new FormEvent(this,name,occupation);
//lista.add(eve);
//if(formListener!=null){
//formListener.formEventOcurred(eve);
//}
if(formListener!=null){
formListener.formEventOcurred(eve);
}
}
});
//BOrder
Border innerBorder=BorderFactory.createTitledBorder("Agregar Personas");
Border outerBorder=BorderFactory.createEmptyBorder(5, 5, 5, 5);
setBorder(BorderFactory.createCompoundBorder(outerBorder,innerBorder));
setLayout(new GridBagLayout());
GridBagConstraints gc= new GridBagConstraints();
////////////////FIRST NOW///////////////////////
gc.weightx=1;
gc.weighty=0.1;
gc.gridx=0;
gc.gridy=0;
gc.fill=GridBagConstraints.NONE;
gc.anchor=GridBagConstraints.LINE_END;
gc.insets=new Insets(0,0,0,5);
add(nameLabel,gc);
gc.gridx=1;
gc.gridy=0;
gc.insets=new Insets(0,0,0,0);
gc.anchor=GridBagConstraints.LINE_START;
add(nameField, gc);
///////////////SECON NOW///////////////////////////////
gc.weightx=1;
gc.weighty=0.1;
gc.gridy=1;
gc.gridx=0;
gc.insets=new Insets(0,0,0,5);
gc.anchor=GridBagConstraints.LINE_END;
add(ocupattionLabel,gc);
gc.gridy=1;
gc.gridx=1;
gc.insets=new Insets(0,0,0,0);
gc.anchor=GridBagConstraints.LINE_START;
add(occupationField,gc);
//////////////tercer//////////////////////////////////////////////
gc.weightx=1;
gc.weighty=2.0;
gc.gridy=2;
gc.gridx=1;
gc.insets=new Insets(0,0,0,5);
gc.anchor=GridBagConstraints.LINE_START;
add(okBtn,gc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ArrayListOfStrings () {\n list = new ArrayList<String>();\n }",
"public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }",
"static void q2(){\n\t\tArrayList<Integer>myList=new ArrayList<>();\n\t\t\n\t}",
"public ArrayList() {\n elements = new Object[D... | [
"0.7106502",
"0.70779365",
"0.7004358",
"0.6947322",
"0.6937652",
"0.69297254",
"0.6891035",
"0.6864453",
"0.6833558",
"0.6819097",
"0.6812969",
"0.6768781",
"0.6755329",
"0.671992",
"0.6639669",
"0.6626324",
"0.66221553",
"0.66129357",
"0.66019773",
"0.66013366",
"0.65817106... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e){
String name=nameField.getText();
String occupation=occupationField.getText();
FormEvent eve= new FormEvent(this,name,occupation);
//lista.add(eve);
//if(formListener!=null){
//formListener.formEventOcurred(eve);
//}
if(formListener!=null){
formListener.formEventOcurred(eve);
}
} | {
"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 |
Created by lenovo on 20160309. | public interface TieNoticeTimeService {
/**
* 从系公告时间表中查询是否存在该时间
*
* @param time xxxx年xx月
* @return
*/
List<TieNoticeTime> findByTime(String time);
/**
* 若时间组表中不存在该时间则插入该时间并获取id
*
* @param tieNoticeTime
* @return id
*/
int save(TieNoticeTime tieNoticeTime);
/**
* 通过id查询
*
* @param id
* @return
*/
TieNoticeTime findById(int id);
/**
* 系公告分组查询
*
* @param bigTitle
* @param tieId
* @return
*/
Result<Record2<Integer, String>> findByBigTitleAndTieIdAndTimeDistinctId(String bigTitle, int tieId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpubli... | [
"0.59535336",
"0.58447766",
"0.58069956",
"0.5743041",
"0.56861293",
"0.56644094",
"0.5632041",
"0.561802",
"0.561802",
"0.55861264",
"0.55612385",
"0.55489224",
"0.5543659",
"0.55358136",
"0.55310416",
"0.5531039",
"0.5523022",
"0.5520061",
"0.551992",
"0.55152726",
"0.54928... | 0.0 | -1 |
Created by ljp on 2017/3/7. | @Mapper
public interface DeliveryMapper {
@Select("SELECT * FROM delivery WHERE indent_id = #{indentId}")
Delivery findByIndentId(@Param("indentId") Long indentId);
@Select("SELECT * FROM delivery WHERE id = #{id}")
Delivery findById(@Param("id") Long id);
@Insert("INSERT INTO delivery(indent_id, sender, receiver, amount) VALUES(#{indentId}, #{sender}, #{receiver}, #{amount})")
int insert(Delivery delivery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",... | [
"0.5998803",
"0.5887881",
"0.5726993",
"0.5697968",
"0.56932306",
"0.56932306",
"0.5685947",
"0.56771135",
"0.56313473",
"0.56288564",
"0.5592593",
"0.55807",
"0.5535703",
"0.552984",
"0.55144656",
"0.55099386",
"0.55081755",
"0.55066854",
"0.54875994",
"0.548528",
"0.547006"... | 0.0 | -1 |
/ serverLabelAdapter = new ServerLabelAdapter(R.layout.server_label_item,serverLabelEntityArrayList); label_recycler.setLayoutManager(new GridLayoutManager(getContext(),4)); label_recycler.setAdapter(serverLabelAdapter); | private void initLabelRecycler() {
id_flowlayout.setAdapter(new TagAdapter<ServerLabelEntity>(serverLabelEntityArrayList) {
@Override
public View getView(FlowLayout parent, int position, ServerLabelEntity serverLabelEntity) {
TextView server_label_name_tv = (TextView) LayoutInflater.from(getContext()).inflate(R.layout.server_details_label_item,
id_flowlayout, false);
server_label_name_tv.setText(serverLabelEntity.getName());
return server_label_name_tv;
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRecycler(){\n GridLayoutManager manager=new GridLayoutManager(context,2,LinearLayoutManager.HORIZONTAL,\n false);\n\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n MainMenuAdapter mainMenuAdapter=new MainMenuAdapter(menuRo... | [
"0.6834748",
"0.66973156",
"0.6490029",
"0.6411272",
"0.63748217",
"0.63578403",
"0.63386345",
"0.6327274",
"0.6305233",
"0.6282494",
"0.6264025",
"0.6232588",
"0.62205493",
"0.6200533",
"0.6183963",
"0.6167442",
"0.6152967",
"0.6136575",
"0.6131083",
"0.61300504",
"0.6123362... | 0.7990123 | 0 |
Text word = new Text(); IntWritable value = new IntWritable(); | protected void cleanup(OutputCollector<Text, IntWritable> output) throws IOException, InterruptedException {
for (String key : countMap.keySet()) {
//word.set(key);
//value.set(countMap.get(key));
output.collect(new Text(key), new IntWritable(countMap.get(key)));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] array = value.toString().split(DELIMITER);\n Text year = new Text();\n year.set(array[1].trim());\n String word = array[0].trim();\n int num... | [
"0.6917199",
"0.6596081",
"0.6511764",
"0.64990205",
"0.6446177",
"0.6332021",
"0.6265991",
"0.620342",
"0.61492807",
"0.61456865",
"0.61210394",
"0.6028836",
"0.5917623",
"0.58879375",
"0.5871385",
"0.58608073",
"0.5822438",
"0.5813997",
"0.58063525",
"0.5797397",
"0.5795086... | 0.0 | -1 |
Constructs a mult by given expressions. | public Mult(Expression left, Expression right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.7181152",
"0.68491536",
"0.67149585",
"0.6623054",
"0.652561",
"0.6453798",
"0.64244205",
"0.64144564",
"0.6233412",
"0.6114878",
"0.61100984",
"0.60608727",
"0.6032277",
"0.6031518",
"0.6002539",
"0.5990347",
"0.59711415",
"0.5951944",
"0.59271264",
"0.5920275",
"0.591586... | 0.67898893 | 3 |
Constructs a mult by given expressions. | public Mult(double left, double right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.7181631",
"0.68503803",
"0.6790717",
"0.6790717",
"0.6718155",
"0.66223747",
"0.652588",
"0.6455302",
"0.64260405",
"0.64144236",
"0.6232391",
"0.6115367",
"0.6111778",
"0.60639083",
"0.6034308",
"0.6033243",
"0.60050446",
"0.59940916",
"0.59714967",
"0.5948733",
"0.592758... | 0.5466194 | 54 |
Constructs a mult by given expressions. | public Mult(String left, String right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.71816504",
"0.68509716",
"0.6790061",
"0.6790061",
"0.6719847",
"0.662252",
"0.6524968",
"0.6454907",
"0.6425489",
"0.64137614",
"0.6231617",
"0.6115805",
"0.6112296",
"0.6065207",
"0.60344887",
"0.6033878",
"0.600525",
"0.59952325",
"0.5972148",
"0.594838",
"0.59280413",
... | 0.54668754 | 53 |
Constructs a mult by given expressions. | public Mult(Expression left, double right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.71816504",
"0.68509716",
"0.6790061",
"0.6790061",
"0.6719847",
"0.662252",
"0.6524968",
"0.6425489",
"0.64137614",
"0.6231617",
"0.6115805",
"0.6112296",
"0.6065207",
"0.60344887",
"0.6033878",
"0.600525",
"0.59952325",
"0.5972148",
"0.594838",
"0.59280413",
"0.5922113",
... | 0.6454907 | 7 |
Constructs a mult by given expressions. | public Mult(Expression left, String right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.7181152",
"0.68491536",
"0.67898893",
"0.67898893",
"0.67149585",
"0.6623054",
"0.652561",
"0.6453798",
"0.64244205",
"0.6233412",
"0.6114878",
"0.61100984",
"0.60608727",
"0.6032277",
"0.6031518",
"0.6002539",
"0.5990347",
"0.59711415",
"0.5951944",
"0.59271264",
"0.59202... | 0.64144564 | 9 |
Constructs a mult by given expressions. | public Mult(double left, Expression right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.7181631",
"0.68503803",
"0.6790717",
"0.6790717",
"0.6718155",
"0.66223747",
"0.652588",
"0.6455302",
"0.64144236",
"0.6232391",
"0.6115367",
"0.6111778",
"0.60639083",
"0.6034308",
"0.6033243",
"0.60050446",
"0.59940916",
"0.59714967",
"0.5948733",
"0.59275883",
"0.592151... | 0.64260405 | 8 |
Constructs a mult by given expressions. | public Mult(String left, Expression right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.71816504",
"0.68509716",
"0.6790061",
"0.6790061",
"0.6719847",
"0.662252",
"0.6454907",
"0.6425489",
"0.64137614",
"0.6231617",
"0.6115805",
"0.6112296",
"0.6065207",
"0.60344887",
"0.6033878",
"0.600525",
"0.59952325",
"0.5972148",
"0.594838",
"0.59280413",
"0.5922113",
... | 0.6524968 | 6 |
Constructs a mult by given expressions. | public Mult(double left, String right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.71816504",
"0.68509716",
"0.6790061",
"0.6790061",
"0.6719847",
"0.662252",
"0.6524968",
"0.6454907",
"0.6425489",
"0.64137614",
"0.6231617",
"0.6115805",
"0.6112296",
"0.6065207",
"0.60344887",
"0.6033878",
"0.600525",
"0.59952325",
"0.5972148",
"0.594838",
"0.59280413",
... | 0.5608406 | 37 |
Constructs a mult by given expressions. | public Mult(String left, double right) {
super(left, right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\tretu... | [
"0.7181152",
"0.68491536",
"0.67898893",
"0.67898893",
"0.67149585",
"0.6623054",
"0.652561",
"0.6453798",
"0.64244205",
"0.64144564",
"0.6233412",
"0.6114878",
"0.61100984",
"0.60608727",
"0.6032277",
"0.6031518",
"0.6002539",
"0.5990347",
"0.59711415",
"0.5951944",
"0.59271... | 0.5700363 | 30 |
Evaluates the expression using the variable values provided in the assignment, and return the result. If the expression contains a variable which is not in the assignment, an exception is thrown. | public double evaluate(Map<String, Double> assignment) throws Exception {
Expression left = super.getLeft();
Expression right = super.getRight();
return left.evaluate(assignment) * right.evaluate(assignment);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double evaluate(Map<String, Double> assignment) throws Exception {\r\n // variable is in the assignment\r\n if (assignment.containsKey(this.variable)) {\r\n return assignment.get(this.variable);\r\n }\r\n throw new Exception(\"this variable is not in the assignment\");... | [
"0.7193907",
"0.6758798",
"0.66938066",
"0.65390855",
"0.65383583",
"0.64877456",
"0.648002",
"0.6348839",
"0.63110805",
"0.61395675",
"0.6087055",
"0.59991205",
"0.59832966",
"0.59727997",
"0.59207326",
"0.5917849",
"0.5892865",
"0.5874133",
"0.58453804",
"0.5844041",
"0.581... | 0.61426735 | 9 |
Turns the expression to a string. | @Override
public String toString() {
Helpers f = new Helpers();
Expression left = super.getLeft();
Expression right = super.getRight();
if (super.isBonus()) {
// x * y -> xy
if (left instanceof Var && right instanceof Var) {
return "(" + left.toString() + "" + right.toString() + ")";
}
// 4 * x -> 4x
if (right instanceof Var) {
return "(" + left.toString() + "" + right.toString() + ")";
}
// x * 4 -> 4x
if (left instanceof Var) {
return "(" + right.toString() + "" + left.toString() + ")";
}
// 4 * (x^2) -> 4(x^2)
if (right instanceof Pow) {
return "(" + left.toString() + "" + right.toString() + ")";
}
// 4 * (xy) -> 4xy
if (right instanceof Mult) {
if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {
return "(" + left.toString() + "" + f.removeOuterParentheses(right.toString()) + ")";
}
}
}
return "(" + left.toString() + " * " + right.toString() + ")";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n return m_expression;\n }",
"public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }",
"public String toString() {\n return fullExpression;\n }",
"private void jetExprStr(){\n\t\texprType = Z3MiscFunctions.v().getExprType(rExp... | [
"0.77883047",
"0.7672867",
"0.74462587",
"0.73442346",
"0.718668",
"0.7077517",
"0.7077517",
"0.70635855",
"0.70338535",
"0.6905079",
"0.6764834",
"0.669223",
"0.6678287",
"0.661005",
"0.6460857",
"0.6426451",
"0.6426451",
"0.6426451",
"0.63448834",
"0.63257015",
"0.63166",
... | 0.5963706 | 41 |
Calculates the differentiate of the expression. (f g)' = f' g + g' f. | @Override
public Expression differentiate(String var) {
Expression left = super.getLeft();
Expression right = super.getRight();
return new Plus(new Mult(left.differentiate(var), right), new Mult(left, right.differentiate(var)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Comple... | [
"0.7116449",
"0.6216142",
"0.5967625",
"0.5850182",
"0.58282685",
"0.5817684",
"0.5817684",
"0.58077365",
"0.579964",
"0.57902706",
"0.5768605",
"0.571715",
"0.5689909",
"0.5664783",
"0.5661741",
"0.5651199",
"0.5643733",
"0.56231165",
"0.559084",
"0.5543582",
"0.5517226",
... | 0.570249 | 12 |
Simplifies the expression more. | @Override
public Expression simplifyMore() {
Expression left = super.getLeft();
Expression right = super.getRight();
// x * x -> x^2
if (left.toString().equals(right.toString())) {
return new Pow(left, 2);
}
// ((2.0 * x) * (x * 3.0)) -> 6x^2
if (left instanceof Mult && right instanceof Mult) {
if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {
Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),
new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));
exp.turnBonusOn();
return exp.simplify();
}
}
// 2x * 2x -> 4x^2
if (left instanceof Mult && right instanceof Mult) {
if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {
return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),
new Pow(((Mult) left).getRight(), 2)).simplify();
}
}
// 2x * 2y -> 4xy
if (left instanceof Mult && right instanceof Mult) {
return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),
new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();
}
// sin(x) * cos(x) -> 0.5 * sin(2x)
if (right instanceof Sin && left instanceof Cos) {
Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));
exp.turnBonusOn();
return exp.simplify();
}
// cos(x) * sin(x) -> 0.5 * sin(2x)
if (right instanceof Cos && left instanceof Sin) {
Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));
exp.turnBonusOn();
return exp.simplify();
}
// log(x, y) * 2 -> 2 * log(x, y)
if (left instanceof Sin || left instanceof Cos || left instanceof Log) {
Expression exp = new Mult(right, left);
exp.turnBonusOn();
return exp.simplify();
}
// x^2 * x^3 -> x^5
if (left instanceof Pow && right instanceof Pow) {
if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {
Expression exp = new Pow(((Pow) left).getLeft(),
new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));
exp.turnBonusOn();
return exp.simplify();
}
}
// x^2 * x -> x^3
if (left instanceof Pow) {
if (((Pow) left).getLeft().toString().equals(right.toString())) {
Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));
exp.turnBonusOn();
return exp.simplify();
}
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RegexNode ReduceRep()\n\t{\n\t\tRegexNode u;\n\t\tRegexNode child;\n\t\tint type;\n\t\tint min;\n\t\tint max;\n\n\t\tu = this;\n\t\ttype = Type();\n\t\tmin = _m;\n\t\tmax = _n;\n\n\t\tfor (;;)\n\t\t{\n\t\t\tif (u.ChildCount() == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tchild = u.Child(0);\n\n\t\t\t// m... | [
"0.5442934",
"0.52743113",
"0.52653885",
"0.5236469",
"0.5233629",
"0.5224945",
"0.5187793",
"0.51744497",
"0.5036417",
"0.49354404",
"0.4926072",
"0.48915935",
"0.4882543",
"0.48583174",
"0.48577064",
"0.4845341",
"0.48349914",
"0.48153305",
"0.48091453",
"0.47808266",
"0.47... | 0.62813807 | 0 |
Makes a new expression that var is replaced with it's assign. | @Override
public Expression assign(String var, Expression expression) {
Expression left = super.getLeft();
Expression right = super.getRight();
return new Mult(left.assign(var, expression), right.assign(var, expression));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }",
"@Override\n public Expression assign(String var, Expression expression) {\n return new Minus(getExpression1().assign(var, expression), getExpression2().assign(var, expression));\n }",
"public Expression assig... | [
"0.73668355",
"0.7034306",
"0.7005764",
"0.6944845",
"0.6774997",
"0.64998084",
"0.6493448",
"0.6328385",
"0.6308965",
"0.6283412",
"0.6095667",
"0.5997035",
"0.5934935",
"0.5930988",
"0.58866805",
"0.58416337",
"0.580657",
"0.5744082",
"0.56803864",
"0.5672348",
"0.5623662",... | 0.67538005 | 5 |
Checks if equal with no importance to order. | public boolean isEqual(Expression other) {
Expression left = super.getLeft();
Expression right = super.getRight();
if (other instanceof Mult) {
return (((Mult) other).getLeft().toString().equals(left.toString())
&& ((Mult) other).getRight().toString().equals(right.toString()))
|| ((Mult) other).getLeft().toString().equals(right.toString())
&& ((Mult) other).getRight().toString().equals(left.toString());
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isOrderCertain();",
"@SuppressWarnings(\"unlikely-arg-type\")\n @Test\n public void testEquals() {\n Order order = new Order(\"Test\", LocalTime.NOON, GridCoordinate.ZERO);\n Order same = new Order(\"Test\", LocalTime.NOON, GridCoordinate.ZERO);\n Order other = new Order(\"Test\", LocalTime.MI... | [
"0.6629553",
"0.6545613",
"0.6529373",
"0.6495751",
"0.63605976",
"0.6209927",
"0.6192112",
"0.6114968",
"0.6111403",
"0.60888886",
"0.60019594",
"0.5958431",
"0.5953325",
"0.59312516",
"0.5927055",
"0.5913687",
"0.59133893",
"0.5907338",
"0.58306223",
"0.58183175",
"0.580013... | 0.0 | -1 |
Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created. | public JarConnection(URL url) throws URISyntaxException {
super(url);
this.path = Paths.get(url.toURI().getSchemeSpecificPart());
this.option = StandardOpenOption.READ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected HTTPConnection getConnectionToURL(URL url) throws ProtocolNotSuppException\r\n {\r\n\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n\r\n if (proxyRequi... | [
"0.73666656",
"0.69967514",
"0.6943487",
"0.6903487",
"0.6861972",
"0.6722259",
"0.6712368",
"0.6668693",
"0.6657884",
"0.66281354",
"0.65597767",
"0.6551204",
"0.6428323",
"0.6426624",
"0.6404994",
"0.6395505",
"0.63704455",
"0.636665",
"0.6325394",
"0.6298835",
"0.6261993",... | 0.5946886 | 32 |
Auto object to be decorated with dynamic extensions | public AC(AutoAPI obj) {
this.auto = obj;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Extension createExtension();",
"public interface ExtensionInterface {\n\n public static final Object CONST_class =\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\";\n\n @ConvertedMethod\n public Object getNodeTranslators(RuntimeEnv env, Object... args);\n\... | [
"0.6268519",
"0.6225142",
"0.6071164",
"0.59368825",
"0.58079183",
"0.56125677",
"0.5551196",
"0.5451957",
"0.5419769",
"0.5399166",
"0.53297913",
"0.5313841",
"0.53115386",
"0.5299979",
"0.5292743",
"0.5288646",
"0.5282165",
"0.52182454",
"0.52112776",
"0.52025396",
"0.51953... | 0.0 | -1 |
Add to the existing Auto description method. This decorator will override this Auto method, extending the functionality by adding it's own custom version which will append this specific option description to the existing Auto description. | @Override
public String getDesc() {
return auto.getDesc() + AC_DESCRIPTION;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setDescription(String arg0)\n {\n \n }",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source con... | [
"0.65958035",
"0.63917947",
"0.63392794",
"0.63392794",
"0.63362753",
"0.63362753",
"0.63362753",
"0.63362753",
"0.63362753",
"0.63362753",
"0.6214849",
"0.618726",
"0.6181087",
"0.6162126",
"0.6159088",
"0.6128994",
"0.6115138",
"0.60947543",
"0.60947543",
"0.60947543",
"0.6... | 0.63525784 | 2 |
Add to the existing Auto price method. This decorator will override this Auto method, extending the functionality by adding it's own custom version which will add the price of this auto option to the existing Auto base price. | @Override
public double getPrice() {
return auto.getPrice() + AC_ADDITIONAL_CHARGE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPrice(Double price);",
"@Override\n public double getPrice() {\n return souvenir.getPrice() + 20;\n }",
"public void setPrice(double price){this.price=price;}",
"public abstract void setTotalPrice();",
"@Override\n public int getPrice() {\n return 20;\n }",
"prote... | [
"0.6296314",
"0.6270297",
"0.62024933",
"0.61783576",
"0.6085575",
"0.6061756",
"0.6053474",
"0.6031956",
"0.6007905",
"0.59861165",
"0.59861165",
"0.59809494",
"0.59809494",
"0.59809494",
"0.5977513",
"0.5977513",
"0.5977513",
"0.5977513",
"0.5977513",
"0.5977513",
"0.597751... | 0.6839806 | 0 |
Constructor. Constructs a TriangleElt3D as a Triangle3D with given points. | public TriangleElt3D(Point3D[] points, ScalarOperator sop)
throws IllegalArgumentException {
super(points, sop);
this.eltZero = null;
this.eltOne = null;
this.eltTwo = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TriangleElt3D(Point3D point1, Point3D point2, Point3D point3,\n\t\t\tScalarOperator sop) {\n\t\tthis(new Point3D[] { point1, point2, point3 }, sop);\n\t}",
"public Triangle (double x1,double y1,double x2, double y2,double x3,double y3)\r\n {\r\n v1 = new Point(x1,y1);\r\n v2 = new Point(x2,y2);\r... | [
"0.77418125",
"0.73445576",
"0.7342883",
"0.7151399",
"0.714016",
"0.7114168",
"0.703534",
"0.69994545",
"0.69752926",
"0.69635254",
"0.694663",
"0.6913407",
"0.6889055",
"0.68531466",
"0.68260854",
"0.68237233",
"0.6794175",
"0.67169124",
"0.66979235",
"0.666611",
"0.6646424... | 0.746881 | 1 |
Constructor. Constructs a TriangleElt3D as a Triangle3D with given points. | public TriangleElt3D(Point3D point1, Point3D point2, Point3D point3,
ScalarOperator sop) {
this(new Point3D[] { point1, point2, point3 }, sop);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TriangleElt3D(Point3D[] points, ScalarOperator sop)\n\t\t\tthrows IllegalArgumentException {\n\t\tsuper(points, sop);\n\t\tthis.eltZero = null;\n\t\tthis.eltOne = null;\n\t\tthis.eltTwo = null;\n\t}",
"public Triangle (double x1,double y1,double x2, double y2,double x3,double y3)\r\n {\r\n v1 = new ... | [
"0.74689186",
"0.7345741",
"0.73441726",
"0.7152227",
"0.7141847",
"0.71160066",
"0.70368737",
"0.70025283",
"0.69787425",
"0.69670725",
"0.6947452",
"0.6916637",
"0.68925583",
"0.68542004",
"0.68265605",
"0.6825752",
"0.6797178",
"0.67200077",
"0.6700772",
"0.66673064",
"0.6... | 0.77435046 | 0 |
Constructor. The given point must not intersect with the segment. | public TriangleElt3D(Point3D point, Segment3D seg, ScalarOperator sop) {
this(new Point3D[] { point, seg.getPoint(0), seg.getPoint(1) }, sop);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }",
"public PrecisePoint() {\n... | [
"0.6539284",
"0.6507832",
"0.63003933",
"0.62657493",
"0.6232069",
"0.6194003",
"0.61759305",
"0.6166827",
"0.61513966",
"0.61416614",
"0.6107338",
"0.6102209",
"0.6015875",
"0.6015875",
"0.60053575",
"0.59662974",
"0.5942074",
"0.59131",
"0.5875814",
"0.5874544",
"0.5834475"... | 0.0 | -1 |
Returns the identifier of this. | public int getID() {
return this.id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"@Override\n public String identifier() {\n return this.identifier;\n }",
"@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }",
"public Strin... | [
"0.82068473",
"0.81801283",
"0.8062339",
"0.79851127",
"0.7965714",
"0.79259837",
"0.79259837",
"0.79259837",
"0.79259837",
"0.79259837",
"0.79259837",
"0.79259837",
"0.79259837",
"0.7923953",
"0.7914639",
"0.7911362",
"0.7885381",
"0.7867951",
"0.78661716",
"0.78661716",
"0.... | 0.0 | -1 |
Tests if this has a neighbour element at given index | public boolean hasNeighbour(int index) {
switch (index) {
case 0:
return this.eltZero != null;
case 1:
return this.eltOne != null;
case 2:
return this.eltTwo != null;
default:
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean isCellBelowNeighbor() {\r\n return this.neighbors.contains(new Cell(this.x, this.y + 1));\r\n }",
"public boolean ne... | [
"0.7094134",
"0.666007",
"0.6582368",
"0.63516635",
"0.62687457",
"0.6213165",
"0.61634284",
"0.6159789",
"0.6159789",
"0.6159789",
"0.6159789",
"0.6159789",
"0.6159789",
"0.5996972",
"0.5979988",
"0.59716123",
"0.59510696",
"0.5910931",
"0.5906342",
"0.587314",
"0.58665335",... | 0.81242347 | 0 |
Returns the count of neighbour elements | public int countNeighbours() {
int count = 0;
if (this.hasNeighbour(0))
count++;
if (this.hasNeighbour(1))
count++;
if (this.hasNeighbour(2))
count++;
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract int countNeighbors(int x, int y);",
"public abstract int getNumberOfLivingNeighbours(int x, int y);",
"protected static int countNeighbours(int i, int j, byte[][] currentGen){\n int count = 0;\n \n for(int x = i-1; x<i+2; x++){\n count+=checkBorders(x, j-1, cu... | [
"0.74368966",
"0.72899306",
"0.71964586",
"0.7185369",
"0.7185346",
"0.7087399",
"0.7055646",
"0.69451356",
"0.6943828",
"0.6905339",
"0.685969",
"0.6827346",
"0.6767381",
"0.6743245",
"0.6738916",
"0.6738916",
"0.6727565",
"0.67265654",
"0.6709875",
"0.6654132",
"0.6619433",... | 0.81260496 | 0 |
Tests if this has neighbour elements at all. | public boolean hasNeighbours() {
if (this.eltZero != null || this.eltOne != null || this.eltTwo != null)
return true;
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isCellBelowNeighbor() {\r\n return this.neighbors.contains(new Cell(this.x, this.y + 1));\r\n }",
"public boolean hasNeighbour(int index) {\n\t\tswitch (index) {\n\t\tcase 0:\n\t\t\treturn this.eltZero != null;\n\t\tcase 1:\n\t\t\treturn this.eltOne != null;\n\t\tcase 2:\n\t\t\treturn t... | [
"0.7110008",
"0.69223195",
"0.66988826",
"0.65311843",
"0.6371466",
"0.6358252",
"0.62769794",
"0.6269253",
"0.6251037",
"0.62377626",
"0.61795866",
"0.6172644",
"0.61724555",
"0.6092657",
"0.6089833",
"0.6087916",
"0.6075481",
"0.60726035",
"0.60706586",
"0.60526574",
"0.604... | 0.84457487 | 0 |
Tests if this is an interior element it has two neighbours. | public boolean isInterior() {
if (this.eltZero != null && this.eltOne != null && this.eltTwo != null)
return true;
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean interiorContains(int i, int j) {\n\t\treturn i > 0 && j > 0 && i < width() - 1 && j < height() - 1;\n\t}",
"boolean isCellBelow... | [
"0.7907969",
"0.7149168",
"0.69235855",
"0.6737603",
"0.67119145",
"0.66904026",
"0.65910655",
"0.6409039",
"0.63860786",
"0.6379816",
"0.63522476",
"0.62935257",
"0.6211575",
"0.6197488",
"0.61307424",
"0.61187345",
"0.6108418",
"0.608919",
"0.6074662",
"0.60740334",
"0.6061... | 0.7612845 | 1 |
Sets the neighbour for the given index. Index 0 neighbour opposite to P0, Index 1 neighbour opposite to P1, Index 2 neighbour opposite to P2. | public boolean setNeighbour(int index, TriangleElt3D element) {
switch (index) {
case 0:
this.eltZero = element;
return true;
case 1:
this.eltOne = element;
return true;
case 2:
this.eltTwo = element;
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changingNeighbor() {\n }",
"public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }",
"public void toggleChosenState(int index) {\n\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen) {\n ... | [
"0.5430579",
"0.54230815",
"0.54222167",
"0.53956556",
"0.53955764",
"0.53357685",
"0.5320428",
"0.52732897",
"0.52055025",
"0.5185004",
"0.51684153",
"0.5111924",
"0.511104",
"0.510421",
"0.5102252",
"0.50897425",
"0.50779575",
"0.5060934",
"0.50597847",
"0.5051118",
"0.5046... | 0.6136257 | 0 |
Sets the neighbour for corresponding index to null. Returns index for removed neighbour information or 1 if given element was not neighbour. | public int setNeighbourNull(TriangleElt3D element, ScalarOperator sop) {
if (this.getNeighbour(0) != null
&& this.getNeighbour(0).isGeometryEquivalent(element, sop)) {
this.setNeighbour(0, null);
return 0;
}
if (this.getNeighbour(1) != null
&& this.getNeighbour(1).isGeometryEquivalent(element, sop)) {
this.setNeighbour(1, null);
return 1;
}
if (this.getNeighbour(2) != null
&& this.getNeighbour(2).isGeometryEquivalent(element, sop)) {
this.setNeighbour(2, null);
return 2;
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean setNeighbour(int index, TriangleElt3D element) {\n\t\tswitch (index) {\n\t\tcase 0:\n\t\t\tthis.eltZero = element;\n\t\t\treturn true;\n\t\tcase 1:\n\t\t\tthis.eltOne = element;\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\tthis.eltTwo = element;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"pub... | [
"0.5902664",
"0.5496953",
"0.5372908",
"0.52925277",
"0.526297",
"0.5262245",
"0.52225363",
"0.520025",
"0.5196459",
"0.51382864",
"0.51206076",
"0.5104583",
"0.5104214",
"0.50994927",
"0.50906616",
"0.5090599",
"0.5072099",
"0.5042577",
"0.50041556",
"0.4983499",
"0.4952428"... | 0.66428685 | 0 |
Returns the neighbour for the given index. | public TriangleElt3D getNeighbour(int index) {
switch (index) {
case 0:
return this.eltZero;
case 1:
return this.eltOne;
case 2:
return this.eltTwo;
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getNeighboursNumber(int index);",
"public abstract LinkedList<Integer> getNeighbours(int index);",
"private List<CellIndex> getNeighbours( CellIndex index )\r\n {\n List<CellIndex> neighbours = new ArrayList<World.CellIndex>();\r\n if( index.x % EnvSettings.getMAX_X() != 0 ... | [
"0.7974736",
"0.7486516",
"0.7235851",
"0.7221478",
"0.6592574",
"0.6481458",
"0.6399151",
"0.6376532",
"0.62697256",
"0.6242164",
"0.62239826",
"0.62037265",
"0.6109961",
"0.6063069",
"0.60347486",
"0.6027249",
"0.6012993",
"0.60018975",
"0.59813976",
"0.59813976",
"0.598139... | 0.74970245 | 1 |
Returns the neighbours as array (of size of neighbours count). | public TriangleElt3D[] getNeighbours() {
int counter = 0;
if (this.eltZero != null)
counter++;
if (this.eltOne != null)
counter++;
if (this.eltTwo != null)
counter++;
TriangleElt3D[] neighbours = new TriangleElt3D[counter];
counter = 0;
if (this.eltZero != null) {
neighbours[counter] = this.eltZero;
counter++;
}
if (this.eltOne != null) {
neighbours[counter] = this.eltOne;
counter++;
}
if (this.eltTwo != null) {
neighbours[counter] = this.eltTwo;
}
return neighbours;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}",
"public int[] getNeighborhoodArray()\n\t{\n\t\treturn neighborhoodArray;\n\t}",
"public ArrayList<Double> getNeighboursData() {\n\t\tArrayList<Double> result = new ArrayList<Double>();\n\n\t\tfor (Border curBorder: allBorder) {\n\t\t\tr... | [
"0.7474783",
"0.73686016",
"0.7258196",
"0.7215506",
"0.7102106",
"0.70584714",
"0.70424014",
"0.70067614",
"0.6956225",
"0.688654",
"0.68485504",
"0.6820033",
"0.67093897",
"0.6633452",
"0.658812",
"0.6577339",
"0.65107864",
"0.64879644",
"0.647332",
"0.6468778",
"0.6455526"... | 0.7227275 | 3 |
Returns the enclosing net. | TriangleNet3D getNet() {
return comp.getNet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PetriNet getOwnerNet() {\r\n\t\treturn ownerNet;\r\n\t}",
"public Network network() {\n return network;\n }",
"public Network getNetwork() {\r\n \t\treturn network;\r\n \t}",
"public Node getNetworkNode() {\r\n return network;\r\n }",
"CyNetwork getGroupNetwork();",
"public C... | [
"0.70562774",
"0.666904",
"0.6661643",
"0.6564118",
"0.6439518",
"0.6398756",
"0.63328475",
"0.63283545",
"0.63259447",
"0.6250663",
"0.6123431",
"0.60534614",
"0.5953717",
"0.59089714",
"0.58897585",
"0.58391273",
"0.58177626",
"0.58020705",
"0.5789487",
"0.5789487",
"0.5710... | 0.59437543 | 13 |
Returns the enclosing net component | public TriangleNet3DComp getNetComponent() {
return comp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Node getComponentNode() {\n return componentNode;\n }",
"public PetriNet getOwnerNet() {\r\n\t\treturn ownerNet;\r\n\t}",
"public ILexComponent getParent();",
"public IPSComponent peekParent();",
"UIComponent getParent();",
"public NetworkEditor getNetworkEditor() {\n return panel.ge... | [
"0.6414828",
"0.62773156",
"0.62505174",
"0.6217689",
"0.61619323",
"0.6073559",
"0.5998143",
"0.5981141",
"0.594978",
"0.58951116",
"0.5893349",
"0.5893349",
"0.5893349",
"0.5893349",
"0.58930594",
"0.5885165",
"0.5880288",
"0.58488923",
"0.58488923",
"0.5831596",
"0.5812583... | 0.6497864 | 0 |
Sets the reference to the enclosing net component. | public void setNetComponent(TriangleNet3DComp net3D) {
comp = net3D;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }",
"protected void reference(H outerRef, C childRef) {\n\t\tthis.outerRef = outerRef;\n\t\tthis.THIS = childRef;\n\t}",
"protected void setNet(BigDe... | [
"0.64506793",
"0.62290335",
"0.60806656",
"0.5864893",
"0.5750319",
"0.5745874",
"0.56976986",
"0.5688037",
"0.56395376",
"0.5598706",
"0.5483119",
"0.54123443",
"0.540397",
"0.54023224",
"0.5375573",
"0.5354803",
"0.5351447",
"0.53446066",
"0.53075457",
"0.52558523",
"0.5248... | 0.5604583 | 9 |
Sets the id to given value | public void setID(int i) {
this.id = i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(in... | [
"0.86705583",
"0.8667396",
"0.8527222",
"0.8527222",
"0.8527222",
"0.8527222",
"0.8527222",
"0.8527222",
"0.8527222",
"0.8296651",
"0.82762337",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.8270551",
"0.81388927",
... | 0.0 | -1 |
Returns the type of this as a SimpleGeoObj. | public byte getType() {
return SimpleGeoObj.TRIANGLE_ELT_3D;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GeoJsonType getType() {\n return this.type;\n }",
"public String getType() {\n return getGeometryType();\n }",
"public Type<O> getObjectType()\n\t{\n\t\treturn this.getSettings().getObjectType();\n\t}",
"public FreeColGameObjectType getType() {\n return this;\n }",
"pub... | [
"0.7366818",
"0.68397367",
"0.6138805",
"0.6106014",
"0.6003584",
"0.59682786",
"0.5948608",
"0.59148824",
"0.5863761",
"0.57821465",
"0.5770927",
"0.57643294",
"0.57626474",
"0.5761922",
"0.5759458",
"0.57330996",
"0.5727387",
"0.572522",
"0.57206357",
"0.57197297",
"0.57112... | 0.5443873 | 74 |
Checks whether neighbours of this have already been visited, makes them orientation consistent if not. | public void makeNeighboursOrientationConsistent(ScalarOperator sop,
FlagMap flags) {
Stack<Object[]> upcoming = new Stack<Object[]>();
TriangleElt3D current = this;
do {
// set visited status
flags.add(current);
for (int i = 0; i < 3; i++) {
TriangleElt3D nb = current.getNeighbour(i);
if (nb != null && (!flags.check(nb))) {
upcoming.push(new Object[] { i, nb, current });
}
}
Object[] nbObj = null;
try {
nbObj = upcoming.pop();
} catch (EmptyStackException ese) {
// do nothing
}
int index = -1;
TriangleElt3D nb = null;
TriangleElt3D current2 = null;
if (nbObj != null) {
index = (Integer) nbObj[0];
nb = (TriangleElt3D) nbObj[1];
current2 = (TriangleElt3D) nbObj[2];
}
if ((nb != null) && (!flags.check(nb))) {
// if not already visited
// point indices of common edge (common edge has (in this)
// direction p1->p2)
int p1 = (index + 1) % 3;
int p2 = (index + 2) % 3;
int j = 0;
// find nb's index j for opposite point of common edge
for (j = 0; j < 3; j++)
if (!(current2.getPoint(p1).isEqual(nb.getPoint(j), sop) || current2
.getPoint(p2).isEqual(nb.getPoint(j), sop)))
break;
// nb's index for first point of common edge
j = (j + 1) % 3;
if (current2.getPoint(p1).isEqual(nb.getPoint(j), sop))
nb.invertOrientation();
// orientNeighbours for nb
}
current = nb;
} while (upcoming.size() != 0 || current != null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean percolates(){\n\t\treturn unionFind.connected(virtualBottom, virtualTop);\n\t}",
"public boolean percolates() {\n if (op... | [
"0.64045006",
"0.61292344",
"0.61105484",
"0.60825866",
"0.60631657",
"0.6061054",
"0.6046803",
"0.6041535",
"0.6004567",
"0.59938395",
"0.5947241",
"0.59415",
"0.59130985",
"0.5904908",
"0.58912885",
"0.5870891",
"0.5867923",
"0.58196443",
"0.58142525",
"0.58116686",
"0.5806... | 0.62727726 | 1 |
Inverts the orientation of the vertices. Overrides invertOrientation method of Triangle3D in addition to the orientation inversion it inverts the neighbours. | public void invertOrientation() {
Point3D temp = getPoint(2);
setPoint(2, getPoint(1));
setPoint(1, temp);
TriangleElt3D temp2 = getNeighbour(2);
setNeighbour(2, getNeighbour(1));
setNeighbour(1, temp2);
if (this.getNetComponent() != null)
this.getNetComponent().setOriented(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void invert() throws NoninvertibleTransform3DException {\r\n\t\tthis.set(getInverse());\r\n\t}",
"@Override\n public void Invert() {\n\t \n }",
"public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n fo... | [
"0.670248",
"0.621566",
"0.6076324",
"0.5999977",
"0.5867311",
"0.5787099",
"0.5762671",
"0.57492447",
"0.57111675",
"0.56483334",
"0.56348616",
"0.56269413",
"0.5563083",
"0.55394095",
"0.5463566",
"0.5421687",
"0.54070354",
"0.5358619",
"0.53129905",
"0.52652276",
"0.526185... | 0.82304907 | 0 |
Generates the default game map | @Override
protected void generateMap() {
//read map from tmx
map = null;
final String tmx = "res/tiles/map.tmx";
try {
TMXMapReader mapReader = new TMXMapReader();
map = mapReader.readMap(tmx);
} catch(Exception e) {
e.printStackTrace();
}
TileLayer layer = (TileLayer)map.getLayer(0);
tiles = new PropertyTile[layer.getWidth()][layer.getHeight()];
for(int x=0; x<layer.getWidth(); x++) {
for(int y=0; y<layer.getHeight(); y++) {
Tile tile = layer.getTileAt(x, y);
String type = (String)tile.getProperties().get("type");
tiles[x][y] = new PropertyTile(tile, TileType.valueOf(type.toUpperCase()));
tiles[x][y].setImage(tile.getImage());
}
}
//generate animated tiles from river tileset
TileSet riverset = map.getTileSets().get(1);
List<AnimatedTile> animatedTiles = new ArrayList<>();
for(int i=0; i<5; i++) {
Tile[] frames = new Tile[3];
Iterator<Tile> iterator = riverset.iterator();
while(iterator.hasNext()) {
Tile tile = iterator.next();
int rtile = Integer.parseInt(tile.getProperties().getProperty("tile"));
int frame = Integer.parseInt(tile.getProperties().getProperty("frame"));
if(rtile == i+1) {
frames[frame-1] = tile;
}
}
AnimatedTile aTile = new AnimatedTile(frames);
animatedTiles.add(aTile);
}
//replace tiles in map with animated tiles
// for(int x=0; x<layer.getWidth(); x++) {
// for(int y=0; y<layer.getHeight(); y++) {
// Tile tile = layer.getTileAt(x, y);
// if(tile.getProperties().containsKey("animated")) {
// int rtile = Integer.parseInt(tile.getProperties().getProperty("tile"));
// layer.setTileAt(x, y, animatedTiles.get(rtile-1));
// }
// }
// }
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t... | [
"0.75134027",
"0.72928447",
"0.724776",
"0.7236694",
"0.7073214",
"0.7073214",
"0.69724613",
"0.6925908",
"0.6899871",
"0.68670744",
"0.686013",
"0.68100226",
"0.6735718",
"0.6729454",
"0.6720266",
"0.65923816",
"0.65782934",
"0.6572377",
"0.6546378",
"0.6546378",
"0.6486732"... | 0.6118829 | 47 |
Created by Himanshu on 4/4/2017. | public interface ProfileContactView {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Overri... | [
"0.607878",
"0.5884346",
"0.58755845",
"0.5868029",
"0.58413374",
"0.5813396",
"0.5792164",
"0.5792164",
"0.57469076",
"0.5722884",
"0.5682739",
"0.5660527",
"0.5654825",
"0.56512237",
"0.5648515",
"0.56455004",
"0.56296796",
"0.5583237",
"0.5580984",
"0.5573534",
"0.5572057"... | 0.0 | -1 |
/ access modifiers changed from: protected | @Override // com.android.systemui.statusbar.policy.SignalController
public WifiState cleanState() {
return new WifiState();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375959",
"0.70425177",
"0.69218665",
"0.6908857",
"0.68462455",
"0.68293995",
"0.6805953",
"0.6583417",
"0.65397364",
"0.65014184",
"0.6491877",
"0.6491877",
"0.6472813",
"0.64386034",
"0.6432003",
"0.6432003",
"0.64291835",
"0.6425716",
"0.6419082",
"0.6409203",
"0.64066... | 0.0 | -1 |
/ access modifiers changed from: packageprivate | public void refreshLocale() {
this.mWifiTracker.refreshLocale();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a... | [
"0.71516633",
"0.66861993",
"0.6557671",
"0.64844686",
"0.64307094",
"0.63860685",
"0.63849354",
"0.6347811",
"0.63300216",
"0.62775",
"0.6263697",
"0.6250632",
"0.623687",
"0.6232753",
"0.6229871",
"0.61984533",
"0.61984533",
"0.6195501",
"0.6184757",
"0.6180239",
"0.6157830... | 0.0 | -1 |
/ access modifiers changed from: private | public void handleStatusUpdated() {
copyWifiStates();
notifyListenersIfNecessary();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: packageprivate | public boolean isCarrierMergedWifi(int i) {
T t = this.mCurrentState;
return ((WifiState) t).isDefault && ((WifiState) t).isCarrierMerged && ((WifiState) t).subId == i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a... | [
"0.71513015",
"0.6686406",
"0.6558315",
"0.6482832",
"0.6430476",
"0.63856333",
"0.63838816",
"0.63487375",
"0.6330605",
"0.62764114",
"0.626384",
"0.62509346",
"0.6237325",
"0.62340367",
"0.6228612",
"0.6197973",
"0.6197973",
"0.61952",
"0.6183631",
"0.61797863",
"0.6157397"... | 0.0 | -1 |
/ access modifiers changed from: packageprivate | @VisibleForTesting
public void setActivity(int i) {
T t = this.mCurrentState;
boolean z = false;
((WifiState) t).activityIn = i == 3 || i == 1;
WifiState wifiState = (WifiState) t;
if (i == 3 || i == 2) {
z = true;
}
wifiState.activityOut = z;
notifyListenersIfNecessary();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a... | [
"0.7152233",
"0.6686829",
"0.6558018",
"0.648256",
"0.64300925",
"0.63854086",
"0.6384126",
"0.6348419",
"0.63299996",
"0.6276555",
"0.62636447",
"0.6250764",
"0.62378335",
"0.6232745",
"0.6228846",
"0.6198551",
"0.6198551",
"0.61952055",
"0.61837465",
"0.6179672",
"0.6157414... | 0.0 | -1 |
/ access modifiers changed from: protected | @Override // com.android.settingslib.SignalIcon$State
public void toString(StringBuilder sb) {
super.toString(sb);
sb.append(",ssid=");
sb.append(this.ssid);
sb.append(",isTransient=");
sb.append(this.isTransient);
sb.append(",isDefault=");
sb.append(this.isDefault);
sb.append(",statusLabel=");
sb.append(this.statusLabel);
sb.append(",isCarrierMerged=");
sb.append(this.isCarrierMerged);
sb.append(",subId=");
sb.append(this.subId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7374581",
"0.704046",
"0.6921078",
"0.6907657",
"0.68447137",
"0.68278503",
"0.68051183",
"0.6581499",
"0.65379775",
"0.65013164",
"0.64906055",
"0.64906055",
"0.6471428",
"0.64376146",
"0.64308655",
"0.64308655",
"0.6427683",
"0.6424486",
"0.64190304",
"0.640871",
"0.6405... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCenterSlide(float paramFloat) {
Log.d(LOGTAG, "onCenterSlide");
Log.d(LOGTAG, "onCenterSlide paramFloat>>>"+paramFloat);
Log.d(LOGTAG, "onCenterSlide paramFloat>>>"+(int)paramFloat);
Log.d(LOGTAG, "onCenterSlide progress>>>"+mediaController.getSeekBar().getProgress());
long seekTime;
//long seekTime = duration / 1000 * mediaController.seekBar.getProgress() + 1000;
if(paramFloat > 0)
seekTime = mediaController.mediaPlayerControl.getCurrentPosition() + 1000 * 1;
else
seekTime = mediaController.mediaPlayerControl.getCurrentPosition() - 1000 * 1;
mediaController.mediaPlayerControl.seekTo(seekTime);
String time = StringUtils.generateTime(seekTime);
//if(mediaController.mediaPlayerControl.getCurrentDecoder().equals("SW"))
mediaController.setScreenCenterMsg(time, 1500L);
mediaController.getCurrentPlayTime().setText(time);
// mediaController.seekBar.setProgress(mediaController.seekBar.getProgress() + (int)paramFloat);
// mediaController.seekBarListener.onProgressChanged(mediaController.seekBar, mediaController.seekBar.getProgress() + 1, true);
//mediaController.mediaPlayerControl.seekTo(seekTime);
} | {
"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 |
parse json, depending on which url was hit | public String parseJSON(String urlString, String zipString, JsonElement root){
String Data = "nullJSONData";
JsonObject rootobj = root.getAsJsonObject(); //May be an array, may be an object.
// if url string is for zipcode website
// parse rootobj for zipcode
if (urlString == "http://freegeoip.net/json/"){
String zipcode = rootobj.get("zip_code").getAsString(); //just grab the zipcode
Data = "The zipcode is " + zipcode;
}
// if message from user contained a zip code
// parse rootobj for weather data
if (zipString != "null Zip"){
String message = rootobj.get("message").getAsString(); //just grab the message
Double listCount = rootobj.get("cnt").getAsDouble(); //just grab the message
JsonArray JSONdataArray = rootobj.get("list").getAsJsonArray(); //grab list array, which is
// the first item in the array is a JSON Object
// this first object has the tempurate stored in a nested object called main
JsonObject firstObject = JSONdataArray.get(0).getAsJsonObject();
JsonObject mainObject = firstObject.get("main").getAsJsonObject();
String temperature = mainObject.get("temp").getAsString();
Data = "The tempurature is " + temperature + " degrees Fahrenheit.";
}
// parse rootobj for number of humans in space
if (urlString == "http://api.open-notify.org/astros.json/"){
String number = rootobj.get("number").getAsString(); //just grab the message
Data = "There are currently " + number + " humans ins space.";
}
return Data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void processUrl() {\n try {\n\n JsonNode rootNode = getJsonRootNode(getJsonFromURL()); // todo: pass url in this method (to support multi-urls)\n getValuesFromJsonNodes(rootNode);\n setAndFormatValues();\n\n } catch (Exception e) {\n System.out.prin... | [
"0.67903566",
"0.6280289",
"0.6034179",
"0.5992706",
"0.5754293",
"0.5654313",
"0.56220704",
"0.55040634",
"0.54848737",
"0.5462431",
"0.5457402",
"0.5439047",
"0.5385247",
"0.5383812",
"0.53803587",
"0.53599614",
"0.53580606",
"0.5325731",
"0.53130704",
"0.5311013",
"0.52798... | 0.53455526 | 17 |
/ writ a program to ask user if there is sale if no sale > not going shopping of sale we will ask the price of the item based on the price we will apply discount and calculate final price if price less than 20>apply 10% if price is between 20 and 100 > apply 20% if price between 100 and 5000 >apply 30% if price more than 500 >apply 50% after discount ____ the price of the item reduced from__to___ frist decliar | public static void main(String[] args) {
Scanner scan;
String sale;
double price;
double discount = 50;
double finalPrice = 500;
scan =new Scanner(System.in);
System.out.println("any sales?");
String sales = scan.nextLine();
if(sales.equalsIgnoreCase("Yes")) {
System.out.println("What is the price?");
price = scan.nextDouble();
scan.close();
if(price<20) {
discount = price*0.1;
finalPrice = price-discount;
}else if(price>20 && price<100) {
discount = price*0.2;
finalPrice = price-discount;
}else if(price>100 && price<500) {
discount = price*0.3;
finalPrice = price-discount;
}else if(price>500) {
discount = price*0.5;
finalPrice = price-discount;
}
System.out.println("have discount " + discount + ". total price is " + finalPrice);
}else{
System.out.println("We are not going shopping");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main (String[] args) {\n\t\t\n\t\t\n\t\tScanner inp = new Scanner(System.in);\n\t\tSystem.out.println(\"Is there a sale? True or False\");\n\t\tboolean sale = inp.nextBoolean();\n\t\t\n\t\t\n\t double discount;\n\t\tdouble finalPrice;\n\t\tdouble price;\n\t\t\n\t\tif (!sale) {\n\t\t\tSystem.o... | [
"0.78039134",
"0.76402926",
"0.75033826",
"0.74267673",
"0.7198299",
"0.7102342",
"0.7040571",
"0.6867977",
"0.68417203",
"0.6838868",
"0.68324596",
"0.682381",
"0.67766243",
"0.67671025",
"0.67653835",
"0.6672029",
"0.665972",
"0.6638873",
"0.6637893",
"0.6628855",
"0.662195... | 0.75388867 | 2 |
turns a Location in to a string containing the coordinates of the Location | public static String LocationToString(Location location){
StringBuilder sb = new StringBuilder();
sb.append("( ").append(location.getBlockX()).append(", ").append(location.getBlockY()).append(", ").append(location.getBlockZ()).append(" )");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }",
"public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}",
"public String coordToAddress(Coord loc);"... | [
"0.75260305",
"0.7335258",
"0.73143196",
"0.69749534",
"0.68012786",
"0.67843074",
"0.67081046",
"0.67081046",
"0.67081046",
"0.6627479",
"0.65841717",
"0.6579655",
"0.65443504",
"0.6535605",
"0.6479932",
"0.6442602",
"0.64394",
"0.6426709",
"0.6392877",
"0.634772",
"0.634772... | 0.6932106 | 4 |
Gets the value of the hotelID property. | public int getHotelID() {
return hotelID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getHotelId() {\r\n return hotelId;\r\n }",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Integer getHotelId() {\n return hotelId;\n }",
"public java.lang.String getHotelId() {\n java.lang.Object ref = hotelId_;\n if (ref instanceof java.... | [
"0.8557519",
"0.85198265",
"0.85198265",
"0.82148534",
"0.8203375",
"0.8184773",
"0.7967733",
"0.79244363",
"0.7878159",
"0.7778455",
"0.7575152",
"0.7434477",
"0.73800135",
"0.71348244",
"0.7083941",
"0.7083941",
"0.7033906",
"0.6987982",
"0.68896914",
"0.68896914",
"0.68671... | 0.83110017 | 3 |
Sets the value of the hotelID property. | public void setHotelID(int value) {
this.hotelID = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHotelId(Integer hotelId) {\r\n this.hotelId = hotelId;\r\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void setHotelId(int value) {\n this.... | [
"0.8035081",
"0.8020704",
"0.8020704",
"0.7763597",
"0.77427745",
"0.7501869",
"0.7009716",
"0.7009716",
"0.69244397",
"0.68527573",
"0.68527573",
"0.67992455",
"0.67402685",
"0.6640263",
"0.66324115",
"0.64944154",
"0.64896834",
"0.6438608",
"0.6426357",
"0.63657385",
"0.634... | 0.78793126 | 3 |
Gets the value of the roomID property. | public int getRoomID() {
return roomID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRoomId() {\n return roomId;\n }",
"public int getRoomID() {\r\n\t\treturn this.room.getID();\r\n\t}",
"public Integer getRoomid() {\r\n\t\treturn roomid;\r\n\t}",
"public String getRoomid() {\r\n\t\treturn roomid;\r\n\t}",
"public Integer getRoomId() {\n return roomId;\n ... | [
"0.84529644",
"0.84375906",
"0.8422093",
"0.8396302",
"0.83634925",
"0.82968456",
"0.82773715",
"0.82772994",
"0.8118956",
"0.8113482",
"0.80800587",
"0.80223644",
"0.7848002",
"0.77895665",
"0.7682284",
"0.7579618",
"0.75519097",
"0.7516884",
"0.7514448",
"0.7470234",
"0.744... | 0.82076323 | 8 |
Sets the value of the roomID property. | public void setRoomID(int value) {
this.roomID = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoomId(int value) {\n this.roomId = value;\n }",
"void setRoomId(String roomId);",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"public void setRoomid(Integer roomid) {\r\n this.roomid = roomid;\r\n }",
"public void setRoomid(Integer room... | [
"0.81284434",
"0.8079595",
"0.78805757",
"0.78034073",
"0.7722254",
"0.7623438",
"0.7574423",
"0.7564553",
"0.7532305",
"0.7481504",
"0.74466497",
"0.74119335",
"0.7219544",
"0.7202469",
"0.7155089",
"0.70703405",
"0.70435786",
"0.6881574",
"0.68585443",
"0.68362874",
"0.6835... | 0.8357571 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_task_info, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
On event clicked, go to event profile | @Override
public void onItemOfListClicked(Object o) {
UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);
navController.navigate(action);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }",
"private void clickEventProfileImage(){\n mProfileImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n ... | [
"0.75237674",
"0.68899626",
"0.6864632",
"0.65882754",
"0.6463012",
"0.64601487",
"0.6446266",
"0.63732207",
"0.63136375",
"0.63035786",
"0.62906206",
"0.62906206",
"0.62478864",
"0.6225731",
"0.6216265",
"0.62103575",
"0.61850643",
"0.61806256",
"0.6165308",
"0.61493033",
"0... | 0.67808074 | 3 |
On organisator clicked, go to user profile | @Override
public void onItemOfListClicked(Object o) {
UserProfileFragmentDirections.ActionUserProfileFragmentSelf action = UserProfileFragmentDirections.actionUserProfileFragmentSelf();
action.setUser((MyUser) o);
navController.navigate(action);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
"public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}",
"public void clickUserProfile(){\r\n driver.findElement(userTab).c... | [
"0.7487481",
"0.7004802",
"0.67729425",
"0.664385",
"0.66110677",
"0.6608854",
"0.6581219",
"0.657915",
"0.6569611",
"0.64856976",
"0.64811885",
"0.64685315",
"0.6421006",
"0.64089984",
"0.6398304",
"0.63905823",
"0.6374553",
"0.63731897",
"0.6360012",
"0.6356951",
"0.6356951... | 0.66349155 | 4 |
Set organisator to events and update ui | public void setOrganisator(MyUser organisator) {
if (createdEvents != null) {
for (int i = 0; i < createdEvents.size(); i++) {
createdEvents.get(i).setOrganisator(organisator);
}
adapderEventCard.notifyDataSetChanged();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"private void initializeEvents() {\r\n\t}",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"private void populateUI(Event event){\n mTitle.setText(event.getTitle()); //sets title to event title\n mDescription... | [
"0.6344113",
"0.62590903",
"0.62477416",
"0.6151383",
"0.5999254",
"0.5975234",
"0.5954372",
"0.5950906",
"0.5933526",
"0.5932672",
"0.5927472",
"0.5906235",
"0.5887083",
"0.5881413",
"0.5859912",
"0.58428705",
"0.5833543",
"0.5801797",
"0.5770155",
"0.5770018",
"0.5744711",
... | 0.6519702 | 0 |
/ Getter and Setter | public long getId_donacion() {
return id_donacion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"protected abstract Set method_1559();",
"String setValue();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public void get() {\n }",
"public void setdat()\n {\n }",
"@Override\n String get();"... | [
"0.7014106",
"0.6937696",
"0.68222636",
"0.66343254",
"0.65488094",
"0.65260863",
"0.64485055",
"0.6415086",
"0.6334599",
"0.6325895",
"0.6303951",
"0.6303951",
"0.6301601",
"0.6297698",
"0.6275698",
"0.62576044",
"0.62281054",
"0.6205482",
"0.6191927",
"0.61800617",
"0.61780... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setFocus() {
} | {
"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 |
/ On initialise le client | @Before
public void setUp() throws Exception {
this.client = new Client("toto");
this.client.ajouterFichier("lol");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"private ClientBootstrap() {\r\n init();\r\n }",
"public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }",
"public Client() {}",
"public static void init() {\n startTime = System.currentT... | [
"0.744276",
"0.7422111",
"0.73647255",
"0.73606354",
"0.7325459",
"0.7325381",
"0.72477865",
"0.7245482",
"0.7245453",
"0.723643",
"0.7181802",
"0.7173221",
"0.7137251",
"0.7136658",
"0.7084905",
"0.7076523",
"0.70693314",
"0.70586693",
"0.7056861",
"0.7008487",
"0.6975478",
... | 0.0 | -1 |
/ On verifie si l'ajout de l'etiquette a reussi | @Test
public void testAjouterEtiquette() {
assertEquals(true,this.client.ajouterEtiquette("Film", "lol"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\... | [
"0.7012396",
"0.6340044",
"0.6321851",
"0.6042882",
"0.6028247",
"0.5999178",
"0.5997437",
"0.59874105",
"0.5947565",
"0.5932834",
"0.59113204",
"0.58909166",
"0.5883105",
"0.5875394",
"0.58249074",
"0.5819872",
"0.5811785",
"0.57947123",
"0.57932276",
"0.5784832",
"0.5784465... | 0.5570953 | 58 |
On test les accesseurs et mutateurs herite de la classe machine | @Test
public void testGetNom() {
assertEquals(client.getNom(), "toto");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MachineTest() {\n ArrayList<Rotor> rotors;\n rotors = new ArrayList<>();\n rotors.add(new MovingRotor(\"I\",\n new Permutation(NAVALA.get(\"I\"), UPPER), \"Q\"));\n rotors.add(new MovingRotor(\"II\",\n new Permutation(NAVALA.get(\"II\"), UPPER), \"E\... | [
"0.63402915",
"0.6177766",
"0.6049223",
"0.6041955",
"0.5890267",
"0.58635277",
"0.586025",
"0.5817327",
"0.5786649",
"0.57827413",
"0.5767501",
"0.5715634",
"0.57084167",
"0.56022",
"0.5596156",
"0.5550086",
"0.5532278",
"0.55060554",
"0.54941505",
"0.5483332",
"0.5480219",
... | 0.0 | -1 |
Printing unique values from String array | public static void main(String[] args) {
String [] array = {"A", "A", "B", "C", "C"};
for (int j = 0; j < array.length; j++) {
int count = 0;
for (int i = 0; i < array.length; i++) {
if (array[i].equals(array[j]))
count++;
}
if (count == 1)
System.out.print(array[j] + " ");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n System.out.print(unique(new int[]{100, 11, 34, 11, 52, 61, 1, 34}));\n // should print: `[1, 11, 34, 52, 61]`\n\n\n }",
"public static void main(String[] args) {\n int[] listOfNumbers = {1, 11, 34, 11, 52, 61, 1, 34};\n System.out.println(Arrays.toString(u... | [
"0.7444944",
"0.7393819",
"0.6585514",
"0.65750134",
"0.6574742",
"0.63990504",
"0.6388313",
"0.6362286",
"0.6361295",
"0.62946665",
"0.6283857",
"0.6281318",
"0.62796426",
"0.6202249",
"0.6184303",
"0.6179196",
"0.61669326",
"0.61604846",
"0.6126033",
"0.61039287",
"0.609158... | 0.6111863 | 19 |
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to install it inside the SupportMapFragment. This method will only be triggered once the user has installed Google Play services and returned to the app. | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
//Add markers to show places to eat on campus
LatLng Jester = new LatLng(30.283086, -97.736775);
LatLng Texas_Union = new LatLng(30.287125, -97.741109);
LatLng Kinsolving = new LatLng(30.290536, -97.739621);
mMap.addMarker(new MarkerOptions().position(Texas_Union).title("Texas Union Cafe"));
mMap.addMarker(new MarkerOptions().position(Jester).title("Jester Dining Hall"));
mMap.addMarker(new MarkerOptions().position(Kinsolving).title("Kinsolving Dining Hall"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(Jester));
//Add a map click listener
mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {
/**
* Manipulates the map when it is clicked/tapped.
* Open a dialog that will allow a user to name and create
* a marker where they tap on the screen.
*/
@Override
public void onMapClick(LatLng latLng) {
AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);
//Set the title of the dialog.
builder.setTitle("Create a new Marker");
final LatLng markerPoint = latLng;
// Set up the input
final EditText input = new EditText(MapsActivity.this);
// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text
input.setInputType(InputType.TYPE_CLASS_TEXT);
builder.setView(input);
// Set up the buttons
builder.setPositiveButton("Create", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//Create a new marker with the Latitude and Longitude of the click event.
MarkerOptions marker = new MarkerOptions().position(
new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());
mMap.addMarker(marker);
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//Cancel
dialog.cancel();
}
});
builder.show();
}
});
//Set UI settings.
mMap.getUiSettings().setZoomControlsEnabled(true);
mMap.getUiSettings().setCompassEnabled(true);
mMap.getUiSettings().setMapToolbarEnabled(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ... | [
"0.81884885",
"0.8042996",
"0.80369604",
"0.8033771",
"0.7998488",
"0.79770344",
"0.7957945",
"0.7957621",
"0.7954723",
"0.79429656",
"0.7936834",
"0.79301476",
"0.7915297",
"0.79048723",
"0.7888234",
"0.7885085",
"0.7885085",
"0.7885085",
"0.7885085",
"0.7878164",
"0.7844682... | 0.0 | -1 |
Manipulates the map when it is clicked/tapped. Open a dialog that will allow a user to name and create a marker where they tap on the screen. | @Override
public void onMapClick(LatLng latLng) {
AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);
//Set the title of the dialog.
builder.setTitle("Create a new Marker");
final LatLng markerPoint = latLng;
// Set up the input
final EditText input = new EditText(MapsActivity.this);
// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text
input.setInputType(InputType.TYPE_CLASS_TEXT);
builder.setView(input);
// Set up the buttons
builder.setPositiveButton("Create", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//Create a new marker with the Latitude and Longitude of the click event.
MarkerOptions marker = new MarkerOptions().position(
new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());
mMap.addMarker(marker);
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
//Cancel
dialog.cancel();
}
});
builder.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.O... | [
"0.7231863",
"0.70649385",
"0.695946",
"0.6948528",
"0.69478726",
"0.6923964",
"0.69156575",
"0.69138575",
"0.6858517",
"0.6854378",
"0.68211085",
"0.6805032",
"0.6717242",
"0.6713424",
"0.67001295",
"0.66829395",
"0.6660424",
"0.6618912",
"0.6558231",
"0.6554363",
"0.6512353... | 0.7480768 | 0 |
Create a new marker with the Latitude and Longitude of the click event. | @Override
public void onClick(DialogInterface dialog, int which) {
MarkerOptions marker = new MarkerOptions().position(
new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());
mMap.addMarker(marker);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.... | [
"0.7168039",
"0.70395386",
"0.6973417",
"0.6959398",
"0.681531",
"0.67437404",
"0.66388786",
"0.6629072",
"0.6563915",
"0.65541387",
"0.6523191",
"0.65054774",
"0.6452441",
"0.6450356",
"0.6421148",
"0.6397679",
"0.6377784",
"0.6365753",
"0.63517445",
"0.6333831",
"0.63205767... | 0.6456772 | 12 |
TODO Autogenerated method stub | @Override
public void handle(ActionEvent event) {
try {
Parent root = FXMLLoader.load(getClass().getResource("Roomless"));
Main.stage.setScene (new Scene(root, 700, 500));
Main.stage.show();
} catch (Exception exception) {
exception.printStackTrace();
}
} | {
"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 |
Gets the user input from the textfield and sets it to strings for insertion into the file. Also gets the pin that is generated and adds it to the file | @FXML
public void saveNewAccount( ) {
// Save user input
String name = userName.getText( );
String mail = email.getText( );
// Call the to file method to write to data.txt
UserToFile.toFile(name, pin, mail);
// View the test after the info is saved
viewTest( );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void newentry() {\r\n System.out.print(\"Enter regno: \");\r\n regno = KB.nextLine();\r\n System.out.print(\"Enter Name: \");\r\n name = KB.nextLine();\r\n System.out.print(\"Enter mark1: \");\r\n m1 = KB.nextLong();\r\n System.out.print(\"Enter mark2: \");\r\n ... | [
"0.5881867",
"0.5681731",
"0.5662768",
"0.556267",
"0.55446166",
"0.55155694",
"0.5380808",
"0.5378274",
"0.5331243",
"0.53001386",
"0.5256979",
"0.52436393",
"0.5243084",
"0.52409446",
"0.5231583",
"0.522472",
"0.5207937",
"0.51918983",
"0.5191213",
"0.5188308",
"0.5173991",... | 0.49938837 | 41 |
Views the test and allows the user to take it. | @FXML
public void viewTest( ) {
try {
Parent root2 = FXMLLoader.load(getClass().getResource("../view/TestView.fxml"));
Main.stage.setScene(new Scene (root2, 700, 500));
Main.stage.show();
} catch (Exception exception) {
exception.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testShow() {\n\t}",
"public static void testShowTodoView(){\n }",
"@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }",
"@Test\n public void firs... | [
"0.67456293",
"0.6660416",
"0.65465975",
"0.65149593",
"0.6510881",
"0.6510535",
"0.63569105",
"0.6344836",
"0.6312222",
"0.628752",
"0.62390625",
"0.62336123",
"0.62029934",
"0.6179205",
"0.6178903",
"0.6108589",
"0.60959214",
"0.6088523",
"0.60880864",
"0.6066909",
"0.60668... | 0.60296845 | 22 |
Created by ankit on 26/2/16. | public interface AppService {
@GET("/words.json")
void getVocabListApiCall(Callback<BaseVocabResponseParser> vocabResponseParserCallback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void... | [
"0.60900354",
"0.6018141",
"0.58612555",
"0.58428204",
"0.58152",
"0.58152",
"0.5789778",
"0.5758899",
"0.575317",
"0.5741185",
"0.57411826",
"0.57395625",
"0.5728231",
"0.57248247",
"0.57081455",
"0.5703477",
"0.5679848",
"0.56788325",
"0.5677151",
"0.5657434",
"0.56538725",... | 0.0 | -1 |
Creates new form Lentejas | public Lentejas() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"FORM createFORM();",
"public FormInserir() {\n initComponents();\n }",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t/... | [
"0.69777775",
"0.6718549",
"0.66588974",
"0.65665793",
"0.654801",
"0.65197074",
"0.6435355",
"0.6430779",
"0.6414412",
"0.6386485",
"0.62747246",
"0.6264712",
"0.62329197",
"0.6220089",
"0.6209478",
"0.6168929",
"0.6168385",
"0.6151237",
"0.6134649",
"0.61317855",
"0.6119535... | 0.59473544 | 39 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setFont(new java.awt.Font("Poppins Black", 0, 18)); // NOI18N
jLabel1.setText("Lentejas");
jLabel3.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel3.setText("Aporta buenas dosis de proteínas y fibra, así como una gran variedad de minerales, algunos en cantidades muy superiores a otros alimentos");
jLabel12.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel12.setText("Las lentejas contienen un 23,5% de proteínas, pero las proteínas de la lenteja son pobres en metionina y cistina, lo que limita");
jLabel13.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel13.setText("limita su aprovechamiento por el organismo, por lo que conviene consumir a lo largo del día otros alimentos. ");
jLabel4.setFont(new java.awt.Font("Poppins", 1, 14)); // NOI18N
jLabel4.setText("Beneficios:");
jLabel5.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel5.setText("•\tPocas calorías y muy nutritivas: Son un alimento ligero que aporta solo 250 calorías por plato (unos 80 gramos de lentejas");
jLabel9.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel9.setText("secas, la ración habitual por persona) haciéndolas apropiadas para menús de control de peso");
jLabel6.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel6.setText("•\tFavorece el sistema nervioso: Debido a su contenido en vitaminas del grupo B, en especial la B1, B2, B5, B6 y ácido fólico.");
jLabel7.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel7.setText("•\tControl del colesterol: La fibra soluble e insoluble de las lentejas (un 10% de su peso) absorbe el colesterol, y evita que llegue al ");
jLabel10.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel10.setText("Con la cocción se pierde parte de su aporte, pero si se toman germinadas se ve incrementado.");
jLabel11.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel11.setText("flujo sanguíneo. Además, las lentejas contienen fitatos y antioxidantes con efecto anticolesterolemiante, ");
jLabel14.setFont(new java.awt.Font("Poppins", 0, 12)); // NOI18N
jLabel14.setText("mejorando el metabolismo celular y la utilización de ácidos grasos como fuente de energía ");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel1)
.addContainerGap(958, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel13)
.addComponent(jLabel3)
.addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 802, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(23, 23, 23)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 799, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 800, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(53, 53, 53))
.addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 624, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 624, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 624, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(43, 43, 43))
.addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING))))))
.addGap(67, 67, 67))))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(36, 36, 36)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel13)
.addGap(39, 39, 39)
.addComponent(jLabel4)
.addGap(13, 13, 13)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel9)
.addGap(32, 32, 32)
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel10)
.addGap(41, 41, 41)
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel14)
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.6945... | 0.0 | -1 |
Turn left from the current direction. | public Direction moveLeft() {
switch(this){
case EAST :
return NORTH;
case SOUTH :
return EAST;
case WEST :
return SOUTH;
case NORTH :
return WEST;
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(anim... | [
"0.8525191",
"0.8521289",
"0.83128065",
"0.83038956",
"0.8278527",
"0.81815547",
"0.81277907",
"0.8114062",
"0.7970451",
"0.7931179",
"0.79119366",
"0.79075664",
"0.789386",
"0.78930855",
"0.78728366",
"0.7784135",
"0.77768725",
"0.7764422",
"0.7684714",
"0.7674244",
"0.76583... | 0.75018007 | 33 |
Turn right from the current direction. | public Direction moveRight() {
switch(this){
case EAST :
return SOUTH;
case SOUTH :
return WEST;
case WEST :
return NORTH;
case NORTH :
return EAST;
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }",
"private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }",
"public void moveRight(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\... | [
"0.8702539",
"0.85356164",
"0.85074335",
"0.84644336",
"0.83579403",
"0.8292539",
"0.8283267",
"0.8251127",
"0.82061327",
"0.8193845",
"0.7971751",
"0.795733",
"0.7928857",
"0.7903448",
"0.78905344",
"0.7807404",
"0.77573586",
"0.77384114",
"0.77215046",
"0.76952046",
"0.7684... | 0.74245065 | 31 |
Creates the default factory implementation. | public static Tp2Factory init() {
try {
Tp2Factory theTp2Factory = (Tp2Factory)EPackage.Registry.INSTANCE.getEFactory("http:///recette1-tp2-v0");
if (theTp2Factory != null) {
return theTp2Factory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new Tp2FactoryImpl();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"private ConcreteFactory() {}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstruc... | [
"0.77731436",
"0.76486766",
"0.74667984",
"0.7430188",
"0.7425205",
"0.7364157",
"0.72402287",
"0.7239365",
"0.71722776",
"0.7160405",
"0.71596897",
"0.7150511",
"0.71012115",
"0.7100998",
"0.7089295",
"0.70861953",
"0.7084425",
"0.7056558",
"0.70475817",
"0.70462054",
"0.703... | 0.0 | -1 |
Creates an instance of the factory. | public Tp2FactoryImpl() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"Instance createInstance();",
"public ObjectifyFactory factory() {\... | [
"0.7391671",
"0.72116536",
"0.7200527",
"0.69749236",
"0.6974179",
"0.6835844",
"0.670994",
"0.66708535",
"0.66708535",
"0.66708535",
"0.6663977",
"0.6616158",
"0.6615379",
"0.66138345",
"0.6588669",
"0.6567762",
"0.6533578",
"0.65324074",
"0.6525644",
"0.65160364",
"0.647447... | 0.0 | -1 |
Construct a new centralizer of the parent group using the explicitly given set. It is assumed that the given set indeeds forms the elements of a centralizer of the parent. | public Centralizer(final Group<T> parent, final T element) {
if (parent == null || element == null) {
throw new NullPointerException();
}
mParent = parent;
mElement = element;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeSet(int [] parent)\n\t\t{\n\t\t\tfor(int i = 0; i < edges; i++)\n\t\t\t\tparent[i] = i;\n\t\t}",
"public static void makeSet(int[] parent, WeightedGraph graph) {\n //Make set, creating a new element for all Vertices in the graph with a parent pointer to itself.\n for (int i = 0; i <... | [
"0.5602945",
"0.542042",
"0.51618844",
"0.51052094",
"0.5092331",
"0.50759375",
"0.49615943",
"0.49199134",
"0.48441836",
"0.4829269",
"0.48166656",
"0.48047835",
"0.4793497",
"0.47697377",
"0.4759383",
"0.4759374",
"0.47536668",
"0.46381223",
"0.46234",
"0.46127826",
"0.4589... | 0.5642889 | 0 |
Creates new GAT GT4 file object. The constructor is called by the subclasses. | public RFTGT42FileAdaptor(GATContext gatContext, URI location)
throws GATObjectCreationException {
super(gatContext, location);
// TODO: may be it is possible on the local host...
if (!location.hasAbsolutePath()) {
throw new AdaptorNotApplicableException(
"cannot handle relative paths: " + location.getPath());
}
try {
rftgt42Location = URItoRFTGT42String(location);
} catch (URISyntaxException e) {
throw new GATObjectCreationException(
"unable to create a valid rft URI: " + location, e);
} catch(GATInvocationException e) {
throw new GATObjectCreationException(
"cannot handle relative paths in absolute URI's", e);
}
this.host = location.getHost();
if (this.host == null) {
this.host = getLocalHost();
}
this.securityType = Constants.GSI_SEC_MSG;
this.authorization = null;
this.proxy = null;
try {
proxy = GlobusSecurityUtils.getGlobusCredential(gatContext,
"rftgt42", location, DEFAULT_GRIDFTP_PORT);
} catch (CouldNotInitializeCredentialException e) {
throw new GATObjectCreationException("gt42", e);
} catch (CredentialExpiredException e) {
throw new GATObjectCreationException("gt42", e);
} catch (InvalidUsernameOrPasswordException e) {
throw new GATObjectCreationException("gt42", e);
}
this.notificationConsumerManager = null;
this.notificationConsumerEPR = null;
this.notificationProducerEPR = null;
this.status = null;
this.fault = null;
factoryPort = null;
this.factoryUrl = PROTOCOL + "://" + host + ":" + DEFAULT_FACTORY_PORT
+ BASE_SERVICE_PATH + RFTConstants.FACTORY_NAME;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TGG createTGG();",
"public Tass4Reader ( ) {\r\n\t\tsuper();\r\n\t}",
"Gtr createGtr();",
"public GRAB(String filename) {\n this.filename = filename;\n }",
"protected GeneTAG() {/* intentionally empty block */}",
"public GcdSequenceFormat()\n {\n }",
"public Sc2Gears4DM() {\n\t}",
"pu... | [
"0.6507993",
"0.58039373",
"0.5727415",
"0.54594445",
"0.5400014",
"0.53548175",
"0.5252031",
"0.52485925",
"0.52388865",
"0.5226496",
"0.52128226",
"0.51873636",
"0.5147789",
"0.5144815",
"0.50834095",
"0.50622874",
"0.5037168",
"0.5007542",
"0.50039315",
"0.49888748",
"0.49... | 0.5331228 | 6 |
Copies the file to the location represented by URI dest. If the destination is on the local machine is calls the copyToLocal method. In other cases the copyThirdParty method is called. It passes a provider string to the call, and it tries the copy with all JavaCog provider. | protected synchronized boolean copy2(String destStr)
throws GATInvocationException {
EndpointReferenceType credentialEndpoint = getCredentialEPR();
TransferType[] transferArray = new TransferType[1];
transferArray[0] = new TransferType();
transferArray[0].setSourceUrl(rftgt42Location);
transferArray[0].setDestinationUrl(destStr);
RFTOptionsType rftOptions = new RFTOptionsType();
rftOptions.setBinary(Boolean.TRUE);
// rftOptions.setIgnoreFilePermErr(false);
TransferRequestType request = new TransferRequestType();
request.setRftOptions(rftOptions);
request.setTransfer(transferArray);
request.setTransferCredentialEndpoint(credentialEndpoint);
setRequest(request);
return status.equals(RequestStatusTypeEnumeration.Done.toString())
|| status.equals(TransferStatusTypeEnumeration.Finished
.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"resource\")\r\n\tpublic static synchronized void copyFile(File source, File dest)\r\n\t\t\tthrows IOException {\r\n\t\tFileChannel srcChannel = null;\r\n\t\tFileChannel dstChannel = null;\r\n\t\ttry {\r\n\t\t\tsrcChannel = new FileInputStream(source).getChannel();\r\n\t\t\tdstChannel = new File... | [
"0.5867529",
"0.57350665",
"0.55590063",
"0.55009604",
"0.5497152",
"0.5461068",
"0.5455335",
"0.53968763",
"0.53881663",
"0.5360355",
"0.52752805",
"0.527185",
"0.5249168",
"0.5247354",
"0.5213362",
"0.5184906",
"0.5183302",
"0.5179898",
"0.5170906",
"0.5170277",
"0.5145371"... | 0.55433756 | 3 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof AtributosEntidadEntity)) {
return false;
}
AtributosEntidadEntity other = (AtributosEntidadEntity) object;
if ((this.atributoEntidadId == null && other.atributoEntidadId != null) || (this.atributoEntidadId != null && !this.atributoEntidadId.equals(other.atributoEntidadId))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.68948644",
"0.6837785",
"0.67038405",
"0.6639133",
"0.6639133",
"0.65911627",
"0.6576973",
"0.6576973",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.6573157",
"0.65598476",
"0.65598476",
"0.6543178",
"0.6523156",
"0.65143406",
"0.6486455",
"0.6475413... | 0.0 | -1 |
create status, bound togerther | public void submit(Runnable task){
StatusTask stask = new StatusTask(task,this);
pending.add(stask);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CreateStatus()\n {\n super(new DataMap(), null);\n }",
"ShipmentStatus createShipmentStatus();",
"public Ludo() {\n this.status = \"Created\";\n }",
"public Status() {\n }",
"public Status() {\n\n }",
"public CreateStatus(DataMap data)\n {\n super(data, null);\n }",
"or... | [
"0.70997614",
"0.6857577",
"0.67059004",
"0.6576269",
"0.6571218",
"0.6505527",
"0.6399027",
"0.6383543",
"0.63467884",
"0.6345806",
"0.63423437",
"0.6331272",
"0.6319495",
"0.63036007",
"0.6291896",
"0.62720215",
"0.62684846",
"0.62586915",
"0.62586915",
"0.6257018",
"0.6256... | 0.0 | -1 |
find task in running map update status, list | public void info(StatusTask t, String msg){
t.setStaus(msg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IndexedList<Task> search(TaskStatus status) {\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getStatus()==status)\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}",
"public List<TaskDescription> getActiveTasks();",
"@Override\n\tpublic Collect... | [
"0.6195987",
"0.6122089",
"0.61209023",
"0.5944223",
"0.5893366",
"0.5847923",
"0.57782894",
"0.5746328",
"0.57281023",
"0.5725363",
"0.57251227",
"0.5723526",
"0.57025194",
"0.56975174",
"0.56912565",
"0.56868595",
"0.56765115",
"0.56287277",
"0.56022507",
"0.560141",
"0.559... | 0.0 | -1 |
/ Start with the empty list. | public static void main(String[] args)
{
LinkedListRep llist = new LinkedListRep();
llist.head = new Node(8);
Node second = new Node(10);
Node third = new Node(12);
Node fourth = new Node(16);
Node fifth = new Node(9);
Node sixth = new Node(14);
llist.head.next = second;
second.next = third;
third.next = fourth;
fourth.next = fifth;
fifth.next = sixth;
//sixth.next = llist.head;
System.out.print("\nLinked list: ");
llist.printList();
llist.push(15);
System.out.print("\nlist after inserting node 15: ");
llist.printList();
llist.insertAfter(third.next, 25);
System.out.print("\nlist after inserting node 25: ");
llist.printList();
llist.deleteNode(6);
System.out.print("\nlist after deleting node 9: ");
llist.printList();
llist.insertAfter(llist.head.next, 30);
System.out.print("\nlist after inserting node 30: ");
llist.printList();
llist.append(45);
System.out.print("\nlist after appending node 45: ");
llist.printList();
llist.deleteNodeIterative(8);
System.out.print("\nlist after deleting node 8 after 15: ");
llist.printList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}",
"public void EmptyList(){\n BusStopSearcherPresenter.setListview(initList(emptylist));\n }",
"List() {\n this.length = 0;\n }",
"public void makeEmpty() {\n System.out.println(\"List is now empty\");\n head = n... | [
"0.7441376",
"0.72091085",
"0.7084822",
"0.7012727",
"0.68550754",
"0.6854575",
"0.67008024",
"0.6644196",
"0.6638317",
"0.6631182",
"0.6536848",
"0.64784336",
"0.64734524",
"0.64686",
"0.64615214",
"0.64556545",
"0.6455385",
"0.64428717",
"0.6442474",
"0.6405756",
"0.6383242... | 0.0 | -1 |
Inserts a new Node at front of the list. | public void push(int new_data)
{
Node new_node = new Node(new_data);
new_node.next = head;
head = new_node;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insertAtFront(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // firstNode refers to new node\n\t\t\tnode.nextNode = firstNode;\n\t\t\tfirstNode = node;\n\t\t\t// you ca... | [
"0.77055687",
"0.7557348",
"0.75421846",
"0.750921",
"0.74947965",
"0.741063",
"0.73950857",
"0.7375097",
"0.7315058",
"0.7314422",
"0.728739",
"0.7266867",
"0.7262627",
"0.7212639",
"0.7212253",
"0.72048944",
"0.7202923",
"0.7194186",
"0.71732014",
"0.7150107",
"0.71446306",... | 0.0 | -1 |
Inserts a new node after the given prev_node. | public void insertAfter(Node prev_node, int new_data)
{
if (prev_node == null)
{
System.out.println("\nThe given previous node cannot be null");
return;
}
Node new_node = new Node(new_data);
new_node.next = prev_node.next;
prev_node.next = new_node;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert_after(int data, Node prev_node){\n if(prev_node == null){\n System.out.println(\"Given Node is null !\");\n return;\n }\n Node cursor = this.head;\n Node new_node = new Node(data);\n new_node.next = prev_node.next;\n prev_node.next ... | [
"0.7714007",
"0.7703291",
"0.749035",
"0.7363684",
"0.7278735",
"0.7167269",
"0.69951516",
"0.69431865",
"0.6797346",
"0.67273456",
"0.66700226",
"0.6528341",
"0.6395045",
"0.63334036",
"0.6302479",
"0.62602663",
"0.6251535",
"0.61896676",
"0.60857624",
"0.6080741",
"0.605503... | 0.80891424 | 0 |
Appends a new node at the end. | public void append(int new_data)
{
Node new_node = new Node(new_data);
if (head == null)
{
head = new Node(new_data);
return;
}
new_node.next = null;
Node last = head;
while (last.next != null)
last = last.next;
last.next = new_node;
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node appendNode(Node node);",
"void append(SNode node);",
"public Node<E> append(Node<E> node){\n this.addToEnd(node);\n return node;\n }",
"@Test\n\tpublic void addNodeAtEnd() {\n\t\tSystem.out.println(\"Adding a node at the End of the list\");\n\t\tdll.append(1);\n\t\tdll.append(2);... | [
"0.7891073",
"0.74369913",
"0.73098916",
"0.70744115",
"0.701907",
"0.69117206",
"0.68176407",
"0.6763058",
"0.66805106",
"0.6611023",
"0.6604931",
"0.6576764",
"0.6573439",
"0.65598506",
"0.6537451",
"0.653661",
"0.6529761",
"0.6529399",
"0.6462868",
"0.6411195",
"0.6393337"... | 0.67636585 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.