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
delete function for employee
public void actionPerformed(ActionEvent arg){ if(viewEmpIdCombo.getSelectedIndex() != 0){ for(Employee employee: employees){ if(employee.getEmployeeId() == Integer.parseInt(viewEmpIdCombo.getSelectedItem().toString())){ listOfEmpIds.removeElement(viewEmpIdCombo.getSelectedItem().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteEmployee(Employee employee) {\n\t\t\n\t}", "@Override\r\n\tpublic void deleteEmployee(Employee t) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteEmployee(Employee e) {\n\t\t\n\t}", "@Override\n\tpublic void deleteEmployee() {\n\n\t}", "@Override\r\n\tpublic void delete(Empl...
[ "0.87158096", "0.87020814", "0.8698183", "0.8645254", "0.85289603", "0.8391915", "0.83478814", "0.82991576", "0.8264353", "0.82079804", "0.8174061", "0.81286633", "0.80885637", "0.8054356", "0.79870975", "0.79531264", "0.7920012", "0.7806271", "0.77793574", "0.77630556", "0.7...
0.0
-1
function to add a new customer
public void actionPerformed(ActionEvent e){ try{ if(checkCustomerDuplicate(customers, Integer.parseInt(custIdJTextField.getText())) == true){ if(custNameJTextField.getText().isEmpty() || custAddressJTextField.getText().isEmpty()){ JOptionPane.showMessageDialog(null, "Required Fields: \n Customer I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n ...
[ "0.84499335", "0.8103554", "0.80694973", "0.7902676", "0.7813634", "0.7601017", "0.75254506", "0.7522629", "0.7515725", "0.7465619", "0.7454972", "0.74118567", "0.73904383", "0.7382322", "0.73701566", "0.73701566", "0.73701566", "0.73701566", "0.73605996", "0.7324432", "0.730...
0.0
-1
function to view a customer by id or name
public void actionPerformed(ActionEvent e){ if(customers.size() >= 1){ try{ for(Customer customer: customers){ if(customer.getCustId() == Integer.parseInt(custIdCombo.getSelectedItem().toString())){ custJTextArea.setText(" Customer Id: "+customer.getCustId() +"\n Name: "+customer.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "public Customer displayCustomer(int cid);", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently ...
[ "0.8112768", "0.78764266", "0.7649006", "0.76341236", "0.76312673", "0.7512647", "0.7429471", "0.73926246", "0.73782283", "0.73622465", "0.7284316", "0.7228286", "0.7133519", "0.7080263", "0.70632434", "0.7027587", "0.70037717", "0.6971586", "0.6948662", "0.69306904", "0.6921...
0.0
-1
function to view a customer by id or name
public void actionPerformed(ActionEvent e){ if(customers.size() >= 1){ if(custNameCombo.getSelectedIndex() != 0){ for(Customer customer: customers){ if(customer.getCustName() == custNameCombo.getSelectedItem()){ custJTextArea.setText(" Customer Id: "+customer.getCustId() +"\n Name: "+c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "public Customer displayCustomer(int cid);", "@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently ...
[ "0.8113406", "0.78755635", "0.76479214", "0.7633303", "0.7631454", "0.75133765", "0.7430544", "0.73929846", "0.7379749", "0.7362874", "0.72834474", "0.72285616", "0.7133279", "0.70805055", "0.7063584", "0.7026377", "0.700319", "0.69701296", "0.6949757", "0.693163", "0.6921929...
0.0
-1
function to view all customers
public void actionPerformed(ActionEvent e){ custJTextArea.setText(null); if(customers.size() >= 1){ for(Customer customer: customers){ custJTextArea.append("\n Customer Id: "+customer.getCustId() +"\n Name: "+customer.getCustName() +"\n Address: "+customer.getCustAddres...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, cus...
[ "0.829823", "0.81763345", "0.80183446", "0.7976031", "0.79562324", "0.7953808", "0.78932357", "0.78813636", "0.78675133", "0.7853401", "0.7842755", "0.7826005", "0.77557904", "0.77286375", "0.771011", "0.76504934", "0.760468", "0.75974584", "0.754907", "0.7524586", "0.7522446...
0.0
-1
update a specific customer
public void actionPerformed(ActionEvent e){ if(editCustIdCombo.getSelectedIndex() != 0){ if(editCustName.getText().isEmpty() || editCustAddress.getText().isEmpty()){ JOptionPane.showMessageDialog(null, "Required Fields: \n Customer Name \n Customer Address"); }else{ for(Customer customer: cus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCustomerById(Customer customer);", "public void update(Customer customer) {\n\n\t}", "public void updateCustomer(String id) {\n\t\t\n\t}", "public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }", "@PutMapping(\"/customerupdate\")\n\tpublic ...
[ "0.8738771", "0.84735763", "0.8275723", "0.8172091", "0.8147073", "0.8069911", "0.8067307", "0.8027438", "0.8027438", "0.7989646", "0.79807395", "0.7963629", "0.79252225", "0.7850981", "0.7816984", "0.7794675", "0.7783823", "0.7754889", "0.771512", "0.7713838", "0.77110916", ...
0.0
-1
delete function for customer
public void actionPerformed(ActionEvent arg){ if(editCustIdCombo.getSelectedIndex()!= 0){ for(Customer customer: customers){ if(customer.getCustId() == Integer.parseInt(editCustIdCombo.getSelectedItem().toString())){ listOfCustomers.removeElement(editCustIdCombo.getSelectedItem().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(Customer customer);", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "void deleteCustomerById(int customerId);", "public boolean deleteCustomer(String custId);", "boolean delete(CustomerOrder customerOrder)...
[ "0.87722564", "0.8590874", "0.8590874", "0.83401835", "0.8333002", "0.81911945", "0.80502796", "0.8041579", "0.78814507", "0.7879429", "0.7871306", "0.78542256", "0.77862096", "0.76243675", "0.75498617", "0.7521526", "0.7509014", "0.7488866", "0.7482388", "0.74807876", "0.747...
0.0
-1
function to add a new supplier
public void actionPerformed(ActionEvent e){ try{ if(checkSupplierDuplicate(suppliers, Integer.parseInt(supplierIdJTextField.getText())) == true){ if(supplierNameJTextField.getText().isEmpty() || supplierAddressJTextField.getText().isEmpty()){ JOptionPane.showMessageDialog(null, "Required Fields: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSupplier() {\n String name = getToken(\"Enter supplier company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Supplier result;\n result = warehouse.addSupplier(name, address, phone);\n if (result == nu...
[ "0.77407104", "0.7732546", "0.7729914", "0.75921047", "0.75221795", "0.74739987", "0.6844584", "0.6766347", "0.6751979", "0.67018527", "0.65204877", "0.6454948", "0.6222382", "0.62078154", "0.61886424", "0.6134597", "0.61007446", "0.6079447", "0.6065199", "0.60458195", "0.604...
0.5954552
24
function to view a supplier by id or name
public void actionPerformed(ActionEvent e){ try{ if(suppliers.size() >= 1){ for(Supplier supplier: suppliers){ if(supplier.getId() == Integer.parseInt(suppIdCombo.getSelectedItem().toString())){ supplierJTextArea.setText(" Supplier Id: "+supplier.getId() +"\n Name: "+supplier.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,h.username,i.product_id, i.product_name FROM supplier s INNER ...
[ "0.74649507", "0.73181516", "0.7259046", "0.70513254", "0.68949145", "0.6830225", "0.6818478", "0.6696827", "0.6684659", "0.66764146", "0.6656382", "0.6474219", "0.635077", "0.63312334", "0.6283743", "0.6251736", "0.61611795", "0.61466795", "0.6138893", "0.609516", "0.6017095...
0.0
-1
function to view a supplier by id or name
public void actionPerformed(ActionEvent e){ if(suppliers.size() >= 1){ if(suppNameCombo.getSelectedIndex() != 0){ for(Supplier supplier: suppliers){ if(supplier.getName() == suppNameCombo.getSelectedItem()){ supplierJTextArea.setText(" Supplier Id: "+supplier.getId() +"\n Name: "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,h.username,i.product_id, i.product_name FROM supplier s INNER ...
[ "0.74649507", "0.73181516", "0.7259046", "0.70513254", "0.68949145", "0.6830225", "0.6818478", "0.6696827", "0.6684659", "0.66764146", "0.6656382", "0.6474219", "0.635077", "0.63312334", "0.6283743", "0.6251736", "0.61611795", "0.61466795", "0.6138893", "0.609516", "0.6017095...
0.0
-1
retrieve and display supplier for editing
public void actionPerformed(ActionEvent e){ try{ for(Supplier supplier: suppliers){ if(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){ editSupplierName.setText(supplier.getName()); editSupplierAddress.setText(supplier.getAddress()); editSupplierEm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showSupplierList(){\n\t\tfor(int i = 0; i<supplierList.size();i++) {\n\t\t\tSystem.out.println(supplierList.get(i).getSupID()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getCompanyName()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getAddress()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getSaleRep());\n\t\t}\n\t}", "p...
[ "0.69213945", "0.681356", "0.6775099", "0.6730849", "0.6725062", "0.6686776", "0.66435575", "0.6561712", "0.65593946", "0.6429973", "0.63870573", "0.6355583", "0.6333733", "0.6277771", "0.62761915", "0.6241562", "0.6219987", "0.62127316", "0.6202476", "0.6160675", "0.61339694...
0.62397105
16
function to update supplier
public void actionPerformed(ActionEvent e){ if(editSuppIdCombo.getSelectedIndex() != 0){ if(editSupplierName.getText().isEmpty() || editSupplierAddress.getText().isEmpty()){ JOptionPane.showMessageDialog(null, "Required Fields: \n Supplier Name \n Supplier Address"); }else{ for(Supplier suppl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}", "public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "@Override\n\tpublic void updateIntoSupplier(Supplier supplier) {\n\t\tS...
[ "0.7791626", "0.7549622", "0.7445052", "0.7442297", "0.70373416", "0.6930832", "0.67073536", "0.6686956", "0.66515094", "0.66370285", "0.64171", "0.64023715", "0.6382619", "0.63555974", "0.6347068", "0.6246183", "0.6199098", "0.6196866", "0.61911047", "0.6147095", "0.6128661"...
0.5204934
84
function to delete supplier by getting id from the supplier id label
public void actionPerformed(ActionEvent arg){ if(editSuppIdCombo.getSelectedIndex() != 0){ for(Supplier supplier: suppliers){ if(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){ listOfSuppliers.removeElement(editSuppIdCombo.getSelectedItem().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(SupplierCard supplier) {\n supplier_dao.delete(supplier);\n }", "public int deleteSupplier(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t}", "int delRouteByIdSupplier(Long id...
[ "0.74278605", "0.7328488", "0.72559434", "0.72182786", "0.7059102", "0.6994517", "0.694961", "0.6933023", "0.6882994", "0.6877262", "0.6870375", "0.6548644", "0.64289683", "0.636562", "0.636562", "0.636562", "0.636562", "0.636562", "0.636562", "0.635972", "0.635819", "0.621...
0.6293061
21
function to create a product
public void actionPerformed(ActionEvent e){ if(codeJTextField.getText().trim().equals("") || codeJTextField.getText().trim().matches(".*\\D.*")){ JOptionPane.showMessageDialog(null, "Product code must be a number"); } else if(retailJTextField.getText().trim().equals("") || retailJTextField.getText().tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Product product) throws IllegalArgumentException;", "private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n ...
[ "0.7731512", "0.753442", "0.7418301", "0.73354775", "0.72572726", "0.7088936", "0.70524955", "0.70308733", "0.6973131", "0.6961218", "0.6937043", "0.6907802", "0.6865764", "0.68611395", "0.6837712", "0.6824843", "0.68072593", "0.680585", "0.6785696", "0.675118", "0.67313117",...
0.0
-1
Action listener For Button to view Customer by Id
@Override public void actionPerformed(ActionEvent e) { //String input = (String)comboBoxInvoice.getSelectedItem(); String input = (String)comboBoxCustomer.getSelectedItem(); if(input.trim().equals("") || input.matches(".*\\D.*")){ //regEx textarea.setText("Please enter a valid number"); textare...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void addCustomerButton(ActionEvent event)\n {\n bankLogic.addCustomer(textFieldName.getText(),Long.parseLong(textFieldPnr.getText()));\n for (int i = 0; i < bankLogic.getCustomers().size(); i++)\n {\n System.out.println(bankLogic.getCustomers().get(i).toString(...
[ "0.70067483", "0.6814003", "0.6583203", "0.64936095", "0.6432299", "0.642156", "0.63532495", "0.63495183", "0.6280886", "0.6280392", "0.6261373", "0.6221447", "0.61644065", "0.61187595", "0.6109068", "0.60873514", "0.60868233", "0.60777664", "0.60634774", "0.6034493", "0.6034...
0.0
-1
Add more products to Invoice
public void actionPerformed(ActionEvent e) { String prodId =(String)prodIDComboBox.getSelectedItem();; String quan = quantityTextF.getText(); String invoiceIdStr = invTextF.getText(); int invoiceId = Integer.parseInt(invoiceIdStr); if(prodId.equals("select")|| (quan.trim().equals("") || quan.matches...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillProducts(int totalEntries) {\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n storeOperations.addProduct(i, text.sentence(getRandomNum...
[ "0.6770545", "0.67697084", "0.67548424", "0.64197963", "0.6365392", "0.63022625", "0.6240574", "0.6222662", "0.62051094", "0.6199384", "0.6196908", "0.618041", "0.6154466", "0.6151378", "0.6149135", "0.61282694", "0.61002666", "0.6027709", "0.6016227", "0.60126734", "0.599558...
0.55088913
80
Action listener For Button to view product by Title
@Override public void actionPerformed(ActionEvent e) { String input = (String)comboBoxProductTitle.getSelectedItem(); //String input = productTitleTextField.getText(); if(input.trim().equals("Select")){ productTextArea.setText(""); productTextArea.setCaretPosition(0); listOfProdIds.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onProductClick(Product product, int code);", "void clickProduct(View v);", "public void buttonAction(MouseEvent event) {\n\t\tObservableList<String> names;\n\t\tnames = listView.getSelectionModel().getSelectedItems();\n\t\tint num = listView.getSelectionModel().getSelectedIndex();\n\t\tsetFocusedItemID(In...
[ "0.707577", "0.6916263", "0.6823559", "0.648271", "0.63241625", "0.6293629", "0.6262862", "0.6258528", "0.61821187", "0.6177012", "0.61560786", "0.6152993", "0.61420995", "0.6139251", "0.61360705", "0.61298555", "0.6109549", "0.60437727", "0.6026389", "0.60140395", "0.6003110...
0.5816925
47
Action listener For Button to view product by Author
@Override public void actionPerformed(ActionEvent e) { String input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase(); //String input = (productAuthorTextField.getText()).toLowerCase(); // Convert input text to lower case. //All names in array should be stored in lower c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onProductClick(Product product, int code);", "public void buttonAction(MouseEvent event) {\n\t\tObservableList<String> names;\n\t\tnames = listView.getSelectionModel().getSelectedItems();\n\t\tint num = listView.getSelectionModel().getSelectedIndex();\n\t\tsetFocusedItemID(Integer.parseInt(list.get(num).get...
[ "0.6844057", "0.6834109", "0.66292334", "0.6326753", "0.62450343", "0.61640835", "0.6112066", "0.61101645", "0.61043364", "0.61021906", "0.6092589", "0.5870221", "0.58597493", "0.5850327", "0.5812951", "0.58109635", "0.58109635", "0.579803", "0.57773817", "0.577526", "0.57681...
0.59410834
11
fill profit and loss combo box
public void fillPLComboBox(){ months.add("Select"); months.add("Current Month"); months.add("Last Month"); months.add("Last 3 Months"); months.add("View All"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Loadata(){ // fill the choice box\n stats.removeAll(stats);\n String seller = \"Seller\";\n String customer = \"Customer\";\n stats.addAll(seller,customer);\n Status.getItems().addAll(stats);\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<Loai...
[ "0.69126385", "0.66220194", "0.6482626", "0.6417794", "0.630856", "0.6306131", "0.6061043", "0.6047899", "0.60313237", "0.6030831", "0.603026", "0.5988948", "0.5978378", "0.5964089", "0.59482837", "0.5944138", "0.59267896", "0.5913857", "0.5885386", "0.5880756", "0.58521694",...
0.588961
18
End handler for save button
public boolean orderNumberUnique(int id, ArrayList<Order> orders){ int count = 0; for(Order i : orders){ if(i.getOrderUniqueId() == id){ count++; } } if(count>=1) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n ...
[ "0.73119473", "0.71728057", "0.708258", "0.7044538", "0.70128155", "0.6953466", "0.69172966", "0.68861437", "0.68620753", "0.6861774", "0.67883205", "0.677489", "0.6738249", "0.6686372", "0.6651791", "0.66493374", "0.66309595", "0.6618662", "0.6614088", "0.6610122", "0.660689...
0.0
-1
handler for save invoice button
public boolean invoiceNumberUnique(int id, ArrayList<Invoice> invoices){ int count = 0; for(Invoice i : invoices){ if(i.getId()==id){ count++; } } if(count>=1) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);", "@RequestMapping(value = \"/save\", method = RequestMethod.POST)\n public String saveNewInvoice(@Valid @ModelAttribute Invoice invoice) {\n invoice.setCreatedUser(annonsePersonController.getLoggedInUser());\n invoice.se...
[ "0.7016912", "0.69988304", "0.68736917", "0.67262834", "0.6665595", "0.64248943", "0.6417151", "0.6273186", "0.62718576", "0.6254873", "0.6253684", "0.62503415", "0.62442464", "0.62116134", "0.620444", "0.61973", "0.61707", "0.6147821", "0.61419326", "0.6103085", "0.6061888",...
0.0
-1
Method to sort the hash map
@SuppressWarnings({ "rawtypes", "unchecked" }) private static HashMap<String, Integer> sortByValues(HashMap<String, Integer> map, boolean reverse) { List list = new LinkedList(map.entrySet()); // Defined Custom Comparator here Collections.sort(list, new Comparator() { public int compare(Object o1, Object...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "private HashMap<String, Integer> sort(HashMap<String, Integer> hashMap) {\n List<HashMap.Entry<String, Integer>> list =\n new LinkedList<>(hashMap.entrySet());\n\n Comparator<HashMap.Entry<String, Integer>> co...
[ "0.7993626", "0.736086", "0.70639074", "0.70598763", "0.7010875", "0.6954961", "0.69319576", "0.6926958", "0.69035316", "0.6859873", "0.6825686", "0.6788327", "0.67667055", "0.67591083", "0.67236024", "0.6720966", "0.66779155", "0.6677401", "0.66762775", "0.6671703", "0.66682...
0.6206277
49
Method to get all the product codes from the ArrayList
public ArrayList<String> findProductCodes(){ ArrayList<String> returnCodeNames = new ArrayList<String>(); for(Product p: products){ returnCodeNames.add(p.getProductCode()); } return returnCodeNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Product> getAllProducts(){\r\n\t\tArrayList<Product> prods = new ArrayList<Product>();\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tfor(Product currProduct : Data.productArr) {\r\n\t\...
[ "0.7435732", "0.7423053", "0.6786639", "0.6713385", "0.6622165", "0.65265876", "0.6463434", "0.64188933", "0.6383534", "0.6363487", "0.62789714", "0.62662053", "0.6224233", "0.6195326", "0.6181257", "0.61417425", "0.61276174", "0.61276174", "0.61196625", "0.61134183", "0.6102...
0.7855837
0
Method for setting the Nimbus feel and look
public final static void setDesign() { try{ UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); }catch(Exception e){ System.out.println("Prob with setDesign()"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n ...
[ "0.7686765", "0.76525193", "0.7415127", "0.7322261", "0.73030335", "0.729782", "0.7277559", "0.7179297", "0.7175198", "0.71652496", "0.7145885", "0.7136319", "0.7121727", "0.70444405", "0.7014193", "0.6939206", "0.6882653", "0.68774766", "0.67406654", "0.6703126", "0.66775537...
0.75365
2
MEthod to initialize Panes etc
public void initialize(){ //Main Frame mainJFrame = new JFrame(); mainJTabbedPane = new JTabbedPane(); scrollPane = new JScrollPane(); loginJPanel = new JPanel(); custJTabbedPane = new JTabbedPane(); supplyJTabbedPane = new JTabbedPane(); prodJTabbedPane = new JTabbedPane(); invJTabbedPan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPa...
[ "0.7887955", "0.7410158", "0.7366952", "0.73542017", "0.7290241", "0.7271863", "0.7209857", "0.7194844", "0.71868914", "0.7185299", "0.71644986", "0.71594375", "0.7116301", "0.7096065", "0.7095533", "0.7089167", "0.7088937", "0.7082043", "0.7082043", "0.706969", "0.70686936",...
0.0
-1
comment.setUserId((Long) request.getSession().getAttribute("userId")); //TODO looks ugly, need learn best practice
@RequestMapping(value = "/flood/addComment", method = RequestMethod.POST) public String addCommentPost(@ModelAttribute("newComment") Comment comment, HttpServletRequest request, Model model) { comment.setUserId(1L); model.addAttribute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "public String getUserId(){return userID;}", "void setUserId(Long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "publ...
[ "0.6981189", "0.6763663", "0.6668123", "0.66386074", "0.66386074", "0.66386074", "0.66386074", "0.6496504", "0.6398306", "0.6361676", "0.6351189", "0.6313668", "0.6284701", "0.6252111", "0.6252111", "0.6231588", "0.622804", "0.622804", "0.6225579", "0.6213217", "0.62044394", ...
0.0
-1
BBModel sample = new BBModel();
@Override public Map<Character, Double> SetUnitPrice() { PricePerUnit.put('A', 1.25); PricePerUnit.put('B', 4.25); PricePerUnit.put('C', 1.00); PricePerUnit.put('D', 0.75); return PricePerUnit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModelBolting(){}", "Build_Model() {\n\n }", "DataGenModel()\n {\n }", "BOp createBOp();", "public WorldModel(){\t\n\t}", "public Model() {\n\t}", "public Model() {\n\t}", "public Model() {\n\n }", "public Model() {\n }", "public Model() {\n }", "public Model() {\n }", ...
[ "0.71762997", "0.67220014", "0.65971416", "0.65211195", "0.6480414", "0.64428186", "0.64428186", "0.64243996", "0.6389627", "0.6389627", "0.6389627", "0.6352239", "0.6352239", "0.6352239", "0.6352239", "0.6352239", "0.6352239", "0.6352239", "0.6317971", "0.63158756", "0.62266...
0.0
-1
Compares in reverse order, since higher scores should be in the first indexes when Array.sort is called
public int compareTo(Object o) { if (o instanceof HighScore) { if (((HighScore) o).score < score) return -1; else if (((HighScore) o).score == score) return 0; else return 1; } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void compareForReverseArrays() {\n Integer[] reverse1 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Integer[] reverse2 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Insertion insertion = new Insertion();\n insertion.analyzeSort(reverse1);\n insertion.getStat().printReport();\n\n ...
[ "0.709828", "0.702942", "0.7019331", "0.693071", "0.6661843", "0.65266997", "0.6416249", "0.63614345", "0.6360575", "0.63240254", "0.63040566", "0.6244589", "0.6239942", "0.6238803", "0.61639214", "0.6141302", "0.608595", "0.60711277", "0.60673916", "0.6047289", "0.6002062", ...
0.5646732
67
/ / > Constructors /
public PathMenu(Context context) { this(context, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "private void __sep__Constructors__() {}", "public Basic() {}", "protected abstract void construct();", "public Pitonyak_09_02() {\r\n }", "public CSSTidier() {\n\t}", "private Instantiation(){}",...
[ "0.83479816", "0.8020537", "0.73456436", "0.7268231", "0.72588", "0.7192531", "0.7114923", "0.71038055", "0.7100013", "0.70977485", "0.7059871", "0.7042594", "0.70419353", "0.70405734", "0.701674", "0.7014444", "0.70012194", "0.69882864", "0.6979899", "0.697539", "0.6960222",...
0.0
-1
/ / > Internal /
private void init(Context context, AttributeSet attrs, int defStyle) { inflater = LayoutInflater.from(context); inflater.inflate(R.layout.sat_main, this, true); imgMain = (ImageView) findViewById(R.id.sat_main); if (attrs != null) { TypedArray typedArray = context.obtainStyledAttributes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInternal();", "boolean internal();", "private stendhal() {\n\t}", "public interface OperationalViewTree extends LayeredViewTree {\n\n public static final String UPLOADED_PREFIX = \"(CURR) \";\n\n AbstractLayer switchCurrentLayer(AbstractLayer fromLayer, AbstractLayer toLayer);\n\n boolean ...
[ "0.6162277", "0.57124895", "0.56228673", "0.5543947", "0.5525482", "0.543742", "0.53777987", "0.5345631", "0.5345311", "0.5327162", "0.5297198", "0.5291308", "0.5283647", "0.5275047", "0.5270491", "0.52697116", "0.5266563", "0.52571285", "0.52508634", "0.52214", "0.521083", ...
0.0
-1
/ / > Public Methods / Sets the click listener for satellite items.
public void setOnItemClickedListener(OnMenuClickListener itemClickedListener) { this.itemClickedListener = itemClickedListener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setOnListSimpleItemClick(PersonalEvents.OnListViewItemClick listener)\n {\n ListenerSimple = listener;\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "public void setClickLis...
[ "0.6412196", "0.63810563", "0.62591285", "0.6250602", "0.620134", "0.61855835", "0.6172877", "0.60935616", "0.60935616", "0.60935616", "0.60935616", "0.608849", "0.6064064", "0.6036895", "0.6036895", "0.6036895", "0.6036895", "0.6036895", "0.6036895", "0.6036895", "0.60260814...
0.62240946
4
Defines the algorithm to define the gap between each item. Note: Calling before adding items is strongly recommended.
public void setGapDegreeProvider(DegreeProvider gapDegreeProvider) { this.gapDegreesProvider = gapDegreeProvider; resetItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addGap() {\n this.openGaps++;\n }", "public CalcLayout(int gap) {\n\t\tconstrains = new ArrayList<>();\n\t\tthis.gap = gap;\n\t}", "int getNextGap(int gap)\n {\n gap = (gap*10)/13;\n if (gap < 1)\n return 1;\n return gap;\n }", "public static void s...
[ "0.5883521", "0.5786035", "0.5675395", "0.5411171", "0.5209851", "0.5202397", "0.5162888", "0.5111605", "0.50104564", "0.5004456", "0.49956638", "0.49246988", "0.4911528", "0.48947573", "0.48280728", "0.47599587", "0.4754735", "0.47041965", "0.47039112", "0.4697539", "0.46975...
0.0
-1
Defines the total space between the initial and final item in degrees. Note: Calling before adding items is strongly recommended.
public void setTotalSpacingDegree(float totalSpacingDegree) { this.totalSpacingDegree = totalSpacingDegree; resetItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBaseStepSize() {\n \t\treturn 0.105;\n \t}", "protected void calculateTotalDegrees() {\r\n\t\tmTotalCircleDegrees = (360f - (mStartAngle - mEndAngle)) % 360f; // Length of the entire circle/arc\r\n\t\tif (mTotalCircleDegrees <= 0f) {\r\n\t\t\tmTotalCircleDegrees = 360f;\r\n\t\t}\r\n\t}", "publ...
[ "0.56670344", "0.56321996", "0.5524096", "0.552388", "0.5405073", "0.5372759", "0.5366942", "0.53269154", "0.5302594", "0.5244188", "0.5227475", "0.52252173", "0.5212364", "0.51989526", "0.5170024", "0.5160071", "0.51489383", "0.5145624", "0.5143174", "0.5142732", "0.51315546...
0.5808435
0
Sets the distance of items from the center in pixels. Note: Calling before adding items is strongly recommended.
public void setSatelliteDistance(int distance) { this.satelliteDistance = distance; resetItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void alignCenter(int newWidth) {\n for (Shape child : shape.getChildren()) {\n GraphicsAlgorithm ga = child.getGraphicsAlgorithm();\n int diff = (newWidth - ga.getWidth()) / 2;\n gaService.setLocation(ga, ga.getX() + diff, ga.getY());\n }\n }", "public vo...
[ "0.63468146", "0.58736455", "0.577078", "0.57532996", "0.5740558", "0.5695054", "0.55548126", "0.5553873", "0.5520699", "0.55026186", "0.5481791", "0.54385906", "0.54300493", "0.5401012", "0.537961", "0.5373581", "0.53640985", "0.5341844", "0.53297895", "0.5323092", "0.532292...
0.49404848
75
Sets the duration for expanding and collapsing the items in miliseconds. Note: Calling before adding items is strongly recommended.
public void setExpandDuration(int expandDuration) { this.expandDuration = expandDuration; resetItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setItemDuration(Duration duration) {\n this.duration = duration;\n }", "void setDuration(int duration);", "public void setDuration( Long duration );", "public android.animation.AnimatorSet setDuration(long duration) { throw new RuntimeException(\"Stub!\"); }", "public v...
[ "0.6759262", "0.6255536", "0.6221137", "0.6158919", "0.6048012", "0.5983166", "0.5891264", "0.5861907", "0.5804025", "0.5804025", "0.5773836", "0.57331777", "0.57331777", "0.573122", "0.5703619", "0.5702326", "0.5663012", "0.5608652", "0.5599812", "0.5579872", "0.55745393", ...
0.7247843
0
Sets the image resource for the center button.
public void setMainImage(int resource) { this.imgMain.setImageResource(resource); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "pri...
[ "0.65221196", "0.64822394", "0.6464882", "0.64145607", "0.63945055", "0.63795406", "0.63749206", "0.6369424", "0.6359046", "0.63431996", "0.63330054", "0.63224465", "0.6306053", "0.62819", "0.62819", "0.62534475", "0.6244703", "0.6236176", "0.61799955", "0.61505705", "0.61142...
0.6265557
15
Sets the image drawable for the center button.
public void setMainImage(Drawable drawable) { this.imgMain.setImageDrawable(drawable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setImageDrawable(@Nullable Drawable drawable) {\n mOriginalDrawable = drawable;\n setImageWhenReady();\n }", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png...
[ "0.5825982", "0.5794337", "0.57684976", "0.5766999", "0.57222146", "0.56662744", "0.56504583", "0.56504583", "0.56192875", "0.5605219", "0.558544", "0.5554867", "0.5544148", "0.55368036", "0.5529314", "0.55253917", "0.5518683", "0.5494575", "0.54945624", "0.54889536", "0.5472...
0.57963264
1
Defines if the menu shall collapse the items when an item is clicked. Default value is true.
public void setCloseItemsOnClick(boolean closeItemsOnClick) { this.closeItemsOnClick = closeItemsOnClick; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n return true; // Return true to collapse action view\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n return true; // Return true to collapse action ...
[ "0.7559193", "0.7559193", "0.7137785", "0.69706196", "0.6923895", "0.6702296", "0.6664611", "0.659134", "0.6566977", "0.6566977", "0.65397066", "0.6498881", "0.6498881", "0.6498881", "0.63571936", "0.6352492", "0.6349554", "0.63099253", "0.62201047", "0.6172121", "0.6170892",...
0.592386
29
Expand the menu items.
public void expand() { openItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n ...
[ "0.7805259", "0.7380079", "0.7380079", "0.7284332", "0.7284332", "0.7284332", "0.72713715", "0.7219596", "0.7055803", "0.68880504", "0.67905605", "0.6669762", "0.65274936", "0.65133643", "0.64897907", "0.6386816", "0.6299469", "0.62773544", "0.6266936", "0.62391776", "0.61721...
0.82308525
0
Collapse the menu items
public void close() { closeItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista1);\n return true; // Return true to collapse action view\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuIte...
[ "0.72292256", "0.7169248", "0.7169248", "0.6937456", "0.69248277", "0.69208854", "0.69130325", "0.668771", "0.6682941", "0.6671837", "0.6631944", "0.653651", "0.6410698", "0.63595617", "0.6337391", "0.6300624", "0.623883", "0.61863047", "0.6181129", "0.6116057", "0.6116057", ...
0.0
-1
/ / > OnClick / The listener class for item click event.
public interface OnMenuClickListener { /** * When an item is clicked, informs with the id of the item, which is given while adding the * items. * * @param id The id of the item. */ void onClick(int id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onClick(View view)...
[ "0.80632615", "0.7959613", "0.79315203", "0.79290885", "0.79180527", "0.79141814", "0.78917456", "0.788488", "0.7884831", "0.7880797", "0.7870758", "0.7852299", "0.7848163", "0.7848163", "0.7835127", "0.7832421", "0.7831828", "0.7826327", "0.7825195", "0.7824779", "0.7815099"...
0.0
-1
When an item is clicked, informs with the id of the item, which is given while adding the items.
void onClick(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clickItem(int uid);", "void issuedClick(String item);", "public void onItemClick(AdapterView<?> parent, View view, \n\t \t int position, long id) {\n\t \t\t\t\t\n\t \t\t\t//global int so we can edit the correct position upon \n\t \t //return\n\t \t\t\teditPosition = ...
[ "0.7146282", "0.69480133", "0.67451334", "0.6707473", "0.6681937", "0.665511", "0.657164", "0.65359896", "0.653439", "0.6526366", "0.6511984", "0.65032315", "0.6484734", "0.6480366", "0.6472152", "0.64457536", "0.64457536", "0.64440984", "0.64409804", "0.64367604", "0.6435573...
0.62564516
63
/ / > Parcelable /
@Override protected Parcelable onSaveInstanceState() { Parcelable superState = super.onSaveInstanceState(); SavedState ss = new SavedState(superState); ss.rotated = rotated; ss.totalSpacingDegree = totalSpacingDegree; ss.satelliteDistance = satelliteDistance; ss.measureDiff = measureDiff; ss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C0591c extends Parcelable {\n}", "public void mo1505a(Parcelable parcelable) {\n }", "public void mo5336a(Parcelable parcelable) {\n }", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n }", "@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\...
[ "0.7280533", "0.72032785", "0.7190166", "0.7172609", "0.69649446", "0.6928724", "0.6923466", "0.6903245", "0.6813183", "0.6813183", "0.6646854", "0.6636599", "0.6610694", "0.6511518", "0.65036213", "0.648746", "0.64843947", "0.64736366", "0.6454469", "0.64293", "0.63721734", ...
0.0
-1
User user = new User(); user.setUserName("longph"); user.setFullName("Pham Huy Long");
@Override public void run(String... args) throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User() {\n this.username = \"test\";\n }", "public User(String n, int a) { // constructor\r\n name = n;\r\n age = a;\r\n }", "public User(String name){\n this.name = name;\n }", "public User(String n) { // constructor\r\n name = n;\r\n }", "public User() {\n name = \"...
[ "0.76951975", "0.75836676", "0.7582825", "0.75543004", "0.7405045", "0.7396134", "0.73559034", "0.7323781", "0.7247675", "0.72334385", "0.7214103", "0.7139293", "0.71263325", "0.7108551", "0.7107959", "0.7076138", "0.70644045", "0.706278", "0.70560277", "0.70438844", "0.70429...
0.0
-1
choice can be "allocate" | "deallocate"
public void allocateDeallocateRoom(String choice, int RoomNumber, int daysOfStay, String mobileNumber ){ String filePath = "RoomsAna/" + "RoomsAna-" + RoomNumber + ".txt"; try { FileOutputStream f = new FileOutputStream(new File(filePath), false ); ObjectOutputStream o = new Obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Action createOperation(int choose) {\n if (choose==0) {\n action = new Addition();\n } else if (choose==1) {\n action = new Subtracting();\n } else if (choose==2) {\n action = new Multiplication();\n } else if (choose==3) {\n action = n...
[ "0.5496167", "0.5296269", "0.5232805", "0.5167665", "0.5084778", "0.50644845", "0.5031355", "0.5017514", "0.50139594", "0.5009031", "0.5002295", "0.4949392", "0.49358764", "0.49257246", "0.49237767", "0.4854748", "0.48519677", "0.48458457", "0.48350206", "0.48309818", "0.4812...
0.50901115
4
Avoid The Main Function For UML Design
public static void main(String []args){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t...
[ "0.61358047", "0.6070359", "0.6057477", "0.6027609", "0.6023493", "0.59848106", "0.5971921", "0.5956443", "0.5939086", "0.5881703", "0.5877713", "0.5867818", "0.58655375", "0.58603793", "0.5841375", "0.58242524", "0.5818155", "0.5804579", "0.5804014", "0.58037263", "0.5782615...
0.0
-1
Create scan point generators corresponding to the models passed. This serves also to validate the models, as the constructor of each generator will validate its model.
protected static List<IPointGenerator<? extends IScanPointGeneratorModel>> createPointGenerators(List<? extends IScanPointGeneratorModel> models) { final IPointGeneratorService pointGeneratorService = ServiceHolder.getPointGeneratorService(); final List<IPointGenerator<? extends IScanPointGeneratorModel>> generator...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void generate(int models) {\n\t\tIntStream.range(0, models).forEach(i -> {\n\t\t\tNetworkGenerator networkGenerator = new NetworkGenerator(capacity, dimensions, inputShape, outputShape);\n\t\t\tString code = networkGenerator.build();\n\t\t\tFileGenerator fileGenerator = new FileGenerator(String.form...
[ "0.62987673", "0.5282521", "0.52312934", "0.5199587", "0.51927465", "0.50962913", "0.5026903", "0.5018452", "0.50129634", "0.4984514", "0.49452487", "0.49209142", "0.488805", "0.4822694", "0.4706959", "0.46972385", "0.46559146", "0.46280885", "0.46256822", "0.46045923", "0.45...
0.7182739
0
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.6294496", "0.5985293", "0.59346575", "0.5808887", "0.57040495", "0.56274515", "0.56237847", "0.56017154", "0.55907434", "0.55276555", "0.5524935", "0.5503862", "0.54519093", "0.54517233", "0.54490423", "0.5441598", "0.5423149", "0.53989977", "0.53915983", "0.53861284", "0....
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Query)) { return false; } return id != null && id.equals(((Query) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.6330227", "0.61085653", "0.56601864", "0.56512696", "0.5533702", "0.54649854", "0.5463875", "0.5450531", "0.54351175", "0.54153013", "0.53894395", "0.5380123", "0.5351828", "0.53423136", "0.5338626", "0.53306764", "0.5324461", "0.53226334", "0.5317543", "0.5302994", "0.529...
0.0
-1
Gets the link title.
public String getLinkTitle() { return linkTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle();", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n...
[ "0.76391745", "0.76391745", "0.76391745", "0.76391745", "0.76391745", "0.75623834", "0.7417637", "0.7399741", "0.7390771", "0.7390771", "0.7390771", "0.734461", "0.73169154", "0.7301083", "0.72968215", "0.7288663", "0.7288663", "0.727791", "0.72583926", "0.72538483", "0.72510...
0.8484923
0
Sets the link title.
public void setLinkTitle(String linkTitle) { this.linkTitle = linkTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void se...
[ "0.7665824", "0.76139146", "0.7608307", "0.7608307", "0.7589707", "0.7589647", "0.7588828", "0.75845605", "0.75845605", "0.7584311", "0.7584311", "0.7584311", "0.7584311", "0.7584311", "0.7573138", "0.7568461", "0.7568461", "0.7568461", "0.756217", "0.7560038", "0.75583845", ...
0.7730003
0
Gets the link page path.
public String getPageLink() { return CommonUtil.dotHtmlLink(pageLink); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLink();", "String getHref();", "public static String path(String link) {\n\n if(Strings.isNullOrEmpty(link)) {\n return \"\";\n }\n\n boolean relative = false;\n if(!link.contains(\"://\")) {\n if(!link.startsWith(\"/\")) {\n link = \"/\" + link;\n ...
[ "0.66557395", "0.6473114", "0.6322164", "0.630302", "0.6232435", "0.61972535", "0.609972", "0.6073854", "0.6072892", "0.60612077", "0.60612077", "0.6021165", "0.60073256", "0.600251", "0.600251", "0.600251", "0.600251", "0.5932238", "0.591995", "0.59132177", "0.59022653", "...
0.7239502
0
Sets the link page path.
public void setPageLink(String pageLink) { this.pageLink = pageLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewPagePath(String pagePath) {\r\n this.newPagePath = pagePath;\r\n }", "public void setLink(Link link) {\n \t\t_link = link;\n \t}", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPat...
[ "0.6441801", "0.64126194", "0.62886596", "0.624143", "0.6194564", "0.6141184", "0.611615", "0.6073343", "0.60629666", "0.6029436", "0.6022205", "0.5988613", "0.5984498", "0.5969107", "0.59667826", "0.596021", "0.5957506", "0.59362966", "0.5921912", "0.59218043", "0.59170055",...
0.67777526
0
Gets the template name.
public String getTemplateName() { return templateName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemplateName() {\n\t\treturn templateName;\n\t}", "public String getTemplateName() {\n return templateName;\n }", "public java.lang.Object getTemplateName() {\n return templateName;\n }", "public PathTemplate getNameTemplate() {\n return nameTemplate;\n }", "public ...
[ "0.8304572", "0.8290958", "0.8271631", "0.8088639", "0.790549", "0.74089247", "0.7381935", "0.7360214", "0.7322246", "0.72032905", "0.71375465", "0.71031284", "0.7033558", "0.70213586", "0.6993721", "0.6992501", "0.6867326", "0.6845875", "0.6777903", "0.6763925", "0.67333245"...
0.831615
0
Sets the template name.
public void setTemplateName(String templateName) { this.templateName = templateName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }", "public void setTemplateName(String templateName) {\n this.templateName = templateName;\n }", "public static void assignTemplateName(String templateName) {\n trialWizardPreferences....
[ "0.780565", "0.77328146", "0.76435155", "0.6793286", "0.6781426", "0.67398477", "0.6719438", "0.6644867", "0.6612839", "0.6557781", "0.6524311", "0.65096104", "0.6477641", "0.6443754", "0.6437223", "0.64224213", "0.6401735", "0.6367195", "0.634029", "0.63334817", "0.63210213"...
0.78170586
0
Gets the nav title.
public String getNavTitle() { return navTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle();", "String getNavigationBarTitle(String title, String url);", "public String getTitle() {\n return ...
[ "0.75705004", "0.75705004", "0.75705004", "0.75705004", "0.75705004", "0.7452889", "0.74096733", "0.735349", "0.7271934", "0.72636", "0.725343", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72525156", "0.72...
0.8375977
0
Sets the nav title.
public void setNavTitle(String navTitle) { this.navTitle = navTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(java.l...
[ "0.7728205", "0.76606405", "0.76443446", "0.7642219", "0.76362336", "0.76362336", "0.76362336", "0.7631878", "0.76247877", "0.7623743", "0.76227397", "0.76159036", "0.7596319", "0.7596319", "0.7596319", "0.7593414", "0.75917614", "0.75917614", "0.7583687", "0.7582632", "0.758...
0.7961115
0
Gets the nav name.
public String getNavName() { return navName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getMenuName();", "public String getNavn() {\n\t\tString navn = forNavn + \" \" + etterNavn;\n\t\treturn navn;\n\t}", "public String getNavTitle() {\r\n\t\treturn navTitle;\r\n\t}", "public String getName() {\n\t\treturn MenuString;\n\t}", "public String getName() {\n int index = getSplitIndex...
[ "0.68569773", "0.68531114", "0.6844762", "0.68401057", "0.6743863", "0.6709025", "0.66322917", "0.6542679", "0.65311956", "0.64766026", "0.64409786", "0.63080925", "0.6293828", "0.62650913", "0.61878216", "0.616352", "0.616352", "0.616352", "0.6160926", "0.613974", "0.6116845...
0.8222055
0
Sets the nav name.
public void setNavName(String navName) { this.navName = navName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNavName() {\r\n\t\treturn navName;\r\n\t}", "public void setName(String nameIn) {\n name = nameIn;\n }", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setName(String name)...
[ "0.7102337", "0.66460663", "0.6534931", "0.6506784", "0.64778346", "0.64759547", "0.6456206", "0.6442297", "0.6427738", "0.64191264", "0.6410904", "0.6404901", "0.6398826", "0.63978356", "0.6396407", "0.6390767", "0.6384544", "0.63792807", "0.63773966", "0.6372093", "0.637209...
0.7974341
0
Gets the created date.
public Long getCreatedDate() { return createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getCreatedDate();", "public Date getCreatedDate();", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Date getCreated() {\r\n ...
[ "0.8848979", "0.85625833", "0.85499036", "0.85499036", "0.8548019", "0.85221493", "0.85192335", "0.8506351", "0.8484961", "0.8484961", "0.8477928", "0.8477928", "0.8475401", "0.84544235", "0.84544235", "0.8434955", "0.8434955", "0.8424115", "0.8415797", "0.84094083", "0.84094...
0.84935117
8
Sets the created date.
public void setCreatedDate(Long createdDate) { this.createdDate = createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreatedDate(Date createdDate);", "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }...
[ "0.8839899", "0.86923844", "0.8634301", "0.8578824", "0.8578824", "0.84957427", "0.84549344", "0.84549344", "0.84238434", "0.84238434", "0.84173876", "0.83704644", "0.83704644", "0.83704644", "0.83704644", "0.8308761", "0.8308761", "0.8283103", "0.8219183", "0.8200072", "0.82...
0.7899117
44
Gets the last modified date.
public String getLastModifiedDate() { return lastModifiedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public final Date getLastModifiedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"lastModifiedAt\" ) );\n\t}", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "public Date getLastModified...
[ "0.85067374", "0.8440465", "0.8363773", "0.83561563", "0.8329586", "0.8211565", "0.8198247", "0.8171974", "0.8143867", "0.8137127", "0.8107115", "0.80730796", "0.8065463", "0.8065463", "0.8030024", "0.80133", "0.8008163", "0.80021375", "0.79944474", "0.79805243", "0.7978412",...
0.827123
5
Sets the last modified date.
public void setLastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastmodifieddate(Date lastmodifieddate) {\n this.lastmodifieddate = lastmodifieddate;\n }", "public void setLastModified (java.util.Date lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}", "public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 ...
[ "0.78801954", "0.7758901", "0.7656198", "0.7620915", "0.7620915", "0.7620915", "0.7564446", "0.7495655", "0.7495655", "0.74339455", "0.74339455", "0.742334", "0.7410746", "0.7394294", "0.7385734", "0.7383911", "0.73425233", "0.7318374", "0.72705364", "0.72705364", "0.725978",...
0.7065762
35
Gets the publication date.
public Long getPublicationDate() { return publicationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPublicationDate() {\n return publicationDate;\n }", "public Date getPublicationDate() {\n return descriptor.getResolvedPublicationDate();\n }", "public Calendar getPublicationDate() {\n\t\treturn publicationDate;\n\t}", "public Date getPubDate();", "public String getPub...
[ "0.85319114", "0.82165056", "0.8167627", "0.80775356", "0.78531927", "0.78084034", "0.77003646", "0.7671803", "0.7618349", "0.75332695", "0.753134", "0.7339912", "0.7273617", "0.7257312", "0.7027561", "0.7001773", "0.6998837", "0.69700354", "0.6941152", "0.69144756", "0.68544...
0.84579706
1
Sets the publication date.
public void setPublicationDate(Long publicationDate) { this.publicationDate = publicationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPublicationDate(Calendar publicationDate) {\n\t\tthis.publicationDate = publicationDate;\n\t}", "public void setPublishdate(Date publishdate) {\n this.publishdate = publishdate;\n }", "public void setDatePublished(Date datePublished) {\r\n if (datePublished != null) {\r\n ...
[ "0.7881424", "0.75949365", "0.75478494", "0.7376042", "0.7320177", "0.71582353", "0.7109572", "0.7051769", "0.7006694", "0.6909885", "0.689115", "0.6881629", "0.6877966", "0.6877966", "0.6877966", "0.68747306", "0.6860467", "0.6831244", "0.6827096", "0.6827096", "0.6827096", ...
0.7836968
1
set up a new BookDetailComponents object and return a reference to the object which is a kind of panel
public RegisterComponents() { setLayout(new BorderLayout(0, 20)); /* documentation on gridBagConstraint: https://docs.oracle.com/javase/tutorial/uiswing/layout/gridbag.html */ // following methos add the labels and textfields to the panel dispCompFirstName(); dispCompLastName(); dispCompRoomNo();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public bookDetails() {\n initComponents();\n }", "private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().ma...
[ "0.6611385", "0.64235663", "0.6362705", "0.631243", "0.6135301", "0.6090162", "0.6059892", "0.6044352", "0.6034421", "0.60086244", "0.59890676", "0.59717333", "0.59355795", "0.59302", "0.59000885", "0.589883", "0.5884876", "0.5858837", "0.5858602", "0.5858602", "0.58526516", ...
0.0
-1
clear all the text fields
public void clearTextFields() { firstNameTextField.setText(""); lastNameTextField.setText(""); roomNoTextField.setText(""); phoneTextField.setText(""); studentIDTextField.setText(""); createPasswordTextField.setText(""); confirmPasswordTextField.setText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearAllTextField() {\n ManufactureTxt.setText(\"\");\n ManuYearTxt.setText(\"\");\n SeatNumTxt.setText(\"\");\n SerialNumTxt.setText(\"\");\n ModelTxt.setText(\"\");\n UpdateDateTxt.setText(\"\");\n ExpDateTxt.setText(\"\");\n //AvailableCheckBo...
[ "0.84974664", "0.83800346", "0.8335628", "0.83195776", "0.8310939", "0.83080053", "0.8303376", "0.8285996", "0.8233605", "0.8226591", "0.82067186", "0.8140715", "0.8101142", "0.8030832", "0.8007011", "0.7980404", "0.7978495", "0.79514164", "0.7920232", "0.7860625", "0.7856274...
0.8515006
0
generate the namespace declaration stjs.ns("namespace") if needed
private void addNamespace(ClassTree tree, GenerationContext<JS> context, List<JS> stmts) { Element type = TreeUtils.elementFromDeclaration(tree); if (JavaNodes.isInnerType(type)) { // this is an inner (anonymous or not) class - no namespace declaration is generated return; } String namespace = conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Namespaces namespaces();", "java.lang.String getNamespace();", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }", "String getNamespace();", ...
[ "0.6748143", "0.6744922", "0.67329615", "0.67037296", "0.66875714", "0.66875714", "0.66875714", "0.6592119", "0.6582543", "0.6581264", "0.6574452", "0.6520477", "0.65085506", "0.64899004", "0.6437566", "0.64256597", "0.63980496", "0.6367761", "0.6301554", "0.62863773", "0.626...
0.6949278
0
add the call to the main method, if it exists
private void addMainMethodCall(ClassTree clazz, List<JS> stmts, GenerationContext<JS> context) { if (!hasMainMethod(clazz)) { return; } TypeElement type = TreeUtils.elementFromDeclaration(clazz); JS target = context.getCurrentWrapper().isGlobal() ? null : context.js().name( context.getNames().getTy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tMethodCall mc = new MethodCall();\n\t\tmc.hey(2);\n\t}", "public static void main(){\n\t}", "public static void main()\n\t{\n\t}", "public void Main(){\n }", "public static void main(String[] args) {\r\n\t\t//method body\r\n\t}", "public static void main()...
[ "0.6697743", "0.66845393", "0.6576297", "0.653086", "0.65228206", "0.6501737", "0.64626324", "0.64056677", "0.63846457", "0.63813055", "0.62760043", "0.6266995", "0.6225288", "0.6184276", "0.6164418", "0.6154124", "0.6140645", "0.61255115", "0.6119253", "0.60889035", "0.60809...
0.64630246
6
transform a.b.type in constructor.type
private String replaceFullNameWithConstructor(String typeName) { int pos = typeName.lastIndexOf('.'); return JavascriptKeywords.CONSTRUCTOR + typeName.substring(pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public b(TypeToken typeToken) {\n super(1);\n this.a = typeToken;\n }", "BType createBType();", "public a(IntegerLiteralTypeConstructor integerLiteralTypeConstructor) {\n super(0);\n this.a = integerLiteralTypeConstructor;\n }", "public VehicleTypeTO(...
[ "0.57911503", "0.56131375", "0.5164357", "0.51434207", "0.5087434", "0.50197726", "0.5017707", "0.5006812", "0.5003102", "0.5000303", "0.49952236", "0.49652195", "0.49489838", "0.49169236", "0.49169236", "0.49169236", "0.49018952", "0.48684773", "0.48511848", "0.48410672", "0...
0.48717266
17
TODO Autogenerated method stub
@Override public List<Rol> getTodos() { RolMapper rolMapper = getSession().getMapper(RolMapper.class); List<Rol> rol=rolMapper.getRoles(); return rol; }
{ "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
Constructor Creates a check box with given string of given type
public SCheckBox(String text, int type) { super(text); loadFont(); this.setFont(font); this.setType(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeCheckbox(TypeSummary init) {\r\n super(\" \");\r\n\r\n type = init;\r\n\r\n setText(getFullName());\r\n setSize(getPreferredSize());\r\n setSelected(true);\r\n }", "protected JCheckBox createCheckBox(String text) {\r\n\t\treturn createCheckBox(text, false);...
[ "0.69396615", "0.67230093", "0.6435273", "0.634663", "0.6173193", "0.6040851", "0.59972733", "0.59904844", "0.5888392", "0.5887055", "0.5816864", "0.5799306", "0.57920045", "0.5785667", "0.5785667", "0.5785667", "0.57470226", "0.5741078", "0.57193214", "0.5663175", "0.5639719...
0.7492938
0
Sets the font field from the source, sets font to Helvetica if file reading process fails.
private void loadFont() { try { font = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream("assets/fonts/forced_square.ttf")); } catch (Exception e) { font = new Font("Helvetica", Font.PLAIN, 22); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }", "private void setFont() {\n\t}", "void setFontFamily(ReaderFontSelection f);", "p...
[ "0.721823", "0.7144967", "0.69686496", "0.6678384", "0.6633361", "0.6563318", "0.64670026", "0.6424702", "0.64112717", "0.6394705", "0.6383627", "0.6368857", "0.6366418", "0.6339748", "0.62905914", "0.627174", "0.62633574", "0.6256267", "0.6225976", "0.62190616", "0.6181749",...
0.67011905
3
Sets the type of the checkbox
private void setType(int t) { type = t; float f; switch (t) { case 21: f = 18F; this.setForeground(Color.white); break; default: f = 24F; break; } font = font.deriveFont(f); this.setFont(font); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeCheckbox(TypeSummary init) {\r\n super(\" \");\r\n\r\n type = init;\r\n\r\n setText(getFullName());\r\n setSize(getPreferredSize());\r\n setSelected(true);\r\n }", "public void setType(boolean type) {\n this.type = type;\n }", "public SCheckBox(...
[ "0.71664554", "0.7060453", "0.70457464", "0.6649982", "0.6649982", "0.6649982", "0.6498625", "0.6421621", "0.64078057", "0.63974816", "0.63727903", "0.6348871", "0.63474625", "0.6341138", "0.6329192", "0.63252944", "0.6319142", "0.6317201", "0.62656224", "0.62555325", "0.6253...
0.0
-1
Interface of the Heuristic function to evaluate a state Implementing classes must also have a static method load(String filename) to handle the loading of an existing set of parameter from the file obtained by the method save(name)
public interface Heuristic extends Serializable { public final String PATH = "heuristic"; public final String BEST = "CNN_f2_p8_m100_o50_t20_99"; public Heuristic copy(); public double evaluate(State state); public void save(String name); public Heuristic mutate(double mutationProb); public List<Heuristic> cro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Heuristic\r\n{\r\n\r\n double calcStartToGoalCost(State currentState, State goalState);\r\n}", "protected abstract int evaluate(GameState state, String playername);", "public interface IState {\n\n /**\n * Click on button to load a new map from file.\n */\n void btnLoadMap();\...
[ "0.6650042", "0.64529526", "0.6329866", "0.6302175", "0.61099166", "0.5906933", "0.58925444", "0.5876734", "0.58738446", "0.5834926", "0.57106936", "0.56169605", "0.559158", "0.55819243", "0.5576851", "0.55616593", "0.55462015", "0.55328757", "0.551977", "0.55176777", "0.5517...
0.6380702
2
perform crossover between pairs of parents, and return a new population with: All the parents All the crossover Mutation of the crossover
public static List<Heuristic> nextGeneration(List<Heuristic> parents, int populationSize, double mutationProb) { if(parents.size() % 2 != 0 || parents.size() < 2) throw new IllegalArgumentException("Must be an even number of parents"); List<Heuristic> ret = new ArrayList<>(); for(Heuristic par : parent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crossover() {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < pop_size; i++) { // go through population\r\n\r\n int a = new Random().nextInt(this.pop_size);\r\n int b = new Random().nextInt(this.pop_size);\r\n\r\n ...
[ "0.7827362", "0.765521", "0.74587667", "0.6945745", "0.68245834", "0.67332166", "0.6698546", "0.6685854", "0.6634564", "0.65909916", "0.6562158", "0.65169936", "0.6397226", "0.63685507", "0.63516444", "0.63451046", "0.63321835", "0.6323752", "0.6322177", "0.6286866", "0.62751...
0.5906762
32
Return an heuristic from the file . if == "new" it will return a new Heuristic
public static Heuristic of(String filename) { if(filename.equalsIgnoreCase("new")) return new HeuristicNN(64, 32, 16); return HeuristicNN.load(filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Heuristic extends Serializable {\n\tpublic final String PATH = \"heuristic\";\n\tpublic final String BEST = \"CNN_f2_p8_m100_o50_t20_99\";\n\t\n\tpublic Heuristic copy();\n\tpublic double evaluate(State state);\n\tpublic void save(String name);\n\tpublic Heuristic mutate(double mutationProb);\n\tp...
[ "0.6416524", "0.5609249", "0.55512077", "0.5516896", "0.5441374", "0.5350111", "0.533331", "0.52925014", "0.5275242", "0.5252519", "0.5233263", "0.5216849", "0.51985914", "0.51643443", "0.51592296", "0.5146245", "0.50784427", "0.50662374", "0.5058378", "0.5044314", "0.5031523...
0.7271002
0
ArrayList allList = getAllAds();
private JSONObject changeAdsJsonObject(){ JSONObject jsonObject=new JSONObject(); JSONArray jsonArray=new JSONArray(); try { for (int i = 0; i < adsInfoList.size(); i++) { AdsClickBean adsClickBean=adsInfoList.get(i); JSONObject object=new JSONObject(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Ad> all();", "List<NovedadAdapter> getAll();", "List<Ad> individualAd(String adId);", "List<EcsAd> selectAll();", "@RequestMapping(method = RequestMethod.GET, value = \"/getallad\")\n List<AdCampaign> getAllAd() {\n \t\n \tList<AdCampaign> listAd = AdDatabase.getListAd();\n \t\n ret...
[ "0.7849808", "0.7105177", "0.69555646", "0.68579763", "0.6837446", "0.6833548", "0.67781717", "0.67036474", "0.6524427", "0.65155125", "0.6447501", "0.6447501", "0.6447501", "0.6447501", "0.6447501", "0.64126694", "0.640073", "0.6388258", "0.6361838", "0.63350606", "0.6277548...
0.0
-1
TODO Autogenerated method stub
public void onClick(View v) { Intent intent=new Intent(); intent.setClass(context, DefineBlackList.class); context.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub Toast.makeText(BlackListActivity.this, manageButton.getText().toString(), Toast.LENGTH_LONG).show();
public void onClick(View v) { if(manageButton.getText().toString().contains("管理")) { showCheckBox(); } else { MultiDeleteBL(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void manageItemButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" MANAGE ITEM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ManageItemPanel(rmos, itemManager));\n\...
[ "0.60128736", "0.5668412", "0.5661221", "0.5285706", "0.5266526", "0.52408326", "0.52320385", "0.5206957", "0.5183215", "0.5174889", "0.51582265", "0.5089034", "0.5085485", "0.49787325", "0.49722126", "0.49644655", "0.49512133", "0.49466506", "0.49438196", "0.4873948", "0.487...
0.6258767
0
TODO Autogenerated method stub
public void onClick(DialogInterface dialog, int which) { names.remove(arg2); updateList(); }
{ "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
Which row to update, based on the ID
public void deleteFav(int itemId) { String selection = DbConstants.POST_ID + "=?"; String[] selectionArgs = {String.valueOf(itemId)}; db.delete( DbConstants.FAVOURITE_TABLE_NAME, selection, selectionArgs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateId(T data, ID newId) throws SQLException, DaoException;", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "@Update(UPDATE_BY_ID)\n @Override\n int updateById(Object position);", "int updateByPrimaryKeySelective(Tourst record);", "int up...
[ "0.63426024", "0.62808657", "0.62808657", "0.62808657", "0.62808657", "0.62808657", "0.62154746", "0.62120503", "0.6187989", "0.61677223", "0.61653775", "0.6139991", "0.61395055", "0.61368924", "0.61227703", "0.6106703", "0.60775", "0.6066588", "0.6066048", "0.60586107", "0.6...
0.0
-1
/ For back navigation to parent activity
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: // app icon in action bar clicked; goto parent activity. this.finish(); return true; case R.id.delete_project: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }", "@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }", "@Override\n public void onBackPressed() {\n this.getParent().onBackPress...
[ "0.8010037", "0.7914547", "0.7914547", "0.7873915", "0.7841302", "0.7819738", "0.77961797", "0.7795094", "0.7793555", "0.77922285", "0.77866125", "0.77713084", "0.77672815", "0.7761364", "0.7754668", "0.7754668", "0.7751575", "0.7751575", "0.77361476", "0.7735767", "0.7734206...
0.0
-1
when dialog box is closed, below method will be called.
public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) { Calendar calendar = Calendar.getInstance(); calendar.set(selectedYear, selectedMonth, selectedDay); if (!isDateOK(calendar.getTime())) { Snack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "@Override\n publ...
[ "0.7717302", "0.76031494", "0.74295974", "0.73544633", "0.7342859", "0.73110604", "0.73110604", "0.72904736", "0.7283387", "0.72591823", "0.7223517", "0.7214856", "0.7214856", "0.7213809", "0.7206341", "0.71879804", "0.71379757", "0.71378064", "0.71033436", "0.70999736", "0.7...
0.0
-1
Preparing the query that uses the custom defined 'sqr' function.
public List<List<?>> getItemsWithHigherPrice(double price) { SqlFieldsQuery query = new SqlFieldsQuery("SELECT * FROM Item WHERE attr(22) > 0"); // Executing the query. return ignite.getOrCreateCache("ItemCache").query(query).getAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CampusSearchQuery generateQuery();", "public double getSqrQuote(int t)\n {\n if(t<0 || t>=size)\n return 0.0;\n return x[t]*x[t];\n }", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Q...
[ "0.5176759", "0.5115838", "0.5074577", "0.5035545", "0.49995187", "0.49479622", "0.49388522", "0.49184665", "0.48880225", "0.48396623", "0.48215985", "0.46945792", "0.4676388", "0.46411422", "0.46362996", "0.46362537", "0.46362537", "0.4626555", "0.46225122", "0.46078092", "0...
0.0
-1
Writes given unsigned 8bit integer.
protected abstract void write( int value ) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}", "void writeByte(byte value);", "void writeByte(int v) throws IOException;", "@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { ...
[ "0.688947", "0.6618782", "0.651615", "0.6446614", "0.62733537", "0.61208594", "0.60387105", "0.599063", "0.5822372", "0.5809409", "0.58079314", "0.5804368", "0.5800796", "0.57871896", "0.57612205", "0.57575643", "0.56908554", "0.56906044", "0.5677892", "0.5652767", "0.562165"...
0.52679455
41
TODO Autogenerated method stub
public int getCount() { return MyArr.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public Object getItem(int position) { return position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public long getItemId(int position) { return position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (convertView == null) { convertView = inflater.inflate(R.layout.activity_column,...
{ "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
Constructs a negation filter, with the given subfilter.
public NegationFilter(QueryFilter subFilter) { this.subFilter = subFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default Filter<T> negate()\n {\n final Filter<T> parent = this;\n\n return new Filter<T>()\n {\n @Override\n public boolean isFiltered(final T element)\n {\n return !parent.isFiltered(element);\n }\n\n @Override\n ...
[ "0.7082987", "0.6708693", "0.60202", "0.59554285", "0.588803", "0.57791317", "0.5753064", "0.57451046", "0.553168", "0.55293745", "0.5494617", "0.54828405", "0.54631364", "0.5455561", "0.5444446", "0.54222053", "0.5418236", "0.53912157", "0.53777355", "0.5343001", "0.53113", ...
0.8225395
0
Implements isMatch (from the QueryFilter interface) by recursively calling isMatch on the subfilter and negating the result.
@Override public boolean isMatch(DataTable table, TableRow row) { return !subFilter.isMatch(table, row); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NegationFilter(QueryFilter subFilter) {\n this.subFilter = subFilter;\n }", "public QueryFilter getSubFilter() {\n return subFilter;\n }", "@Override\r\n protected boolean excludesAnd(AbstractResourceFilter<T> filter) {\n return this.equals(filter);\r\n }", "default Filter<T> negate()...
[ "0.71738636", "0.59868145", "0.5668794", "0.549253", "0.5466852", "0.54582435", "0.5287302", "0.52332455", "0.520587", "0.51888794", "0.5127636", "0.51254475", "0.511247", "0.5099725", "0.50997156", "0.5026091", "0.5013731", "0.49810457", "0.49313343", "0.48867467", "0.485375...
0.6261611
1
Returns all the columnIds this filter uses, in this case exactly all the columnIds that the subfilter uses.
@Override public Set<String> getAllColumnIds() { return subFilter.getAllColumnIds(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Set<String> filterColumns() {\n return columnSelectionMap.keySet();\n }", "List<String> getColumnIdentifiers();", "protected List<Integer> filterIndexes(String columnId) {\n List<Integer> result = new ArrayList<Integer>();\n List<Interval> selected = columnSelectionMap.get(col...
[ "0.65495753", "0.6470412", "0.62607235", "0.62375045", "0.6001409", "0.58521473", "0.5819993", "0.579729", "0.5746131", "0.5730193", "0.5679527", "0.5678967", "0.56677467", "0.56066775", "0.5604562", "0.55920976", "0.55438596", "0.5536533", "0.5528465", "0.55226415", "0.54857...
0.85851556
0
Returns a list of all scalarFunctionColumns this filter uses, in this case the scalarFunctionColumns its subfilter uses.
@Override public List<ScalarFunctionColumn> getScalarFunctionColumns() { return subFilter.getScalarFunctionColumns(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }", "public StaticTypeColumn[] getAllStaticColumns() { return ALL_COLUMNS; }", "protected Set<String> filterColumns() {\n return columnSelectionMap.keySet();\n }", "java.util.List<Column>\n getCol...
[ "0.68040097", "0.61584616", "0.6128753", "0.59738237", "0.5767763", "0.5735194", "0.5715485", "0.5637836", "0.5631817", "0.55576694", "0.55153215", "0.5490046", "0.54845655", "0.54749924", "0.54740024", "0.5462063", "0.5458701", "0.5454627", "0.5439346", "0.5430018", "0.54222...
0.8537913
0
Returns the subfilter associated with this NegationFilter.
public QueryFilter getSubFilter() { return subFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NegationFilter(QueryFilter subFilter) {\n this.subFilter = subFilter;\n }", "default Filter<T> negate()\n {\n final Filter<T> parent = this;\n\n return new Filter<T>()\n {\n @Override\n public boolean isFiltered(final T element)\n {\n ...
[ "0.7041623", "0.6855879", "0.654142", "0.64773977", "0.6330272", "0.6307827", "0.61818147", "0.61461616", "0.60786736", "0.60786736", "0.606799", "0.6064098", "0.60061216", "0.5985136", "0.5924183", "0.590312", "0.5872133", "0.58535945", "0.57563007", "0.57545054", "0.5742376...
0.7518196
0
items are the same if their names match
@Override public boolean equals(Object what) { if(what == null) return false; GroceryItem theItem = (GroceryItem) what; return description.equals(theItem.description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }", "@Test\n pu...
[ "0.6949977", "0.6689457", "0.6627853", "0.6543426", "0.64593", "0.6402181", "0.63650036", "0.6268168", "0.62628126", "0.6249933", "0.6214531", "0.6198148", "0.6113595", "0.60669696", "0.60585564", "0.6045034", "0.6001998", "0.5967292", "0.595905", "0.5951665", "0.594389", "...
0.5200524
100
sort by quantity, then by description if necessary
public int compareTo(GroceryItem theItem) { int difference = quantity - theItem.quantity; if(difference != 0) { return difference; } return description.compareTo(theItem.description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic int compare(Articulo o1, Articulo o2) {\n\t\t\t\tString desc1 = o1.getDescripcion();\n\t\t\t\tString desc2 = o2.getDescripcion();\n\t\t\t\t\n\t\t\t\treturn desc1.compareTo(desc2);\n\t\t\t}", "public abstract void sortInventory(Comparator<AbstractItemAPI> c);", "public void sort()\n\t{\n...
[ "0.6012855", "0.60106236", "0.59460944", "0.5783303", "0.5684082", "0.5660742", "0.56584775", "0.5635152", "0.56134325", "0.5600536", "0.55858046", "0.5576788", "0.5571114", "0.5569999", "0.55633044", "0.555203", "0.55491704", "0.55449855", "0.5525493", "0.5515626", "0.546699...
0.58539087
3
TODO Autogenerated method stub
public static void main(String[] args) { Path filePath = Paths.get("NIOPath.txt"); File nioPathFile = filePath.toFile(); System.out.println(nioPathFile); }
{ "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
/ / / / / /
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) { /* 79 */ ItemStack var3 = null; /* 80 */ Slot var4 = this.inventorySlots.get(index); /* */ /* 82 */ if (var4 != null && var4.getHasStack()) { /* */ /* 84 */ ItemStack var5 = var4.getStack(); /* 85 */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf(...
[ "0.5472371", "0.5383522", "0.52979374", "0.5293668", "0.5211566", "0.51842105", "0.5161626", "0.51377255", "0.5100369", "0.5067393", "0.5064298", "0.50376177", "0.49875325", "0.49361488", "0.49140826", "0.49058613", "0.49058613", "0.48946288", "0.48945552", "0.48931476", "0.4...
0.0
-1
/ / / / / /
public void onContainerClosed(EntityPlayer p_75134_1_) { /* 131 */ super.onContainerClosed(p_75134_1_); /* 132 */ this.field_111243_a.closeInventory(p_75134_1_); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf(...
[ "0.5473621", "0.5383505", "0.52978694", "0.5292658", "0.5213234", "0.5182983", "0.5162185", "0.513885", "0.5100532", "0.5069592", "0.50649107", "0.50370747", "0.49875328", "0.49345943", "0.49128735", "0.49052545", "0.49052545", "0.48946118", "0.48940715", "0.48926523", "0.489...
0.0
-1